2009-07-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2009-07-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2
3         * RadioButton.cs: Setting Checked when none of the sibligs is checked
4         should happen *not* in GotFocus, but in the Enter event. This is
5         specially important since we should get that Checked behaviour even if
6         no handle is created yet - and thus, no actual GotFocus call happens at
7         the time.
8         Fixes #520764.
9
10 2009-07-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11
12         * ComboBox.cs: Adjust manually the top border for out internal
13         ComboBox, since removing the border from it leaves it without any
14         margin. This is not noticeable in a default ComboBox, but it is in an
15         instance shown on top of ToolStrip.
16         Fixes the remaining part of #507462.
17
18 2009-07-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19
20         * TextBoxBase.cs: Expose the margin top width as a property, to keep
21         the code clean.
22         * ToolStripTextBox.cs: Since we are actually using no border in the
23         default TextBox impl, and we are drawing the border ourselves, we need
24         to manually set the top margin.
25         Fixes part of #507462.
26
27 2009-07-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
28
29         * PrintPreviewDialog.cs: Record when left was pressed, so we can
30         simulate Tab+Alt when moving the focus throughout our buttons and
31         controls.
32         Fixes the remaining bits of #509142.
33
34 2009-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
35
36         * TabControl.cs: When computing the width of each tab page, use the
37         page's Font instead of the tab control one.
38         Fixes #514368.
39
40 2009-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
41
42         * MenuAPI.cs: When handling the Keys.Left key, don't close the menu if
43         the current menu is specifically a ContextMenu (this is what .net does
44         as well). This way we also avoid a crash caused by MenuTracker trying
45         to use the menu when it was already hidden.
46
47 2009-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
48
49         * PrintPreviewDialog.cs: Remove the code used to handle the
50         DropDown menu, since we are now doing it by default in ToolBar, and
51         just call the base impl as needed.Also, deactivate the dropdown menu
52         before moving the focus to a different button in our toolbar, as .net
53         does.
54         * ContextMenu.cs:
55         * MenuAPI.cs: Make as internal the needed bits to deactivate a
56         ContextMenu, and also to keep some beauty in our api.
57
58 2009-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
59
60         * ToolBar.cs: When handling the key down message, if we are on a
61         drop down button, either show the DropDownMenu or pass the key to its
62         ProcessCmdKey method as needed.
63         Fixes the remaining bits of #509985.
64
65 2009-06-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
66
67         * ToolBar.cs: Isolate the event logic related to OnButtonClick. Also
68         set current_item when navigating with the keyboard, so we can use it
69         properly later. Finally, handle both Enter and Space to fire
70         OnButtonClick *only*, without any other impact, as .net does.
71         Fixes part of #509985.
72
73 2009-06-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
74
75         * MenuAPI.cs: Close any active menu when we get a simple Alt.
76         Fixes #509299.
77
78 2009-06-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
79
80         * ToolBar.cs: In OnButtonClick only change the Pushed value for
81         buttons with toogle style. We were previously doing it for
82         DropDownButton's buttons, but that's not what .net is doing.
83         Fixes #510030.
84
85 2009-06-26  Atsushi Enomoto  <atsushi@ximian.com>
86
87         * XplatUICarbon.cs : support multi-byte text input.
88           Fixed bug #501276.
89
90 2009-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
91
92         * ListBox.cs: When creating DrawItemEventArgs, pass either
93         Theme.ColorHighlightText or ForeColor depending on the selected state
94         of our item, as .net does.
95         Fixes #512115.
96
97 2009-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
98
99         * ComboBox.cs: When handling WM_CHAR, process the message first, and
100         send it to the textbox only if it wasn't handled.
101         Fixes #507459.
102
103 2009-06-18  Jonathan Pobst  <monkey@jpobst.com>
104
105         * ComboBox.cs: Only do my big sort at the end of AddRange if
106         the combobox is actually set to Sorted.
107
108 2009-06-18 Tom Hindle <tom_hindle@sil.org>
109         
110         * XplatUIX11.cs: Enabled Text to coexist with custom data formats.
111         Fixes #511849.
112
113 2009-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
114
115         * ListBox.cs: When calculating the scrollbars for non MultiColumn
116         mode, force the use of the horizontal scrollbar only if
117         ScrollAlwaysVisible is true as well.
118         Fixes #513029.
119
120 2009-06-17  Jonathan Pobst  <monkey@jpobst.com>
121
122         * ComboBox.cs: When using AddRange on a sorted combobox, don't
123         try to use our inefficient sorted insert method, just append
124         it and sort the whole thing at then end.
125         [Fixes bug #511247]
126
127 2009-06-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
128
129         * ToolBar.cs: Expose as internal the code used to show a dropdown menu.
130         * PrintPreviewDialog.cs: Handle the down/up arrow keys for our
131         DropDown element.
132         Fixes #509152.
133
134 2009-06-16  Ivan N. Zlatev  <contact@i-nz.net>
135
136         * DataGridView.cs: Scrolling fixes.
137         [Fixes bug #512816]
138
139 2009-06-16  Ivan N. Zlatev  <contact@i-nz.net>
140
141         * DataGridView.cs, DataGridViewRowCollection.cs: Clean up a bit and 
142         optimize for batch adding rows.
143
144 2009-06-16  Ivan N. Zlatev  <contact@i-nz.net>
145
146         * DataGridView.cs: Avoid calling ReBind twice during the initial data 
147         binding.
148         [Fixes bug #512807]
149
150 2009-06-16  Ivan N. Zlatev  <contact@i-nz.net>
151
152         * DataGridView.cs: Suppress invalidation during data binding.
153         [Fixes part of bug #512807]
154
155 2009-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
156
157         * PrintPreviewDialog.cs: Tune the navigation among the buttons and
158         controls that are part of our ToolBar, so we can mimic the behaviour
159         observed in .Net, by handling also the arrow keys and doing the
160         preprocess for them too.
161         Fixes the remaining bits of #509142.
162
163 2009-06-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
164
165         * ToolBar.cs: Expose the current item as internal.
166         * PrintPreviewDialog.cs: Tune the TabStop property for
167         PrintPreviewControl/ToolBar so we match the .net scenario regarding
168         Tab navigation. Also implement support to navigate throughout the
169         items in the ToolBar.
170         Fixes #509142.
171
172 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
173
174         * DataGridViewComboBoxCell.cs, DataGridViewComboBoxColumn.cs: 
175         Implement items syncing in the non-databound scenario.
176         [Fixes bug #494031]
177
178 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
179
180         * DataGridView.cs: Call OnCellValidating and OnCellValidated and 
181         handle the Cancel accordingly.
182         [Fixes bug #506838]
183
184 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
185
186         * DataGridViewBand.cs: Fix a typo in DefaultHeaderCellType.
187         [Fixes bug #506796]
188
189 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
190
191         * DataGridViewColumnCollection.cs, DataGridViewRowCollection.cs, 
192         DataGridView.cs: Fire CollectionChangeAction.Refresh collection 
193         changed when Clearing the collections so that the DataGridView 
194         can know and reset the current cell.
195         [Fixes bug #492549]
196
197 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
198
199         * BindingSource.cs: In ResetBindings use the ListChangedEventArgs ctor 
200         with the PropertyDescriptor parameter instead of index, because the 
201         latter will set some irelevant indices. Fixes a bug uncovered by recent
202          fix to ListChangedEventArgs.
203
204 2009-06-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
205
206         * DataObject.cs: When looking for any specific format, do a case
207         insensitive search, as .net does.
208         Fixes #509199.
209
210 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
211
212         * CurrencyManager.cs: In AllowNew firstly check if the list is a 
213         IBindingList and proxy to AllowNew. IBindingList has slightly differet 
214         logic and eventhough it's an IList IsReadOnly should not be used in this 
215         case as it might be True but AllowNew could be True as well.
216         Fixes a bug uncovered by a fix to the Array class.
217
218 2009-06-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
219
220         * ListBindingHelper.cs: In GetListItemType do a null check when
221         looking for IList.Item, since the impl could be explicit, and thus
222         private. Fix by Florent Fayolle (p.ricca at odyssee-ingenierie.com).
223         Fixes the remaining part of #507120
224
225 2009-06-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
226
227         * DataObject.cs: Map StringFormat/Text/UnicodeText formats properly,
228         to match them in all the cases, as this is exactly what .net does.
229         Fixes #510728.
230
231 2009-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
232
233         * ListBindingHelper.cs: In GetListItemType handle gracefully the case
234         where an instance of IEnumerator returns a null value for its Current
235         property. Fix by Florent Fayolle (p.ricca at odyssee-ingenierie.com).
236         Fixes #507120.
237
238 2009-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
239
240         * ComboBox.cs: Properly detect whether we need to use our vertical
241         scrollbar or not, specially for DropDownList/DropDown styles,
242         depending on the value of DropDownHeight.
243         Fixes #508541.
244
245 2009-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
246
247         * ToolTip.cs: Call the base implementation in Dispose, but do it
248         before anything else to avoid a regression. This way we do the default
249         routines related to any System.ComponentModel.Container.
250         Fixes #508586.
251
252 2009-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
253
254         * Clipboard.cs:
255         * XplatUIX11.cs:
256         * DataFormats.cs: Implement support for serializable types in our
257         clipboard.
258         Fixes #357642.
259
260 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
261
262         * ColorDialog.cs: Actually add the help button to the form, so it can
263         be visible.
264         Fixes #478555.
265
266 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
267
268         * PrintPreviewDialog.cs: Don't use Dock.Fill for the
269         PrintPreviewControl, since it will be hidden in the top by our
270         toolbar. Use manual location and anchoring instead.
271         Fixes #474889.
272
273 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
274
275         * FileDialog.cs: When saving the size of the dialog, use the
276         ClientSize instead of Size, so we have always the same size for the
277         form. Patch by Alex Shulgin.
278         Fixes #503064.
279
280 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
281
282         * MessageBox.cs: When showing the dialog call XplatUI.AudibleAlert to
283         show a beep, similar to what .net does. 
284         Fixes #473725.
285
286 2009-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
287
288         * ContainerControl.cs:
289         * MenuStrip.cs
290         * ToolStrip.cs: Implicit mnemonic processing should happen for every
291         ToolStrip child, not only for MenuStrip, so we are going to do that in
292         ToolStrip.ProcessMnemonic, where we already had that exactly
293         functionality, but we are only just checking that either this instance
294         is a ToolStripDropDownMenu instance or Alt has been pressed. Finally
295         remove the extra code, since we are not going to use it now.
296         Fixes the remaining bits of #503663.
297
298 2009-05-21  Neville Gao  <nevillegao@gmail.com>
299
300         * ContextMenu.cs: Cleaned up UIA properties.
301
302 2009-05-20  Dick Porter  <dick@acm.org>
303
304         * XplatUICarbon.cs: Add more locking around MessageQueue
305         manipulations.
306
307 2009-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
308
309         * DateTimePicker.cs: Call Focus in HideMonthCalendar to avoid
310         duplication of code, as well as actually getting the focus back in
311         *any* scenario where the drop down is closed.
312
313 2009-05-18 Tom Hindle <tom_hindle@sil.org>
314         * ScrollableControl.cs: Ignore setting properties HScroll and 
315         VScroll when AutoScroll is true.
316         [Fixes bug #500213]
317
318 2009-05-18  Jonathan Pobst  <monkey@jpobst.com>
319
320         * ToolStripRenderer.cs: Apply patch from Thomas Goldstein to make
321         disabled graphics look closer to the ones that .Net produces.
322         [Fixes bug #473660]
323
324 2009-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
325
326         * DateTimePicker.cs: When calculating the max width for the year part,
327         use the current value, since *all* the possible values are exactly a 4
328         digits number. This way we avoid a ArgumentOutOfRangeException trying
329         to check against different values.
330         Fixes #500917.
331
332 2009-05-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
333
334         * MessageBox.cs: When handling ProcessDialogChar, check that
335         CancelButton is not null before trying to use it, to avoid a null ref
336         exception. We don't need to do that on the ok/yes buttons, since they
337         always exist.
338         Fixes #503935.
339
340 2009-05-15  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
341
342         * ListBox.cs: Handle the key down event in WndProc instead of doing it
343         in an event handler, as we need to avoid any operation in case
344         the user has handled it in its own OnKeyDown handler, and this can't
345         be achieved since our handler would be the first one always.
346         * FontDialog.cs: Update the calls since our method handling key down
347         has been renamed.
348         Fixes #503469.
349
350 2009-05-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
351
352         * Application.cs: We should dismiss the active ToolStrip when we
353         receive a WM_SYSKEYDOWN message, instead of WM_SYSKEYUP, so the next
354         keyboard short cut can be properly processed by another menu item.
355         Fixes part of #503663.
356
357 2009-05-13  Andreia Gaita  <avidigal@novell.com>
358
359         * HtmlDocument.cs: If the objects are strings, wrap them in ""
360
361 2009-05-13  Andreia Gaita  <avidigal@novell.com>
362
363         * HtmlDocument.cs: Fix InvokeScript call (duh).
364
365 2009-05-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
366
367         * TextBox.cs: Expose IsAutoCompleteAvailable as internal.
368         * ComboBox.cs: If auto complete is being used, it is needed to update
369         the actual value of the combo box, doing it immediately if the user
370         presses Enter, or doing it when our combo box loses focus. Finally,
371         when handling Enter and Escape keys for the combobox, don't try to
372         hide the listbox if it is not visible in the first place. 
373         Fixes part of #489339.
374
375 2009-05-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
376
377         * ToolStripDropDownMenu.cs: Use the height returned by
378         ToolStripItem.GetPreferredHeight to calculate our own height.
379
380 2009-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
381
382         * TreeNode.cs: When setting Checked, do a double null check, since the
383         current node can still get a null parent handling
384         TreeView.OnAfterCheck.
385         Fixes #502567.
386
387 2009-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
388
389         * Control.cs: When assigning ContextMenu, do a null check before
390         assigning its container field.
391
392 2009-05-08  Brad Taylor  <brad@getcoded.net>
393
394         * DateTimePicker.cs: Add a UIA-specific property to ensure that if
395         is_checkbox_checked is changed, we won't break.
396
397 2009-05-08  Andrés G. Aragoneses  <aaragoneses@novell.com>
398
399         * ToolStripItem.cs: Prevent NRE when our holder is a
400         ToolStripDropDownButton and we get Select()ed.
401
402 2009-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
403
404         * ToolStripControlHost.cs: DefaultSize must return the current size of
405         the Control, not the value returned by GetPreferredSize. Also connect
406         a handle to the control Resize event, and use it to fire
407         OnHostedControlReize.
408         Fixes the remaining bits of #483146.
409
410 2009-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
411
412         * ToolStripDropDown.cs: When performing the layout, use
413         ToolStripItem.GetPreferredSize ().Height instead of
414         ToolStripItem.Height, since we are already using it that way in this
415         same method.
416         Fixes part of ##483146.
417
418 2009-05-08  Brad Taylor  <brad@getcoded.net>
419
420         * DateTimePicker.cs: Wrap UIA specific code in NET_2_0 wrappers.  Send
421         OnUIASelectionChanged when ShowCheckbox is true and the checkbox
422         recieves focus.  Part of fix for #502029.
423
424 2009-05-06  Mike Gorse  <mgorse@novell.com>
425
426         * FileDialog.cs: Add UIAFocusedItemChanged to PopupButtonPanel.
427         Add PerformClick and PerformDoubleClick to PopupButton.
428         Fixes #499851.
429
430 2009-05-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
431
432         * TabControl.cs: call Focus() to emit GotFocus event at the
433         proper time when SelectionIndex changes. Fixes #499887.
434
435 2009-05-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
436
437         * MonthCalendar.cs: In SetBoundsCore always do the bounds check to
438         have valid values, even if BoundSpecified is not including
439         Size/Height/Width - this is useful when we are in a control using Dock
440         or Anchor.
441         Fixes part of #483146.
442
443 2009-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
444
445         * ComboBox.cs: When losing the focus, if our textbox is not null,
446         close its auto complete list, if any.
447         Fixes part of #489339.
448
449 2009-04-27  Andrés G. Aragoneses  <aaragoneses@novell.com>
450
451         * ListView.cs: Make OnColumnClick +internal to be used by a11y.
452
453 2009-04-27  Brad Taylor  <brad@getcoded.net>
454
455         * ToolStripButton.cs: Emit an internal event when CheckOnClick is
456         changed.
457
458 2009-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
459
460         * XplatUIX11.cs: Properly support UTF8 when handling the
461         SelectionRequest event - this is helpful supporting some window
462         managers, such KDE, that explictly request the text in utf8, as
463         opposed to gnome, that supports ascii.
464         Fixes #489393.
465
466 2009-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
467
468         * ToolStripDropDownItem.cs: When assigning a new
469         ToolStripDropDownMenu, let it know we are its OwnerItem. This way the
470         Capture duties performed by Application/ToolStripManager are handled
471         nicely and we don't end up in an inconsisten stat.
472         Fixes #492815.
473
474 2009-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
475
476         * ToolStrip.cs: Even if we are not exactly a MenuStrip instance, close
477         any ToolStripDropDownItem when receiving a mouse down event in an
478         empty area.
479
480 2009-04-24  Andrés G. Aragoneses  <aaragoneses@novell.com>
481
482         * ToolBarButton.cs: add UIA events for style and dropdownmenu changes.
483
484 2009-04-24  Andrés G. Aragoneses  <aaragoneses@novell.com>
485
486         * ToolBarButton.cs: rename a method to include UIA prefix.
487
488 2009-04-24  Andrés G. Aragoneses  <aaragoneses@novell.com>
489
490         * ToolBarButton.cs: change visibility of some UIA methods from
491         protected virtual to private.
492
493 2009-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
494
495         * ToolStripDropDown.cs: In OnVisibleChanged, if we have an OwnerItem,
496         fire OnDropDownOpened/OnDropDownClosed depending on the new
497         visibility. This also ensures that any direct access to this instance
498         will fire the mentioned events for the OwnerItem.
499         * ToolStripDropDownItem.cs: Remove the invocations to
500         OnDropDownOpened/OnDropDownClosed, since they are handled in
501         ToolStripDropDown, as well as updating the
502         OnDropDownHide/OnDropDownShow calls to be in the right order.
503         Fixes #496193.
504
505 2009-04-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
506
507         * Control.cs, ContextMenuStrip.cs, ToolStripMenuItem.cs: Only process any 
508         shortchut in ToolStripMenuItem.ProcessCmdKey if the control generating the 
509         event is the same as the owner of the menu item. Also set properly 
510         SourceControl for ContextMenuStrip, as well as add an internal field to 
511         contain the control that owns the ContextMenuStrip (we need to know this 
512         even before the public property is assigned).
513         Fixes bits of #393775.
514
515 2009-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
516
517         * StatusStrip.cs: Use the same icon as .net when the mouse is over the
518         size grip.
519         Fixes #492828.
520
521 2009-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
522
523         * ComboBox.cs: When calculating the height of the ComboListBox,
524         specially for the 2.0 profile, use MaxDropDownItems if the
525         DropDownHeight property hasn't been set, and use the later if it has
526         been set. This way we support both properties.
527         Fixes #493308.
528
529 2009-04-14  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
530
531         * ThreadExceptionDialog.cs: Draw the error icon, previously missing.
532         Fixes #474253.
533
534 2009-04-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
535
536         * ContainerControl.cs: Implement support for Control.CausesValidation,
537         by adding a pending list of controls to be validated in the top
538         container control, and postpone validation as needed. 
539         Also remove any control in the validation chain in case it gets removed 
540         from its owner before the pending validation actually happens.
541         Fixes #457170.
542
543 2009-04-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
544
545         * ListBox.cs: The default instance StringFormat field used to draw our
546         items should use the StringFormatFlags.NoWrap value, so it doesn't try
547         to put in a different line the text that doesn't fit our bounds, but
548         show it partially.
549         Fixes #475581.
550
551 2009-04-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
552
553         * CheckedListbox.cs: When executing OnItemClick check that the index
554         is different to -1 before trying to retrieve an item using that value.
555         Fixes a ArgumentOutOfRangeException thrown when the horizontal
556         scrollbar was visible but not needed, and then a clicked was received
557         on its area.
558
559 2009-04-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
560
561         * MaskedTextBox.cs: If Insert is pressed, change the internal
562         overwrite mode for our default value.
563         Fixes some bits of #477395.
564
565 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
566
567         * ListView.cs: In EnsureVisible avoid any direct access to items if we
568         are using virtual mode - otherwise use the bounds stored in a specific
569         item in a given index. This is specially important when using groups
570         or when items are re-arranged, since the position in the items
571         collection can be different than that one being displayed.
572         Fixes the rest of ##491978.
573
574 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
575
576         * ThemeWin32Classic.cs: Include the previous check for ListView in a
577         2.0 define as needed.
578
579 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
580
581         * ThemeWin32Classic.cs: Don't draw ListView's gridlines if we are using groups.
582         Fixes part of #491978.
583
584 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
585
586         * ToolTip.cs: New fields to store the title/icon information.
587         * ThemeWin32Classic.cs: Implement support for tooltip's title and
588         icon.
589         Fixes #491978.
590
591 2009-04-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
592
593         * TabControl.cs: When removing a tab that was previously selected, set
594         internally the value of selected_index to -1, to avoid trying to
595         access the previous one when trying to set the new one (and was
596         already removed from the collection). This is what .net seems to do
597         too.
598         Fixes #490937.
599
600 2009-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
601
602         * XplatUIX11.cs, X11Clipboard.cs: Text and Rtf formats must be
603         separated, and we cannot fallback on Text if Rtf is requested but not
604         present.
605         * Clipboard.cs: Actually use the format specified by our user when
606         putting data.
607
608 2009-03-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
609
610         * X11Clipboard.cs: Actually look for the RtfText format when calling
611         GetRftText in our clipboard formats list, instead of using the
612         generical Text format.
613
614 2009-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
615
616         * TextBox.cs: Process auto completion properly when we are using the
617         internal source provided by ComboBox, and also remove some repeated
618         checks.
619         Fixes #489339.
620
621 2009-03-30 Tom Hindle <tom-hindle@sil.org>
622         
623         * DataGridView added Support for Invisible Columns to 
624         AutoFillColumnsInternal method.
625
626 2009-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
627
628         * X11Structs:
629         * X11Clipboard.cs: Move internal ClipboardStruct from X11Structs to
630         its own file, since it is adding some functionality and thus is not a
631         simple struct as before.
632         * XplatUIX11.cs: Add support to store different formats that could
633         have been specified by the user when puting data in the Clipboard -
634         this is important when more than one format is supported (such plain
635         text and rtf text). Update in the needed places, as well as simplify
636         the code.
637         Fixes #489625.
638
639 2009-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
640
641         * XplatUIX11.cs: When handling the SelectionRequest event, use
642         SelectionRequestEvent instead of SelectionEvent, so we get the right
643         data for the app asking for clipboard data. Set the member of
644         SelectioneEvent.property to indicate the place where we are storing
645         the information as well - this is specially important for gnome/kde
646         apps using the TARGETS atom to ask for the supported permission before
647         actually asking for a specific format.
648         Fixes #489393.
649
650 2009-03-28  Ivan N. Zlatev  <contact@i-nz.net>
651
652         * DataGridViewCell.cs: We don't support drawing all types of cell borders, 
653         so fallback and at least draw something instead of nothing.
654
655 2009-03-27  Ivan N. Zlatev  <contact@i-nz.net>
656
657         * DataGridView.cs: If the column header isn't visible allow resizing 
658         using the cell column border. Also be sure to reset the cursor properly.
659         [Fixes bug #489929]
660
661 2009-03-26   Carlos Alberto Cortez <calberto.cortez@gmail.com>
662
663         * ToolStrip.cs: When disposing, iterate over the items in reverse
664         order, since disposing the items modifies the collection.
665         * ToolStripItem.cs: Remove from the owner when disposing.
666         Fixes #485769.
667
668 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
669
670         * DataGridView.cs: Add an implementation for UpdateRowHeightInfo. No 
671         longer throws a NotImplementedException.
672           Based on a patch by Tom Hindle <tom_hindle@sil.org>
673         [Fixes bug #488319]
674
675 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
676
677         * DataGridView.cs: Implement IsCurrentRowDirty. No longer throws 
678         NotImplementedException.
679
680 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
681
682         * DataGridViewColumn.cs, DataGridViewTextBoxColumn.cs: 
683         Fix SortMode clash handling.
684         [Fixes bug #488263]
685
686 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
687
688         * DataGridView.cs: Do not show the vertical scrollbar if there is only 
689         one row or less. For the sake of MSNET compatibility.
690         [Fixes bug #487988]
691
692 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
693
694         * DataGridView.cs: When the current cell is moved out of the editing row 
695         be sure to reset it back to a place holder row.
696
697 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
698
699         * DataGridView.cs: If IsHandleCreated and the very first row is added 
700         to the grid in a non-databound scenario - select the first cell.
701         [Fixes bug #486881]
702
703 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
704
705         * DataGridView.cs: If we are not databound and empty once the first row 
706         gets added select the first cell.
707         [Fixes bug #486881]
708
709 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
710
711         * DataGridView.cs, DataGridViewColumn.cs: Do not set Row/CellTemplate's
712         DataGridView. They do not belong to a DataGridView.
713         [Fixes bug #486645]
714
715 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
716
717         * DataGridViewCellCollection.cs, DataGridViewColumnCollection.cs: 
718         Set indices and associate with DataGridView only after the item is 
719         add to the internal list.
720         [Fixes part of bug #486645]
721
722 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
723
724         * DataGridView.cs: Do not add any cells to the FullRowTemplate in RowCount. 
725         FullRowTemplate already contains all the cells.
726         [Fixes part of bug #486645]
727
728 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
729
730         * DataGridView.cs, DataGridViewCellCollection.cs: Split the column removal 
731         to perform Pre and Post removal actions to allow the current cell to be 
732         moved and all events fired properly before the column is removed.
733
734 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
735
736         * DataGridView.cs, DataGridViewRow.cs: Split the row removal to perform Pre and 
737         Post removal action to allow the current cell to be moved and all events fired 
738         properly before the row is removed.
739
740 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
741
742         * DataGridView.cs: Fire CellEnter and CellLeave events for the Cell.
743         [Fixes bug #486640]
744
745 2009-03-18  Jonathan Pobst  <monkey@jpobst.com>
746
747         * XplatUICarbon.cs: Commit patch from Alex Shulgin that fixes window
748         placement of popup windows on OSX.
749
750 2009-03-18  Matt Guo  <matt@mattguo.com>
751
752         * FontDialog.cs: Override "ToString" for FontDialog.ColorComboBox.ColorComboBoxItem
753         [Fixes bug #482690]
754
755 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
756
757         * DataGridView.cs: Implement the CellMouseDoubleClick event.
758         [Fixes bug #486262]
759
760 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
761
762         * DataGridView.cs: Fix scrolling to take into account that the 
763         scrollbars are actually inside the client area of the datagridview.
764
765 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
766
767         * DataGridView.cs: Implement mouse wheel scrolling.
768         [Fixes bug #486159]
769
770 2009-03-17  Ivan N. Zlatev  <contact@i-nz.net>
771
772         * DataGridView.cs: When DataSource changes the rebinding should happen 
773         not if IsHandleCreated but if BindingContext != null.
774         [Fixes bug #486013]
775
776 2009-03-17  Ivan N. Zlatev  <contact@i-nz.net>
777
778         * DataGridView.cs: Browsable(false) properties should be skipped when 
779         autogenerating the columns.
780         [Fixes bug #486021]
781
782 2009-03-16  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
783
784         * DomainUpDown.cs: When ReadOnly is true, all the text entered by the
785         user should use a different handling, trying to use every pressed char
786         as a unique and only one prefix to compare against the items. Also,
787         refactor some input check code to avoid duplication.
788         Fixes #458607.
789
790 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
791
792         * DataGridViewCell.cs: In OwningColumng Handle invalid column index 
793         silently.
794         [Fixes bug #485278]
795
796 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
797
798         * DataGridViewBand.cs: Update our State whenever a property changes.
799         * DataGridView.cs: Don't be so generous in reseting Displayed, because 
800         it will spawn lots and lots of unneeded State changed events.
801         [Fixes bug #484989]
802
803 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
804
805         * DataGridView.cs, DataGridViewRow.cs, DataGridViewColumn.cs: 
806         Add support for invisible rows and columns.
807         [Fixes bug #484951]
808
809 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
810
811         * DataGridViewCell.cs: Escape literal { in ToString.
812         * DataGridViewTextBoxCell.cs: Fix ToString.
813         [Fixes bug #484923]
814
815 2009-03-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
816
817         * MenuAPI.cs: When navigating items using the keyboard properly handle
818         the case when no item is selected - this way we should try to select
819         the first or the last item depending on the direction, but no the
820         second or third one, etc.
821
822 2209-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
823
824         * Form.cs: When calling ProcessCmdKey, just after checking for any
825         MainMenu, check if there's an active ContextMenu that is *not* owned
826         by the form - this is needed when a non-focusable control owns a
827         ContextMenu but its ProcessCmdKey method can't be called since it
828         can't receive any input.
829         Fixes #477655.
830
831 2009-03-13  Neville Gao  <nevillegao@gmail.com>
832
833         * ToolBar.cs: Sent ButtonClick events when button style is DropDown.
834         * ContextMenu.cs: Add UIA Framework property UIAVisible to detect if
835         ContextMenu is displayed.
836
837 2009-03-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
838
839         * XplatUIX11.cs: In GetMessage when F1 gets pressed, besides sending a
840         WM_HELP message for the associated window, don't call
841         NativeWindow.WndProc *at all*, since this could send a WM_*
842         key-related to Control.WndProc. Also, return the keypress message, in
843         case it needs to be preprocessed for any menu.
844         Fixes #478476.
845
846 2009-03-08  Ivan N. Zlatev  <contact@i-nz.net>
847
848         * DataGridView.cs: When removing the first displayed row and moving 
849         the current cell up one we must invalidate the first displayed row 
850         index before calculating the row heights, etc.
851         [Fixes bug #483202]
852
853 2009-03-08  Ivan N. Zlatev  <contact@i-nz.net>
854
855         * DataGridView.cs: Fix three column bugs:
856            - Rows should be cleared (but not removed) if columns become 0.
857            - The current cell should get moved
858            - ColumnCount increase was adding too many columns.
859
860 2009-03-07  Ivan N. Zlatev  <contact@i-nz.net>
861
862         * DataGridView.cs: Fix RowCount decrease which wasn't working well 
863         in both scenarions - with and without editing row.
864
865 2009-03-06  Ivan N. Zlatev  <contact@i-nz.net>
866
867         * DataGridView.cs: Be compatible with MS in that the scroll to 
868         selection has a synchronous effect. The trick here is that in 
869         order to avoid unnecessary calculations each time a row/column 
870         is added/removed we recalculate the whole grid size just before 
871         just before the scroll to selection.
872         [Fixes bug #482478]
873
874 2009-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
875
876         * RichTextBox.cs: LoadFile(string path) should pass by default
877         RichTextBoxStreamType.RichText, without caring about the detection or
878         extension of the file.
879
880 2009-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
881
882         * RichTextBox.cs: When calling LoadFile, remove the extra EOL
883         introduced by StreamReader, since it will convert the EOF to an EOL.
884         Fixes #479646.
885
886 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
887
888         * ToolStripDropDownMenu.cs: Use Math.Max instead of calculating
889         preferred size twice.
890
891 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
892
893         * ToolStripMenuItem.cs: Don't draw the dropdown arrow or shortcut
894         string if we aren't on a ToolStripDropDownMenu.
895
896 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
897
898         * ToolStripDropDownButton.cs, ToolStripItem.cs: Refactor some Button
899         code from Item to Button.  Patch from Alex Shulgin.
900
901 2009-03-05  Jonathan Pobst  <monkey@jpobst.com>
902
903         * ToolStripDrowDown.cs: Remove some hardcoded values and assumptions.
904         * ToolStripDropDownButton.cs: This should use a ToolStripDropDownMenu,
905         not a ToolStripDropDown.
906         * ToolStripItem.cs: Don't use the item margins on a ToolStripDropDown.
907
908 2009-03-04  Ivan N. Zlatev  <contact@i-nz.net>
909
910         * DataGridView.cs: Fix RowCount/ColumnCount decreasing.
911
912           Based on a patch by Tom Hindle <tom_hindle@sil.org>
913           [Fixes bug #482133]
914
915 2009-03-04  Ivan N. Zlatev  <contact@i-nz.net>
916
917         * DataGridView.cs, DataGridViewElement.cs: 
918            - Always calls OnDataGridViewChanged() if the new DGV is 
919            not the same/null as the current one.
920            - Do not throw NREs when setting TopLeftHeaderCell to null
921            - Unset the DGV for TopLeftHeaderCell when replacing it
922           Based on a patch by Tom Hindle <tom_hindle@sil.org>
923           [Fixes bug #481681]
924
925 2009-03-04  Jonathan Pobst  <monkey@jpobst.com>
926
927         * ToolStripDropDown.cs: When dismissing control due to ESC, don't
928         hit a NRE if we are a ContextMenuStrip and do not have a parent.
929         [Fixes bug #478616]
930
931 2009-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
932
933         * ListView.cs: When removing items from a ListViewItemCollection
934         contained in ListView (not in ListViewGroup), before actually removing
935         the items remove them also from their -if any- associated groups. If
936         the item is present in ListViewGroup.Items but not in ListView.Items,
937         then don't remove it - this is *exactly* what .net seems to do.
938         Fixes the remaining bits of #478689.
939
940 2009-02-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
941
942         * ListView.cs: In our MouseDown handler in ItemControl use the item in
943         the very specific *real* position where the mouse was pressed, using
944         GetItemAtDisplayIndex for that purpose, instead of directly accessing
945         Items - this is specially useful when groups with Details view is
946         used. This is what we do in other places when using groups.
947         Fixes part of #478689.
948
949 2009-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
950
951         * MaskedTextBox.cs: Properly replace selection when a new valid key
952         is pressed - even when IsOverwriteMode is false. This is what .net
953         does.
954
955 2009-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
956
957         * MaskedTextBox.cs: When setting Text and RejectOnFirstFailure is
958         true, use MaskedTextProvider.Set instead of MaskedTextProvider.Replace, 
959         since Set will keep the previous value in case of error (just what we
960         need), but still call MaskedTextProvider.Clear if
961         RejectOnFirstFailure is false - match .net.
962
963 2009-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
964
965         * MaskedTextBox.cs: When setting Text use the very precise algorithm
966         that .net uses: iterate over every char of the new value, trying to
967         use every char, and use a normal call to MaskedTextProvider.Replace
968         call if RejectInputOnFirstFailure is true. Fire OnMaskInputRejected 
969         in case of error in both cases, as well.
970         Fixes #477408.
971
972 2009-02-25  Neville Gao  <nevillegao@gmail.com>
973
974         * ColorDialog.cs: Added UIA Framwork Property:
975         UIASelectedSmallColorControl.
976
977 2009-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
978
979         * MaskedTextBox.cs: Forgot to update the call of the new method
980         introduces in the previous patch.
981
982 2009-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
983
984         * MaskedTextBox.cs: Handle OnKeyDown to properly process the Delete
985         key. Also create a new method to avoid code duplication between
986         OnKeyDown and OnKeyPress.
987         Fixes #477388.
988
989 2009-02-24  Ivan N. Zlatev  <contact@i-nz.net>
990
991         * DataGridViewCell.cs: Invalidate the datagrid when the cell is selected 
992         or deselected.
993         [Fixes bug #479124]
994
995 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
996
997         * MaskedTextBox.cs: In OnKeyPress the IsOverwriteMode check is
998         actually inversed, so put it the right way. Also, don't automatically
999         look for the next editable item after adding a new one, but way for
1000         the next insertion (this is what .net does) - this is not needed when
1001         MaskedTextProvider.InsertAt is called however, since it already looks for the
1002         next editable position.
1003         Fixes the remaining bits of #477383.
1004
1005 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1006
1007         * MaskedTextBox.cs: In OnKeyPress handle backspace by calling
1008         MaskedTextProvider.RemoveAt method. Also for setting the SelectionStart
1009         property after the text was modified, adjust the testPosition value
1010         depending on what method was called.
1011         Fixes part of #477383.
1012
1013 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1014
1015         * ListView.cs: For EnsureVisible, adjust the view port bounds based on
1016         the existence of the column headers, as well as using this information
1017         to adjust the vscrollbar value, so items never get hidden by the
1018         column headers.
1019         Fixes #478498.
1020
1021 2009-02-23  Ivan N. Zlatev  <contact@i-nz.net>
1022
1023         * DataGridView.cs: Make the ScrollBars property work properly.
1024
1025 2009-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1026
1027         * TextBox.cs: Some code lifting for AutoComplete's support. First,
1028         when handling non-navigation keys, save the original Text typed by the
1029         user, and don't motify it BEFORE. This was a design mistake, since the
1030         re-assignation happens only when navigating the append/suggest list,
1031         not while creating the matches. Also, process the Delete key just like 
1032         the backspace one. Finally, when handling WM_CHAR, ignore both Escape
1033         and Enter keys.
1034         Fixes some missing bits of #469967.
1035
1036 2009-02-22  Ivan N. Zlatev  <contact@i-nz.net>
1037
1038         * DataGridView.cs: Fix row removal in the data-bound scenario.
1039
1040 2009-02-19  Ivan N. Zlatev  <contact@i-nz.net>
1041
1042         * DataGridViewCell.cs: Use strict equality comparison in order to 
1043         prevent superfluous CellValueChanged events.
1044
1045 2009-02-19  Ivan N. Zlatev  <contact@i-nz.net>
1046
1047         * DataGridView.cs: Do not reset the columns when the data list changes, 
1048         but only the rows. Fixes multiple bugs related to sorting, custom 
1049         column styles being reset and more.
1050
1051 2009-02-19  Jonathan Pobst  <monkey@jpobst.com>
1052
1053         * ThemeWin32Classic.cs: Respect a PictureBox's Padding when
1054         drawing the image.
1055
1056 2009-02-18  Andrés G. Aragoneses  <aaragoneses@novell.com>
1057
1058         * ToolBarButton.cs: Oops, use the correct event (fix r127298).
1059
1060 2009-02-17  Andrés G. Aragoneses  <aaragoneses@novell.com>
1061
1062         * ToolBarButton.cs: Event for Enabled property (needed to fix
1063           UIA #474197).
1064
1065 2009-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1066
1067         * TextBox.cs: When handling WndProc with autocomplete activated,
1068         event if the new text is not causing any change in the look up
1069         algorithm, save it as we normally do when numbers and letters.
1070         Fixes #469967.
1071
1072 2009-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1073
1074         * TreeNode.cs: When Text/StateImageIndex/StateImageKey/NodeFont change
1075         Invalidate the proper bounds in the TreeView, not only resetting the
1076         width.
1077         Fixes #475542.
1078
1079 2009-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1080
1081         * TreeNode.cs: Don't return TreeView.BackColor when retrieving our own
1082         BackColor property. This is what .net does in both 1.1 and 2.0.
1083         * TreeView.cs: When selected_node is not the same as highlighted_node,
1084         we need to handle the back color in a different way, trying to use the
1085         node's BackColor if it's not Color.Empty.
1086         Fixes #464200.
1087
1088 2009-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1089
1090         * TreeView.cs: When canceling selection in our MouseUp handler,
1091         invalidate also the previous selected node bounds.
1092         Fixes #464191.
1093
1094 2009-02-07  Ivan N. Zlatev  <contact@i-nz.net>
1095
1096         * DataGridView.cs: End or if end fails then cancel the current edit 
1097         operation before clearing the data source.
1098
1099 2009-02-07  Ivan N. Zlatev  <contact@i-nz.net>
1100
1101         * DataGridView.cs: Data-bind only after the handle is created.
1102         [Fixes bug #473680]
1103
1104 2009-02-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1105
1106         * TreeView.cs: When handling the MouseMove event, check if
1107         focused_node and selected_node fields are null - usually they are non
1108         null, since we have always a selected node, but canceling selection by
1109         handling BeforeSelect event leaves the two of them as null.
1110         Fixes #470451.
1111
1112 2009-02-06  Neville Gao  <nevillegao@gmail.com>
1113
1114         * TabControl.cs: Control enabled to support accessibility.
1115         [Fixes Bug #472428]
1116
1117 2009-02-05  Ivan N. Zlatev  <contact@i-nz.net>
1118
1119         * DataGridViewRowCollection.cs, DataGridView.cs: Fix row insertation: 
1120            - Use ArrayList.Insert instead of the Item property so that the item 
1121            is actually inserted and not an existing item replaced.
1122            - Call DataGridView.OnRowsAddedInternal and drop internal from 
1123            OnRowsAdded for binary compitability. This also fixes several 
1124            redrawing issues.
1125         [Fixes bug #472968]
1126
1127 2009-02-05  Andrés G. Aragoneses  <aaragoneses@novell.com>
1128
1129         * ToolBarButton.cs: Doh, fire OnUIATextChanged *after* setting
1130           the value.
1131
1132 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
1133
1134         * ToolBarButton.cs: Add another event (OnUIATextChanged).
1135
1136 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
1137
1138         * ToolBarButton: Fix typo in previous commit (r125704).
1139
1140 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
1141
1142         * ToolBar.cs, ToolBarButton.cs: Add new UIA events to know
1143         when a button gets focus, firing the events from the ToolBar.
1144         r: jpobst
1145
1146 2009-02-04  Mario Carrion  <mcarrion@novell.com>
1147
1148         * ColumnHeader.cs: Raising ListView.ColumnWidthChanged when setting 
1149         Width.
1150         * ListView.cs: Internal method added: RaiseColumnWidthChanged, used by
1151         ColumnHeader to raise ColumnWidthChanged.
1152         [Fixes Bug #467086]
1153
1154 2009-02-03  Ivan N. Zlatev  <contact@i-nz.net>
1155
1156         * DataGridViewRowCollection.cs, DataGridView.cs: Move row completion 
1157         code in the row collection code, so that the completion happens before 
1158         the CollectionChanged event, also better encapsulation.
1159         [Fixes bug #471987]
1160
1161 2009-02-02  Ivan N. Zlatev  <contact@i-nz.net>
1162
1163         * DataGridView.cs: When editing is finished do not remove the editing 
1164         row, because it has already become a real one. Instead add a new one.
1165         [Fixes bug #471754]
1166
1167 2009-02-02  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1168
1169         * TreeView.cs: When drawing the node's image, check that the index
1170         specified by the node is valid for the ImageList.
1171         Fixes #471094.
1172
1173 2009-02-02  Andrés G. Aragoneses  <aaragoneses@novell.com>
1174
1175         * ToolBar.cs: Add new UIAPerformClick method to be called by
1176         UIAutomationWinforms when someone calls Invoke() on the
1177         ToolBarButtonProvider. r: jpobst
1178
1179 2009-02-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1180
1181         * XplatUIX11.cs: Don't send a WM_SHOWWINDOW message when receiving
1182         MapNotify/UnmapNotify events - we are already firing those events in
1183         the proper places, so we avoid this way to send the same message two
1184         times. I'm leaving the handling code in case we could break something
1185         in the future, as this change seems dangerous (but needed).
1186         Fixes #467546.
1187
1188 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
1189
1190         * DataGridView.cs: Complete incomplete rows when they are added to 
1191         the grid.
1192         [Fixes bug #471068]
1193
1194 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
1195
1196         * DataGridView.cs, DataGridViewColumnCollection.cs: Ensure that the 
1197         binding is cleared prior to setting it to null. Fixes a regression 
1198         causing exceptions when the DataSource is set to null and then set 
1199         again to a data source.
1200
1201 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
1202
1203         * DataGridView.cs, DataGridViewImageColumn.cs, DataGridViewCell.cs: 
1204            - Make Image/Bitmap cells work.
1205            - Handle images with size greater than the cell.
1206            - Default to MiddleCenter alignment for image cells.
1207         [Fixes bug #471101]
1208
1209 2009-01-30  Ivan N. Zlatev  <contact@i-nz.net>
1210
1211         * UpDownBase.cs: Force Height to PreferredHeight.
1212
1213 2009-01-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1214
1215         * XplatUIX11.cs: We should use utf8 handling clipboard transference
1216         with other x11 applications, and use utf16 when handling clipboard
1217         data in the class library. Update the related points as well.
1218         Fixes #468683.
1219
1220 2009-01-28  Ivan N. Zlatev  <contact@i-nz.net>
1221
1222         * DataGridViewCell.cs: Format strings according to the supplied 
1223         CellStyle.Format.
1224         [Fixes bug #470384]
1225
1226 2009-01-28  Ivan N. Zlatev  <contact@i-nz.net>
1227
1228         * DataGridView.cs: Reset the hover cell if it gets moved due to row(s) 
1229         addition or removal. Fixes multiple crashes in OnMouseMove.
1230
1231 2009-01-27  Ivan N. Zlatev  <contact@i-nz.net>
1232
1233         * DataGridView.cs: Fix a NRE when setting the CurrentCell to null.
1234
1235 2009-01-27  Ivan N. Zlatev  <contact@i-nz.net>
1236
1237         * XplatUIX11.cs: Fire Timer.Tick even if there is no MainForm for the 
1238         current context.
1239         [Fixes bug #469239]
1240
1241 2009-01-26  Andreia Gaita  <avidigal@novell.com>
1242
1243         * WebBrowser.cs: fix initial value of ScrollbarsEnabled, so they
1244         won't be disabled by default.
1245         Fixes #468690
1246
1247 2009-01-26  Ivan N. Zlatev  <contact@i-nz.net>
1248
1249         * DataGridView.cs: Do not clear the rows if we are not databound.
1250
1251 2009-01-26  Ivan N. Zlatev  <contact@i-nz.net>
1252
1253         * DataGridView.cs: Do not be too smart about selecting the first cell 
1254         when the first row is added as this is not what MS does. Fixes the 
1255         failing unit tests.
1256
1257 2009-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1258
1259         * TreeNode.cs: NextVisibleNode and PrevVisibleNode properties don't
1260         take into account the fact that OpenTreeNodeEnumerator needs to call
1261         MoveNext/MovePrevious to actually put the passed node as the one
1262         retrieved in Current. This way this property should work as really
1263         expected in .net.
1264         Fixes part of #467225.
1265
1266 2000-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1267
1268         * TreeView.cs: When calculating the scrollbars, don't use
1269         TreeNode.Bounds, since it still can have the values of the previous
1270         -and now invalid- layout -which depends on TreeView.skipped_nodes, and
1271         could not have been updated as well-, and use the actual number of
1272         visible number of nodes to compute the height needed to contain all
1273         the nodes. Also reset the value of vbar to 0 when disabled - this way
1274         we make sure that, when re-enabled, it will update the visible area of
1275         the treeview, even if the previous value before disabling it is the
1276         same as now. Finally don't do anything for the vbar.ValueChanged
1277         handler - for the case wheer we manually set the value but don't the
1278         vbar is disabled already.
1279         Fixes part of #467225.
1280
1281 2009-01-23  Jonathan Pobst  <monkey@jpobst.com>
1282
1283         * ToolStrip.cs: Switch from foreach to for, in case the collection
1284         somehow changes while enumerating it.
1285
1286 2009-01-23  Ivan N. Zlatev  <contact@i-nz.net>
1287
1288         * DataGridView.cs, DataGridViewCell.cs: Fix crashes when there is no 
1289         editing control.
1290
1291 2009-01-23  Ivan N. Zlatev  <contact@i-nz.net>
1292
1293         * DataGridView.cs: Fix new row adding/editing in the non-databound 
1294         scenario.
1295
1296 2009-01-21  Mike Gorse  <mgorse@novell.com>
1297
1298         * TrackBar.cs: Make LargeIncrement/Decrement internal so that UIA can
1299           use them.
1300           Added UIAValueParamChangedEvent.
1301
1302 2009-01-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1303
1304         * TreeView.cs: In CollapseAll, set vbar to the maximum value, instead
1305         of trying to set as top node the highest parent of the previous top
1306         node. Moving to the bottom of the TreeView after a call to CollapseAll
1307         is exactly what .net does. This should avoid some nasty issue when
1308         CollapseAll is called and we don't need the vertical scroll bar.
1309
1310 2009-01-21  Mario Carrion <mcarrion@novell.com>
1311
1312         * Form.cs: UIA Support: Internal events added: UIAWindowStateChanged
1313         and UIATopMostChanged.
1314
1315 2009-01-21  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1316
1317         * MenuItem.cs: Add UIACheckChanged, UIARadioCheckChanged,
1318         UIAEnabledChanged, and UIATextChanged events.
1319
1320         * Form.cs: Add UIAMenuChanged event.
1321
1322         * Menu.cs:
1323         * MenuAPI.cs: Note which internal APIs are being used by UIA.
1324
1325 2009-01-21  Neville Gao  <nevillegao@gmail.com>
1326
1327         * ToolBar.cs: Control enabled to support accessibility.
1328         [Fixes Bug #455950]
1329
1330 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1331
1332         * TreeView.cs: When handling mouse up event, check whether
1333         highlighted_node is null or not - usually it should be non-null
1334         alwaays, since the mouse down handler sets it, but some externa
1335         operations, such TreeNodeCollection.Clear, could set it to null.
1336         Fixes #438650.
1337
1338 2009-01-19  Ivan N. Zlatev  <contact@i-nz.net>
1339
1340         * ThemeWin32Classic.cs: Draw the menu item shortcut even if the menu 
1341         item is disabled.
1342
1343 2009-01-19  Ivan N. Zlatev  <contact@i-nz.net>
1344
1345         * MenuAPI.cs: Do not handle shortcuts if the menu item is disabled.
1346         [Fixes bug #467285]
1347
1348 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1349
1350         * MonthCalendar.cs: When handling the selection changes using the
1351         mouse, don't set SelectionRange if the selection range didn't actually
1352         change. This matters because, even if we set the range to the same
1353         previous range, an extra DateChanged event is fired. Just to be clear:
1354         SelectionRage property doesn't check whether the new value is
1355         different to the previous one (by ref equals doesn't work here).
1356         Fixes other bits of #364914.
1357
1358 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1359
1360         * MonthCalendar.cs: Remove the extra OnDateChanged call when handling
1361         selection using the keyboard, since we are already firing this event
1362         when setting SelectionRange. Also don't set SelectionRange if the
1363         previous and the new value are the same (the property, just as .net
1364         does, doesn't check whether the previous value and the new one are the
1365         same). This saves us from firing OnDateChanged event if the selection
1366         range didn't change actually.
1367         Fixes the remaining bits of #364914.
1368
1369 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1370
1371         * ListBox.cs: When removing an item and the last item is selected,
1372         remove it from the selection, and if selection mode is One try to
1373         select the new last item.
1374         Fixes #465422.
1375
1376 2009-01-16  Mike Gorse  <mgorse@novell.com>
1377
1378         * Splitter.cs: Make MaxSize internal so that UIA code can use it.
1379
1380 2009-01-16  Mario Carrion <mcarrion@novell.com>
1381
1382         * ColumnHeader.cs: UIA Support: raising internal event UIATextChanged 
1383         when changing Text. 
1384
1385 2009-01-16  Carlos Alberto Cortez <calberto.cortez@ggmail.com>
1386
1387         * X11Structs.cs:
1388         * XplatUIX11.cs: Properly encode/decode the unicode strings we
1389         store/retrieve in the Clipboard. Also, since we try to convert the
1390         data to different formats, separate the source and the result of
1391         it, so we can always fallback to the original and don't mix wrong
1392         conversions.
1393
1394 2009-01-16  Mike Gorse  <mgorse@novell.com>
1395
1396         * TextControl.cs: Add UIASelectionChanged event.
1397
1398 2009-01-16  Ivan N. Zlatev  <contact@i-nz.net>
1399
1400         * DataGridView.cs: Forward the first key events to the editing control.
1401         [Fixes bug #457307]
1402
1403 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
1404
1405         * Application.cs: Oops, launch the copied handler of PreRun instead of
1406         the global one (gendarme would bark otherwise). (Improving r123375)
1407
1408 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
1409
1410         * XplatUI.cs:
1411         * Application.cs: Move the PreRun event fire to the end of the XplatUI
1412         static ctor (we don't move the PreRun event to this class because its
1413         usage would cause the call to the static ctor). This way we can get
1414         a11y support for dialogs that run without App.Run.
1415
1416 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
1417
1418         * ListView.cs: New internal property to know the inner array's length of
1419         the location of items, in order to avoid a try-catch strategy for the
1420         case when this array has not been resized yet (for reference, look at
1421         r123288). r: jpobst
1422
1423 2009-01-13  Andrés G. Aragoneses  <aaragoneses@novell.com>
1424
1425         * Application.cs: Simplify UIA initialization, reducing it from 4 to 1
1426         reflection calls. This requires UIAutomationWinforms r123213.
1427
1428 2009-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1429
1430         * MonthCalendar.cs: Detect selection changes in MouseDown/MouseMove
1431         handlers and fire the DateSelected event until MouseUp is reached,
1432         like .net does, instead of firing it for each mouse event.
1433         Fixes part of #364914.
1434
1435 2009-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1436
1437         * TreeView.cs: When the selection gets canceled using the BeforeSelect
1438         event, invalidate the previous highlighted_node bounds, to show the
1439         user that the item was *not* selected.
1440         Fixes #464191.
1441
1442 2009-01-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1443
1444         * ComboBox.cs: Separate some scroll logic: setting SelectedIndex, as
1445         well as -in DropDown and Simple modes- writing in the textbox should
1446         try to set the requested item as the top one, but navigating with the
1447         keyboard and handling mouse selection don't need that behaviour. Also,
1448         when resetting selected_index handling key press events, reset
1449         ComboListBox.HighlightIndex. 
1450         Fixes the remaining bits of #464188.
1451
1452 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1453
1454         * DataGridView.cs: Fix crashes when shortcut keys are pressed, but 
1455         there are no cells:
1456            - CurrentCellAddress should be -1, -1 and not 0, 0.
1457            - Be tolerant and fall back to clearing the current cell if either 
1458            column or row is -1 in MoveCurrentCell.
1459            - Misc. more -1 checks.
1460
1461 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1462
1463         * DataGridView.cs: Preserve the column index. Fixes a regression 
1464         introduced by the data binding position tracking code.
1465
1466 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1467
1468         * DataGridView.cs: If the bottom of the row matches the client height 
1469         do not regard the row as partially visible. Fixes the weird scrolling 
1470         when there is no scrollbar.
1471
1472 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1473
1474         * DataGridViewComboBoxCell.cs: Implement/Fix the data binding.
1475
1476 2009-01-09  Mario Carrion  <mcarrion@novell.com>
1477
1478         * MessageBox.cs: Fixed internal UIAIconRectangle property.
1479
1480 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1481
1482         * DataGridViewCheckBoxCell.cs: Respect the ReadOnly state of the Cell.
1483
1484 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1485
1486         * DataGridView.cs: Track the Position in the CurrencyManager.
1487
1488 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1489
1490         * DataGridView.cs: Implement data-bound new item editing/addition.
1491         * DataGridViewRowCollection.cs: Make it possible for us to internally 
1492         remove the edit row.
1493         [Fixes bugs #457107, #457308, #325240]
1494
1495 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1496
1497         * CurrencyManager.cs: Even if Position is set to a greater value than the 
1498         list count reset it to position of the last item.
1499
1500 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1501
1502         * BindingSource.cs: AddNew doesn't set index/add_pending for IBindingList. 
1503         Fix that in order to make CancelNew to work.
1504
1505 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1506
1507         * BindingSource.cs: When adding a new item try to delegate to the internal 
1508         list first before throwing an exception.
1509
1510 2009-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1511
1512         * ComboBox.cs: When setting the text and adjusting the top_item, do it
1513         *only* if the current item is *not* visible already.
1514         Fixes part of #464188.
1515
1516 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1517
1518         * DataGridView.cs: Requesting the CurrencyManager for the first time can 
1519         lead to unexpected OnBindingContextChanged calls and recursive rebinding. 
1520         Fix that.
1521         [Fixes bug #464493]
1522
1523 2009-01-08  Brad Taylor  <brad@getcoded.net>
1524
1525         * ComboBox.cs: Expose a few private fields as internal UIA properties.
1526
1527 2009-01-07  Mario Carrion <mcarrion@novell.com>
1528         
1529         * DataGrid.cs: CWL removed.
1530
1531 2009-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1532
1533         * RadioButton.cs: When setting Checked, we should first update the
1534         check state of the current RadioButton, as well as invalidating it,
1535         and after that actually update the siblings. This is done to match
1536         .net.
1537         Fixes the remaining bits of #463028.
1538
1539 2009-01-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1540
1541         * RadioButton.cs: Setting Checked to false should set TabStop to stop
1542         as well. Also, when we get the focus and no other RadioButton is
1543         selected in the parent control, we should mark ourselves as Checked.
1544         Fixes part of #463028.
1545
1546 2009-01-05  Mario Carrion <mcarrion@novell.com>
1547
1548         * DataGrid.cs: UIA suppport. internal events: 
1549         UIAGridCellChanged, UIAColumnsHeadersVisibleChanged, 
1550         UIASelectionChanged, UIACollectionChanged. Internal properties: 
1551         UIARowHeight, UIACellsArea, UIACaptionArea, 
1552         UIAColumnHeadersArea, UIASelectedRows, UIACurrentTableStyle, 
1553         UIAVScrollBar and UIAHScrollBar.
1554
1555 2009-01-05  Jonathan Pobst  <monkey@jpobst.com>
1556
1557         * ToolStripSplitStackLayout.cs: Enable the overflow button if any
1558         of the buttons are set to Overflow = Always.
1559         [Fixes bug #463013]
1560
1561 2009-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1562
1563         * BindingNavigator.cs: Properly enable/disable the toolstrip buttons,
1564         based on whether the binding source is availble or not. Fixes #463008.
1565
1566 2009-01-03  Ivan N. Zlatev  <contact@i-nz.net>
1567
1568         * DataGridViewCell.cs: We should return a value even if we are not bound 
1569         to a DataGridView.
1570
1571 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1572
1573         * CurrencyManager.cs, DataGrid.cs: 
1574            - Rename CanAddRows to AllowNew. The CurrencyManager has no 
1575            concept of "rows".
1576            - Add two more internal properties AllowRemove and AllowEdit.
1577         * DataGridView.cs: Refactor in a data-bound situation AllowUserToAddRows, 
1578         AllowUserToDeleteRows and cell ReadOnly state to be also checked against the 
1579         CurrencyManager data source.
1580
1581 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1582
1583         * DataGridView.cs: Fix crashes caused by assigning negative values to 
1584         ScrollBar.LargeIncrement when the ClientSize.Width/Height is less than 
1585         the column/row heights/widths.
1586         [Fixes bug #462684]
1587
1588 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1589
1590         * DataGridView.cs: Non-autogenerated columns that have a data property 
1591         set that exists in the current datasource should be set to be data-bound.
1592
1593 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1594
1595         * DataGridView.cs: Fix column sorting for columns containing null 
1596         values. A "null" value is not always "null" (e.g could be String.Empty) 
1597         and thus parsing numeric types throwed an exception for "null" values.
1598
1599 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1600
1601         * DataGridView.cs: Detach the editing control when the edit is 
1602         finished.
1603
1604 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1605
1606         * DataGridView.cs: Multiple fixes to handle last column/row removal 
1607         and cell movement after that instead of throwing exceptions.
1608
1609 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1610
1611         * DataGridViewCellCollection.cs: When cells are removed the column 
1612         indices become invalid if the cell is not the last one and have to 
1613         be refreshed.
1614
1615 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1616
1617         * DataGridView.cs: Return false in CommitEdit if there was an error.
1618
1619 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1620
1621         * DataGridView.cs: Remove a leftover Console.WriteLine.
1622
1623 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1624
1625         * DataGridViewRow.cs: Access the indexer of the data manager directly 
1626         instead of the internal list.
1627
1628 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1629
1630         * DataGridViewCell.cs, DataGridView.cs, DataGridViewCheckBoxCell.cs: 
1631         Rewrite the value getting, setting, parsing, formatting logic:
1632            - If data-bound value get/set should actually get and set from the 
1633              data source.
1634            - Make proper usage of TypeConverters for value parsing/formatting.
1635            - Raise DataError if setting the new value fails.
1636            - Get rid off the internal valueType field and get/set the ValueType 
1637            property instead.
1638         [Fixes bug #462051]
1639
1640 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1641
1642         * DataGridView.cs: Rewrite the DataBinding layer:
1643            - Get rid off all BindingSource/IBindingList/DataSet/DataTable 
1644            specific code.
1645            - Get rid off the per DataSource type column autogeneration code.
1646            - Use the CurrencyManager for everything that is DataBinding related.
1647
1648 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1649
1650         * CurrencyManager.cs: Do not fire duplicate ListChanged events.
1651
1652 2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>
1653
1654         * DataGridView.cs, DataGridViewRow.cs: Add a new internal property 
1655         DataManager to fetch the CurrencyManager for the DataGridView and to 
1656         spare this logic for the other components to follow.
1657
1658 2008-12-31  Mario Carrion  <mcarrion@novell.com>
1659
1660         * MessageBox.cs: UIA support: new properties: UIAMessage, 
1661         UIAMessageRectangle and UIAIconRectangle.
1662
1663 2008-12-31  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1664
1665         * FileDialog.cs: Add PopupButtonPanel.PopupButton.PerformClick method
1666         and DirComboBox.DirComboBoxItem.ToString override for UIA support.
1667
1668 2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>
1669
1670         * DataGridView.cs: Do not autogenerate duplicate column for a 
1671         data member that has already problematically been assigned one.
1672         [Fixes bug #457305]
1673
1674 2008-12-30  Jonathan Pobst  <monkey@jpobst.com>
1675
1676         * ProfessionalColorTable.cs: Better detection of user's theme.
1677         [Fixes bug #462766]
1678
1679 2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>
1680
1681         * DataGridView.cs: In the case where there are no autogenerated 
1682         columns and the user adds columns problematically we must generate 
1683         the rows after the very first column is added.
1684
1685 2008-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1686
1687         * DateTimePicker.cs: When increasing/decreasing the value of month
1688         with ShowUpDown set to true, moving from december to january, and
1689         moving from january to december should adjust the year to the next and
1690         the previous year, respectively.
1691         Fixes the remaining bits of #459674.
1692
1693 2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>
1694
1695         * DataGridView.cs: If a new cell is selected edit mode should be 
1696         immediately enabled only if EditOnEnter is set. Whether the mouse 
1697         or not was used to select the cell is irrelevant.
1698
1699 2008-12-29  Ivan N. Zlatev  <contact@i-nz.net>
1700
1701         * DataGridView.cs: Remove a bogus ReBind call, which was causing 
1702         recursive rebinding.
1703
1704 2008-12-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1705
1706         * DateTimePicker.cs: Handle the "MMMM" month format.
1707         Fixes #459674.
1708
1709 2008-12-23  Ivan N. Zlatev  <contact@i-nz.net>
1710
1711         * DataGridView.cs: 
1712            - Make ReBind private and refactor various calls to call ReBind 
1713            instead of ClearBinding/DoBinding
1714            - Rebind when the column collection changes
1715         * DataGridViewColumnCollection.cs: 
1716            - Leave the rebinding on change to be handled by the DataGridView.
1717
1718 2008-12-23  Jonathan Pobst  <monkey@jpobst.com>
1719
1720         * DataGridView.cs: Add a ReBind convenience method.
1721         * DataGridViewColumnCollection.cs: Rebind when a column is added.
1722         [Fixes bug #462019]
1723
1724 2008-12-23  Neville Gao  <nevillegao@gmail.com>
1725
1726         * StatusBar.cs: Modified argument variable.
1727         * SplitContainer.cs: Control enabled to support accessibility.
1728         [Fixes Bug #455950]
1729
1730 2008-12-22  Jonathan Pobst  <monkey@jpobst.com>
1731
1732         * ToolStripMenuItem.cs: Guard against an NRE.
1733         [Fixes bug #457110]
1734
1735 2008-12-22  Mario Carrion  <mcarrion@novell.com>
1736
1737         * Control.cs: AccessibleXXXX properties don't return 
1738         AccessibleObject.XXXX, instead a local referece is returned.
1739
1740 2008-12-22  Neville Gao  <nevillegao@gmail.com>
1741
1742         * PrintPreviewControl.cs: Added internal properties to support
1743         accessibility.
1744         [Fixes Bug #459699]
1745
1746 2008-12-19  Mario Carrion  <mcarrion@novell.com>
1747
1748         * Control.cs: Reverted r121561. 
1749
1750 2008-12-19  Andrés G. Aragoneses  <aaragoneses@novell.com>
1751
1752         * X11DesktopColors.cs: Since r121873 we don't need gtk a11y checks here,
1753         it has been moved to the bridge.
1754
1755 2008-12-18  Brad Taylor  <brad@getcoded.net>
1756
1757         * DateTimePicker.cs: Add a few UIA specific events, and a couple
1758         internal methods useful for UIA.
1759
1760 2008-12-18  Mario Carrion <mcarrion@novell.com>
1761
1762         * ListBox.cs: Fixed GetItemRectangle when MultiColumn is true.
1763         [Fixes Bug #455752]
1764
1765 2008-12-17  Mike Gorse  <mgorse@novell.com>
1766
1767         * ListView.cs, ListViewItem.cs: Send OnUIAFocusedItemChanged if an
1768           item's Focused property is set.
1769
1770 2008-12-17  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1771
1772         * TreeView.cs:
1773         * TreeNode.cs:
1774         * TreeNodeCollection.cs: Add events for UIA support:
1775         UIACheckBoxesChanged, UIALabelEditChanged, UIANodeTextChanged, and
1776         UIACollectionChanged.
1777
1778 2008-12-17  Bill Holmes  <billholmes54@gmail.com>
1779
1780         * ListViewItem.cs (ListViewSubItem.ctor): Initalizing the 
1781           SubItemStyle member field. 
1782
1783         Contributed under MIT/X11 license.
1784
1785 2008-12-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1786
1787         * ListBox.cs: In MultiColumn mode don't use top_index to calculate the
1788         y coord, since it's useless in this case, and we need to rely only on
1789         the number of rows and ItemHeight to compute this value.
1790         Fixes part of #257471.
1791
1792 2008-12-15  Mike Gorse  <mgorse@novell.com>
1793
1794         * StatusBar.cs: Send OnUIACollectionChanged in Remove().
1795
1796 2008-12-15  Mario Carrion  <mcarrion@novell.com>
1797
1798         * Control.cs: Accessibility properties instantiate AccessibilityObject when
1799         needed.
1800         [Fixes Bug #459223]
1801
1802 2008-12-15  Brad Taylor  <brad@getcoded.net>
1803
1804         * ToolStripItem.cs: Add a UIA specific event for listening for when a
1805         ToolStripItem becomes selected or deselected.
1806
1807 2008-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1808
1809         * MonthCalendar.cs: Select the date in MouseDown, not in MouseUp, as
1810         .net does. Use the date in the point of the mouse move coords as the
1811         new range as well, if the left button of the mouse is being pressed.
1812         Fixes #364914.
1813
1814 2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1815
1816         * MonthCalendar.cs: When modifying either AnnuallyBoldedDates,
1817         MonthlyBoldedDates or BoldedDates call UpdateBoldedDates, to
1818         effectively repaint the control.
1819         Fixes the remaining bits of #417961.
1820
1821 2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1822
1823         * MonthCalendar.cs: When setting MaxDate/MinDate, adjust the selected
1824         range to contain only dates within the new possible range.
1825         Fixes part of #417961.
1826
1827 2008-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1828
1829         * MaskedTextBox.cs: MaskedTextService.Replace doesn't expect the
1830         length of the text, but the end position, so we need to substract 1 to
1831         have a valid value. Also, in the same InputText method, don't use
1832         SelectionLength as the length of the text, since the selected text
1833         could actually be empty, but we need to set the value anyway.
1834         Fixes #457370.
1835
1836 2008-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1837
1838         * TextBox.cs: Don't do any auto complete task if the custom source is
1839         null or empty. Also avoid duplication of code.
1840         Fixes #457743.
1841
1842 2008-12-09  Ivan N. Zlatev  <contact@i-nz.net>
1843
1844         * DataGridView.cs: Refresh column sizes when new rows are added.
1845         [Fixes bug #457050]
1846
1847 2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1848         * RichTextBox.cs: When parsing the contents of a rtf file, don't call
1849         Split to create a line - we are already doing this, by _adding_ a new
1850         one when rtf_cursor_x is 0 (this field gets this value just after we
1851         receive the newline param as true). This avoids having a proportional number
1852         of empty lines in the end of the rich text box.
1853         Fixes #396664.
1854
1855 2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1856
1857         * RichTextBox.cs: When saving the contents as a plain text, don't add
1858         a new line for every Line structure, since the data in Document
1859         already contains the new line characters. This avoids duplicated new
1860         lines using the Save methods.
1861         Fixes #445618.
1862
1863 2008-12-09  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1864
1865         * TreeView.cs: Expose ScrollBars as internal properties, for use by UIA
1866         framework.  Fixes bug #457678.
1867
1868 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1869
1870         * DataGridViewRow.cs: Prevent an exception on a not yet databound grid, 
1871         where datasource is null.
1872         [Fixes exception reported in bug 441240]
1873
1874 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1875
1876         * DataGridView.cs: EndEdit validation fixes.
1877
1878 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1879
1880         * DataGridView.cs: This is the cool patch that adds support for 
1881         actually updating the data in the databinding backend after editing. 
1882         With bonus firing and handling the DataError event.
1883
1884 2008-12-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1885
1886         * Line.cs: When calculating the text tags's Shift value, store it as
1887         pixels instead of points. This way we can actually handle different
1888         fonts in the same RichTextBox, as well as the right size of the caret.
1889         Fixes part of #351938.
1890
1891 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1892
1893         * DataGridViewCheckBoxCell.cs: Fix to make it work. Wrong value was 
1894         casted to CheckState causing InvalidCastExceptions.
1895
1896 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1897
1898         * DataGridView.cs: Fix the DataGridViewEditMode.EditOnEnter behavior 
1899         to not depend on the item being clicked.
1900
1901 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1902
1903         * DataGridView.cs: Implement NotifyCurrentCellDirty, so that it no 
1904         longer throws a NotImplementedException.
1905
1906 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1907
1908         * DataGridView.cs: Set EditingControlFormattedValue when preparing an 
1909         IDataGridViewEditingControl for editing.
1910
1911 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1912
1913         * DataGridViewComboBoxCell.cs: Implement data binding support.
1914
1915 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1916
1917         * DataGridView.cs: Use the CurrencyManager to update the data source 
1918         binding position instead of casting the data sourcde to BindingSource.
1919         This enables position updating for other type of data sources.
1920
1921 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1922
1923         * ComboBox.cs: Update the SelectedIndex before updating the Text 
1924         in OnDisplayMemberChanged.
1925
1926 2008-12-07  Ivan N. Zlatev  <contact@i-nz.net>
1927
1928         * DataGridView.cs: Fix our support for IDataGridViewEditingControl.
1929         [Fixes bug #457112]
1930
1931 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1932
1933         * DataGridView.cs: Sorting fixes:
1934            - Be strict when sorting is enabled.
1935            - If there is a data source delegate the sorting request.
1936
1937 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1938
1939         * Binding.cs: When converting the data also try with the destination 
1940         type typeconverter. This indirectly adds support for Nullable types 
1941         in our databinding layer.
1942
1943 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1944
1945         * DataGridView.cs: When cell editing is finished focus back the 
1946         DataGridView. Fixes keyboard navigation post-editing.
1947
1948 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1949
1950         * DataGridView.cs: Fix the cell editing by delaying the currentCell 
1951         setting to after EndEdit is called for the old cell.
1952
1953 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1954
1955         * BindingSource.cs: Reset the bindings. Fixes a NotWorking test.
1956
1957 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1958
1959         * XplatUIX11.cs: Send WM_HELP only to the focused window.
1960
1961 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1962
1963         * CurrencyManager.cs: Fix exceptions when resetting the data source 
1964         for the same time (e.g. in ComboBox): 
1965            - Do not set the list position if we are still transferring data
1966            - When resetting the list firstly push the data then update the 
1967            binding.
1968         * Binding.cs: Check BindingManager.Position == -1 instead of 
1969         BindingManager.Current == null in order to avoid unexpected 
1970         exceptions.
1971
1972 2008-12-05  Brad Taylor  <brad@getcoded.net>
1973
1974         * MonthCalendar.cs: Add UIA specific events so that we can know when
1975         the selection changes, and when MaxSelectedCount changes.
1976
1977 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1978
1979         * DataGridView.cs: Cleanup rows_displayed out of OnPaint. It's not 
1980         used for anything.
1981
1982 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1983
1984         * DataGridView.cs: Fix scrolling and selection of cells/rows prior
1985         to the control being drawn for the first time by:
1986            - Implement DisplayedRowsCount to not rely on the control being
1987            already painted. Also added support for the partial row flag.
1988            - Fix scrolling to take into account partial rows and scroll to
1989            them.
1990         [Fixes bug #456527]
1991
1992 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1993
1994         * DataGridView.cs: Do not reset the CurrentCell when the handle is
1995         created if the user has already set it.
1996
1997 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1998
1999         * DataGridView.cs: Fix CurrentCell to actually select the cell.
2000
2001 2008-12-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2002
2003         * XplatUIX11.cs: Add support to RichTextFormat by reading it as ascii
2004         text and then let the underneath users of IDataObject interpret and
2005         parse by themselves. 
2006         Fixes #439251.
2007
2008 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2009
2010         * DataGridView.cs: Fix my previous commit to actually update what it 
2011         was supposed to.
2012
2013 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2014
2015         * DataGridView.cs: Ensure that when a row is removed the all the 
2016         current row/column/cell get updated. Fixes multiple exceptions.
2017
2018 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2019
2020         * DataGridView.cs: Fix scrolling to the current cell when key navigation 
2021         is used.
2022         [Fixes bug #443560]
2023
2024 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2025
2026         * DataGridView.cs, DataGridViewCell.cs: Fire CellStateChanged events.
2027         * DataGridViewCell.cs: Set the cell as selected prior to setting the 
2028         new state.
2029         [Fixes issue 1 in bug #443560]
2030
2031 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2032
2033         * DataGridView.cs: Invalidate after the current row/column seletion 
2034         chagnes.
2035         [Fixes bug #438434]
2036
2037 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2038
2039         * DataGridView.cs: Refresh the data if the data list is reset, etc.
2040
2041 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2042
2043         * DataGridView.cs: Handle datasource state changes:
2044            - IBindingList - list changes
2045            - BindingSource - list changed and datasource changes
2046
2047 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2048
2049         * DataGridView.cs: Select the first cell when databound. 
2050         Visually select when CurrentCell is set.
2051
2052 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2053
2054         * DataGridView.cs: Set the current cell before raising CellClick.
2055
2056 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2057
2058         * DataGridView.cs: Cleanup MoveCurrentCell to not fire any CellEnter, 
2059         CellLeave events as this is already done in SetCurrentCellAddressCore.
2060
2061 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2062
2063         * DataGridView.cs: Set the minimum size for the columns to be the 
2064         width of their header, so that the columns don't get squashed 
2065         all together.
2066
2067 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2068
2069         * DataGridView.cs: After the data is bound PerformLayout, so that 
2070         the columns get autosized.
2071
2072 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2073
2074         * DataGridView.cs: Move all currentCell setting code into 
2075         one central place - SetCurrentCellAddressCore. That way the 
2076         current cell is properly updated when programatically set.
2077         Fire RowEnter/Leave events.
2078
2079 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2080
2081         * DataGridView.cs: Update the CurrencyManager.Position, so that 
2082         when a BindingSource is used BindingSource.Current will be correct.
2083
2084 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2085
2086         * GroupBoxRenderer.cs: Fix when VisualStyles disabled:
2087            - No caption text is drawn because Color.Empty is used.
2088            - Fix top and height off by 1.
2089
2090 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2091
2092         * DataGridViewRow.cs: Implement DataBoundItem.
2093
2094 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2095
2096         * BindingSource.cs: Return null for Current if there is no data present.
2097
2098 2008-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2099
2100         * MenuAPI.cs: Add a Menu.SelectedItem null check when navigating the
2101         menus using the arrow keys. Also when handling the left arrow key, don't 
2102         assign the current menu to the parent one, if the parent is null.
2103         Fixes #446392.
2104
2105 2008-11-24  Everaldo Canuto  <ecanuto@novell.com>
2106
2107         * PrintPreviewDialog.cs: Fix toolbar size, height must be 26. Fixes bug
2108         #413501.
2109
2110 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2111
2112         * Scrollbar.cs:
2113         * ScrollableControl.cs: Simplify the code to manually set the size of
2114         the thum area, avoiding duplication of code, and also preserving the
2115         right value for different code paths - this can happen when size
2116         changes are made to the scrollbar after setting LargeChange, Maximum
2117         or related properties for the ScrollBar.
2118
2119 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2120
2121         * ScrollableControl.cs: When scrolling, don't invalidate the entire
2122         area, and call to XplatUIX11.ScrollWindow instead. This is exactly
2123         what .Net does: copy the visible area, and only invalidate the part of
2124         the area that wasn't visible before scrolling.
2125         Fixes #441738.
2126
2127 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
2128
2129         * DataGridView.cs: Listen for a DataTable's TableCleared event so we
2130         can clear ourselves when it is raised, we don't have a newrowindex
2131         if we don't have any columns.
2132         * DataGridViewRowCollection.cs: Ensure we always delete all the rows,
2133         re-index after each delete so the NewRow will have the correct index.
2134         [Fixes bug #448005]
2135
2136 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
2137
2138         * Form.cs: Don't change min/max size if it is empty.
2139         [Fixes bug #447873]
2140
2141 2008-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2142
2143         * ScrollBar.cs:
2144         * ScrollableControl.cs: When the manual thumb size is used, the
2145         maximum allowed value should depend on that thumb size, instead of
2146         LargeChange (using the maximum - LargeChange + 1 value). But
2147         LargeChange should be used normally when incrementing/decrementing.
2148         Fixes the remaining part of #441546.
2149
2150 2008-11-23  Andreia Gaita  <avidigal@novell.com>
2151
2152         * WebBrowser.cs, WebBrowserBase.cs: Delay loading of DocumentStream 
2153         until an about:blank has been loaded (according to spec). Fix 
2154         ScrollbarsEnabled to set when a document is loaded (since we use js 
2155         for it). Fix url so it reflects the current loading document and not 
2156         the previous one. Send StatusChanged events.
2157
2158 2008-11-23  Andreia Gaita  <avidigal@novell.com>
2159
2160         * Application.cs: If a message comes in for an embedded control
2161         (like webbrowser) when we're capturing the keyboard, release the
2162         capture and continue.
2163         [fixes #429462]
2164
2165 2008-11-22  Andreia Gaita  <avidigal@novell.com>
2166
2167         * XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
2168
2169 2008-11-21  Andreia Gaita  <avidigal@novell.com>
2170
2171         * WebBrowser.cs, HtmlDocument.cs: Fixes for #428172
2172         
2173 2008-11-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2174
2175         * ScrollBar.cs:
2176         * ScrollableControl.cs: Set manually the thumb size for the
2177         ScrollableControl scrollbars, so any further changes to the underneath
2178         scrollbars respect the original size.
2179         Fixes part of #441546.
2180
2181 2008-11-21  Geoff Norton  <gnorton@novell.com>
2182
2183         * XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
2184         PlatformID.MacOSX now exists.
2185
2186 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
2187
2188         * TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
2189         Having something internal abstract isn't very nice for people who want
2190         to inherit from this class.
2191
2192 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
2193
2194         * ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
2195         invalid value.  Just return null for the Image, and use the ImageList's
2196         ImageSize for calculations.
2197
2198 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
2199
2200         * ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
2201         through DroppedDown so the proper events get called and state gets reset.
2202         [Fixes bug #446805]
2203
2204 2008-11-18  Jonathan Pobst  <monkey@jpobst.com>
2205
2206         * DataGridViewColumnCollection.cs: Make sure we re-index the columns after
2207         the collection is modified.
2208
2209 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
2210
2211         * DomainUpDown.cs: Remove string cache and reflection optimizations.  They
2212         aren't always correct, and fixing them for every case is not worth the
2213         negligible benefit they provide.
2214         [Fixes bug #445713]
2215
2216 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
2217
2218         * DataGridView.cs: We should never add actual cells to the RowTemplate.
2219         Internally, use RowTemplateFull to give us a new row with cells.
2220         * DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
2221         * DataGridViewRowCollection.cs: Use RowTemplateFull.
2222
2223 2008-11-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2224
2225         * XplatUIX11.cs: Forms without borders should be able to change its
2226         size - specially they should be able to be maximized, adding the
2227         respective MotifFunctions.Resize bit when setting window properties as
2228         well as *not* marking the Hwnd as size fixed.
2229         Fixes #444347.
2230
2231 2008-11-12  Jonathan Pobst  <monkey@jpobst.com>
2232
2233         * DataGridViewCellStyle.cs: Allow SelectionBackColor to have
2234         an alpha value.
2235         [Fixes bug #444348]
2236
2237 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
2238
2239         * DataGridView.cs: Add internal to OnAutoSizeColumnModeChanged.
2240         * DataGridViewColumn.cs: Recalculate columns when AutoSizeMode changes.  Raise
2241         AutoSizeColumnModeChanged.
2242         [Fixes bug #443609]
2243
2244 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
2245
2246         * DataGridViewRowCollection.cs: Guard against the user deleting the
2247         NewRow.  Add an internal delete so we can still delete it.
2248         * DataGridView.cs: Use the new internal delete when deleting the NewRow.
2249         [Fixes bug #442181]
2250
2251 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
2252
2253         * TextControl.cs: Add some order of operation to our math so
2254         we don't end up with a negative height for our invalidate rect.
2255         [Fixes bug #381889]
2256
2257 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
2258
2259         * Control.cs: When our enabled changes, notify our implicit children
2260         controls as well as our regular controls.
2261         [Fixes bug #441523]
2262
2263 2008-11-08  Andreia Gaita <shana@jitted.com> 
2264
2265         * HtmlElement.cs: Small code cleanup
2266
2267 2008-11-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2268
2269         * BindingNavigator.cs: MoveFirstItem should be enabled only if
2270         position is larger than 0, not only different than 0. Also Position
2271         and Count items should be enabled if the BindingSource is non null and
2272         non empty.
2273         Fixes #439961.
2274
2275 2008-11-05  Jonathan Pobst  <monkey@jpobst.com>
2276
2277         * TabControl.cs: Don't raise SelectedIndexChanged until we have
2278         actually modified the tab collection, so TabCount will be correct.
2279         [Fixes bug #441896]
2280
2281 2008-11-05  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2282
2283         * ListViewItem.cs: Mark ListViewSubItem.UIATextChanged event as
2284         NonSerialized to fix serialization of ListViewItem.
2285
2286 2008-11-04  Mike Gorse  <mgorse@novell.com>
2287
2288         * ListView.cs: Call OnUIAFocusedItemChanged after completing the
2289           focus change, and always call in SetFocusedItem.
2290         * ListBox.cs: Add UIAFocusedItemChanged as in ListView.
2291
2292 2008-11-04  Jonathan Pobst  <monkey@jpobst.com>
2293
2294         * ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
2295         mode.  Based on a patch by John Mortlock.
2296         [Fixes bug #436790]
2297
2298 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2299
2300         * ListView.cs: Use the UsingGroups property where needed, instead of
2301         duplicating the check in other places.
2302
2303 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2304
2305         * ListView.cs: When calculating layout, refresh the count of items
2306         belonging to the default item, insteas of doing it only one time. This
2307         was already working fine for icon views, not not for details.
2308         Fixes #438948.
2309
2310 2008-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2311
2312         * ListView.cs:
2313         * ListViewItem.cs:
2314         * ThemeWin32Classic.cs: Don't render Tile view if there wasn't a call
2315         to Applicatin.EnableVisualStyles, and use LargeIcon view, as .net
2316         does.
2317         Fixes #437933.
2318
2319 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2320
2321         * ListView.cs: Wrap call to OnUIAFocusedItemChanged with #if NET_2_0.
2322
2323 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2324
2325         * ListView.cs: Add internal UIAFocusedItemChanged event.  Fixes bug
2326         #441280, patch by Mike Gorse <mgorse@novell.com>.
2327
2328 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
2329
2330         * TreeView.cs: When doing ExpandAll, don't scroll to the bottom
2331         if there is no scrollbar.
2332         [Fixes bug #440885]
2333
2334 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
2335
2336         * ProgressBar.cs, ThemeWin32Classic.cs, ThemeVisualStyles.cs: Commit
2337         patch from Andy Hume that fixes many issues with ProgressBar.
2338         [See bug #440220]
2339
2340 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
2341
2342         * Form.cs: Don't allow MinimumSize and MaximumSize to conflict.
2343         [Fixes bug #438866]
2344
2345 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2346
2347         * UpDownBase.cs:
2348         * DomainUpDown.cs:
2349         * NumericUpDown.cs: Internal events added to UpDownBase:
2350         UIAUpButtonClick and UIADownButtonClick.  Patch by Neville Gao
2351         <ngao@novell.com>.
2352
2353 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2354
2355         * ToolStripLabel.cs: Internal event added: UIAIsLinkChanged.
2356
2357 2008-11-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2358
2359         * ListView.cs:
2360         * ThemeWin32Classic.cs: Don't use groups nor insertion mark in
2361         Application.EnableVisualStyles hasn't been called.
2362         Fixes part of #437933.
2363
2364 2008-10-31  Andreia Gaita  <shana@jitted.com>
2365
2366         * Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
2367           if the container is not focused already, we need to specifically set
2368           focus to the first available control, or to the form itself if there
2369           are no controls.
2370
2371 2008-10-31  Andreia Gaita  <shana@jitted.com>
2372
2373         activate message fix: a call to .Show now waits until both WM_SHOWWINDOW and
2374         WM_ACTIVATE have been processed before returning, so it is guaranteed that
2375         once it returns and the form is visible, it is actually on the screen on X11
2376
2377         * ContainerControl.cs: Only send focus to the control if the top container
2378           is already focused. This is so that, when a form is first shown, all
2379           the enter/leave events are done first before any focus stuff comes in.
2380           If a control has no top container, there's an extra check on Control.Focus
2381           to make sure it gets focused in this particular case.
2382
2383         * Control.cs: Force focus if the control is active but did not receive
2384           focus after being set as active.
2385
2386         * MdiClient.cs: Dispose the form when closing
2387
2388         * XplatUIX11.cs: When mapping and unmapping windows, make sure the call
2389           doesn't return until both WM_SHOWWINDOW and WM_ACTIVATE have come in
2390           if the window is a top Form.
2391           Reset all hwnd properties when the window has been destroyed so that
2392           we don't land in any codepaths that might try to do something with it.
2393           Added a bunch of debugging messages. If TRACE is defined, all X calls
2394           are logged through DebugHelper. Set a few missing EntryPoint attributes.
2395
2396 2008-10-29  Mario Carrion <mcarrion@novell.com>
2397
2398         * ListViewItem.cs: Control enabled to support Accessibility:
2399         - Internal events: UIATextChanged, UIASubItemTextChanged.
2400         - Internal event UIATextChanged in ListViewSubItem that triggers
2401         UIASubItemTextChanged.
2402         * ListView.cs: Control enabled to support Accessibility:
2403         - Internal events: UIACheckBoxesChanged, UIAMultiSelectChanged, 
2404         UIAShowGroupsChanged, UIAViewChanged and UIALabelEditChanged.
2405         - Internal event UIACollectionChanged in ColumnHeaderCollection.
2406         - Internal event UIACollectionChanged in ListViewItemCollection.
2407         - Internal properties: UIAHeaderControl, UIAColumns, UIARows, 
2408         UIADefaultListViewGroup, UIAHScrollBar and UIAVScrollBar.
2409         - Internal methods: UIAGetHeaderBounds.
2410
2411 2008-10-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2412
2413         * ScrollableControl.cs: Actually fire the 2.0 Scroll event when we get
2414         the event from the respective scrollbars.
2415         Fixes #436709.
2416
2417 2008-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2418
2419         * ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
2420         textbox to know whether any navigation key will be handled or not. If
2421         not, don't pass the message to the textbox, and use it here instead. 
2422         * TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
2423         is more precise- than the previous AutoCompleteMatches one.
2424         This should the keyboard navigation in ComboBox when using auto
2425         complete modes.
2426
2427 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
2428
2429         * ComboBox.cs: Fix item height calculation based off Font to match .Net.
2430         [Fixes bug #436730]
2431
2432 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
2433
2434         * ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
2435         overridden methods will get called.
2436         * ToolStripItem.cs: Raise Click before MouseUp.
2437         * ToolStripSplitButton.cs: Fix up some bounding rectangles to take
2438         the item's location into account.
2439         [Fixes bug #437683]
2440
2441 2008-10-24  Neville Gao  <nevillegao@gmail.com>
2442
2443         * NumericUpDown.cs: Control enabled to support accessibility.
2444         [Fiexes bug #438135]
2445
2446 2008-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2447
2448         * TextBox.cs: Check that we actually have items no navigate, select
2449         text when pressing enter, as well as handle direction keys only if
2450         mode is different to Suggest or the suggest listbox is visible.
2451
2452 2008-10-23  Andreia Gaita  <shana@jitted.com>
2453
2454         * WebBrowser.cs: Use the new ContentStream property to retrieve
2455           a stream encoded from the document content
2456
2457 2008-10-23  Andreia Gaita  <shana@jitted.com>
2458
2459         * HtmlDocument.cs,
2460           HtmlElement.cs,
2461           HtmlWindow.cs: Fix GetHashcode for null objects
2462
2463 2008-10-22  Andreia Gaita  <shana@jitted.com>
2464
2465         * HtmlDocument.cs,
2466           HtmlElement.cs,
2467           HtmlWindow.cs: Fix equality operators (fixes #428173)
2468
2469 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
2470
2471         * XplatUIWin32.cs: Apply patch from John Mortlock that ensures
2472         mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
2473         [Fixes bug #436772]
2474
2475 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
2476
2477         * ComboBox.cs: Fire SelectedIndexChanged when the user selects the
2478         same item with the mouse as was already selected.
2479         [Fixes bug #436789]
2480
2481 2008-10-21  Brad Taylor  <brad@getcoded.net>
2482         
2483         * TextControl.cs: Break out code to get the visible range into
2484           GetVisibleLineIndexes to be used in UIA code.
2485         
2486         * Line.cs:
2487         * TextControl.cs:
2488         * TextBoxBase.cs: Add comments indicating that the method or property
2489           is used via reflection from UIA code.
2490
2491 2008-10-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2492
2493         * ListViewItem.cs: Match .net serialization.
2494         Fixes remaining part of #417520.
2495
2496 2008-10-20  Jonathan Pobst  <monkey@jpobst.com>
2497
2498         * ToolStripProfessionalRenderer.cs: Don't paint over a set BackgroundImage.
2499
2500 2008-10-20  Mario Carrion <mcarrion@novell.com>
2501
2502         * ErrorProvider.cs, ToolTip.cs, HelpProvider.cs: UIA internal property 
2503         added: UIAToolTipRectangle.
2504
2505 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2506
2507         * ListViewItem.cs: When deserializing enumerate over the data, instead
2508         of accessing the data directly. This way we handle much better the
2509         cases were we lack information.
2510         Fixes #417520.
2511
2512 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2513
2514         * ListView.cs: When removing an item from a main ListView.Items
2515         collection (and not a ListViewGroupCollection.Items one), remove it
2516         also from the group, as .net does. Patch by Mario Carrion (mario at
2517         novell dot com).
2518         Fixes #436653.
2519
2520 2008-10-19  Andreia Gaita  <avidigal@novell.com>
2521
2522         * Form.cs: Forms that get closed without a handle being created are
2523         disposed in 2.0. Fixes failing FormTest.FormClose and
2524         FormTest.FormClose2 on windows.
2525
2526 2008-10-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2527
2528         * ListView.cs: If both scrollbars are visible, the vertical one
2529         shouldn't extend too far down.
2530         Fixes #435771.
2531
2532 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
2533
2534         * DataGridView.cs: Add the ability to resize columns and rows with
2535         the mouse.  Also support double-clicking to autoresize.
2536         * DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
2537         * DataGridViewRow.cs: Invalidate the grid if a row's height changes.
2538         * DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
2539         isn't shown on autoresize.
2540         [Fixes bug #420193]
2541
2542 2008-10-17  Mario Carrion <mcarrion@novell.com>
2543
2544         * ComboBox.cs: Remove UIAListbox.
2545
2546 2008-10-17  Mario Carrion <mcarrion@novell.com>
2547
2548         * ComboBox.cs, ListBox.cs: Using added/removed item in 
2549           OnUIACollectionChangedEvent instead of index.
2550
2551 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
2552
2553         * ComboBox.cs: When we are sorting the items, if the item's type
2554         doesn't support IComparer, use a default one that compares based
2555         off the item's visible text.
2556         [Fixes bug #436328]
2557
2558 2008-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2559
2560         * ColumnHeader.cs: Invalidate ListView.header_control when setting
2561         ImageIndex/ImageKey.
2562         * ThemeWin32Classic.cs: When drawing the column header, draw a image
2563         for the column if available, and make the required adjustments to the
2564         text location.
2565         Fixes #435105.
2566
2567 2008-10-17  Neville Gao  <nevillegao@gmail.com>
2568
2569         * StatusBarPanel.cs: Control enabled to support accessibility.
2570         [Fixes bug #435988]
2571
2572 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2573
2574         * DataGridView.cs: When a user begins an edit in the 'new row',
2575         make that a real row, and add a new 'new row'.  If the user
2576         cancels the edit, remove the new 'new row' and reset everything.
2577         Also, ensure UserAddedRow and UserRemovedRow events are raised.
2578         [Fixes bug #430954]
2579
2580 2008-10-16  Ivan N. Zlatev  <contact@i-nz.net>
2581
2582         * TableLayoutSettings.cs: Fix NREs when deserializing and 
2583         panel is not yet set.
2584         [Fixes bug #436199]
2585
2586 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2587
2588         * DataGridView.cs: Invalidate after deleting a row.
2589
2590 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2591
2592         * DataGridView.cs: Handle Enter and Escape keys.
2593           - Move call to EndEdit to MoveCurrentCell.
2594           - Remove call to EndEdit from navigation key routines.
2595           - Fire CellLeave and CellEnter.
2596
2597 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2598
2599         * DataGridViewCell.cs: Some fixes to the new cell border
2600         painting code.
2601
2602 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2603
2604         * ThemeEngine.cs: Enable visualstyles rendering by default
2605         (on platforms that support it).
2606
2607 2008-10-15  Ivan N. Zlatev  <contact@i-nz.net>
2608
2609         * XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before 
2610         MainForm.OnLoad has completed unless DoEvents is forced.
2611         [Fixes bug #412536]
2612
2613 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
2614
2615         * ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.
2616
2617 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
2618
2619         * Control.cs: Make our implementation of DrawToBitmap better 
2620         match WmPaint.  [Fixes bug #435579]
2621
2622 2008-10-14  Andreia Gaita  <avidigal@novell.com>
2623
2624         * WebBrowser.cs: Use DocumentElement as the document's root for the
2625         whole content. Should fix DocumentText and DocumentStream problems.
2626
2627 2008-10-14  Jonathan Pobst  <monkey@jpobst.com>
2628
2629         * DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
2630         these will get called in DGV.OnCollectionChanged.  Make sure 
2631         OnCollectionChanged always gets called.
2632         * DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
2633         from every row.  Call this in OnCollectionChanged.
2634         [Fixes bug #433669]
2635
2636 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2637
2638         * ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
2639         textbox if auto complete is used, since we need to navigate over it.
2640         And in this case don't pass this messages to the base impl. Also hide
2641         the auto complete list box when displaying the drop down listbox.
2642         * TextBox.cs: new internal members to expose some of the auto complete
2643         functionality to combobox.
2644
2645 2008-10-13  Ivan N. Zlatev  <contact@i-nz.net>
2646
2647         * XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before 
2648         MainForm.OnLoad has completed.
2649         [Fixes bug #412536]
2650
2651 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2652
2653         * TextBox.cs: Apply an old-approved patch that adds autocomplete's
2654         Append support to this controls. We need it to apply new patches.
2655
2656 2008-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2657
2658         * Control.cs: When updating z order in child controls, send to back
2659         the implicit controls. Also, do it explicitly, instead of making
2660         GetAllControls return the implicit controls in a specific order, and
2661         thus avoid depending on that, which could change in the future.
2662         Fixes #434304.
2663
2664 2008-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2665
2666         * X11Dnd.cs: Try to call Application.DoEvents before returning in a
2667         call to StartDrag, since we must fire DragDrop/DragLeave *before*
2668         that, as .net does - instead of firing DragDrop/DragLeave *after* the
2669         call to Control.DoDragDrop has completed. This is needed since at the
2670         point of returning, we have sent related dnd ClientMessages, but we
2671         need to wait for them to fire the wmf respective ones.
2672         Fixes #325076.
2673
2674 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
2675
2676         * LinkLabel.cs: Recreate link pieces when change Padding.
2677
2678 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
2679
2680         * LinkLabel.cs: Take Padding into account when recreate link pieces.
2681         [Fixes bug #412530]
2682
2683 2008-10-08  Everaldo Canuto  <ecanuto@novell.com>
2684
2685         * Control.cs: Implement internal property PaddingClientRectangle, it will be
2686         useful for drawing controls that must take care about Padding property.
2687
2688 2008-10-08  Jonathan Pobst  <monkey@jpobst.com>
2689
2690         * BindingSource.cs: Make item_type internal so we can access it in DGV.
2691         * DataGridView.cs: Add support for autogenerating columns from a
2692         BindingSource.
2693
2694 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
2695
2696         * DataGridView.cs: Comment out an exception that is getting thrown
2697         too often currently.
2698
2699 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
2700
2701         * DataGridView.cs: Always rebind to the datasource, as things may
2702         have changed in it that we aren't capturing yet.
2703
2704 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
2705
2706         * DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
2707         drawing mode.  If we are top aligned, give ourselves some top padding.
2708
2709 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2710
2711         * X11Dnd.cs: When firing the default dnd enter/leave events, fire the
2712         events on the control under the mouse pointer, instead of firing them
2713         on the window generating the dnd operation. To achieve this re-use the
2714         code used to get the window under the pointer when getting MouseMove
2715         events.
2716         Fixes #381876.
2717
2718 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2719
2720         * X11Dnd.cs: Don't check that that the window sending the dnd events
2721         is the owner of the selection. Although Gtk+ sets it that way, it's
2722         not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
2723         So, just as Gtk+ does, we set our window sending the dnd events as the
2724         owner of the selection, but don't check it when receiving them. This
2725         should fix interoperability with Qt/Kde.
2726         Fixes #324251.
2727
2728 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
2729
2730         * DataGridView.cs: Make sure we take the vertical scrollbar into
2731         account when autosizing columns.
2732
2733 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
2734
2735         * DataGridView.cs: Handle sorting datetimes.
2736
2737 2008-10-04  Ivan N. Zlatev  <contact@i-nz.net>
2738
2739         * ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs, 
2740         TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup 
2741         compilation warnings.
2742
2743 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2744
2745         * RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs, 
2746         ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs, 
2747         ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs, 
2748         ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup 
2749         compilation warnings.
2750
2751 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2752
2753         * DataGridView.cs, DataGridViewCell.cs, 
2754         DataGridViewCellValidatingEventArgs.cs, 
2755         DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs, 
2756         DataGridViewRow.cs, DataGridViewRowHeaderCell.cs, 
2757         DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
2758
2759 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2760
2761         * HtmlElementEventArgs.cs, HtmlWindowCollection.cs: 
2762         Cleanup compilation warnings.
2763
2764 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2765
2766         * XplatUIWin32.cs: Cleanup compilation warnings.
2767
2768 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2769
2770         * PropertyGrid.cs: Cleanup compilation warnings.
2771
2772 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2773
2774         * DataGridViewRow.cs: Only clear the row background if we
2775         are going to paint a new background.
2776
2777 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2778
2779         * DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
2780         DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
2781         use PaintBorder instead.        
2782
2783 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2784
2785         * DataGridView.cs: When CellBorderStyle is set, update the
2786         AdvancedCellBorderStyle to match.
2787
2788 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2789
2790         * DataGridViewCell.cs: Add helper methods to convert Alignment
2791         to TextFormatFlags and align rectangles.
2792         * DataGridViewTextBoxCell.cs: Use Alignment when painting text.
2793         * DataGridViewImageCell.cs: Use Alignment when painting the image.
2794
2795 2008-10-02  Ivan N. Zlatev  <contact@i-nz.net>
2796
2797         * ToolTip.cs: Display tooltips only for controls on the active form.
2798         [Fixes bug #428115]
2799
2800 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2801
2802         * DataGridView.cs: Make OnCellValueNeeded internal.
2803         * DataGridViewCell.cs: Raise the CellValueNeeded event so the
2804         user can supply their own value if they choose.
2805
2806 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2807
2808         * DataGridViewColumnHeaderCell.cs: Create a new style object
2809         so the DefaultCellStyle doesn't get changed.
2810
2811 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2812
2813         * ToolStripItem.cs: Check to make sure the owner is actually
2814         changing in InternalOwner before doing any work.  Fixes some
2815         failing tests.
2816
2817 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2818
2819         * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
2820         * DataGridView.cs: Use a column header's inherited style instead
2821         of just using the default.
2822
2823 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2824
2825         * SplitContainer.cs: Raise SplitterMoved when the splitter is
2826         moved through code.
2827
2828 2008-10-01  Mario Carrion <mcarrion@novell.com>
2829
2830         * ScrollBar.cs: Internal property added: UIAThumbPosition.
2831
2832 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2833
2834         * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
2835
2836 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2837
2838         * ToolStripItem.cs: When the user sets Owner, we need to remove
2839         it from its previous owner and then add it to the new owner's
2840         item collection.  Also, create InternalOwner, so we can set the owner
2841         that doesn't do this new stuff.
2842         * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
2843
2844 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2845
2846         * ToolStripItem.cs: When our parent changes, recalculate our text
2847         size, since we may be getting our Font from our parent.  When our
2848         owner's Font changes, recalculate ourselves as we may be using
2849         that font.
2850
2851 2008-10-01  Everaldo Canuto  <ecanuto@novell.com>
2852
2853         * MenuAPI.cs: Select the first option of a popup when opening the popup via
2854         return key. [Fixes bug #413792].
2855
2856 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2857
2858         * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
2859         ambient properties.  (Get their value from their parents if
2860         values haven't been set.)
2861
2862 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2863
2864         * ToolStripSystemRenderer.cs: Call overridden methods' bases
2865         after our logic, so users can do painting by handling the events.
2866         Currently, we draw over any user painting.
2867
2868 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2869
2870         * ToolStripProfessionalRenderer.cs: Call overridden methods' bases
2871         after our logic, so users can do painting by handling the events.
2872         Currently, we draw over any user painting.
2873
2874 2008-09-30  Everaldo Canuto  <ecanuto@novell.com>
2875
2876         * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
2877
2878 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
2879
2880         * TreeNode.cs, TreeView.cs: Move logic that determines the node
2881         image to draw to TreeNode.  Give Index/Keys put on the node
2882         precedence over the global one for the TreeView.
2883
2884 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
2885
2886         * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
2887
2888 2008-09-29  Mario Carrion <mcarrion@novell.com>
2889
2890         * ListBox.cs: Index fixed.
2891
2892 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2893
2894         * TabControl.cs: When expanding the tab -because it's selected now-,
2895         using Right alignment, instead of adding some selected delta value to
2896         the X origin, substract it, so it gets a location adjacent to the panel, 
2897         instead of be more separated.
2898         Fixes #409170.
2899
2900 2008-09-29  Jonathan Pobst  <monkey@jpobst.com>
2901
2902         * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
2903         own copies of them.
2904
2905 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2906
2907         * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
2908         as well as the other static fields, to avoid using their previous
2909         values my mistake when handling the dnd events. This should avoid
2910         handling any status event after the drop has been finalized/cancelled.
2911
2912 2008-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2913
2914         * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
2915         operation, instead of waiting until we get any movement - this will
2916         help us to have the data available in case no movement was detected
2917         and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
2918         Finally add a windows.forms-only fallback to fire the mentioned events
2919         if no movement at all was detected, just like .net does.
2920         Fixes #381876.
2921
2922 2008-09-27  Jonathan Pobst  <monkey@jpobst.com>
2923
2924         * ThemeWin32Classic.cs: When drawing a status bar panel, don't
2925         return early if the text is empty because the icon doesn't get
2926         drawn then.  [Fixes bug #428113]
2927
2928 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2929
2930         * FileDialog.cs: Implement basic support for sorting by columns in
2931         Details view. Patch by Eric Petit.
2932         Fixes #428006.
2933
2934 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2935
2936         * ThemeWin32Classis.cs: When drawing gridlines take into account the
2937         case where ListView.ItemSize hasn't been computed, and provide a
2938         fallback as well. This prevents a division by 0.
2939
2940 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
2941
2942         * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
2943         correctly draw tooltip backgrounds.
2944
2945 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
2946
2947         * ImageList.cs: Change CopyTo implementation to ensure clones are
2948         created of our images.
2949         [Fixes bug #409169]
2950
2951 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
2952
2953         * Control.cs: When setting fonts, we need to ensure we change our
2954         reference to the new font object, even if it represents the same
2955         font as before.  If we don't, the original font can get disposed
2956         and we will still try to use it.
2957         [Fixes bug #386450]
2958
2959 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2960
2961         * FileDialog.cs: Take into account Tile view when selecting the view
2962         (2.0 profile).
2963
2964 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2965
2966         * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
2967         the item bounds, since we can't iterate over them in virtual mode.
2968         Also fix wrong calculation of the gridlines when using scrolling.
2969         Fixes #400390.
2970
2971 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2972
2973         * XplatUIX11.cs: When handling EnterNotify events, take into account
2974         both the public and implicit controls when trying to detect the
2975         grab/ungrab process. This should fix ListView selection in Details
2976         view.
2977
2978 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2979
2980         * TreeView.cs: Redraw the whole node area when the selected node changes.
2981         Things like state images were not getting redrawn because the invalid
2982         rectangle was too small.
2983         [Fixes bug #428211]
2984
2985 2008-09-23  Mario Carrion  <mcarrion@novell.com>
2986
2987         * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
2988         [Fixes bug #428993]
2989
2990 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2991
2992         * Form.cs: Do not set the Form's icon in the backend if showicon = false.
2993         [Fixes bug #428114]
2994
2995 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2996
2997         * ThemeWin32Classic.cs: Allow tooltips to be multiline.
2998         [Fixes bug #427884]
2999
3000 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
3001
3002         * StatusBar.cs: Add tooltip support.
3003         [Fixes bug #428113]
3004
3005 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3006
3007         * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
3008         alignments of sub items in Details view. Patch by John Mortlock (johnm at 
3009         hlaustralia.com.au).
3010         Fixes #425360.
3011
3012 2008-09-23  Neville Gao  <nevillegao@gmail.com>
3013
3014         * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
3015         [Fixes bug #419079]
3016
3017 2008-09-22  Jonathan Pobst  <monkey@jpobst.com>
3018
3019         * TextBoxBase.cs: Set Text to "" instead of null in Clear().
3020         [Fixes bug #428107]
3021
3022 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3023
3024         * ListView.cs: Don't do anything when EnsureVisible is called inside a
3025         BeginUpdate/EndUpdate block.
3026         Fixes #425049.
3027
3028 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3029
3030         * ListViewItem.cs: The semantics for the public .ctor of
3031         ListViewSubItemCollection need us to already have a Text value for the
3032         item, which in our implementation have as available *after* adding the
3033         first sub item. So create an internal .ctor that satisfies our needs
3034         and let the public .ctor have the same semantics as .net.
3035         Fixes #427561.
3036
3037 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3038
3039         * ListControl.cs: Changes in Formatting related values should call
3040         RefreshItems, as .net does.
3041         * ComboBox.cs:
3042         * ListBox.cs: In the respective overrides of RefreshItems calculate
3043         layout as well as refreshing - again, this is what .net does.
3044         Fixes #426168.
3045
3046 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3047
3048         * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
3049         since we are already doing that when we change the value of the
3050         scrollbar or force the call to ScrollWindow in the same method. This
3051         way we don't cause a Invalidate call for all the listbox bounds for
3052         methods calling UpdateTopItem with an already updated top item. This
3053         was happening specially calling EnsureVisible with already visible
3054         items.
3055
3056 2008-09-18  Mike Gorse <mgorse@novell.com>
3057
3058         * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
3059           XplatUIStructs.cs: Added KeyFilter
3060         [Fixes bug #427039]
3061
3062 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3063
3064         * RelatedPropertyManager.cs: The properties returned by
3065         GetItemProperties should be that ones of the *actual* object returned
3066         by the property, not the property type - this is very special when the
3067         property exposes a type, but the returned object actually is a child
3068         class and implements more functionality and properties.
3069
3070 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3071
3072         * Binding.cs: Don't look for the property in the data source if the
3073         passed string is empty.
3074
3075 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
3076
3077         * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to 
3078         fix unused variable warnings.
3079
3080 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
3081
3082         * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
3083         [Fixes bug #427073]
3084
3085 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
3086
3087         * XplatUIX11.cs: 
3088          - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this 
3089          leads to the window manager overriding our border style and zorder. 
3090          - Allow the activation of non-modal forms, which are children of a 
3091          modal form.
3092         [Fixes bug #423417]
3093
3094 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
3095
3096         * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should 
3097         ask the window manager to do the work instead of changing the property 
3098         directly.
3099         [Fixes bug #423417]
3100
3101 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
3102
3103         * CurrencyManager.cs: Check for positon before call ChangeRecordState in
3104         AddNew to fix some navigation for empty datasets. [Fixes #323053]
3105
3106 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
3107
3108         * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set 
3109         InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
3110         border and fixes some drawing issues when resize form.
3111
3112 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
3113
3114         * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
3115         
3116         * ThemeWin32Classic.cs: We don't need to reduce button size when it is
3117         AcceptButton.
3118
3119 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
3120
3121         * TextBoxBase.cs: For standard textbox the scrollbars are always 
3122         visible if Multiline is true.
3123         [Fixes bug #426896]
3124
3125 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
3126
3127         * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
3128         patch.
3129         
3130 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
3131
3132         [Fixes most od DBNull and HeadersVisible problems]
3133         
3134         * DataGrid.cs:
3135         - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
3136         returns the value that we need.
3137         - Fixed FromPixelToColumn method that return zero for first     column and for
3138         row header cell, now it returns -1 for row header cell.
3139         - Fixed HitTest to check row header cell in column header area, it now
3140         returns HitTestType.None. [Fixes #322864]
3141         - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
3142         checks for RowHeadersVisible and other things.
3143         - If an exception occurs when setting CurrentCell and user type 'yes' in
3144         message dialog, invalidade current and new cell and set setting_current_cell
3145         to false to prevent future errors. [Partially fixes #323050]
3146
3147         * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
3148         value (SetColumnValueAtRow), it must be done by grid to properly show 
3149         messages. [Fixes #323050]
3150
3151         * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
3152         better draw column and row header. Also dont draw anything when column
3153         headers is not visible.
3154
3155 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3156
3157         * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
3158         logic.
3159
3160 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3161
3162         * TreeView.cs: Don't start editing a node on right click, only
3163         left click.
3164
3165 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3166
3167         * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
3168         disabled over a year ago.
3169         * Form.cs: Wrap calling Load in a try/catch because it can happen
3170         before the catch-all one in NativeWindow.
3171         [Fixes bug #425414]
3172
3173 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3174
3175         * ToolStripDropDownMenu.cs: Calculate the connected area better
3176         to take into account when the drop down is not directly under the
3177         owner item.
3178         * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
3179
3180 2008-09-16  Mario Carrion <mcarrion@novell.com>
3181
3182         * ScrollBar.cs: New event added: UIAValueChanged, generated when
3183           LargeChange, SmallChange, Maximum or Minimum values are changed.
3184         [Fixes bug #426464]
3185
3186 2008-09-16  Mario Carrion <mcarrion@novell.com>
3187
3188         * ErrorProvider.cs: Component enabled to support accessibility.
3189         * Application.cs: Updated to Initialize UIA in ErrorProvider.
3190         [Fixes bug #426459]
3191
3192 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3193
3194         * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
3195         so we don't highlight on first focus.
3196         [Fixes bug #360869]
3197
3198 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3199
3200         * TextControl.cs: Correctly calculate the height of the area we 
3201         need to invalidate when we have started scrolling and viewport_y
3202         is used.  [Fixes bug #387608]
3203
3204 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3205
3206         * TextControl.cs: When getting the SelectedText, don't add in
3207         NewLine characters, as they are already contained in the lines.
3208         [Fixes bug #388115]
3209
3210 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3211
3212         * TextBoxBase.cs: Replace the buggy Lines setter with one that
3213         simply concats the lines and send it to the Text setter.
3214         [Fixes issue #2 and #3 of 388115]
3215
3216 2008-09-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3217
3218         * Binding.cs: The default value of DataSourceNullValue should be
3219         Convert.DBNull actually. Also, the NullValue should only be used *if*
3220         itself is not null, and use the null/Convert.DBNull value instead.
3221
3222 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
3223
3224         * TextControl.cs: Add a method to convert a string newline to the
3225         newline enum.
3226         * TextBoxBase.cs: When the user hits enter, insert a native newline.
3227         [Fixes part 1 of bug #388115]
3228
3229 2008-09-15  Mario Carrion <mcarrion@novell.com>
3230
3231         * ToolTip.cs: UnPopup event set to internal to match public API.
3232
3233 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
3234
3235         * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
3236         have to remove the Ctrl in order for the focus moving code to kick in.
3237         [Fixes bug #426170]
3238
3239 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
3240
3241         * CheckedListBox.cs: Return the real item index from Add.  It may not be
3242         the last item if the list is sorted.  The user can change the NewValue in
3243         the ItemCheck event, we need to use that value if so.
3244         * ListBox.cs: Return the real item index from a sorted Add.
3245         [Fixes bug #426166]
3246
3247 2008-09-15  Ivan N. Zlatev  <contact@i-nz.net>
3248
3249         * MimeIcon.cs: Add null checks in the GnomeHandler, because it might 
3250         happen that the icons from the theme is missing or the particular size 
3251         unavailable.
3252         [Fixes bug #424981]
3253
3254 2008-09-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3255
3256         * Binding.cs: When assigning null or DBNull depending on value/ref type,
3257         use IsValueType instead to get the precise desired value.
3258         Fixes #424276.
3259
3260 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3261
3262         * TreeNodeCollection.cs: When adding a new node to an opened node,
3263         we have to invalidate everything below the parent node because
3264         every node scoots down and we have to repaint them.
3265         [Fixes bug #411386]
3266
3267 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3268
3269         * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
3270         property into account when drawing.
3271         [Fixes bug #416064]
3272
3273 2008-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3274
3275         * ListBox.cs: When calling Items.Clear(), call
3276         SelectedIndexCollection.ClearCore instead of normal Clear method, to
3277         not fire any Selected*Changed event - this is done to match .net and
3278         don't have invalid values when changing the DataSourceProperty.
3279         Fixes #424273.
3280
3281 2008-09-12  Mario Carrion  <mcarrion@novell.com>
3282
3283         * HelpProvider.cs: Control enabled to support accessibility.
3284         * Application.cs: Updated to Initialize UIA in HelpProvider.
3285         [Fixes bug #425988]
3286
3287 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3288
3289         * Form.cs: When we are showing a dialog box, if its owner is TopMost,
3290         make the dialog TopMost as well.
3291         [Fixes bug #425984]
3292
3293 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3294
3295         * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
3296         clipboard data better.
3297         [Fixes bug #414446]
3298
3299 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3300
3301         * TextBoxBase.cs: Applied patch from John Mortlock that ensures
3302         TextChanged and SelectionChanged events fire in the same order as .Net.
3303         [Fixes bug #425725]
3304
3305 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3306
3307         * DataGridView.cs: When sorting a column, if it only contains numbers,
3308         do a numeric sort instead of a string sort.
3309         [Fixes bug #425849]
3310
3311 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3312
3313         * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
3314         against NRE's when the settings have a null panel.
3315         * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
3316         the panel gets set.
3317         [Fixes bug #425647]
3318
3319 2008-09-11  Mario Carrion  <mcarrion@novell.com>
3320
3321         * ToolTip.cs: Control enabled to support accessibility.
3322         * Application.cs: Updated to Initialize UIA in ToolTip.
3323         [Fixes bug #425277]
3324
3325 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3326
3327         * Control.cs: Make the custom Enumerator internal to fix build.
3328
3329 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3330
3331         * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
3332         already in edit mode, begin edit mode.  Generally edit mode isn't
3333         started until the second click, but CheckBoxes are special.
3334
3335 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3336
3337         * ErrorProvider.cs: Never try to add our icons to ContainerControl,
3338         since that can be set to anything.  Always add them to the Control's
3339         parent.  [Fixes bug #416058]
3340
3341 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3342
3343         * ListView.cs: Use a custom enumerator for ListViewItemCollection
3344         so items can be deleted in a foreach.
3345         [Fixes bug #425342]
3346
3347 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3348
3349         * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
3350         Store the user set explicit height so that the row can be AutoSized
3351         and then when AutoSize is turned off, it can get its original size back.
3352         * DataGridView.cs: Use the Row's GetPreferredHeight instead of 
3353         duplicating the logic.  When setting AutoSizeRowsMode to None, reset
3354         rows' heights back to their explicit values.
3355         [Fixes bug #415780]
3356
3357 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3358
3359         * DateTimePicker.cs: When getting focus, select the checkbox if we are
3360         already showing it. Also, don't change its value when pressing space
3361         if the checkbox is not visible (ShowCheckBox as false). Finally, the
3362         checkbox should remain selected as long as Checked is false, and the
3363         other parts are disabled.
3364         Fixes #424267.
3365         
3366 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3367
3368         * MessageBox.cs: Handle shortcut keys to dialog buttons.
3369         [Fixes bug #425425]
3370
3371 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3372
3373         * Binding.cs: When the value retrieved from the control property is
3374         null, don't return Convert.DBNull for Nullable instances, since they
3375         can *actually* get a null value.
3376         Fixes #424265.
3377
3378 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
3379
3380         * Control.cs: Add an internal field to force doublebuffering regardless
3381         of what the public mechanisms are set to.  This is because MS's native
3382         controls are doublebuffered even though their .Net bits are set to false.
3383         * ProgressBar.cs: Set force_double_buffer to true.
3384         [Fixes bug #406595]
3385
3386 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
3387
3388         * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
3389         the cell template.
3390         * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
3391         * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
3392         without EditingControls, paint background selection for types without
3393         EditingControls, reset the EditingCellValueChanged flag when the
3394         cell's value is committed.
3395         * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
3396         have EditingControls, remove a double call to a cell's OnContentClickInternal,
3397         don't do cell changing logic in OnMouseDown if the cell didn't change.
3398         [Fixes bug #420351]
3399
3400 2008-09-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3401
3402         * DateTimePicker.cs: Fix the edition of am/pm specifier.
3403
3404 2008-09-09  Jonathan Pobst  <monkey@jpobst.com>
3405
3406         * TextControl.cs: Add "&" to the list of valid characters in a URL.
3407
3408 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3409
3410         * DateTimePicker.cs: Before incrementing or decrementing any part in
3411         the textbox, end any current edit. Also when ending the current edit
3412         use the editing_part_index field instead of the current selected
3413         value, since they can be out of synch, and we really need to work on
3414         the *real* current edit part. Finally when PartData.Selected changes,
3415         always try to end any ongoing edit.
3416         This should fix some small errors handling mouse navigation and
3417         increase/decrease operations.
3418
3419 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3420
3421         * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
3422         respectively) should handled different, since the 12 hours format
3423         needs the value typed by the user to be adjusted depending on the
3424         a.m/p.m value, so it is preserved, and only changed when the value
3425         reaches the 12 value (when it changes from a.m to p.m).
3426         Fixes part of #416555.
3427
3428 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
3429
3430         * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
3431         * ToolStripDropDownItem.cs: Don't fire events and such again if
3432         ShowDropDown is called on an already dropped down item.
3433         * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
3434         subitems, the user may add some in the DropDownOpening event.
3435         [Fixes bug #417877]
3436
3437 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
3438
3439         * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
3440         [Fixes bug #424270]
3441
3442 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
3443
3444         * MdiClient.cs: When looking for menustrips on a child form to merge,
3445         look inside ToolStripContainers.
3446         [Fixes bug #424264]
3447
3448 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
3449
3450         * ErrorProvider.cs: Unbreak my previous commit.
3451
3452 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
3453
3454         * ErrorProvider.cs: Icon should always be 16x16.
3455         [Fixes bug #424380]
3456
3457 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
3458
3459         * GridEntry.cs: Invalidate the child items cache when the property 
3460         value changes.
3461
3462 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
3463
3464         * GridEntry.cs, PropertyGridView.cs: 
3465            - Update the ReadOnly detection and rendering to finally hopefully 
3466            match the one of MSFT.
3467            - Niceify and move the debug CWLS.
3468         [Fixes bug #409028]
3469
3470 2008-09-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3471
3472         * ListView.cs: Don't call Invalidate at all from SetItemLocation,
3473         since we are already calling Invalidate for the entire control when
3474         needed - and call Redraw() when size changes, since we need to paint
3475         there by ourselved and not anymore from the mentioned method. 
3476         This should improve the layout process. Also clean some not needed calls 
3477         here and there.
3478
3479 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
3480
3481         * MenuAPI.cs: Add a null check to the Alt-F4 code.
3482         [Fixes bug #420309]
3483
3484 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
3485
3486         * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
3487         [Fixes bug #423040]
3488
3489 2008-09-04  Ivan N. Zlatev  <contact@i-nz.net>
3490
3491         * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs, 
3492         PropertyGridView.sc: Implement lazy/delayed propertygrid population 
3493         on item expansion. Improves performance and fixes bug #417955.
3494         [Fixes bug #417955]
3495
3496 2008-09-05  Stephane Delcroix  <sdelcroix@novell.com>
3497
3498         * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
3499         fix the build.
3500
3501 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3502
3503         * TextControl.cs: Add "_" to the list of valid characters in a URL.
3504         [Fixes bug #423408]
3505
3506 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3507
3508         * Control.cs: If using OptimizedDoubleBuffer, ensure the clip 
3509         region gets set.
3510         [Fixes bug #414166]
3511
3512 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3513
3514         * FontDialog.cs: When storing our font size from the starting font,
3515         use SizeInPoints instead of Size in case Size is a different unit
3516         from Points.
3517         [Fixes bug #416489]
3518
3519 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3520
3521         * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
3522         don't use it for anything else, check if a directory is highlighted.
3523         If it is, navigate into it.
3524         [Fixes bug #422087]
3525
3526 2008-09-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3527
3528         * Binding.cs: When acquiring a BindingManagerBase for the first time,
3529         check that the specified property actually exists in the data source,
3530         and throw an ArgumentException if that's not the case - this is only
3531         done for this scenario, since for later cases (such Position changes)
3532         we throw different exceptions (match .Net).
3533
3534 2008-09-03  Ivan N. Zlatev  <contact@i-nz.net>
3535
3536         * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs, 
3537           FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs, 
3538           PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs, 
3539           TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs, 
3540           ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs, 
3541           ToolStripStatusLabel.cs: Add missing PerformLayout calls to various 
3542           properties.
3543           [Fixes bug #418684]
3544
3545 2008-09-03  Neville Gao  <nevillegao@gmail.com>
3546
3547         * StatusBar.cs: Control enabled to support accessibility.
3548         [Fixes bug #419079]
3549
3550 2008-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3551
3552         * Binding.cs: When connecting the event handler for the "Changed"
3553         event for the property, only do it for PropertyManager, and not for
3554         CurrencyManager - this is exactly what does .Net, totally ignoring any
3555         change in the property of the elements of a list.
3556         Fixes the tests.
3557
3558 2008-09-02  Jonathan Pobst  <monkey@jpobst.com>
3559
3560         * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
3561         to Windows when creating a window, as we fake MDI stuffs.
3562         [Fixes bug #421858]
3563
3564 2008-09-01  Ivan N. Zlatev  <contact@i-nz.net>
3565
3566         * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the 
3567         change takes effect.
3568
3569 2008-08-24  Ivan N. Zlatev  <contact@i-nz.net>
3570
3571         * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
3572         [Fixes bug #419001]
3573
3574 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
3575
3576         * DataGridView.cs: Raise CellContentClick event.
3577         [Fixes part of bug #420351]
3578
3579 2008-08-27  Mario Carrion  <mcarrion@novell.com>
3580
3581         * ScrollBar.cs: Control enabled to support accessibility.
3582         [Fixes bug #416759]
3583
3584 2008-08-27  Mario Carrion  <mcarrion@novell.com>
3585
3586         * ComboBox.cs: Control enabled to support accessibility.
3587         [Fixes bug #416663]
3588
3589 2008-08-27  Mario Carrion  <mcarrion@novell.com>
3590
3591         * ListBox.cs: Control enabled to support accessibility.
3592         [Fixes bug #416640]
3593
3594 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
3595
3596         * ComboBox.cs: Don't suppress the TextChanged event when changing
3597         the SelectedIndex.
3598         * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
3599         and re-raise it.
3600         [Fixes bug #420673]
3601
3602 2008-08-26  Jonathan Pobst  <monkey@jpobst.com>
3603
3604         * ErrorProvider.cs: Fix a regression NRE when setting properties
3605         for a control before it has a parent.
3606         [Fixes bug #420305]
3607
3608 2008-08-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3609
3610         * Binding.cs: Use the BindingManagerBase.Current value to obtain
3611         connect the property "Changed" event, instead of using the data
3612         sources - this is useful when the property specifies actually a
3613         multiple objects path.
3614         Fixes part of #417973.
3615
3616 2008-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3617
3618         * RelatedPropertyManager.cs: PropertyManager instances associated to a
3619         nested properties should return not the properties of the data source
3620         itself, but the properties of the type of a specific property in the
3621         data source - match .net.
3622
3623 2008-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
3624
3625         * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
3626         AddRange overloads into AddItems method, and added missing NULL check.
3627         Added extra argument check to RemoveAt for compatibility with MS. 
3628         Modified IList implementation of Add, Contains, IndexOf and Remove to
3629         throw an ArgumentException if item is not an int. Modified IList.Insert
3630         to throw a NotSupportException instead of an Exception. Implemented
3631         ICollection.
3632         (ObjectCollection): To avoid duplication, use AddItems method from
3633         AddRange overloads. On 1.0 profile, first perform NULL check on items
3634         in AddItems.
3635
3636 2008-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
3637
3638         * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
3639          #419087.
3640
3641 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
3642
3643         * X11Keyboard.cs : comment out some Console.WriteLine().
3644
3645 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
3646
3647         * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
3648           even if premises are not filled. Also XLookupString() was not
3649           receiving correct input, which blocked precise input handling
3650           on non-XIM mode.
3651
3652 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3653
3654         * ListView.cs: When calling OnCacheVirtualItems, cast to the right
3655         type of delegate, instead of EventHandler - this was causing a type
3656         cast exception in all apps handling this event.
3657         Fixes #417876.
3658
3659 2008-08-20  Jonathan Pobst  <monkey@jpobst.com>
3660
3661         * ToolStripDropDownItem.cs: Always raise DropDownOpening in
3662         ShowDropDown to give the user a chance to dynamically add
3663         drop down items.  [Step 1 of fixing bug #417877]
3664
3665 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3666
3667         * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
3668         had any mouse motion since the call to StartDrag, to match the dnd
3669         behaviour of .net.
3670         Fixes part of #381876.
3671
3672 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3673
3674         * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
3675         if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
3676         Also, if we are actually moving into a different window after
3677         grabbing, generate a LeaveNotify event for the previous window, since
3678         we need to fire the leave events until the grab ends, not when
3679         actually moving outside of the control.
3680
3681 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3682
3683         * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
3684         events only for client windows was wrong - we need to compare the
3685         client window against the window receiving the EnterNotify event, not
3686         against zero (since client window is never Zero, btw).
3687         This prevents having unnecessary handling of EnterNotify events for
3688         non-client windows when a gran begins.
3689
3690 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3691
3692         * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
3693         MouseMove/MotionNotify events at all (which should only happen after
3694         MouseUp/ButtonRelease, as .Net does).
3695         This avoids firing an extra and unnecessary MouseMove event just after
3696         every MouseDown event.
3697
3698 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
3699
3700         * LinkLabel.cs: Always clear any previous links when LinkArea
3701         is set.  [Fixes bug #410709]
3702
3703 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
3704
3705         * ToolStripProfessionalRenderer.cs: Revert last change.
3706         * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
3707         for ToolStripDropDownBackground.
3708
3709 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
3710
3711         * ToolStripProfessionalRenderer.cs: Use Window color for the 
3712         background of dropdowns to match .Net when the user is not
3713         using the default white.  [Fixes bug #418108]
3714
3715 2008-08-19  Atsushi Enomoto  <atsushi@ximian.com>
3716
3717         * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
3718           it caused timer registration twice. Fixed bug #418107.
3719
3720 2008-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3721
3722         [Correction: This is the actual change to X11Dnd issue, not the
3723         previous one, which was actually a different issue.]
3724
3725         * X11Dnd.cs: Increase the interval for the Timer, to not fire our
3726         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
3727         when the pointer is actually in motion, but only when the pointer
3728         seems to stop (as .net does).
3729         Fixes part of #381876.
3730
3731
3732 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
3733
3734         * ListBox.cs: Fix CopyTo implementation.
3735         [Fixes bug #409169]
3736
3737 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
3738
3739         * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
3740         drawing a ComboBox's background.  Fixes bad disabled rendering when
3741         the control is not at 0,0.
3742         [Fixes bug #416063]
3743
3744 2008-08-16  Ivan N. Zlatev  <contact@i-nz.net>
3745
3746         * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the 
3747         ComponentModel layer, which will properly prioritize the attributes.
3748         Avoids wrong prioritization of duplicate attributes when retrieving 
3749         the converter and editor.
3750         [Fixes bug #417729]
3751
3752 2008-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3753
3754         * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
3755         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
3756         when the pointer is actually in motion, but only when the pointer
3757         seems to stop (as .net does).
3758         Fixes part of #381876.
3759
3760 2008-08-15  Ivan N. Zlatev  <contact@i-nz.net>
3761
3762         * GridEntry.cs: Perform stricter check for the ParentEntry's 
3763         PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor 
3764         implementation.
3765         [Fixes bug #417567]
3766
3767 2008-08-14  Geoff Norton  <gnorton@novell.com>
3768
3769         * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
3770         Fixes #396983.  Properly fix ActiveWindow trackin and do not
3771         prematurely show POPUP windows.
3772
3773 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3774
3775         * XplatUIX11.cs: Handle the obscured regions while scrolling using
3776         GraphicsExpose event, processing it just after we copy the scrolled
3777         area. This ensures that the next calls to ScrollWindow will copy
3778         regions already updated, and the scrolling will be smooth. Also remove
3779         the code that was trying to detect the obscured regions, since we are
3780         not using it anymore (too slow).
3781
3782 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3783
3784         * ListBox.cs: Fix the -temporary- broken selection in ListBox for
3785         MultiExtended mode, by separating some logic between the ctrl/shift
3786         handling. Also ignore any MouseMove events generated together with
3787         MouseDown events - we are only interested in the real motion event.
3788         Fixes part of #414963.
3789
3790 2008-08-08  Jonathan Pobst  <monkey@jpobst.com>
3791
3792         * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
3793         is selected.  [Fixes bug #414143]
3794
3795 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
3796
3797         * GridEntry.cs: Check if current property is a ICustomTypeDescriptor 
3798         and not the parent one (the propertyowner). Fixes the behavior of 
3799         GetConverter/GetEditor.
3800         [Fixes bug #415452]
3801
3802 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
3803
3804         * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
3805         [Fixes part of bug #415452]
3806
3807 2008-08-05  Ivan N. Zlatev  <contact@i-nz.net>
3808
3809         * GridEntry.cs: ITypeDescriptorContext should be relative to the parent 
3810         GridEntry, not the current.
3811         [Fixes bug #413896]
3812
3813 2008-08-04  Ivan N. Zlatev  <contact@i-nz.net>
3814
3815         * TextBoxBase.cs: De-internalize max_length field.
3816         * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox 
3817         share the same logic.
3818         [Fixes bug #414454]
3819
3820 2008-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3821
3822         * ListBox.cs: Selection changes made in the MouseDown handler should
3823         use the *Core versions of selection in SelectedIndices collection,
3824         since the SelectedIndexChanged/SelectedValueChanged events are fired
3825         until we get a MouseUp event, and thus we need to separate the logic
3826         from the events, as done in the keyboard navigation. Also, fire those
3827         selection events from keyboard navigation in SelectionMode.None, even
3828         if we don't have a selection, as .Net does.
3829
3830 2008-08-01  Jonathan Pobst  <monkey@jpobst.com>
3831
3832         * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
3833         last change introduced when an item is clicked but isn't on a toolstrip.
3834
3835 2008-07-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3836
3837         * ListBindingHelper.cs: When looking for an object's properties, check
3838         if it implements ICustomTypeDescriptor, in which case we should
3839         resolve the propertu based on its GetProperties method, not in its
3840         actual properties. This is what .Net seems to do.
3841         Fixes a UsingWebBrowser problem during initialization.
3842
3843 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
3844
3845         * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
3846         sitting on a MenuStrip.
3847
3848 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
3849
3850         * ToolStripButton.cs: If we "click" a top button on a menustrip that has
3851         no children with the keyboard, we need to release the keyboard capture.
3852         [Fixes bug #413567]
3853
3854 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
3855
3856         * ToolStripMenuItem.cs: If we "click" a top level menu item that has
3857         no children with the keyboard, we need to release the keyboard capture.
3858         [Fixes bug #413567]
3859
3860 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
3861
3862         * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
3863         the GTK+-based implementation of VisualStyles.
3864         * ThemeWin32Classic.cs: Exposed various layout values for use in the
3865         GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
3866         ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
3867         ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
3868         TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
3869         TrackBarHorizontalTrackHeight.
3870
3871 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
3872
3873         * TabControl.cs: Added hot style handling for the scroll buttons.
3874         right_slider_state, left_slider_state are now of type PushButtonState to
3875         allow for a hot state. Added tracking of the mouse button being held down
3876         on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
3877         LeftScrollButtonArea.
3878         * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
3879         TabControlGetRightScrollRect.
3880
3881 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3882
3883         * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent 
3884         runtime errors.
3885
3886 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3887
3888         * Form.cs: Ensure that we reset the shown_raised flag after 
3889         the form is closed, so that we raise the show events the next 
3890         time the form is shown.
3891         [Fixes bug #413141]
3892
3893 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3894
3895         * Form.cs: Ensure closing events are raised only once.
3896         [Fixes bug #413143]
3897
3898 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3899
3900         * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode, 
3901         so that we can successfully generate the LParam in-place instead of 
3902         in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard 
3903         navigation for menus.
3904
3905 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3906
3907         * MenuAPI.cs: When montion don't set the keyboard navigation state to 
3908         'navigating'. Fixes bug #411356.
3909
3910 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3911
3912         [Fixed remaining issues of #406773 (#1)]
3913         * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
3914
3915         * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
3916         MainMenu (already done) and ContextMenu creation.
3917
3918         * ContextMenu.cs: Create tracker on construction. 
3919
3920 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3921
3922         * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
3923         possible to instantiate MenuTracker without GrabControl.
3924
3925 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3926
3927         * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
3928
3929         * MainMenu.cs: Set GrabControl on SetForm using current form.
3930
3931 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3932
3933         * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
3934
3935 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3936
3937         * MenuAPI.cs: Check if menu is activated before deactivate it in 
3938         ProcessShortcut.
3939
3940 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3941
3942         * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs, 
3943         ColumnStyle.cs: 
3944         Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
3945          - One style instance can only participate in a single style collection.
3946          - Styles can request their owner to layout whenever their properties 
3947          change.
3948          [Fixes bugs #412583 and #412582]
3949
3950 2008-07-29  Ivan N. Zlatev  <contact@i-nz.net>
3951
3952         * X11Keyboard.cs: Implement the generation of the LParam for 
3953         all keyboard messages.
3954         [Fixes bug #378728]
3955
3956 2008-07-29  Jonathan Pobst  <monkey@jpobst.com>
3957
3958         * ListBox.cs: Don't let the user set TopIndex so high that it
3959         scrolls up far enough to show empty items.
3960         [Fixes bug #412728]
3961
3962 2008-07-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3963
3964         * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
3965         (I'm an idiot and forgot to commit the actual changes, as well as
3966         specify the right file, which is this one, not ListView.cs).
3967
3968 2008-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3969
3970         * ListView.cs: Don't draw ListViewSubItem instances from
3971         DrawListViewItem - we need to reuse the main item's drawing for the
3972         first sub item in case owner draw is true, but wants the system to
3973         do the default draw for the first sub item, without incurring in a
3974         recursion problem.
3975         Fixes #410880.
3976
3977 2008-07-28  Jonathan Pobst  <monkey@jpobst.com>
3978
3979         * ToolStripButton.cs: Update Checked for CheckOnClick before
3980         raising the Click event.  [Fixes bug #412505]
3981
3982 2008-07-28  Ivan N. Zlatev  <contact@i-nz.net>
3983
3984         * Form.cs: Remove some seems leftover code for non-TopLevel's 
3985         CreateParams, which is breaking ClientSize sizing, because it 
3986         removes the border window styles.
3987
3988 2008-07-27  Ivan N. Zlatev  <contact@i-nz.net>
3989
3990         * PropertyGrid.cs: Invalidate the View when the PropertyTab 
3991         changes.
3992
3993 2008-07-25  Gert Driesen  <drieseng@users.sourceforge.net>
3994
3995         * WebBrowser.cs: Removed debug output.
3996
3997 2008-07-25  Jonathan Pobst  <monkey@jpobst.com>
3998
3999         * FileDialog.cs: Apply patch from Ernesto to clean up some
4000         dialog messages.
4001
4002 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4003
4004         * TableLayoutPanel.cs: Perform layout on GrowStyle change, so 
4005         that the change has an immediate effect.
4006
4007 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4008
4009         * ScrollableControl.cs: Update PerformLayout calls to include 
4010         provide the name of the property that changed.
4011
4012 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4013
4014         * TableLayoutPanel.cs: Draw relative to the DisplayRectangle 
4015         location. Fixes drawing of border and cell borders if scrollable.
4016
4017 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4018
4019         * ScrollableControl.cs: Perform layouting after the AutoScroll 
4020         properties have changed, so that the changes have immediate 
4021         effect.
4022         [Fixes bug #409090]
4023
4024 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4025
4026         * XplatUIX11.cs: Non Client area is actually Client such in the 
4027         case of NotifyIcon, so double check WholeWindow == ClientWindow 
4028         when adding an expose.
4029         [Fixes bugs #324237 and #357022]
4030
4031 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4032
4033         * TableLayoutPanel.cs: Invalidate after layouting, so that we 
4034         repaint the cell borders.
4035
4036 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4037
4038         * PropertyGridTextBox.cs: Stop filtering messages prior to our 
4039         disposal to avoid unexpected ObjectDisposedExceptions.
4040
4041 2008-07-24  Ivan N. Zlatev  <contact@i-nz.net>
4042
4043         * TableLayoutPanel.cs: Layout on Row/Column count change.
4044
4045 2008-07-22  Gert Driesen  <drieseng@users.sourceforge.net>
4046
4047         * ListViewItem.cs: Changed binary serialization to match MS. Fixes
4048         bug #409351.
4049         * PictureBox.cs: When ImageLocation is set to null or an empty string,
4050         only set image to null if it was previously initialized from an url
4051         (or using ImageLocation). In ImageLocation, load specified image
4052         asynchronously if WaitOnLoad is false. Added support for local file
4053         paths to LoadAsync, and added missing argument check.
4054
4055 2008-07-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4056
4057         * DateTimePicker.cs: 
4058         * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
4059         order to set the value as required (which means: when selection
4060         changes for a part being edited, and not before that if not needed).
4061         Also use an enum to describe which part are we using, and use the
4062         selection as a property in PartData, in order to notify the
4063         DateTimePicker owner that we need to end the current edit.
4064         Fixes #383462.
4065
4066 2008-07-17  Ivan N. Zlatev  <contact@i-nz.net>
4067
4068         * PropertyGridTextBox.cs: Validation should be performed only if we 
4069         are focused. We can lose focus for example if the Return key is used 
4070         to set the entry and there is an error. When the message box is 
4071         displayed we would have validate on click in the message box.
4072
4073 2008-07-16  Ivan N. Zlatev  <contact@i-nz.net>
4074
4075         * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content 
4076         in order to determine that we are expandable is wrong. There was a bug, 
4077         now fixed, in TypeDescriptor that was causing the wrong converter to be 
4078         returned which caused GetPropertiesSupported == false in most cases.
4079         [Fixes bug #409027]
4080
4081 2008-07-15  Jonathan Pobst  <monkey@jpobst.com>
4082
4083         * ImageList.cs: Fix ICollection.CopyTo implementation for
4084         ImageListCollection.  [Fixes bug #409169]
4085
4086 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
4087
4088         * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
4089         WorkingArea so that menus can appear on the second monitor
4090         when one has dual monitors.
4091
4092 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4093
4094         * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
4095         Fixes build.
4096
4097 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4098
4099         * TextBox.cs: Implement navigation support for auto complete in
4100         TextBox, as well as refactor the code to show the auto complete window
4101         when receiving a WM_CHAR message, instead of TextChanged, since
4102         autocomplete itself should be able to set the Text a lot of times and
4103         finally only typing should show it, not changes from code.
4104
4105 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4106
4107         * TabControl.cs: When expanding the selected tab, don't adjust the
4108         width if alignment is Right, since it has a different offset than 0,
4109         as opposed to the other alignments.
4110         Fixes the selected tab not being painted at all with alignment = Right
4111         and using FillToRight size mode.
4112
4113 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
4114
4115         * TreeView.cs: Fix ToString to match MS.  [Fixes bug #409029]
4116
4117 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
4118
4119         * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
4120         values from the textbox to the boundary values.  [Fixes bug #409026]
4121
4122 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
4123
4124         * TreeNodeCollection.cs: We were copying one too many elements when
4125         doing our array copy.  Fixes a crash when RemoveAt is called.
4126         [Fixes bug #408999]
4127
4128 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4129
4130         * TabControl.cs: When doing the layout and need to call FillRow -using
4131         FillToRight size mode-, use the overload receiving a bool param
4132         indicating whether we need to do a vertical or horizontal calculation.
4133         Fixes part of #399583.
4134
4135 2008-07-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4136
4137         * TextBox.cs: When painting, use the value returned by
4138         GetLastVisibleItem instead of using the cached last_item field, since
4139         there could be a desynchronization between the layout and the
4140         painting. Fixes a AOOR exception in auto complete mode.
4141
4142 2008-07-12  George Giolfan  <georgegiolfan@yahoo.com>
4143
4144         * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
4145         NonClientAreaEnabled until our VisualStyles is modified to allow it.
4146
4147 2008-07-12  Gert Driesen  <drieseng@users.sourceforge.net>
4148
4149         * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
4150
4151 2008-07-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4152
4153         * TextBox.cs: When focus is lost, if the auto complete listbox is
4154         visible, hide it.
4155
4156 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
4157
4158         * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
4159         tracking size for tool windows.
4160         * Theme.cs, ThemeWin32Classic.cs : Extracted
4161         ManagedWindowSpacingAfterLastTitleButton.
4162
4163 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
4164
4165         * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
4166         They are bit-rotted and have always been listed as "unsupported".
4167
4168 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
4169
4170         * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
4171
4172 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
4173
4174         * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
4175
4176 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4177
4178         * ListBox.cs: Make sure last_item_visible gets reset before we try
4179         to do a layout due to scrollbars appearing or disappearing.
4180         [Fixes bug #408139]
4181
4182 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4183
4184         * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
4185         for different window themes.  [Fixes bug #339140]
4186
4187 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4188
4189         * ThemeWin32Classic.cs: Implemented minimized window border width properly,
4190         in ManagedWindowBorderWidth.
4191
4192 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4193
4194         * InternalWindowManager.cs: Change MouseMove to take a point, so
4195         we can use the same point later on.
4196         * MdiWindowManager.cs: Store point sent to MouseMove so we can
4197         later reset to it.  On Windows, the Cursor.Position had already
4198         changed by the time we were resetting to it.
4199         [Fixes bug #363239]
4200
4201 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4202
4203         * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
4204         are inactive.
4205         * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
4206         user requested it.
4207         [Fixes bug #398686]
4208
4209 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4210
4211         * MdiWindowManager.cs: Double-clicking on the title bar should not
4212         maximize a MDI form if MaximizeBox = false.
4213
4214 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4215
4216         * ThemeVisualStyles.cs: Fixed a warning.
4217
4218 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4219
4220         * ThemeVisualStyles.cs: Fixed warnings and formatted.
4221
4222 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4223
4224         * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
4225         implementation produces a better result.
4226
4227 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4228
4229         * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
4230         windows.
4231
4232 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4233
4234         * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
4235         cannot be used from the ThemeEngine constructor.
4236         * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
4237         Application.VisualStylesEnabled because it does not work on X11.
4238
4239 2008-07-09  Jonathan Pobst  <monkey@jpobst.com>
4240
4241         * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
4242         that we did not always check for, as well as fixes to the IList
4243         implementations.  [Fixes bug #402703]
4244
4245 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
4246
4247         * IDeviceContext.cs: Added Dispose.
4248
4249 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
4250
4251         * Control.cs: Added OnSizeInitializedOrChanged.
4252         * Form.cs: OnLoadInternal: Added a call to
4253         Control.OnSizeInitializedOrChanged.
4254         * InternalWindowManager.cs:
4255          * HandleTitleBarMouseMove: No longer invalidates the parent window.
4256          * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
4257          * TitleButton: Added Entered.
4258          * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
4259         * MdiWindowManager.cs:
4260          * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
4261          move over the maximized title buttons causes a change.
4262          * IsActive: Can now be called before the window is added to a MDI parent.
4263         * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
4264         ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
4265         * ThemeVisualStyles.cs: Implemented proper managed window rendering.
4266         * ThemeWin32Classic.cs:
4267          * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
4268          * DrawTitleButton takes a new form parameter.
4269          * Added ManagedWindowTitleButtonHasHotElementStyle,
4270          ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
4271
4272 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
4273
4274         * ThemeEngine.cs: ThemeVisualStyles is now selected if
4275         Application.EnableVisualStyles has been called, even if the current system
4276         configuration does not support rendering with Visual Styles.
4277         * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
4278         Styles should not be used.
4279
4280 2008-07-08  Jonathan Pobst  <monkey@jpobst.com>
4281
4282         * ComboBox.cs: PreferredHeight is not tied to ItemHeight.  Fixes 3rd
4283         ComboBox in FormsTest.
4284
4285 2008-07-08  Ivan N. Zlatev  <contact@i-nz.net>
4286
4287         * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only 
4288         for fixed toolwindows.
4289
4290 2008-07-08  George Giolfan  <georgegiolfan@yahoo.com>
4291
4292         * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
4293
4294 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4295
4296         * Control.cs: CreateControl just returns if the Control is diposed 
4297         and doesn't throw ObjectDisposedException.
4298         [Fixes bug #406566]
4299
4300 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4301
4302         * Control.cs: Do not create the control if the parent isn't created 
4303         yet, e.g in the case of a parented form on which .Show is called.
4304         It will be created when the parent is made visible/created.
4305         Improves #402446.
4306
4307 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4308
4309         * Form.cs: Avoid recursively calling OnSizeChanged due to recursive 
4310         WM_WINDOWPOSCHANGED caused by the layouting code on win32.
4311         [Fixes bug #406786]
4312
4313 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4314
4315         * Form.cs: When disposed set owner to null. Improves #402446.
4316
4317 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4318
4319         * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize 
4320         use children's PreferredSize if in AutoSize mode and ExplicitBounds 
4321         if not.
4322         * Form.cs: Take the Padding into account for the PreferredSize.
4323         [Fixes bug #402849]
4324
4325 2008-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4326
4327         * TabControl.cs: Since we don't support more than one direction in
4328         TabControl rows alignment (this is, the row becomes the
4329         bottom row when selected), make Direction return always 1. This way
4330         the layout doesn't get confused about a bad calculation.
4331         Fixes #399582.
4332
4333 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4334
4335         * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages, 
4336         so that the wparam is properly set.
4337         Fixes form moving in the test case in bug 402446.
4338
4339 2008-07-07  Jonathan Pobst  <monkey@jpobst.com>
4340
4341         * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
4342         the full tree instead of nothing.  [Improves bug #406584]
4343
4344 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
4345
4346         * ThemeWin32Classic.cs: Adjusted minimized window painting.
4347
4348 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
4349
4350         * InternalWindowManager.cs: No longer draws decorations for maximized MDI
4351         children.
4352
4353 2008-07-04  Jonathan Pobst  <monkey@jpobst.com>
4354
4355         * TreeView.cs: Add a null check when using CollapseAll on an
4356         empty tree.  [Fixes bug #406449]
4357
4358 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4359
4360         * Form.cs: Make OnMenuComplete internal so we can call it.
4361         * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
4362         [Fixes bug #399321]
4363
4364 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4365
4366         * TabControl.cs: Handle Up and Down keys when TabControl is in
4367         vertical alignment.
4368         [Fixes bug #399585]
4369
4370 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4371
4372         * TabControl.cs: Invalidate when we remove a tab.  Guard against
4373         an AOORE when trying to remove a tabpage that is not owned by the
4374         parent control.
4375         [Fixes bug #399927]
4376
4377 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4378
4379         * ScrollBar.cs: Change the LargeChange calculation to be correct.
4380         Ensure we are using LargeChange instead of large_change so we our
4381         calculations are correct.
4382         [Fixes bug #403122]
4383
4384 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4385
4386         * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
4387         we need to ensure the ColumnCount/RowCount gets set.
4388         [Fixes bug #404851]
4389
4390 2008-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4391
4392         * ListBox.cs: When handling item navigation, if selection mode is
4393         None, call EnsureVisible, since scrolling is normally handled by
4394         selection, that we are not calling in this case.
4395         Fixes #398345.
4396
4397 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
4398
4399         * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
4400         a null check to our focus walking code.  [Fixes bug #394332]
4401
4402 2008-07-02  Andy Hume <andyhume32 at yahoo dot co dot uk>
4403
4404         * ComboBox.cs: Case missed in bug 379596 "Support item
4405         navigation by entering text": On _close_ drop-down select
4406         the first item matching the text in the textbox.  [Fixes bug #397265]
4407
4408 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
4409
4410         * DataGridView.cs: Fix a crash when sorting by column headers, 
4411         mentioned in bug #404841.  Remove some dead switch cases.
4412
4413 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4414
4415         * ComboBox.cs:
4416         * TextBox.cs: Implement AutoComplete support for ComboBox, which just
4417         uses the AutoComplete support in the internal TextBox. Also TextBox
4418         can store a reference to ComboBox, in case AutoCompleteSource is set
4419         to ListItems (this is, ComboBox's items, and we don't want to pass an
4420         additional collection).
4421
4422 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4423
4424         * ListViewItem.cs: Restore the initial value of bounds rect to
4425         Rectangle.Empty, and is this value for Layout detection in virtual
4426         mode. Fixes the tests.
4427
4428 2008-06-30  Jonathan Pobst  <monkey@jpobst.com>
4429
4430         * XPlatUI.cs: Remove references to "new" X11 backend.
4431
4432 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
4433
4434         * Control.cs: Add an internal virtual OnDragDropEnd method 
4435         to allow controls such as ListBox, which depend on a sequence 
4436         of MouseDown+Move+End events, to handle the lack of a MouseUp 
4437         when a DnD operation is started in MouseDown.
4438         * ListBox.cs: If a DnD operation is started in MouseDown we won't 
4439         get a MouseUp, so reset our state whenever a DnD operation ends.
4440
4441 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
4442
4443         * PropertyGrid.cs: Clear the root griditem first thing when 
4444         new object/s is/are selected. Fixes some rare cases where 
4445         the View will get a paint request and won't know that the 
4446         grid is in the process of repopulating.
4447
4448 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4449
4450         * XplatUIX11.cs, InternalWindowManager.cs: 
4451         If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS 
4452         doesn't automagically update the FormBorderStyle, so we must 
4453         double check the CreateParams explicitly to determine if the 
4454         window is a toolwindow.
4455         * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow 
4456         instead of doing custom checks.
4457
4458         Fixes toolwindows for the test case in bug #402446
4459
4460 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4461
4462         * Control.cs: Visibility of the control should be false 
4463         when the handle is destroyed in WmDestroy and not immediately 
4464         in Dispose(). This is effectively where the disposing process 
4465         ends even though the control is marked as Disposed immediately 
4466         after calling Dispose().
4467         [Fixes bug #402446]
4468
4469 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4470
4471         * PropertyGridTextBox.cs: Start monitoring the mouse clicks 
4472         when the textbox gets focus.
4473         [Fixes bug #402704]
4474
4475 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4476
4477         * PropertyGridTextBox.cs, PropertyGridView.cs: 
4478          - Alt + Down should show the drop down editor.
4479          - Focus the editor when showing it
4480         [Fixes bug #402710]
4481
4482 2008-06-25  Jonathan Pobst  <monkey@jpobst.com>
4483
4484         * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
4485         that are not the first panel.
4486         * StatusBar.cs: Ensure that the X coordinate of panels is always
4487         stored.  Fix IList implementation of StatusBarPanelCollection to
4488         call the regular methods.
4489         [Fixes bug #403599, #402165]
4490
4491 2008-06-23  Jonathan Pobst  <monkey@jpobst.com>
4492
4493         * ThemeWin32Classic.cs: Fix position calculation for centered
4494         text on status bar panels.  [Fixes bug #402165]
4495
4496 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
4497
4498         * Splitter.cs: Fix Splitter to:
4499          - Work for arbitrary splitter size
4500          - Handle MinSize and MinExtra properly
4501          - Get rid of absolute positioning during drag and use relative
4502          - Multiple other fixes 
4503          [Fixes bug #338966]
4504
4505 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
4506
4507         * Cursor.cs: Show shouldn't hide the cursor.
4508
4509 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4510
4511         * ListViewItem.cs: When invalidating, add some extra space to bounds,
4512         since focus rectangle and selection can add some space and need to
4513         take into account those small offsets - specially in Details view.
4514         * ListView.cs: Instead of invalidate using item Bounds directly, call
4515         item.Invalidate, to have the code centralized.
4516         Fixes focused/selection garbage when selecting and deselecting items
4517         that are close.
4518
4519 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4520
4521         * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
4522         mode we can check whether we have to force a Layout or not, and can
4523         cache based on this, instead of avoiding caching all the the time. Do
4524         this check in GetBounds and TextBounds.
4525         Fixes selection in Details view.
4526
4527 2008-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4528
4529         * ListView.cs: Make HeaderControl internal, thus the theme engine can
4530         get its *real* height instead of trying to infere it.
4531         * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
4532         get the position of them, since it's in general a bad idea in general,
4533         and because we can't do that in virtual mode. Instead get the first
4534         visible item as well as item height, and draw them.
4535         Fixes #400390.
4536
4537 2008-06-20  Jonathan Pobst  <monkey@jpobst.com>
4538
4539         * ToolStripSplitButton.cs: We can't add in extra width if
4540         the button is not AutoSize.  [Fixes bug #401279]
4541
4542 2008-06-20  Ivan N. Zlatev  <contact@i-nz.net>
4543
4544         * PaddingConverter.cs: 
4545          - Implement conversion to InstanceDescriptor
4546          - Handle "All" in CreateInstance by using the supplied 
4547          ITypeDescriptorContext.
4548          [Fixes bugs #396076 and #396078]
4549
4550          Patch by Andy Hume  <andyhume32@yahoo.co.uk>
4551          Code contributed under MIT/X11 license.
4552
4553 2008-06-19  Andy Hume <andyhume32 at yahoo dot co dot uk>
4554
4555         * ComboBox.cs, ListControl.cs, Control.cs, Button.cs, 
4556         ButtonBase.cs:
4557         Add Category attributes.
4558         Code is contributed under the MIT/X11 license.
4559
4560 2008-06-18  Ivan N. Zlatev  <contact@i-nz.net>
4561
4562         * Form.cs: 
4563          - Fix a NRE when unparenting a form.
4564          - Do not recreate or destroy a parented form when 
4565         unparenting. 
4566
4567 2008-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4568
4569         * TextBox.cs: Implement basic support for AutComplete with custom
4570         sources.
4571
4572 2008-06-18  Jonathan Pobst  <monkey@jpobst.com>
4573
4574         * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
4575         DropDownButtonBounds should be from the origin of the button, not the
4576         ToolStrip.  [Fixes bug #401279]
4577
4578 2008-06-16  Sandy Armstrong <sanfordarmstrong@gmail.com> 
4579
4580         * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
4581           running gtk_init_check.  This prevents GAIL from loading
4582           unnecessarily, which was breaking UIA support.  Initial fix for bug
4583           #375987.
4584         * Application.cs: Add UIA support to Winforms.  New static constructor
4585           uses reflection to initialize UIAutomationWinforms assembly.  Added
4586           PreRun event so UIA can initialize before the mainloop starts, and
4587           FormAdded event so UIA can provide a11y support for new Forms in an
4588           Application.
4589
4590 2008-06-16  Jonathan Pobst  <monkey@jpobst.com>
4591
4592         * DataGridView.cs: When binding to a dataset, subscribe to table
4593         and column change events.  Unsubscribe to these when we clear bindings.
4594         [Fixes bug #399601]
4595
4596 2008-06-14  Everaldo Canuto  <ecanuto@novell.com>
4597
4598         [DataGrid drawing refactory]
4599
4600         * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
4601
4602         * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
4603         must be handle by Theme, now it call DataGridPaintColumnHeader.
4604
4605         * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
4606         test cases must be also fixed because it checks for wrong size.
4607
4608         * ThemeWin32Classic.cs: 
4609                 - Draw the bottom line of grid caption.
4610                 - Prevent to draw caption text when it is empty.
4611                 - Use CPDrawBorder3D for 3D efects to simplify code.
4612                 - Uses 3D (when not flat) to paint corner shared between row and column
4613                 header.
4614                 - Fix header drawing issues on win32, now borders are drawing.
4615                 - Fix column header paint issues to mimic win32.
4616                 - Adjust header drawing for last column, like first one it must be draw
4617                 different.
4618                 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
4619                 not an character.
4620                 - DataGridPaintColumnHeader created to draw column headers, it also
4621                 paint stuff right on Win32.
4622                 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle 
4623                 class.
4624
4625         * Theme.cs: 
4626                 - DataGridPaintRowHeaderStar method added.
4627                 - DataGridPaintColumnHeader method added.
4628
4629 2008-06-13  Jonathan Pobst  <monkey@jpobst.com>
4630
4631         * Control.cs: Don't reset to Dock style layout if DockStyle is
4632         set to none.  [Fixes bug #399316]
4633
4634 2008-06-12  Everaldo Canuto  <ecanuto@novell.com>
4635
4636         * Win32DnD.cs: Fix the check for control not equal null.
4637         Fixes bug #341420 and #381886. 
4638
4639 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
4640
4641         * DataGridViewRowCollection.cs: Update the indexes of rows after
4642         one has been removed.
4643         * DataGridViewSelectedRowCollection.cs: Add internal clear method.
4644         * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
4645         * DataGridView.cs: Add support for deleting rows via Delete key, deleting
4646         rows for the Rows collection, or deleting rows from the bound DataSet.
4647
4648 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
4649
4650         * DataGridView.cs: Listen to a DataSet's changed event even
4651         when autogeneratecolumns is false.  Refactor the changed event's
4652         add row code to use the same as the existing add row code.
4653         [Fixes bug #399601]
4654
4655 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4656
4657         * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
4658         much any time the caret moves and there is text, not just when
4659         the selection changes as one would think.
4660         * RichTextBox.cs: Override RaiseSelectionChanged and fire
4661         SelectionChanged.
4662         [Fixes bug #397271]
4663
4664 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4665
4666         * FontDialog.cs: Forward ListBox keyboard events to the ListBox
4667         instead of trying to duplicate the code.
4668         * ListBox.cs: Make method internal so we can send keyboard events.
4669         [Fixes bug #398344]
4670         
4671 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4672
4673         * TextBoxBase.cs: When pasting and checking the max length,
4674         subtract the selected text length (the text we will be replacing) from
4675         the document length.
4676         * TextControl.cs: Ensure every character insertion is reflected in
4677         charcount, so max length will work properly.
4678         [Fixes bug #398605]
4679
4680 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4681
4682         * ListBox.cs: Ensure scrollbars are updated when a single
4683         column listbox with an already set top-index is created.
4684         [Fixes bug #398342]
4685
4686 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4687
4688         * FontDialog.cs: Typing in the font/style textboxes should search
4689         the list boxes case-insensitively.  [Fixes bug #398343]
4690
4691 2008-06-11  George Giolfan  <georgegiolfan@yahoo.com>
4692
4693         * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
4694         widths of icon and buttons instead of hard coded values.
4695
4696 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4697
4698         * ListBox.cs: When SelectionMode is None, clicking an item should move focus
4699         as well as generating a SelectedIndexChanged event, just like .Net does
4700         -surprise-.
4701         Fixes #398345.
4702
4703 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4704
4705         * ListBox.cs: When navigating items visually, use FocusedItem as the
4706         reference point instead of SelectedIndex, since even in
4707         SelectionMode.None we need to support navigation, and in that case we
4708         just can't use SelectedIndex.
4709         Fixes part of #398345.
4710
4711 2008-06-10  Jonathan Pobst  <monkey@jpobst.com>
4712
4713         * Control.cs: Make a SetBoundsInternal that avoids the new
4714         SetBounds code.
4715         * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
4716         SetBoundsInternal instead of SetBoundsCoreInternal.
4717
4718 2008-06-10  Ivan N. Zlatev  <contact@i-nz.net>
4719
4720         * ScrollableControl.cs: Use SetBoundsCoreInternal instead of 
4721         SetBounds for the scrollbars.
4722
4723 2008-06-10  Andreia Gaita <avidigal@novell.com> 
4724
4725         * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
4726           FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
4727           OnMouseMove, OnMouseOver, OnMouseUp
4728         * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
4729           ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
4730         * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
4731           to the WebControl object to pass to new collection objects
4732         * HtmlHistory.cs: Implement support for individual window histories.
4733         * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
4734           AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
4735           GotFocus, LostFocus, OnLoad, OnUnload
4736         * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
4737           ContextMenu
4738         * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
4739           security level changes and context menu event support.
4740
4741 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4742
4743         * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
4744         as happens with Esc, patch my Andy Hume.
4745         Fixes #396294.
4746
4747 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4748
4749         * MdiWindowManager.cs: DrawMaximizedButtons now uses
4750         ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
4751         * Theme.cs: Made MenuButtonSize platform dependent. Added
4752         ManagedWindowButtonSize.
4753         * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
4754         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
4755
4756 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4757
4758         * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
4759         Added support for rendering with VisualStyles.
4760
4761 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4762
4763         * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
4764         support for rendering the border with VisualStyles.
4765
4766 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4767
4768         * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
4769         the icon is not shown.
4770         * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
4771         its own logic.
4772
4773 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4774
4775         * InternalWindowManager.cs: Draw minimized windows even if they don't have
4776         borders.
4777
4778 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
4779
4780         * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
4781
4782 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
4783
4784         * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
4785         [Fixes bug #397943]
4786
4787 2008-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4788
4789         * ComboBox.cs: When snaping height -because of IntegralHeight set to
4790         true- with ComboBoxStyle.Simple, set the height to PreferredHeight
4791         if the requested height leaves the listbox area with *less* than the
4792         required are to see one item. We were setting it to PreferredHeight
4793         even for values matching the height for a single item.
4794         Fixes #396297.
4795
4796 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
4797
4798         * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
4799
4800 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
4801
4802         * DataGridViewCell.cs: Use property instead of field.
4803
4804 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4805
4806         * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
4807         null checks.
4808
4809 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4810
4811         * Theme.cs: Added #region around the managed window code. Made the managed
4812         window methods abstract.
4813         * ThemeWin32Classic.cs: Added #region around the managed window code.
4814
4815 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4816
4817         * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
4818         if it has borders.
4819         * ThemeWin32Classic.cs: Removed HasBorders checks in
4820         DrawManagedWindowDecorations.
4821
4822 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4823
4824         * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
4825         Extracted ManagedWindowGetTitleBarIconArea.
4826
4827 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
4828
4829         * DataGridViewCellStyle.cs: Don't clone the font.
4830
4831 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
4832
4833         * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
4834
4835 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4836
4837         * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
4838         also on 64 bit machinges. Fixes the BadWindow errors while scrolling
4839         in 64 bit machines.
4840
4841 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
4842
4843         * DataGridViewCell.cs: Correctly get converters for FormattedValue.
4844         Use Format/FormatProvider before trying converters.
4845         * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
4846         are 'set'.  Change constructor to not use ApplyStyle since it wants
4847         everything applied.  Clone the Font.
4848         * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
4849         ApplyStyle the rest.
4850
4851 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4852
4853         * ListView.cs: We need to calculate the scrollbars even if the handle
4854         hasn't been created - this is needed when methods using scrollbars
4855         info, such EnsureVisible, are called before control has been created.
4856         Fixes #397272.
4857
4858 2008-06-05  George Giolfan  <georgegiolfan@yahoo.com>
4859
4860         * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
4861         only if the elements are defined. 
4862
4863 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4864
4865         * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
4866         section. Also, when setting bounds, snap height as well as save the
4867         requested height if Dock has any value affecting the height: Left,
4868         Right and Bottom - important if using IntegralHeight as true.
4869
4870 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4871
4872         * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
4873         passed to SetBounds to reflect the new adjusted height (Integral-wise), 
4874         instead of doing that only in our SetBoundsCore override, since the 
4875         bounds cached can be the same as saved one and we could not get the
4876         new height applied.
4877         Fixes #396297.
4878
4879 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4880
4881         * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
4882         * XplatUI.cs: Added ToolWindowCaptionButtonSize.
4883         * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
4884         ToolWindowCaptionButtonSize.
4885         * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
4886
4887 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4888
4889         * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
4890         hard coded values.
4891         * Theme.cs: Made DoubleClickTime plaform dependent.
4892
4893 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4894
4895         * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
4896         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
4897         ToolWindowCaptionHeight.
4898
4899 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4900
4901         * InternalWindowManager.cs: The adjustment to ensure positive client area
4902         sizes is now platform dependent (disabled on Windows).
4903         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
4904         RequiresPositiveClientAreaSize.
4905
4906 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4907
4908         * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
4909
4910 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4911
4912         * InternalWindowManager.cs: Changed IconicSize to use
4913         SystemInformation.MinimizedWindowSize.
4914         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
4915         * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
4916
4917 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4918
4919         * ComboBox.cs: If the combobox is anchored both on top and bottom,
4920         adjust height if IntegralHeight is true when calling SetBoundsCore (as
4921         likely the height was modified even if Height wasn't specified in
4922         BoundsSpecified parameter).
4923         Fixes part of #396297.
4924
4925 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com> 
4926
4927         * InternalWindowsManager.cs: Changed minimum window size while resizing to
4928         SystemInformation.MinWindowTrackSize.
4929         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
4930         * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
4931
4932 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
4933
4934         * MenuItem.cs: Fixed Dispose.
4935
4936 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
4937
4938         * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
4939         * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
4940         EnteredHeaderCell, PressedHeaderCell: Added.
4941         * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
4942         * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
4943         theme a chance to override default painting.
4944         * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
4945         GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
4946         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
4947         ListView and DataGridView header rendering.
4948         
4949 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
4950
4951         * RichTextBox.cs: GetPositionFromCharIndex should return the 
4952         visual position of the character relative to the viewport.
4953         [Fixes part of bug #396664]
4954
4955 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
4956
4957         * GridEntry.cs: Make HasCustomEditor check for EditStyle != None 
4958         and not just for the existance of an UITypeEditor. In some cases 
4959         there is an editor associated just to do PaintValue, but which 
4960         doesn't actually support editing.
4961         [Fixes bug #396632]
4962
4963 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4964
4965         * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
4966         if needed, instead of 0 - this should help us in the corner case where
4967         we have more than one item but we are only partially showing 1 item.
4968         Fixes part of #374713.
4969
4970 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4971
4972         * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
4973         control, return immediately if the any parent control's handle hasn't
4974         been created or isn't visible, as well as avoiding creating the parent
4975         Form if the handle hasn't been previously created.
4976         Fixes tests.
4977
4978 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
4979
4980         * TableLayoutPanel.cs: Use border sizes when calculating the
4981         panel's preferred size.  [Fixes part of bug #396433]
4982
4983 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
4984
4985         * SplitContainer.cs:
4986          - Fix SplitterDistance to update only if needed. 
4987          - Make it force min and max validation.
4988          - Handle properly mouse moves outside the resizeable area.
4989          [Fixes bug #396232]
4990
4991 2008-06-02  Andreia Gaita <avidigal@novell.com> 
4992
4993         * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
4994           (which also suppresses all popup dialogs). Throw NotSupported
4995           exceptions for activex getters/setters.
4996         * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
4997           IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
4998           StatusText, Version, GoSearch
4999         * HtmlDocument.cs: Add DocType support
5000
5001 2008-06-02  Andy Hume  <andyhume32@yahoo.co.uk>
5002
5003         * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
5004         [Fixes bug 396124]
5005
5006 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
5007
5008         * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
5009
5010 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
5011
5012         * TableLayoutPanel.cs: When calculating preferred size, use the
5013         actual number of columns and rows, not what the user set them to.
5014         [Fixes bug #396141]
5015
5016 2008-06-02  George Giolfan <georgegiolfan@yahoo.com> 
5017
5018         * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
5019         394311.
5020
5021 2008-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5022
5023         * XplatUIX11.cs: When detecting areas obscured in a control by other
5024         toplevel windows while scrolling, return if the control hasn't a 
5025         container form.
5026         Fixes some tests.
5027
5028 2008-05-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5029
5030         * XplatUIX11.cs: Properly detect the visible area of a control being
5031         scrolled (obscured by other winforms controls and any X toplevel
5032         windows), to mark as invalid the requested area to be scrolled that
5033         isn't visible and thus can't be copied.
5034         Fixes #324513.
5035
5036 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5037
5038         * ListBox.cs: Compute the precise amount to vertically scroll when
5039         using DrawMode.OwnerDrawVariable.
5040         Patch by jkeymer (j.keymer@gmx.net).
5041
5042 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5043
5044         * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox 
5045         to avoid setting an invalid value for the verticall scrollbar 
5046         when navigating items. And, duh, also remove my silly debug messages
5047         from previous commits.
5048         Fixes #374713.
5049
5050 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
5051
5052         * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and 
5053         make it MS compatible.
5054
5055 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
5056
5057         * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs: 
5058          - Allow the editing of entries even if their parent is read-only.
5059          - Do not render expandable properties read-only.
5060          - Refactor expansion checks form PropertyGrid into PropertyGrid.
5061
5062 2008-05-30  George Giolfan <georgegiolfan@yahoo.com> 
5063
5064         * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
5065         support for the hover style.
5066
5067 2008-05-29  Andreia Gaita <avidigal@novell.com> 
5068
5069         * ContainerControl.cs: Check for null dead-end when traversing the tree
5070           of parent controls.
5071         
5072           [Fixes #394332, patch by Ernesto Carrea]
5073
5074 2008-05-29  Geoff Norton  <gnorton@novell.com>
5075
5076         * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
5077         constant that it is.  Fixes #393981
5078
5079 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
5080
5081         * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
5082         that the user probably doesn't want to set this.
5083
5084 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
5085
5086         * ThemeWin32Classic.cs: Don't let the text size be bigger than
5087         the control size for CheckBox/RadioBox.
5088         [Fixes part of bug #394645]
5089
5090 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
5091
5092         * PropertyGrid.cs: Update the state of the sorting buttons in 
5093         the toolbar if PropertySort is set programatically.
5094
5095 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
5096
5097         * GridItemCollection.cs: Add multiple items with conflicting names 
5098         support and also preserve name ordering.
5099         [Fixes #395345]
5100
5101 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
5102
5103         * GridItemCollection.cs: Revert my multiple items with same 
5104         name patch.
5105
5106 2008-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5107
5108         * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
5109         or middle ones.
5110         Fixes part of #393908.
5111
5112 2008-05-28  Jonathan Pobst  <monkey@jpobst.com>
5113
5114         * ToolStripDrowDown.cs: When using the Show () methods that have a
5115         Control parameter, set the menu owner to that Control.
5116         [Fixes bug #394345]
5117
5118 2008-05-28  Ivan N. Zlatev  <contact@i-nz.net>
5119
5120         * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
5121         [Fixes bug #362756]
5122
5123 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
5124
5125         * GridItemCollection.cs: Refactor to support multiple items with the 
5126         same name.
5127         [Fixes bug #394314]
5128
5129 2008-05-27  Jonathan Pobst  <monkey@jpobst.com>
5130
5131         * Control.cs: The 2.0 check for illegal cross thread calls in 
5132         Control.Handle were throwing an exception when we were getting
5133         the Handle in order to invoke correctly.  Created a private
5134         version that does not contain this check.
5135         [Fixes bug #394531]
5136
5137 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
5138
5139         * PropertyGrid.cs: Respect DefaultTabType.
5140
5141 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
5142
5143         * ListView.cs: SPACE selects an item.
5144         [Fixes bug #393023]
5145
5146 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
5147
5148         * ListView.cs: Reset the search string whenever the items are 
5149         modified.
5150         [Fixes bug #393020]
5151
5152 2008-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5153
5154         * ListControl.cs: For the first added item PositionChanged is fired
5155         _before_ ItemChanged, which leave us in a temporary invalid state - so
5156         we need to set the selected index from ItemChanged handler *if* we
5157         know that the first item has just been added *and* the items have been
5158         actually added to the ListControl.
5159         Fixes #369048.
5160
5161 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5162
5163         * TabControl.cs: Only clicks with the left button should be
5164         handled.
5165         Fixes #393908.
5166
5167 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5168
5169         * ComboBox.cs: 
5170         * FIleDialog.cs:
5171         * TextBox.cs: Expose an internal method in TextBox to restore the
5172         original context menu, and call it from ComboBox to re-use it in the
5173         combobox containing the file name in FileDialog.cs.
5174         Fixes part of #393775.
5175
5176 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
5177
5178         * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
5179         style.
5180
5181 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
5182
5183         * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
5184         down button style.
5185
5186 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5187
5188         * ComboBox.cs: Minor correction to previous patch: PageDown should
5189         also *try* to move by one item if the computed offset is negative,
5190         just like the PageUp case.
5191
5192 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5193
5194         * ComboBox.cs: When navigating using PageDown/PageUp the navigation
5195         should be done for at least 1 item, and not stay at the same item.
5196         Fixes part of #374713.
5197
5198 2008-05-23  Jonathan Pobst  <monkey@jpobst.com>
5199
5200         * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
5201         directories.  [Fixes bug #393931]
5202
5203 2008-05-22  Andreia Gaita <avidigal@novell.com> 
5204
5205         * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
5206           Don't fire events until the initial about:blank page has finished
5207           loading. Clean up events.
5208
5209 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
5210
5211         * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
5212           FocusIn() too. This should fix the issue on switching
5213           scim keyboards.
5214
5215 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
5216
5217         * X11Keyboard.cs : set XIM font size to somewhat reasonable
5218           number (ideally the input textbox size, but that could be
5219           too messy).
5220
5221 2008-05-22  Jonathan Pobst  <monkey@jpobst.com>
5222
5223         * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
5224         the ToolStripItem's TextChanged.  [Fixes bug #393597]
5225
5226 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5227
5228         * TabControl.cs: When invalidating in SelectedIndex and we need to
5229         inflate to take into account the border of the tabs, make sure that
5230         the invalidated rect doesn't overflow the control bounds, since that
5231         would avoid updating at all.
5232
5233 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5234
5235         * TabControl.cs: Don't substract scroller width from the row width,
5236         since we need to take into account the total width of the control when
5237         calculating the position of the tabs. This avoids showing scroller
5238         when it is actually not needed.
5239         Fixes part of #322325.
5240
5241 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5242
5243         * ThemeVisualStyles.cs: Added support for TextBoxBase.
5244
5245 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5246
5247         * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
5248         Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
5249
5250 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
5251
5252         * DataGridView.cs: Only paint the top left header cell if there
5253         are columns.
5254
5255 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
5256
5257         * DataGridView.cs: When binding to a BindingSource, get the underlying
5258         list to bind to.  [Fixes bug #345483]
5259
5260 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
5261
5262         * DataGridView.cs: Do not bind to collection properties.
5263         [Fixes bug #337470]
5264
5265 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5266
5267         * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
5268
5269 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5270
5271         * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
5272         thumb style.
5273
5274 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5275
5276         * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
5277
5278 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5279
5280         * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
5281         background.
5282
5283 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5284
5285         * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
5286
5287 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5288
5289         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
5290         checked styles.
5291
5292 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5293
5294         * TabControl.cs: Extended to handle the hot style.
5295
5296 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5297
5298         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
5299         Extended UpDownBase code to handle hot and disabled styles.
5300
5301 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5302
5303         * DataGridView.cs: Handle databinding to generic list type things.
5304         [Fixes bug #325239]
5305
5306 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5307
5308         * DataGridViewCellCollection.cs: Add a method to find the cell
5309         with the given DataPropertyName.
5310         * DataGridViewColumn.cs: Track if the column was autogenerated or not.
5311         * DataGridViewColumnCollection.cs: Add a method to clear all
5312         autogenerated columns.
5313         * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
5314         columns.
5315         [Fixes bug #348082]
5316
5317 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5318
5319         * DataGridView.cs: Don't try to update the RowTemplate with
5320         a null CellTemplate.
5321
5322 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5323
5324         * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
5325         * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
5326         * DataGridView.cs: Lots of fixes/enhancements to databinding to
5327         a DataSet.
5328
5329 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5330
5331         * Control.cs: Remove invalidating implicit child controls when
5332         control is invalidated.  It was causing too many redraws on
5333         controls with implicit scrollbars.
5334         * ListView.cs: Listen to the Invalidated event and invalidate
5335         child controls.
5336
5337 2008-05-20  Andreia Gaita <avidigal@novell.com> 
5338
5339         * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
5340         * HtmlDocument.cs: Check for nulls
5341
5342 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5343
5344         * Control.cs: In ControlCollection.RemoveInternal, remove the
5345         internal control before calling PerformLayout and OnControlRemoved,
5346         which was leaving us in an invalid state and causing a X error (bad
5347         match). Observe that Remove () call has the same order.
5348         Fixes an X error changing ComboBoxStyle.DropDownStyle.
5349
5350 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5351
5352         * TabControl.cs: Don't paint by ourselved and instead let OnPaint
5353         being fired if ControlStyles.UserPaint style is activated.
5354         Fixes #371905.
5355
5356 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
5357
5358         * GridEntry.cs: Don't be so strict when setting the value - 
5359         do not check if what we set is what we get.
5360         [Fixes bug #389245]
5361
5362 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
5363
5364         * XplatUIX11.cs: If there are no timers timeout should be 0
5365         [Fixes bug #363522]
5366
5367 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
5368
5369         * Control.cs: As a followup to invalidating implicit children when
5370         a control is invalidated, only invalidate them if they are in the
5371         clip rectangle.
5372
5373 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5374
5375         * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
5376
5377 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5378
5379         * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
5380
5381 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5382
5383         * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
5384         * XplatUIWin32.cs: Made Win32DeleteObject public.
5385
5386 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
5387
5388         * GridEntry.cs: Determine HasDefaultValue more strictly by using 
5389         PropertyDescriptor.ShouldSerializeValue.
5390         [Fixes bug #391924]
5391
5392 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5393
5394         * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
5395         in the classic theme.
5396
5397 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5398
5399         * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
5400         ThumbPressed.
5401         * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
5402         ScrollBarHasPressedThumbStyle.
5403
5404 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5405
5406         * TextRenderer.cs: Included some methods in the 1.1 profile.
5407
5408 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
5409
5410         * Control.cs: When we make a control visible, it may have been
5411         previously visible and while it wasn't visible, the z-order of
5412         things may have been shuffled, so the control needs to have its
5413         z-order updated just in case.  [Fixes bug #391518]
5414
5415 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5416
5417         * ThemeVisualStyles.cs: Added support for GroupBox.
5418
5419 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5420
5421         * GroupBoxRenderer.cs: Included in the 1.1 profile.
5422
5423 2008-05-16  Atsushi Enomoto  <atsushi@ximian.com>
5424
5425         * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
5426           bug #389996; XSelectInput() behaved as mouse handler robber,
5427           so remove extra call to it.
5428
5429 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5430
5431         * Control.cs: Simplify ControlCollection.Contains method.
5432
5433 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5434
5435         * DataGridViewRow.cs: Implement GetPreferredSize.
5436
5437 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5438
5439         * DataGridViewComboBoxCell.cs: Don't declare text twice.  Fixes build.
5440
5441 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5442
5443         * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
5444         painting and edit control fixes.
5445
5446 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5447
5448         * DataGridView.cs, DataGridViewCell.cs: Work around some external
5449         checks to make sure we are in an actual row/col for top left header cell.
5450         * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
5451
5452 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5453
5454         * Control.cs: Use long instead of int when handling WParam from
5455         mousewheel scrolling.  Int was overflowing on Win64.
5456
5457 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5458
5459         * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
5460         flow panel without scrolling first, and then calculate the 
5461         scrolling based on the new layout.  [Fixes bug #390149]
5462
5463 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5464
5465         * ListBox.cs: Invalidate after scrolling up when selected index
5466         changes.  [Fixes bug #390151]
5467
5468 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5469
5470         * ComboBox.cs: When setting mode to Simple *and* height hasn't been
5471         set, default height to 150. I tried first with DefaultSize, but this
5472         is not generating a SetBoundsCore call before handle creation time, so
5473         we can take it into account. This is just what .net does.
5474
5475 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
5476
5477         * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
5478         as it broke some stuff.  Calberto is filing a bug for eno to
5479         work with.
5480
5481 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5482
5483         * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
5484         to 0 is the current value is -1, and if style is not Simple, just
5485         return, like .net does.
5486         Fixes part of #374713.
5487
5488 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
5489
5490         * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
5491         progress bar stuffs, use doubles instead of ints to prevent
5492         overflow.  [Fixes bug #389798]
5493
5494 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
5495
5496         * XplatUIX11.cs, X11Keyboard.cs :
5497           Significant refactoring on XIM support. Now IM engine UI
5498           should show up, at mostly-correct preedit position.
5499           - Eliminated use of FocusWindow, as it is never mapped
5500             and hence blocks correct preedit position. XIC is now
5501             created per window, and it must be destroyed too when
5502             the window is destroyed.
5503           - WM_QUIT messages should not be filtered even when hwnd
5504             is zombie. Filtering it could cause endless loop.
5505           - Preedit position must move only when the window is alive.
5506           - Make it IDisposable and make sure to release XIM/XICs.
5507
5508 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
5509
5510         * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
5511           XplatUIX11.cs, XplatUIWin32.cs :
5512           fix for bug #325033 and #387693;
5513           - WM_QUIT should not be sent when no running application
5514             exists.
5515           - SetTimer/KillTimer (especially on win32) should be
5516             invoked for the window that the timer is/will_be attached.
5517           - There could be unattached timers to a window when it's
5518             started. For those timers, hold pending timers and when
5519             a window is mapped, attach them to it.
5520           - WaitForHwndMessage() could run into loop when
5521             WM_SHOWWINDOW is handled before this method is called.
5522             So, strictly check wm_showwindow state.
5523           - Tick handler should not be invoked while one Tick handler
5524             call is still running (introduced Busy state).
5525
5526 2008-05-13  Andreia Gaita <avidigal@novell.com> 
5527
5528         * WebBrowserBase.cs: Override Internal alternative methods for
5529           SetBoundsCore and OnResize instead of the protected ones.
5530         * Control.cs: Move SetBoundsCore and OnResize implementations to
5531           SetBoundsCoreInternal and OnResizeInternal, so they can be
5532           overriden internally (WebBrowserBase needs to catch them but can't
5533           override the protected methods without api compat problems)
5534
5535 2008-05-13  Andreia Gaita <avidigal@novell.com> 
5536
5537         * WebBrowserBase.cs: Hiding away non-public overrides for api compat
5538
5539 2009-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5540
5541         * Binding.cs:
5542         * ListView.cs: Remove debug messages.
5543
5544 2008-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5545
5546         * ComboBox.cs: Don't do any calculation for simple mode if the listbox
5547         area is empty. Also calculate scrollbars in Simple mode based in area
5548         height and total number of items, not in MaxDropDownItems.
5549         Fixes part of #371991.
5550
5551 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5552
5553         * PictureBox.cs: Always invalidate on resize.  Fixes an app for jhill.
5554
5555 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5556
5557         * BindingSource.cs: GetListSortDescription is not public.
5558
5559 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5560
5561         * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
5562
5563 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5564
5565         * HtmlElement.cs: Fix parameter names to match MS.
5566         * HtmlWindowCollection.cs: Should not be sealed.
5567
5568 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5569
5570         * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
5571         button, because the thumb button will not get drawn if the scrollbar
5572         is disabled.  [Fixes bug #389262]
5573
5574 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5575
5576         * ListBox.cs: Handle End key for multi-column listboxen.
5577         [Fixes bug #389266]
5578
5579 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5580
5581         * ListBox.cs: Fix algorithm to determine which column our item is in.
5582         [Fixes bug #389265]
5583
5584 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5585
5586         * ListBox.cs: Invalidate when the listbox is resized.
5587         [Fixes bug #389256]
5588
5589 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5590
5591         * ListBox.cs: There is always at least one row in the ListBox (if
5592         we are doing these calculations.)  [Fixes bug #389253]
5593
5594 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5595
5596         * ListBox.cs: There is always at least one column in the ListBox.
5597         [Fixes bug #389250]
5598
5599 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5600
5601         * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
5602         ensure in Simple mode that the height is exactly the requested one.
5603         Also add the ComboBoxListControl to the controls collection in Simple
5604         mode even if handle hasn't been created.
5605         Fixes part of #371991.
5606
5607 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5608
5609         * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
5610         our ComboBox owner instead of giving it back to the previous control (
5611         as done in other controls). Also remove the empty override of Select
5612         method, since we want to be selected *and* give focus to our owner.
5613         This should let the user do keys-navigation in Simple mode. 
5614
5615 2008-05-10  Geoff Norton  <gnorton@novell.com>
5616
5617         * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
5618         problems with rapid scrolling of treeviews. Fixes #381084
5619
5620 2008-05-10  Geoff Norton  <gnorton@novell.com>
5621
5622         * XplatUICarbon.cs: Deactivate the active window before
5623         activating the desired window.  Completes fixing #386504
5624
5625 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5626
5627         * ListView.cs: When calculating scrollbars, set horizontal scroll bar
5628         SmallChange to the item size width plus the padding, to match .net.
5629
5630 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5631
5632         * FileDialog.cs: Apply the custom filter typed by the user in the file
5633         name combobox as much as possible while navigating in the file dialog.
5634         Fixes #385261.
5635
5636 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5637
5638         * Binding.cs: Actually use NullValue if the retrieved value of
5639         data source is null or DBNull. Makes a test pass.
5640
5641 2008-05-09  Jonathan Pobst  <monkey@jpobst.com>
5642
5643         * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
5644         * MimeIcon.cs: Provide a way to get icons from resources.
5645
5646 2008-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5647
5648         * Binding.cs: When the value retrieved from the control to be assigned
5649         to the data source is null, actually use the 2.0 DataSourceNullValue
5650         value. Make pass a data binding test.
5651
5652 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
5653
5654         * Control.cs: We need to invalidate implicit children even when
5655         invalidate is called with invalidatechildren = false.  (Implicit
5656         children are really part of the parent.)
5657         * ListView.cs: Double-buffer internal child controls for less
5658         flicker.
5659         * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
5660         owner ListView subitems for greatly increased performance.
5661         [Fixes bug #388477]
5662
5663 2008-05-08  Carlos Alberto Cortez <calebrto.cortez@gmail.com>
5664
5665         * FileDialog.cs: When the user types a wildcard character in the
5666         filename combobox, update the contents of the folder using the text as
5667         a filter.
5668         Fixes part of #385261.
5669
5670 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
5671
5672         * ListBox.cs: Various fixes for MultiColumn listboxen.
5673         [Fixes bug #388114]
5674
5675 2008-05-08  Andreia Gaita <avidigal@novell.com> 
5676
5677         * HtmlElement.cs: Implement Style property
5678
5679 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
5680
5681         * ListBox.cs: Respect checkboxes when measuring item size.
5682         * ThemeWin32Classis.cs: When drawing list items, don't draw
5683         text outside of the item's bounds to prevent overlapping.
5684         (.Net actually overlaps, but that's just silly.)
5685         [Fixes bug #388117]
5686
5687 2008-05-08  Everaldo Canuto  <ecanuto@novell.com>
5688
5689         * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
5690         Gert Driesen. Fixes bug #324830. 
5691
5692 2008-05-07  Everaldo Canuto  <ecanuto@novell.com>
5693
5694         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
5695         method implemented.
5696
5697 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5698
5699         * BindingSource.cs: When calling IsSynchronized, return the value of
5700         the related IList list.
5701
5702 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5703
5704         * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
5705         make a test pass.
5706
5707 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
5708
5709         * DataGridView.cs: Implement PageUp/PageDown keys.  Extend keyboard
5710         navigation to scroll the grid if the current cell is not visible.
5711
5712 2008-05-07  Andreia Gaita <avidigal@novell.com> 
5713
5714         * HtmlElement.cs: Implement TabIndex
5715
5716 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
5717
5718         * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
5719         properties, even when there are no items.
5720         [Fixes bug #387611]
5721
5722 2008-05-07  Ivan N. Zlatev  <contact@i-nz.net>
5723
5724         * NativeWindow.cs: Add support for multiple handles per window.
5725         * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs, 
5726         XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection 
5727         directly - use FromHandle instead.
5728         [Fixes bug #374660]
5729
5730 2008-05-07  Andreia Gaita <avidigal@novell.com> 
5731
5732         * HtmlElement.cs: Implement InnerHTML setter
5733
5734 2008-05-07  Andreia Gaita <avidigal@novell.com> 
5735
5736         * HtmlDocument.cs: Implement Focused
5737
5738 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5739
5740         * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
5741         methods, as well as add messages to the exceptions.
5742
5743 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5744
5745         * BindingSource.cs: Setting DataSource should only reset DataMember if
5746         the previous value was null (make pass a not working test).
5747
5748 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5749
5750         * BindingSource.cs: When EndInit call is postponed and is called until
5751         DataSource.EndInit is called, remove the handler for data source.
5752
5753 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5754
5755         * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
5756
5757 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5758
5759         * ToolStripManager.cs: Store references to toolstrips as
5760         weak references so they do not prevent forms from getting collected.
5761         [Fixes bug #386483]
5762
5763 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5764
5765         * TrackBar.cs: We can't set ResizeRedraw because it isn't set
5766         on .Net.  So do the same thing in WndProc.
5767
5768 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5769
5770         * TrackBar.cs: Commit patch from Andy Hume that corrects
5771         the clickable areas to better match .Net.
5772         [Fixes bug #387074]
5773
5774 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5775
5776         * TrackBar.cs: Commit patch from Andy Hume that adds the
5777         ResizeRedraw control flag so the track bar repaints itself
5778         when it is resized.  [Fixes bug #387072]
5779
5780 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5781
5782         * TrackBar.cs: Commit patch from Andy Hume that adds better
5783         support for keyboard navigation when the TrackBar is vertical.
5784         [Fixes bug #387071]
5785
5786 2008-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5787
5788         * BindingSource.cs: Implement ISupportInitializeNotification support.
5789
5790 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
5791
5792         * ThemeVisualStyles.cs: Added support for ToolBar.
5793
5794 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
5795
5796         * ToolBar.cs: Made the Vertical property internal.
5797
5798 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5799
5800         * ThemeVisualStyles.cs: Added support for TrackBar.
5801
5802 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5803
5804         * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
5805         TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
5806         TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
5807         TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
5808         TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
5809         TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
5810
5811 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5812
5813         * ThemeVisualStyles.cs: Added support for UpDownBase.
5814
5815 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5816
5817         * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
5818         Extracted Theme.UpDownBaseDrawButton.
5819
5820 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
5821
5822         * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
5823         removed from the static toolstrips collection in ToolStripManager
5824         when they are disposed.  Provides a workaround for bug #386483.
5825
5826 2008-05-05  Ivan N. Zlatev  <contact@i-nz.net>
5827
5828         * GridEntry.cs: Read-only properties with Editor with 
5829         UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
5830         [Fixes bug #384184]
5831
5832 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
5833
5834         * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
5835         the menu key and there are no items on the menu.
5836         [Fixes bug #386644]
5837
5838 2008-05-05  Sebastien Pouliot  <sebastien@ximian.com>
5839
5840         * Control.cs: Avoid calling ToString on a string.
5841         * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
5842         * GroupBox.cs: In FlatStyle property throw, not just create, the 
5843         exception. Avoid calling ToString on a string.
5844         * ProgressBar.cs: Avoid calling ToString on a string. 
5845         * ScrollBar.cs: Avoid calling ToString on a string. 
5846         [All issues were found using Gendarme]
5847
5848 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
5849
5850         * NotifyIcon.cs: Prevent click events to be trigger after double click 
5851         events. Fixes remaining issues of bug #324832.
5852
5853 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
5854
5855         * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
5856         to mimic win32 behavior. Partially fixes bug #324832.
5857
5858 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5859
5860         * BindingSource.cs: Implement Find methods.
5861
5862 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5863
5864         * BindingSource.cs: Implement Sort, ApplySort overloads, and
5865         RemoveSort methods.
5866
5867 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5868
5869         * ListBindingHelper.cs: When calling GetListItemProperties and the
5870         passed object is ITypedList, return the result of
5871         ITypedList.GetItemProperties instead.
5872
5873 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5874
5875         * LinkLabel.cs: Set default value of name on constructor of Link class
5876         only for 2.0 profile.
5877
5878 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5879
5880         * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
5881         Fixes remaining issues of bug #346154.
5882
5883 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5884
5885         * LinkLabel.cs: Set a default value for name on internal contructor of
5886         Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
5887
5888 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5889
5890         * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
5891         and refer all instances to owner.links. Partially fixes #346154.
5892
5893 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5894
5895         * LinkLabel.cs: Fix linkarea values for empty text, must have start and 
5896         length equal zero. Also called CreateLinkPieces in constructor. It fixes
5897         the LinkLabel test 'TestLinkArea'.
5898
5899 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5900
5901         * Form.cs: Remove menu before close form to prevent form to be not gaced.
5902         [Fixes #386460]
5903
5904 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5905
5906         * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
5907         [Fixes #386463]
5908
5909 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5910
5911         * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
5912         [Fixed bug #357004]
5913
5914 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5915
5916         * MenuAPI.cs: Remove unused ProcessCmdKey method.
5917
5918 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5919
5920         * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used. 
5921         [Fixes bug #375398]
5922
5923 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5924
5925         * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
5926         of bug #367492.
5927
5928 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5929
5930         * MenuAPI.cs: Check if mouse down comes from menu, we need it because
5931         sometimes we open a conext menu on mouse down of some controls and the mouse
5932         up is dispatched to menu and dont need to. It fix remaining issues of 
5933         #363711 and other problems related to menu mouse click events.
5934
5935 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
5936
5937         * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
5938         some var names to better fit changes, now we have month_menu and today_menu
5939         vars. Fixes bug #363711.
5940
5941 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
5942
5943         * MonthCalendar.cs: Handle every right mouse click to open context menu,
5944         right now the default month menu but it will be change to have "Go to today"
5945         menu.
5946
5947 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5948
5949         * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
5950
5951 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
5952
5953         * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
5954
5955 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5956
5957         * ThemeVisualStyles.cs: Added support for TreeView.
5958
5959 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5960
5961         * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
5962         Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
5963
5964 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5965
5966         * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
5967
5968 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5969
5970         * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
5971         Implement 2.0 SP1 stuffs.
5972
5973 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5974
5975         * FileDialog.cs: Implement 2.0 SP1 stuffs.
5976
5977 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5978
5979         * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
5980         Implement CanEnableIme property. (2.0 SP1)
5981
5982 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5983
5984         * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
5985         from the 2.0 API.
5986
5987 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5988
5989         * Control.cs: Provide an internal way for a control to override
5990         the setting of Height.
5991         * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
5992         set height using new method.
5993
5994 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5995
5996         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
5997
5998 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5999
6000         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
6001         ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
6002
6003 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
6004
6005         * ThemeVisualStyles.cs: Added support for StatusBar.
6006
6007 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6008
6009         * DataObject.cs: Add the other IDataObject interface.
6010
6011 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
6012
6013         * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
6014         DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
6015
6016 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6017
6018         * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
6019         * ListView.cs: Hide non-public API.
6020         * MaskedTextBox.cs: Remove extra attribute.
6021
6022 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6023
6024         * DataGridViewImageCell.cs: Use formatted value instead of value
6025         to calculate preferred size.
6026
6027 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
6028
6029         * ListBox.cs: Move some initialization around so that selected_indices
6030         is not accessed before it is created.
6031
6032 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
6033
6034         * InputLanguageCollection.cs: Implement the collection better.
6035         [Fixes bug #385506]
6036
6037 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
6038
6039         * ToolStripDropDownItem.cs: Get the correct event object for
6040         DropDownItemClicked.
6041         * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
6042         [Fixes bug #385475]
6043
6044 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
6045
6046         * DataGridViewRowCollection.cs: We don't currently support shared 
6047         rows.  Should fix test failures caused by previous commit.
6048
6049 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
6050
6051         * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
6052         datagridview gets set.  Only paint cells in visible columns.
6053         * DataGridViewCell.cs: Draw border after cell content.
6054         * DataGridView.cs: Invalidate after setting some properties.  Only
6055         use visible columns.  Fit hit test bug with areas in the col/row header
6056         area but not in a row or col.  Implement UpdateCell/Row methods.
6057
6058 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
6059
6060         * DataGridViewElement.cs: Don't throw NIEX.
6061         * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
6062         * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
6063         * DataGridViewCheckBoxColumn.cs: Implement ToString.
6064         * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
6065         * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
6066         if the user filled in the formatting Value, use it.
6067
6068 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
6069
6070         * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
6071         to a string.
6072
6073 2008-04-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6074
6075         * BindingSource.cs: Some corrections to Filter property, as well as
6076         setting it for our list when resetting it.
6077
6078 2008-04-29  Jonathan Pobst  <monkey@jpobst.com>
6079
6080         * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
6081         than the maximum.  Fixes reopened bug #384182.
6082
6083 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6084
6085         * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
6086         Fixes remaining issues of #367490.
6087
6088 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6089
6090         * ToolStripDropDown.cs: Screen.Bound dont return right value then use 
6091         SystemInformation.WorkingArea to get max_screen value.
6092
6093 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6094
6095         * BindingSource.cs: Implement Filter and RemoveFilter.
6096
6097 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6098
6099         * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
6100
6101 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6102
6103         * X11Dnd.cs: When trying to convert data and we know we started the
6104         dnd loop, don't try to use the cached data if the loop is not running,
6105         which means that the data has been resetted.
6106         Fixes #378191.
6107
6108 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6109
6110         * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
6111         win32 behavior.
6112
6113 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6114
6115         * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
6116         it to drawn off screen edge. Fixes bug #367490.
6117
6118 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6119
6120         * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
6121         menu position to have only one assignment of Location var.
6122
6123 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6124
6125         * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
6126         for this patch. Fixes bug #384115.
6127
6128 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
6129
6130         * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
6131         the same.  If LargeChange is zero, set a minimum size for the scroll
6132         thumb grip.  [Fixes bug #384182]
6133
6134 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
6135
6136         * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
6137         [Fixes bug #384181]
6138
6139 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
6140
6141         * ListBox.cs: Math.Min should be Math.Max.  [Fixes bug #384183]
6142
6143 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6144
6145         * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
6146         patch from Ernesto).
6147
6148 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6149
6150         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
6151
6152 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6153
6154         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
6155
6156 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6157
6158         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
6159
6160 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6161
6162         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
6163
6164 2008-04-27  George Giolfan  <georgegiolfan@yahoo.com>
6165
6166         * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
6167
6168 2008-04-27  Andreia Gaita <avidigal@novell.com> 
6169
6170         * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
6171           supposed to return a reference to an mshtml interface, which we
6172           don't support).
6173         * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
6174           reference to an mshtml interface, which we don't support). Code
6175           formatting cleanup.
6176         * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
6177           DomDocument getter (it's supposed to return a reference to an
6178           mshtml interface, which we don't support). Code formatting cleanup.
6179
6180 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6181
6182         * ListView.cs: Ouch, forgot to commit.
6183
6184 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6185
6186         * ListView.cs: 
6187         * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
6188
6189 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6190
6191         * ListView.cs: When calculating box selection for virtual mode, don't
6192         look for intersection with item's text, but item bounds, since that
6193         would mean read ListViewItem's text for _every_ item, and that's
6194         something we just can't do in virtual mode (items are only requested
6195         when drawn).
6196
6197 2008-04-26  George Giolfan  <georgegiolfan@yahoo.com>
6198
6199         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
6200         partial support for managed windows (based on the patch from Ernesto).
6201
6202 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6203
6204         * ListView.cs: When doing a key search use FindItemWithText method
6205         instead of doing the search by ourselves, this way we avoid
6206         duplicating the code and also we handle the special case for virtual
6207         mode. To achieve that make our private overload of FindItemWithText
6208         internal and also have a 'roundtrip' parameter.
6209
6210 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6211
6212         * ListView.cs: When doing the layout don't request the
6213         ListViewItem instance if we are in virtual mode (since we can't request it
6214         until the item is actully drawn).
6215
6216 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6217
6218         * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch 
6219         from Ernesto).
6220
6221 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6222
6223         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on 
6224         the patch from Ernesto).
6225
6226 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6227
6228         * ThemeEngine.cs: Added code to select ThemeVisualStyles.
6229         * ThemeVisualStyles.cs: Added.
6230
6231 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6232
6233         * IDeviceContext.cs: Added a missing using.
6234
6235 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6236
6237         * ButtonBase.cs: Made IsDefault protected internal.
6238         * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
6239
6240 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6241
6242         * Application.cs: Included VisualStyles-related members in the 1.1 profile.
6243         * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
6244         RadioButtonRenderer.cs: Included in the 1.1 profile.
6245         * IDeviceContext.cs: Added.
6246         * TextRenderer.cs: Included a member in the 1.1 profile.
6247
6248 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6249
6250         * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
6251
6252 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
6253
6254         * ErrorProvider.cs: Make the error icons come after the control
6255         they refer to.  It isn't the way the MS does it, but its better
6256         than what we were doing.  See bug #368587.
6257
6258 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
6259
6260         * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
6261         from Eric Albright that lazy loads the input language as ensures
6262         everything gets properly initialized.  Fixes bug #373871.
6263
6264 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
6265
6266         * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
6267         implicit mnemonics.  [Fixes bug #383000]
6268
6269 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6270
6271         * X11Dnd.cs: When canceling the operation, automatically restore the
6272         default cursor - normally the default cursor is restored when the
6273         mouse buttons are released, but we should be able to restore it even
6274         if the buttons are still pressed (for example, when pressing ESC to
6275         cancel).
6276         Fixes #381894.
6277
6278 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6279
6280         * X11Dnd.cs: When starting a new drad and drop operation, set control
6281         field to null, just as the other fields, to avoid calling any
6282         operation on a previous control. Also, when calling DndLeave on a
6283         control, set it to null, thus we don't fire that event multiple times
6284         for that control.
6285         Fixes #209264.
6286
6287 2008-04-23  Geoff Norton  <gnorton@novell.com>
6288
6289         * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
6290         the whole_window object.  Fixes #377084.
6291
6292 2008-04-23  Andreia Gaita <avidigal@novell.com> 
6293
6294         * HtmlElement.cs: Implement RaiseEvent (event injection into the
6295           embedded browser)
6296
6297 2008-04-23  Jonathan Pobst  <monkey@jpobst.com>
6298
6299         * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
6300
6301 2008-04-23  Andreia Gaita <avidigal@novell.com> 
6302
6303         * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
6304           invocation
6305
6306 2008-04-23  Andreia Gaita <avidigal@novell.com> 
6307
6308         * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
6309           attaching/detaching
6310
6311 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6312
6313         * X11Dnd.cs: When the drop was cancelled, or could just not be
6314         performed, return DragDropEffect.None always (match .net).
6315
6316 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
6317
6318         * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
6319
6320 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
6321
6322         * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
6323
6324 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
6325
6326         * DataGridView.cs: Add support for error icon tool tips.
6327         * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
6328         * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
6329
6330 2008-04-22  Ivan N. Zlatev  <contact@i-nz.net>
6331
6332         * X11Structs.cs: Add mouse button masks enum.
6333         * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and 
6334         WM_EXITSIZEMOVE only once at the beginning and at the end of the 
6335         form resize/move operation instead of for each step of it.
6336         [Fixes bug #346529 for the x11 backend]
6337
6338 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6339
6340         * DataGridView*: Implement support for drawing error icons.
6341
6342 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6343
6344         * TreeView.cs: Make vbar and hbar internal.
6345         * TreeNode.cs: If collapsing the node removes one of the TreeView's
6346         scrollbars, invalidate the whole thing.
6347         [Fixes bug #382001]
6348
6349 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6350
6351         * TreeView.cs: Calling Sort() sets Sorted = true.
6352         * TreeNodeCollection.cs: Try to find the owner TreeView to determine
6353         if the nodes need to be sorted.
6354         [Fixes bug #382028]
6355
6356 2008-04-21  Ivan N. Zlatev  <contact@i-nz.net>
6357
6358         * Form.cs: Fire SizeChanged for both when the form is minimized and 
6359         restored.
6360         * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it 
6361         on PropertyNotify of _NET_WM_STATE. Much much cleaner.
6362
6363 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6364
6365         * ComboBox.cs: If the combobox is disabled, draw a disabled
6366         background before painting anything else.
6367         [Fixes bug #381729]
6368
6369 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6370
6371         * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
6372         forget to send a Leave event to the target window - just as .net does
6373         when cancelling dnd operations.
6374
6375 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6376
6377         * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
6378         soon as possible - this happens when we send the drop message to the
6379         target window. This way we avoid firing any DragOver _after_ drop finished.
6380         Fixes #378179.
6381
6382 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6383
6384         * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
6385         * Form.cs: Handle form minimization as a special state, where size doesn't 
6386         change, but we have to fire SizeChanged.
6387         [Fixes bug #325122 for the win32 and x11 backends]
6388
6389 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6390
6391         * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS 
6392         if the handle is disabled.
6393         [Fixes bug #371751]
6394
6395 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6396
6397         * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations) 
6398         for forms with FormBorderStyle.None.
6399         [Fixes bug #349571]
6400
6401 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6402
6403         * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and 
6404         WM_EXITSIZEMOVE.
6405         [Fixes bug #346529 for the X11 backend]
6406
6407 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6408
6409         * XplatUIX11.cs: 
6410           - Send a mouse Enter message after say dragging the mouse with a 
6411           button down and then release it in another client.
6412           - Reset the cursor to prevent X11 from remembering it and setting it 
6413           before the control gets WM_SETCURSOR.
6414           - Qeueue a mouse move after a mouse enter like win32.
6415           [Fixes bug #323234]
6416
6417 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6418
6419         * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND. 
6420         It's sent when the form gets moved, resized, closed.
6421         * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
6422         [Fixes bug #359193 for X11]
6423
6424 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6425
6426         * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes 
6427         the build.
6428
6429 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6430
6431         * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0 
6432         group. Fixes the 1.1 build.
6433
6434 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6435
6436         * ListView.cs: Use display indexes for selection in Details view, as
6437         well as do the proper layout based on display indexes for that view
6438         too.
6439
6440 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6441
6442         * ListView.cs: Focused item information is now stored as a display
6443         index, and display indexes are used all over the place for selection,
6444         instead of ListViewItem.Index values, which doesn't give us enough
6445         information to modify the selection in groups mode, and was broken.
6446
6447 2008-04-18  Ivan N. Zlatev  <contact@i-nz.net>
6448
6449         * Control.cs: Do not fire MouseDown if validation of the control has 
6450         failed.
6451         * Form.cs: Validate the form before closing.
6452         [Fixes bugs #330501 and #353310]
6453
6454 2008-04-18  Andreia Gaita <avidigal@novell.com> 
6455
6456         * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
6457           CreateWebBrowserSiteBase implementations
6458         * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
6459           Style and TabIndex setters
6460
6461 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6462
6463         * ListViewGroup.cs: When returning the actual item count, return the
6464         proper count for default group.
6465         Fix the tests.
6466
6467 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6468
6469         * ListView.cs:
6470         * ListViewGroup.cs: When calculating groups layout, get the actual
6471         number of items per group, since groups added to the group BUT not
6472         added to the ListView are just ignored, and can cause some nasty
6473         exceptions because of the lack of synchronization. Also for
6474         ListViewGroup don't use lazy initialization for items, since we 
6475         the common scenario is to use it always - and it helps us to  refactor
6476         and clean the .ctor overloads.
6477
6478 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6479
6480         * ListView.cs: When adding an item to a ListViewItemCollection
6481         belonging to a group (ListViewGroup.Items), don't generate a redraw if
6482         the added item hasn't beeen previously added to the ListView instance
6483         refered by the group, since it will be ignored. This should avoid some 
6484         really nasty flickering.
6485
6486 2008-04-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6487
6488         * ListView.cs: When accessing an item in a specific display
6489         position, use the helper method GetItemAtDisplayIndex, instead of
6490         direct access to the reordered_items_indices array. When doing layout
6491         for groups set the correct Items index for the display position (since
6492         in groups mode items don't have the same position as in Items
6493         collection).
6494         * ListViewGroup.cs: Add a field to store the starting item number,
6495         which is later used when calculating the layout.
6496
6497         Fixes #360805.
6498
6499 2008-04-17  Gert Driesen  <drieseng@users.sourceforge.net>
6500
6501         * Application.cs: Fixed ProductVersion to fallback to the assembly
6502         version. Fixes regression for bug #325413.
6503
6504 2008-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6505
6506         * ListView.cs: New helper method to retrieve an item in a _specific
6507         display_ position (the items can be displayed in a different order
6508         than one of Items collection).
6509         * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
6510         collection, use ListView.GetItemAtDisplayIndex, to get an item in a
6511         specific display position (again remember that items can be sorted
6512         different than Items).
6513
6514 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
6515
6516         * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
6517         list and update it when the collection changes.  We were recreating
6518         this several times per row paint and for every pixel the mouse moved
6519         across the grid.
6520         * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
6521         changes.
6522
6523 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
6524
6525         * DataGridViewColumnCollection.cs: Convert our internal sorted columns
6526         list to use generics.
6527         * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
6528         and remove unneccessay casts.
6529
6530 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
6531
6532         * DataGridViewBand.cs: Add internal way to set displayed variable.
6533         * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
6534         * DataGridView.cs: Make sure we always keep track of Displayed
6535         rows and columns, and only draw things that are displayed.
6536
6537 2008-04-16  Atsushi Enomoto  <atsushi@ximian.com>
6538
6539         * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
6540           whether the key events are filtered or not. Introduced
6541           PreFilter() process for this purpose. This fixes atokx3/iiimx
6542           shift state issue.
6543
6544 2008-04-16  Andreia Gaita <avidigal@novell.com> 
6545
6546         * HtmlHistory.cs: Implement Length property
6547
6548 2008-04-15  Jonathan Pobst  <monkey@jpobst.com>
6549
6550         * DataGridView.cs: Call EndEdit when a sort is performed so we take
6551         away the edit textbox.  Refactor to reuse column sort code.
6552
6553 2008-04-12  Everaldo Canuto  <ecanuto@novell.com>
6554
6555         * MenuAPI.cs: Remove the code that save and restore capture status of 
6556         grab_control, this fixes some Menu and Context menu bugs but maybe it can
6557         cause some others, I cant figure the possible problems of this patch but
6558         right now remove the code looks to be better than keep it. This patch fixes
6559         bugs #357638, #378721 and #379570.
6560
6561 2008-04-12  Andreia Gaita <avidigal@novell.com> 
6562
6563         * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
6564         Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
6565         add missing properties and event handlers.
6566         
6567 2008-04-14  Jonathan Pobst  <monkey@jpobst.com>
6568
6569         * ListBox.cs: Make sure the LargeChange we are setting is at least
6570         zero, to prevent an IOORE.  [Fixes bug #379531]
6571
6572 2008-04-13  Andy Hume <andyhume32@yahoo.co.uk>
6573
6574         * ComboBox.cs: Support item navigation by entering text.  Firstly, 
6575         in DropDownList mode, for each key-press select the next item 
6576         starting with that letter.
6577         For other modes, when no item selected, on arrow-up/-down and open 
6578         drop-down select the first item matching the text in the textbox.
6579
6580 2008-04-14  Atsushi Enomoto  <atsushi@ximian.com>
6581
6582         * X11Keyboard.cs : Control.FromHandle() could return null
6583           in MoveCurrentCaretPos().
6584
6585 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6586
6587         * ListView.cs: When changing the size in VirtualMode, also Reset the
6588         selection.
6589         * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
6590         changing selection info for VirtualMode.
6591         Fixes #372618.
6592
6593 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6594
6595         * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
6596         view, don't use LineLimit for the first item - use NoWrap *always*
6597         instead, since ListView.LabelWrap is not used for this view.
6598         Fixes #378054.
6599
6600 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6601
6602         * Binding.cs: Call UpdateIsBinding when setting control - probably
6603         Binding is already usable and we don't need to wait to check the
6604         IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
6605         Created, just like 2.0 does.
6606         * CurrencyManager.cs: I'm so lame - the previous check was wrong.
6607
6608 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6609
6610         * Binding.cs: Just realized we don't need to have a handler for
6611         BindingContextChanged, since this info should be now consumed directly
6612         in the BindingManagerBase. And also, the manager.IsBindingSuspended
6613         state info is checked directly, instead of caching it.
6614
6615         * CurrencyManager.cs: IsSuspended should return always false if Count
6616         == 0.
6617
6618 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6619
6620         * Binding.cs: When calling PushData, return if manager.Count == 0,
6621         since we just don't have data to be read. Also, when setting the
6622         Control for binding, hook up some events to refresh the IsBinding
6623         state when BindingContext change or control gets created; use
6624         Control.IsHandleCreated instead of Control.Created check to set
6625         IsBinding state - we *actually* need to modify IsBinding when control
6626         is created, but we don't have any Created event, only HandleCreated.
6627         Fixes part of #349364.
6628
6629 2008-04-11  Geoff Norton  <gnorton@novell.com>
6630
6631         * XplatUICarbon.cs: Expose Caret to the Carbon layer.  Guard against
6632         warping a null Caret.
6633
6634 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
6635
6636         * DataGridView.cs: Implement row/column autosizing methods. Implement
6637         autosorting.
6638         * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
6639         * DataGridViewRowCollection.cs: Add an internal sorting method.
6640
6641 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
6642
6643         * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
6644         value in ListView drawing code.
6645
6646 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
6647
6648         * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
6649         is clicked.  Respect the user setting Cancel in FileOk.
6650
6651 2008-04-11  Geoff Norton  <gnorton@novell.com>
6652
6653         * ListView.cs: Avoid setting and resetting control Width/Heights and
6654         calculate the final value and set it once.  Prevents a feedback loop
6655         on the mac.
6656
6657 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
6658
6659         * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
6660         [Fixes bug #378869]
6661
6662 2008-04-10  Atsushi Enomoto  <atsushi@ximian.com>
6663
6664         * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
6665           Add some on-the-spot code, but it seems we don't need it.
6666
6667 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
6668
6669         * Form.cs: Add method for DataGridView to trigger focus cues
6670         even when it handles the tab keypress.
6671
6672 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
6673
6674         * DataGridView.cs: More keyboard handling, tab, esc.
6675         * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
6676         when at the beginning or end of the text in the text box.
6677
6678 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6679
6680         * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
6681
6682 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6683
6684         * DataGridView.cs: Some fixups for showing and adding the edit control.
6685         * DataGridViewButtonColumn.cs: Implement ToString.
6686         * DataGridViewCell.cs: Size and position the control simultaneously.
6687         * DataGridViewTextBoxCell.cs: Use base to position control.
6688
6689 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6690
6691         * DataGridViewCell.cs: Fix up some formatting and painting code.
6692         * DataGridViewImageCell.cs: Implement some NIEX methods.
6693
6694 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6695
6696         * ToolStripItemCollection.cs: What moving an item from one owner
6697         to another, remove from source owner before adding to destination.
6698         [Fixes bug #378109]
6699
6700 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6701
6702         * PictureBox.cs: Call Load when ImageLocation is set.
6703         [Fixes bug #378308]
6704
6705 2008-04-09  Atsushi Enomoto  <atsushi@ximian.com>
6706
6707         * X11Keyboard.cs, XplatUIX11.cs :
6708           Implement over-the-spot mode (with some odd offsets).
6709           - set preedit position when caret is set.
6710           - Wrap XMoveResizeWindow() to move preedit position.
6711
6712 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
6713
6714         * X11keyboard.cs: Fix last patch, maxval must be less not greater than
6715         array lenght.
6716
6717 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
6718
6719         * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
6720         and ScanTableIndex public, it fix compilations errors when compiling
6721         WinForms to generate keyboard layout resources.
6722
6723 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
6724
6725         * X11keyboard.cs: Prevent keyboard errors when vitual table theres 
6726         different element count than scan table. It prevents some errors in non
6727         standard keyboards.
6728
6729 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
6730
6731         * DataGridViewHeaderCell.cs: Implement some NIEX methods.
6732
6733 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
6734
6735         * DataGridView.cs: Call OnContentClick.
6736         * DataGridViewCell.cs: Do a null check on ValueType instead
6737         of valueType.
6738         * DataGridViewCheckBoxCell.cs: Implement.
6739
6740 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
6741
6742         * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
6743
6744 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
6745
6746         * X11Keyboard.cs : Check XGetIMValues() return value in
6747           case it does not return input styles in some environment.
6748
6749 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
6750
6751         * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
6752
6753 2008-04-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6754
6755         * BindingContext.cs: Stub UpdateBinding method.
6756
6757 2008-04-07  Atsushi Enomoto  <atsushi@ximian.com>
6758
6759         * X11Structs.cs : added couple of structs for XIM support.
6760         * X11Keyboard.cs :
6761           Release XIM in case it failed to create XIC. 
6762           Use consts for XNblah string.
6763           Add support for IM style customization and XIC creation
6764           for preedit-position and preedit-callback.
6765           Right now use MONO_WINFORMS_XIM_STYLE environment variable
6766           (list of: over-the-spot | on-the-spot | root). Only root
6767           mode works so far.
6768
6769           (redoing r99172 with fix.)
6770
6771 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
6772
6773         * TreeView.cs: Center the checkbox a little better.
6774
6775 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
6776
6777         * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
6778         Apply very nice patch from Ernesto Carrea that simplifies our
6779         scrollbar drawing.  [From bug #376146]
6780
6781 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
6782
6783         * TreeView.cs: Correct the location of the root node checkbox when
6784         ShowRootLines = false.  Don't draw the root lines for the root node
6785         when ShowRootLines = false.  [Fixes bug #377535]
6786
6787 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
6788
6789         * WebBrowserBase.cs: Added missing attributes and fixed attributes.
6790         Fixed line endings.
6791         * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
6792         line endings.
6793         * MaskedTextBox.cs: Added missing attribute. Code formatting.
6794         * PageSetupDialog.cs: Added missing attribute. Code formatting.
6795         * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
6796         * ImeMode.cs: Added missing field.
6797         * HtmlWindow.cs: Code formatting. Fixed line endings.
6798         * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
6799         warnings.
6800         * HtmlHistory.cs: Code formatting. Fixed line endings.
6801         * HtmlDocument.cs: Code formatting. Fixed line endings.
6802         * ToolStripPanel.cs: Added missing IList implementation.
6803         * HtmlElementCollection.cs: Code formatting. Fixed line endings.
6804
6805 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
6806
6807         * BindingContext.cs: Changed argument names to fix corcompare errors.
6808         * DataGridView.cs: Removed extra explicit interface implementation
6809         of IDropTarget. Code formatting.
6810         * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
6811         * ComboBox.cs: Changed argument names to fix corcompare errors.
6812         * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
6813         errors.
6814         * GridColumnStylesCollection.cs: Changed argument names to fix
6815         corcompare errors. Removed extra tabs.
6816         * GridTableStylesCollection.cs: Changed argument names to fix corcompare
6817         errors.
6818         * Control.cs: Changed argument names to fix corcompare errors. Code
6819         formatting. Removed extra explicit IList implementation.
6820         * TextBox.cs: Changed argument names to fix corcompare errors. Code
6821         formatting. Use string.Empty instead of "".
6822         * GridItemCollection.cs: Changed argument names to fix corcompare
6823         errors. Code formatting.
6824         * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
6825         corcompare errors. Code formatting.
6826         * ImageList.cs: Changed argument names to fix corcompare errors.
6827         * ToolStripItem.cs: Changed argument names to fix corcompare errors.
6828         * DataGridViewRowCollection.cs: Changed argument names to fix
6829         corcompare errors. Code formatting.
6830         * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
6831         * DataGridViewSelectedCellCollection.cs: Changed argument names to
6832         fix corcompare errors. Code formatting.
6833         * DataGridViewComboBoxCell.cs: Changed argument names to fix
6834         corcompare errors. Code formatting.
6835         * LinkLabel.cs: Changed argument names to fix corcompare errors.
6836         * TreeNode.cs: Changed argument names to fix corcompare errors. Code
6837         formatting.
6838         * PropertyGrid.cs: Changed argument names to fix corcompare errors.
6839         Code formatting.
6840         * BindingSource.cs: Changed argument names to fix corcompare errors.
6841         Removed extra explicit interface implementations.
6842         * DataGridViewSelectedRowCollection.cs: Changed argument names to
6843         fix corcompare errors. Code formatting.
6844         * ToolStripItemCollection.cs: Removed extra explicit interface
6845         implementation of IList.ReadOnly.
6846         * DataGridViewColumnCollection.cs: Changed argument names to fix
6847         corcompare errors. Code formatting.
6848         * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
6849         * ListView.cs:  Changed argument names to fix corcompare errors.
6850         * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
6851         errors.
6852         * DataGridBoolColumn.cs: Changed argument names to fix corcompare
6853         errors.
6854         * ListBindingHelper.cs: Changed argument names to fix corcompare
6855         errors.
6856         * DataGridViewSelectedColumnCollection.cs: Changed argument names to
6857         fix corcompare errors. Code formatting.
6858         * ToolStripPanel.cs: Removed extra explicit implementation of
6859         IDropTarget interface.
6860         * ListBox.cs: Changed argument names to fix corcompare errors. Code
6861         formatting. Removed extra tabs and spaces.
6862         * DataGridViewCellCollection.cs: Changed argument names to fix
6863         corcompare errors.
6864         * Help.cs: Changed argument names to fix corcompare errors. Code
6865         formatting.
6866         * TabControl.cs: Changed argument names to fix corcompare errors.
6867         * DataGridColumnStyle.cs: Changed argument names to fix corcompare
6868         errors.
6869         * TableLayoutSettings.cs: Changed argument names to fix corcompare
6870         errors.
6871
6872 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6873
6874         * ListBindingHelper.cs: When returning properties, only return those
6875         that are browsable. Also, don't do a linear search of the properties,
6876         but use the indexer of the PropertyDescriptorCollection class.
6877
6878 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6879
6880         * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
6881         Dictionary containing the related (child) currency managers. Also,
6882         when setting DataSource, add datasource to our List if it is not a list.
6883
6884 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
6885
6886         * PropertyGridTextBox.cs: Fix background color of the buttons.
6887         * PropertyGridView.cs: Make the entry less jumpy.
6888
6889 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
6890
6891         * PropertyGrid.cs: Fix unused variable warnings.
6892
6893 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
6894
6895         * PropertyGridView.cs: Fix expansion via [+] misbehavior on 
6896         double-click. It expanded it once in the mouse down and then 
6897         again in the double-click handler.
6898
6899 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
6900         
6901         * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner, 
6902         TypeConverter and UITypeEditors.
6903
6904 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
6905
6906         * Control.cs: Visibility should be set synchronously, 
6907         so we must also redraw once it is and not rely on layouting or 
6908         other code to repaint.
6909         [Fixes bug #339898]
6910
6911 2008-04-04  Jonathan Pobst  <monkey@jpobst.com>
6912
6913         * DataGridViewCell.cs: Respect DataGridView.GridColor.
6914
6915 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
6916
6917         * Control.cs: Invalidate when the alpha channel is less than 255,
6918         not only when control is transparent.
6919
6920 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
6921
6922         * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
6923         Implement some painting convenience methods that threw NIEX.
6924
6925 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
6926
6927         * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
6928         * DataGridViewLinkCell.cs: Implement.
6929
6930 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
6931
6932         * GridEntry.cs: Report the conversion exception error description.
6933         [Fixes bug #375792]
6934
6935 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
6936
6937         * PropertyGridView.cs: Do not scroll to item on resize.
6938         [Fixes bug #375789]
6939
6940 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6941
6942         * BindingContext.cs: When retrieving a BindingManagerBase, if the
6943         dataSource parameter is ICurrencyManagerProvider, then return
6944         ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
6945         instead of creating a new one.
6946
6947 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6948
6949         * BindingSource.cs: Implement support for Type instances as
6950         DataSource.
6951
6952 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
6953
6954         * DataGridView.cs: Minor cleanups and call CellMouseUp.
6955         * DataGridViewCell.cs: Make some painting routines internally virtual.
6956         * DataGridViewButtonCell.cs: Implement.
6957
6958 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
6959
6960         * Control.cs: We always need to invalidate our children with
6961         transparent backgrounds when we are invalidated.
6962         [Fixes bug #376081]
6963
6964 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6965
6966         * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
6967         and CancelCurrentEdit on CurrencyManager respectively. Implement
6968         support for ICancelAddNew too.
6969
6970 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6971
6972         * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
6973         call EndNew/CancelNew if list is ICancelAddNew.
6974
6975 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
6976
6977         * DataGridView.cs: Guard against an exception while painting
6978         if there are no rows.
6979
6980 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
6981
6982         * DataGridView.cs: Implement a bunch of keyboard commands.
6983
6984 2008-03-31  Jonathan Pobst  <monkey@jpobst.com>
6985
6986         * ToolBar.cs: Don't do our painting if UserPaint is set.  If UserPaint
6987         isn't set, don't call OnPaint.  [Fixes bug #375300]
6988
6989 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6990
6991         * BindingSource.cs: IsBindingSuspended, ResumeBinding and
6992         SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
6993         hookup the remaining events related to CurrencyManager, and fire
6994         OnListChanged also for the Clear () method.
6995
6996 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6997
6998         * BindingSource.cs: Use Current and Position implementations in
6999         CurrencyManager instead of using our own routines, since we need 
7000         to be in synch with it. Count should NEVER return a -1 value, and 
7001         also report ListChanged events for both simple IList data 
7002         sources (manually) as well for IBindingList ones (by hooking up an
7003         event handler for it).
7004
7005 2008-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7006
7007         * BindingSource.cs: Make one .ctor call the another, to avoid
7008         duplicate code. Add the CurrencyManager property, and also for AddNew
7009         throw the proper exceptions and show better error messages.
7010
7011 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
7012
7013         * ComboBox.cs: Only adjust selectedindex if Handle has been
7014         created.  Fixes failing test.
7015
7016 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
7017
7018         * ComboBox.cs: Adjust selectedindex if we insert a new item
7019         above the current selectedindex in a sorted ComboBox.
7020         [Fixes bug #374654]
7021
7022 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
7023
7024         * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
7025         [Fixes bug #374712]
7026
7027 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
7028
7029         * DataGridViewTextBoxCell.cs: Implement stuffs.
7030
7031 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
7032
7033         * TreeView.cs: Create the scrollbars even earlier to be
7034         double dog certain they are created before they are accessed.
7035
7036 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
7037
7038         * XplatUIX11.cs: Remove a no-op line that csc was choking on.
7039
7040 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
7041
7042         * ScrollBar.cs: Create an internal safe Value setter so we
7043         won't crash if we try to set a value outside the min and max.
7044         * TextBoxBase.cs: Use safe value setter to guard against a
7045         potential NRE that is being reported by Reflector.
7046
7047 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
7048
7049         * TreeView.cs: Create the scrollbars earlier in the constructor
7050         to attempt to guard against an NRE in SetTop in Reflector.
7051
7052 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
7053
7054         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
7055         DataGridViewRowCollection.cs: Do not scroll column and row headers,
7056         show messagebox on data format error, use column display index
7057         correctly, make sure HitTest supports new layout stuff,
7058         make sure scrollbars support new layout stuff.
7059
7060 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
7061
7062         * XplatUIX11.cs : Patch by Doug Rintoul.
7063           For some IM engines, keypress events need to delay call
7064           to XPending() and XNextEvent() in the loop so that it
7065           does not mess the orders in XIM commit callback.
7066           Some KeyRelease events such as shift keys need to be
7067           processed both in the IM engine and winforms driver
7068           itself since winforms holds its own state check.
7069
7070           For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
7071
7072 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
7073
7074         * X11Keyboard.cs, XplatUIX11.cs :
7075           add primitive support for XIM input support (preedit-
7076           nothing and status-nothing). It requires precise event
7077           capturing (XSelectInput/"filterEvents") and different
7078           call to XFilterEvent against root window.
7079           Get composed string and send dummy WM_IME_COMPOSITION.
7080           Free XIM and XIC instances in finalizer.
7081
7082           (This first patch does not include suggested changes
7083            by Doug Rintoul. It will follow.)
7084
7085 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
7086
7087         * DataGridView.cs: When binding to a property, if the property
7088         doesn't have a setter, set the column to readonly.
7089         [Fixes bug #343965]
7090
7091 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
7092
7093         * ComboBox.cs: Guard against NRE if an arrow key is hit while
7094         we aren't dropped down.  Support Home/End in DropDownList mode.
7095         [Fixes bug #371990]
7096
7097 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
7098
7099         * TreeNodeCollection.cs: Don't increment count until we've
7100         saved our index to return.
7101         [Fixes bug #373603]
7102
7103 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
7104
7105         * Label.cs: Add padding to the label's AutoSize calculation.
7106         [Fixes bug #373792]
7107
7108 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7109
7110         * ListBindingHelper.cs: Actually implement GetListName method.
7111
7112 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7113
7114         * BindingSource.cs: Throw the propert expceptions for some methods, as
7115         well as detect the list item type for Add method if DataSource is null.
7116
7117 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
7118
7119         * DataGridViewCell.cs: I don't know why I commented this out,
7120         putting it back for now.
7121
7122 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
7123
7124         * DataGridViewCell.cs: Remove storage for owning column, just
7125         use column index.
7126         * DataGridViewColumn.cs: Make getter for HeaderTextSet.
7127         * DataGridViewColumnHeaderCell.cs: If the header text has been
7128         explicitly set, return it.
7129         [Fixes bug #325979]
7130
7131 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
7132
7133         * DataGridViewRowCollection.cs: Disable row sharing when
7134         using data binding.  Its a great feature, but lets work on
7135         getting DGV usable first before we worry about optimizations.
7136
7137 2008-03-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7138
7139         * BindingSource.cs: When resetting our internal list, compute list
7140         item type information to be used for indirect list access. Also
7141         implement/tune some properties and methods related to the list access
7142         too.
7143         * ListBindingHelper.cs: Add a stub for GetListName method, used from
7144         BindingSource.
7145
7146 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7147
7148         * DataGridView.cs: If RowCount is increased while ColumnCount
7149         is zero, add a column.  [Fixes bug #331649]
7150
7151 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7152
7153         * DataGridViewRowCollection.cs: When adding new rows for
7154         databinding, make sure they are place before the add row.
7155         [Fixes bug #343961]
7156
7157 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7158
7159         * DataGridViewRow.cs: Draw cells in column DisplayIndex order
7160         instead of Index order.
7161
7162 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7163
7164         * DataGridView.cs: If columns are added by increasing ColumnCount,
7165         they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
7166         [Fixes bug #325588]
7167
7168 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7169
7170         * DataGridView.cs: Turn off and on the "new row" when 
7171         AllowUserToAddRows is toggled.  When the handle is created,
7172         set current cell and selected cell/row/col.
7173
7174 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7175
7176         * ComboBox.cs: When navigating the drop down by keyboard, we
7177         need to scroll the list box if our selection moves out of the
7178         currently shown items.  [Fixes bug #371990]
7179
7180 2008-03-24  Luke Page <luke.a.page@gmail.com>
7181
7182         * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
7183         on the control. Also now handles unicode compatibility characters and
7184         stores the unicode compatibility length on the stack. Fixes Bugs
7185         #355198 and #366436.
7186
7187 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7188
7189         * BindingSource..cs: Take into account DataMember when re-creating the
7190         List property, and also create a specific kind of list as needed.
7191
7192 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7193
7194         * ListBindingHelper.cs: Add a new case for GetList () method - when we
7195         get an empty IEnumerable, try to detect whether the datamember is
7196         valid or not for that type, if true, return null, and throw exception
7197         otherwise.
7198
7199 2008-03-22  Jonathan Pobst  <monkey@jpobst.com>
7200
7201         * ComboBox.cs: Alt-Down should drop down the list, Esc should
7202         retract it.  [Fixes bug #371989]
7203
7204 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
7205
7206         * PropertyGrid.cs: Initialize the sorting button as pushed.
7207
7208 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
7209
7210         * PropertyGrid.cs: 
7211          - Visually select the PropertyTab.
7212          - Filter Properties by Attributes properly.
7213
7214 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
7215
7216         * MenuItem.cs: Remove menu item from parent when disposed.
7217         [Fixes bug #372845]
7218
7219 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
7220
7221         * ToolBar.cs: Don't reset layout_type if Dock = None.
7222
7223 2008-03-21  Andreia Gaita <avidigal@novell.com> 
7224
7225         * UserControl.cs: Select the first available control when we get focus.
7226           Fixes #372616
7227
7228 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
7229
7230         * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
7231         the content if we are in edit mode.  [Fixes bug #343964]
7232
7233 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
7234
7235         * DataGridViewCell.cs: Fix border painting for column headers.
7236
7237 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7238
7239         * BindingSource.cs: When setting or resetting data source,
7240         use ListBindingHelper.GetList () method, since it will get the list in
7241         case datasource is IListSource.
7242
7243 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
7244
7245         * DataGridViewCell.cs: Implement lots more stuffs.
7246
7247 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
7248
7249         * PropertyGridView.cs, GridEntry.cs: Implement support for 
7250         UITypeEditor.IsDropDownResizable.
7251
7252 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
7253
7254         * DataGridViewCell.cs: Remove unused variables, improve how
7255         several of the property getters work.
7256         * DataGridViewRow.cs: Don't call setSize on a cell, cell should
7257         get its size from the parent row/col.
7258
7259 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
7260
7261         * PropertyGrid.cs: Ensure PropertiesTab is visible even if the 
7262         user alters manually the PropertyTabs collection via the 
7263         PropertyTabs property.
7264
7265 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7266
7267         * ListBindingHelper.cs: Implement -previously- ignored cases. We have
7268         new tests for them to be sure to be compatible with .net.
7269
7270 2008-03-20  Andreia Gaita <avidigal@novell.com> 
7271
7272         * WebBrowserBase.cs: Fix attributes, add events
7273         * WebBrowser.cs: Fix Padding signature
7274
7275 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
7276
7277         * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
7278
7279 2008-03-19  Jonathan Pobst  <monkey@jpobst.com>
7280
7281         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
7282         DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
7283         DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
7284         passes the new suite of tests for it.
7285
7286 2008-03-18  Andreia Gaita <avidigal@novell.com> 
7287
7288         * WebBrowser.cs: Add missing attributes, missing Padding and
7289           DefaultSize properties, remove extraneous getters
7290
7291 2008-03-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7292
7293         * ListBindingHelper.cs: Implement a pair of GetListItemProperties
7294         method overloads.
7295
7296 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
7297
7298         * ComboBox.cs: Move resetting the selected index to keypress
7299         instead of textchanged.  Changing the text programmatically
7300         should not trigger resetting the selected index.  Fixes test.
7301
7302 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
7303
7304         * ComboBox.cs: When the user types into the textbox, reset
7305         the selected index to -1.  [Fixes bug #371672]
7306
7307 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
7308
7309         * FileDialog.cs: Support Control-A for selecting everything
7310         in an OpenFileDialog.  [Fixes bug #371564]
7311
7312 2008-03-15  Jonathan Pobst  <monkey@jpobst.com>
7313
7314         * DataGridView.cs: When row/column visible/height properties
7315         change, invalidate.  Take the NIEX out of InvalidateRow/Column
7316         etc.  We don't support them yet, but we can just invalidate
7317         everything until we do support them.  (Added MonoTODO).  Set
7318         proper control styles.
7319         * DataGridViewRow.cs: Don't call PaintHeader if row headers
7320         are turned off. 
7321
7322 2008-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7323
7324         * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
7325
7326 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
7327
7328         * DataGridViewRow.cs: Only paint the white background in
7329         cell bounds, the row bounds extends past the cells if the 
7330         grid width isn't as wide as the DGV.
7331
7332 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
7333
7334         * DataGridView*: Completely revamp the drawing to match the
7335         public API.  Our grids now look better, and call all the
7336         appropriate methods and event to allow users to override
7337         the painting and do their own.
7338
7339 2008-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7340
7341         * ListBindingHelper.cs: Implement 2.0 GetList methods.
7342
7343 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
7344
7345         * DataGridView.cs: Implement BorderStyle.
7346
7347 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
7348
7349         * FileDialog.cs: Apply patch from Andy Hume: Any time we
7350         are comparing attributes, make sure we only look at the
7351         one we are interested.  These calls were failing if there
7352         were more than one attribute.
7353         [Fixes bug #370385]
7354
7355 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
7356
7357         * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
7358
7359 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
7360
7361         * PageSetupDialog.cs: Stub EnableMetric.
7362         * PrintControllerWithStatusDialog.cs: Implement IsPreview.
7363         * PrintPreviewDialog.cs: Add ProcessDialogKey,
7364         ProcessTabKey.
7365
7366 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
7367
7368         * MonthCalendar.cs: Remove unused variable.
7369
7370 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
7371
7372         * DataGridView*.cs: corcompare stuffs.
7373
7374 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7375
7376         * MonthCalendar.cs: Remove an incorrect invalidate optimization.
7377         The savings aren't worth the extra code to fix the optimization.
7378         [Fixes bug #368585]
7379
7380 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7381
7382         * ToolBar.cs: Always call base.Dock in the Dock override so that
7383         Control's layout_type gets reset correctly.
7384         [Fixes bug #368882]
7385
7386 2008-03-11  Ivan N. Zlatev  <contact@i-nz.net>
7387
7388         * X11Dnd.cs: End DnD operation also for the middle mouse button.
7389
7390 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7391
7392         * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
7393         at the same time we do explicit ones, because we have to give all
7394         other controls on the container a chance to handle explicit ones
7395         first.  If no one has an explicit mnemonic, then we can let the
7396         MenuStrip have a shot at implicit mnemonics.
7397         * MenuStrip.cs: Create an implicit mnemonic function.
7398         * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
7399         mnemonics for MenuStrips.
7400         [Fixes bug #368493]
7401
7402 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7403
7404         * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
7405         DataGridColumnStyle.cs: corcompare stuffs.
7406
7407 2008-03-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7408
7409         * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
7410         Details - This is needed after we added the bits to use any available
7411         column also for List and SmallIcon view. 
7412
7413 2008-03-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7414
7415         * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
7416         at the proper place, not only when changing SelectedIndex and changing
7417         the selection using keys/mouse, as .net does.
7418
7419 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7420
7421         * ControlBindingsCollection.cs: Implement last 2.0
7422         DefaultDataSourceUpdateMode property. Also fix a wrong instruction
7423         in the new 2.0 Add methods.
7424
7425 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7426
7427         * ListBox.cs: When calling SelectedIndexCollection.Clear,
7428         return if no items are previously selected - this is done to avoid 
7429         firing OnSelectedIndexChanged without need to do so. Also,
7430         when creating handle ensure that the focused item is visible (as
7431         .net does).
7432
7433 2008-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7434
7435         * ListBox.cs: Rewrote/refactored most of selection code. We require
7436         the following things in selection: a) keep selection sorted (both
7437         indices and items), b) SelectedIndices automatically detect the
7438         selection mode, c) SelectedIndex should be the first selected item
7439         index, d) Need to Focus/adjust scroll bar when selecting a new item,
7440         not only for SelectedIndex, which is specially important in Multi*
7441         selection modes. To achieve this we are moving the selection core to
7442         SelectedIndexCollection and make depend all selection modifications on
7443         it.
7444         Fixes #366438.
7445
7446 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7447
7448         * ToolStrip.cs: Enable implicit mnemonics for drop down
7449         menu strips.  [Fixes part of bug #367692]
7450
7451 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7452
7453         corcompare - fix parameter names [stragglers].
7454         Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
7455         HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
7456         TabControl.cs.
7457
7458 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7459
7460         Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
7461         was a mnemonic pressed as well as Alt.  Also, if nothing handles a
7462         mnemonic, let the ToolStripManager have it even if it doesn't
7463         have a matching mnemonic.
7464         [Fixes bug #367499]
7465
7466 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7467
7468         corcompare - fix warning about implicit implementation
7469         * ToolStrip.cs: Add IToolStripData interface.
7470         * IToolStripData.cs: Add.
7471
7472 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7473
7474         corcompare - fix warning about implicit implementation
7475         * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
7476         * IBounds.cs: Add.
7477
7478 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
7479
7480         corcompare - fix parameter names [N-Z].
7481         LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
7482         Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
7483         PropertyManager.cs, RichTextBox.cs,
7484         ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
7485         StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
7486         StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
7487         TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
7488         TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
7489         ToolStripContentPanel.cs, ToolStripDropDown.cs,
7490         ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
7491         ToolStripPanel.cs, ToolStripSeparator.cs,
7492         TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
7493         UICuesEventHandler.cs, UpDownBase.cs.
7494
7495 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
7496
7497         corcompare - fix parameter names [G-M].
7498         GridColumnStylesCollection.cs, GridItemCollection.cs,
7499         GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
7500         HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
7501         Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
7502         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
7503         ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
7504
7505 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
7506
7507         corcompare - fix parameter names [A-F].
7508         Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
7509         DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
7510         DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
7511         DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
7512         DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
7513         DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
7514         DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
7515
7516 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
7517
7518         * GridEntry.cs: Do not convert not only if the types match, 
7519         but also if the property type is assigneable from the value's
7520         type.
7521         [Fixes bug #366566]
7522
7523 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
7524
7525         * PropertyGridView.cs: 
7526          - Subscribe to the listbox only once and not everytime.
7527          - Update the textbox even if SetValue fails.
7528          - Close the listbox before calling TrySetValue just in case.
7529          [Fixes bug #366569]
7530
7531 2008-03-03  Jonathan Pobst  <monkey@jpobst.com>
7532
7533         * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
7534
7535 2008-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7536
7537         * ListView.cs: Implement support for custom column width based on
7538         Columns collection (we were previously using this collection only
7539         with Details view).
7540         Fixes #364484.
7541
7542 2008-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7543
7544         * ListViewItem.cs: For Tile view, always set bounds for the first
7545         subitem (which is the main one), and also don't let Width be larger
7546         than ListView.TileSize.Width. Improve code readibility also.
7547         * ThemeWin32Classic.cs: When painting the ListViewItem instances
7548         in Tile view, _always_ use the NoWrap flag.
7549         Fixes #360798.
7550
7551 2008-02-29  Ivan N. Zlatev  <contact@i-nz.net>
7552
7553         * PropertyGrid.cs: Check for null PropertyDescriptor.Name just 
7554         in case.
7555         * GridEntry.cs: For MS compitability make all child properties 
7556         readonly if the parent is readonly. Ugh.
7557         [Fixes bug #365945 and #365944]
7558
7559 2008-02-29  Andreia Gaita <avidigal@novell.com> 
7560
7561         * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
7562           relative to the history
7563
7564 2008-02-29  Andreia Gaita <avidigal@novell.com>
7565
7566         * HtmlElement.cs: More handlers for mouse and key events
7567
7568 2008-02-28  Andreia Gaita <avidigal@novell.com>
7569
7570         * WebBrowserBase.cs: MouseClick sig changed.
7571         * HtmlHistory.cs: Implement history navigation
7572         * HtmlElement.cs: Add event handlers, and connect them.
7573
7574 2008-02-28  Ivan N. Zlatev  <contact@i-nz.net>
7575
7576         * GridEntry.cs: 
7577          - Use PropertyDescriptor.DisplayName instead of .Name for Label,
7578            so that DisplayNameAttribute doesn't get ignored.
7579          - Check for ParenthesizeNameAttribute and parenthesize the Label.
7580          - Add support for PasswordPropertyTextAttribute
7581         * PropertyGridView.cs: Check if an entry is a password.
7582         [Fixes bugs #365589, #365586, #365588]
7583
7584 2008-02-28  Andreia Gaita <avidigal@novell.com>
7585
7586         * PropertyGridView.cs: Revert the message filtering change, as we
7587         need it to block after all. Remove block parameter, unnecessary.
7588
7589 2008-02-27  Jonathan Pobst  <monkey@jpobst.com>
7590
7591         * UserControl.cs: Better implementation of GetPreferredSize.
7592         First step to fixing bug #361441.
7593
7594 2008-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7595
7596         * Binding.cs: Actually implement data binding support for 
7597         classes implementing IBindableComponent.
7598         * ControlBindingsCollection.cs: Likewise.
7599
7600 2008-02-26  Andreia Gaita  <avidigal@novell.com>
7601
7602         * PropertyGridView.cs: Use a message filter to check when to 
7603         close the dropdown
7604
7605 2008-02-26  Andreia Gaita  <avidigal@novell.com>
7606
7607         * Application.cs: Change the message_filters loop so a filter 
7608         can be removed while looping.
7609
7610 2008-02-26  Ivan N. Zlatev  <contact@i-nz.net>
7611
7612         * GridEntry.cs: Optimization in ToggleValue so that it caches
7613         the current value.
7614         * PropertyGridView.cs: An optimization so that the property isn't 
7615         re-read twice for each StandardValue added to the drop-down menu.
7616         Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
7617         license.
7618         [Fixes bug #362755]
7619
7620 2008-02-26  Jonathan Pobst  <monkey@jpobst.com>
7621
7622         * Application.cs: Apply patch from Justin Cherniak to match
7623         MS better for ProductName, ProductVersion, and CompanyName.
7624         [Fixes bug #361709]
7625
7626 2008-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7627
7628         * Binding.cs: Actually implement 2.0 NullValue property. Also
7629         when changing the formatting related properties, only update the state
7630         if formatting_enabled is true (we don't mind otherwise).
7631
7632 2008-02-25  Jonathan Pobst  <monkey@jpobst.com>
7633
7634         * ToolStrip.cs: Don't raise ItemClicked for disabled items.
7635         [Fixes bug #364486]
7636
7637 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
7638
7639         * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead 
7640         of GetType on the current value as it uses reflection to 
7641         determine the type. This fixes the case where the new value is 
7642         null. 
7643
7644 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
7645
7646         * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
7647         past the view.
7648
7649 2008-02-24  Luke Page  <luke.a.page@gmail.com>
7650
7651         * Line.cs, TextControl.cs: Implement offset x and y so that a
7652         document doesn't have to begin  at (0,0) on the viewpoint.
7653         * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
7654         bars and switches the text alignment (and therefore is now
7655         implemented for textbox). Fixes #321383.
7656
7657 2008-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7658
7659         * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
7660         properties. Also when changing FormattingEnabled update the control
7661         property -as .Net does-.
7662
7663 2008-02-22  Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
7664
7665         * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
7666         * Binding.cs: Add stubs for the overloads of the Add method in
7667         CBCollection.
7668
7669 2008-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7670
7671         * Binding.cs: PullData () returns a false value if we got an exception.
7672         Also when validating the control and we get an error, instead of
7673         setting the value of the previous one, cancel the event (tested in 1.1
7674         and 2.0).
7675
7676 2008-02-22  Jonathan Pobst  <monkey@jpobst.com>
7677
7678         * TreeView.cs: Make selected_node and highlighted_node internal.
7679         * TreeNodeCollection.cs: Reset selected_node and highlighted_node
7680         to null when Nodes.Clear is called.
7681         [Fixes bug #363884]
7682
7683 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7684
7685         * FontDialog.cs: Ensure that when the Font is set in code,
7686         all the gui pieces are updated accordingly.
7687         [Fixes bug #361020]
7688
7689 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7690
7691         * TextRenderer.cs: Respect proposed size for MeasureString.
7692         * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
7693         autosize, use a proposed width to force wrapping for long text.
7694         [Fixes bug #360981]
7695
7696 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7697
7698         * TreeView.cs: Factor in checkboxes = false and state images in
7699         to HitTest.  [Fixes bug #363360]
7700
7701 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7702
7703         * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
7704         when drawing the selected range.
7705         [Fixes bug #363648]
7706
7707 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7708
7709         * ToolStripContainer.cs: Add SupportsTransparentBackColor and
7710         ResizeRedraw control styles.
7711         [Fixes bug #363555]
7712
7713 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7714
7715         * TreeView.cs: StateImages are basically custom checkboxes, so
7716         factor their size the same as real checkboxes when determining
7717         what got clicked.
7718         [Fixes bug #363367]
7719
7720 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7721
7722         * MessageBox.cs: Make the message box wider if the form caption
7723         is longer than the text in the form.
7724         [Fixes bug #361137]
7725
7726 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
7727
7728         * PropertyGridView.cs: Fix a NRE when closing the drop down form.
7729
7730 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7731
7732         * TreeNode.cs: Guard against an NRE when the parent's
7733         StateImageList hasn't been set.
7734         [Fixes bug #363353]
7735
7736 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7737
7738         * SplitContainer.cs: Add SupportsTransparentBackColor and
7739         OptimizedDoubleBuffering control styles.
7740         [Fixes bug #363303]
7741
7742 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7743
7744         * Application.cs: For the app data paths and the registry key paths,
7745         ensure they are created before returning them to the user.
7746         [Fixes bug #361709]
7747
7748 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7749
7750         * Application.cs: Guard against an NRE in CompanyName and
7751         ProductName.
7752
7753 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7754
7755         * Application.cs: For CompanyName, ProductName, and ProductVersion,
7756         make sure we handle all three cases correctly: attribute is present,
7757         attribute is present but is an empty string, and attribute is not
7758         present.
7759
7760 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
7761
7762         * PropertyGridView.cs: 
7763          - Fix a NRE that caused a test failure
7764          - Another performance improvement - cache the standard values
7765          listbox.
7766
7767 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
7768
7769         * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
7770         code paths.
7771
7772 2008-02-19  Ivan N. Zlatev  <contact@i-nz.net>
7773
7774         * PropertyGridView.cs: Fix a big performance bug.
7775
7776 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
7777
7778         * SelectionRange.cs: Apply patch from Andy Hume to make
7779         constructor behavior more accurate.  [Fixes bug #362117]
7780
7781 2008-02-19  Andreia Gaita <avidigal@novell.com> 
7782
7783         * Control.cs: Added a new flag is_disposing to track if the
7784         window is currently in the process of being disposed of.
7785         This is used so that, when firing visibility changes triggered
7786         by unparenting controls during Dispose, the control doesn't
7787         get created again.      
7788
7789 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
7790
7791         * ComboBox.cs: Set height to preferred height when the handle
7792         is created.  [Fixes bug #360862]
7793
7794 2008-02-18  Andreia Gaita <avidigal@novell.com>
7795
7796         * XplatUIX11.cs: Create FosterParent with border width at 0.
7797         With the previous value of 4, everytime a control got reparented
7798         from parent = null, it's location would be shifted right and 
7799         down by 4, since these coordinates would be offset by the 
7800         FosterParent's border width.
7801
7802 2008-02-18  Ivan N. Zlatev  <contact@i-nz.net>
7803
7804         * Control.cs: During diposing firstly remove ourselfes from
7805         the parent and *then* destroy our handle, because removing
7806         ourselfes from the parent controls collection causes 
7807         VisibilityChange, etc events, which require a handle and end
7808         up recreating the control.
7809
7810 2008-02-17  Ivan N. Zlatev  <contact@i-nz.net>
7811
7812         * GridEntry.cs: Set expanded state before notifying that the
7813         expansion has taken place.
7814         * PropertyGridView.cs:
7815          - Set the propertygridtextbox text to the selected 
7816          StandardValue before proceeding to setting it.
7817          - Scrolling bugfixes.
7818
7819 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
7820
7821         * GridEntry.cs:
7822          - Fix ValueText to not return null.
7823          - Fix conversion error reporting to actually happen.
7824         * PropertyGridView.cs: Set entry only if the text has changed.
7825         [Fixes bug #362116]
7826
7827 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
7828
7829         * GridEntry.cs: 
7830          - Fix handling of a null current value.
7831          - Swallow editor exceptions.
7832         [Fixes bug #362114]
7833
7834 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
7835
7836         * PropertyGrid.cs: Clear current items first thing before 
7837         repopulating subitems.
7838         * GridEntry.cs: 
7839          - Handle null StandardValuesCollection.
7840          - Mark as not editable if there is no PropertyDescriptor and
7841          if the Converter cannot convert from string.
7842         [Part of fix for bugs #360666 and #358332]
7843
7844 2008-02-15  Luke Page  <luke.a.page@gmail.com>
7845         * MaskedTextBox.cs: Now skips non editable characters after a
7846         character has been entered and we are progressing to the next
7847         position in the MaskedTextBox.
7848
7849 2008-02-15  Luke Page  <luke.a.page@gmail.com>
7850         * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
7851         that it changes the selection rather than just repositioning the
7852         cursor. Fixes Bug #360873.
7853
7854 2008-02-15  Luke Page  <luke.a.page@gmail.com>
7855         * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
7856         when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
7857         correctly. See #359330
7858
7859 2008-02-15  Andreia Gaita <avidigal@novell.com>
7860
7861         * XplatUIX11.cs: If the handle is null when posting a message, use the
7862         current thread queue to post instead. Fixes #332409
7863
7864         * SendKeys.cs: Slight optimization
7865
7866 2008-02-14  Ivan N. Zlatev  <contact@i-nz.net>
7867
7868         * PropertyGrid.cs, PropertyGridView.cs:
7869         Fix multiple scrolling and sizing issues.
7870         [Fixes bug #359199]
7871
7872 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
7873
7874         * PropertyGridView.cs: Ensure that drop down editors are shown
7875         in the WorkingArea of the screen.
7876         [Fixes bug #359807]
7877
7878 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
7879
7880         * GridEntry.cs: Fail silently when UITypeEditor is missing.
7881         [Fixes bug #360666]
7882
7883 2008-02-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7884
7885         * Binding.cs: Implement 2.0 DataSourceNullValue property.
7886
7887 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
7888
7889         * PropertyGridView.cs:
7890          - Clear the controls in the drop down form after it is hidden.
7891          - Fix Width sizing of the dropdown editors to match MSFT.
7892
7893 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
7894
7895         * PropertyGridView.cs: 
7896          - Fix height for drawing the grid entry
7897          text value, so that it clips multiline text properly.
7898          - Fix unfocusing to match MSFT.
7899
7900 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
7901
7902         * PropertyGrid.cs: Do not populate subgriditems unless expandable.
7903         Fixes a bug where on repopulation after value changed items become
7904         expandable.
7905
7906 2008-02-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7907
7908         * Binding.cs: For the 2.0 profile, look for a 
7909         'PropertyChanged' event in the target control, and add checks for
7910         DataSourceUpdateMode property to change -or not- the data source
7911         from validation/control property change.
7912
7913 2008-02-10  Atsushi Enomoto  <atsushi@ximian.com>
7914
7915         * Binding.cs : build fix (operator == is not overriden in 1.x. Do
7916           not compare struct with null in 2.0).
7917
7918 2008-02-10  Luke Page <luke.a.page@gmail.com>
7919
7920         * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
7921         updates the provider and if not using a provider, uses the internal document
7922         class implementation of password char. Also when showing text, uses display string
7923         from the provider, instead of the actual text.
7924
7925 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7926
7927         * Binding.cs: Ooooops, forgot to take into account the data_source
7928         and binding_member_info null case (it was breaking the Binding tests).
7929
7930 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7931
7932         * Binding.cs: Implement support for data source changes exposed by
7933         'PropertyNameChanged' events, and update the control property as
7934         needed.
7935
7936 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7937
7938         * Binding.cs: Implement 2.0 WriteValue method.
7939
7940 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
7941
7942         Commit patch from James Purcell for better AutoScale implementation:
7943
7944         * ScaleControl should call GetScaledBounds with the control's total size rather
7945         than client size.  GetScaledBounds should handle ignoring the borders in its
7946         calculations.  Cleaned up ScaleControl/GetScaledBounds overrides in controls
7947         (for the most part they just call the base code now since that is fixed).
7948         * Added ScaleChildrenInternal to allow controls to disable scaling of children
7949         without having to override ScaleChildren (since none of .NET's controls do). 
7950         This is required for most controls in Mono that have scrollbars to prevent the
7951         scrollbars from being moved/resized.
7952         * Nested ContainerControls can have a different scale mode than their parent. 
7953         This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
7954         designer produce different results both of which look incorrect).
7955         * Default AutoScaleMode for ContainerControl should be Inherit.
7956         * Simplified workaround for ComboBox scaling issue.
7957         * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's. 
7958         1.0 style auto scaling should scale the whole control's size instead of
7959         ignoring the borders (except for Form) and the rounding is done differently to
7960         preserve control alignment.
7961         * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
7962         GetAutoScaleSize.
7963         * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
7964         * CurrentAutoScaleDimensions should round the estimated character width instead
7965         of truncating.
7966         * ListBox's GetScaledBounds should always use the height it was set to instead
7967         of the height that was passed in.  This prevents rounding errors from
7968         accumulating quickly with IntegralHeight.
7969         [Bug #359098]
7970
7971 2008-02-08  Andreia Gaita <avidigal@novell.com>
7972
7973         * Form.cs: Add a null check (darn it). 
7974
7975 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
7976
7977         * MdiClient.cs: Make sure the requesting form actually owns the
7978         control menu items before removing them.  Also, use
7979         Suspend/ResumeLayout when adding or removing items so we only
7980         layout once.
7981         [Fixes bug #359887]
7982
7983 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
7984
7985         * Control.cs: Guard against an NRE in ShowFocusCues.
7986         [Fixes bug #359830]
7987
7988 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7989
7990         * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
7991         property, as well as stubbing DataSourceUpdateMode.
7992
7993 2008-02-08  Andreia Gaita <avidigal@novell.com>
7994
7995         * Form.cs: When closing forms, get focus back to the active control of the
7996         active form. [Fixes #341314, corner case]
7997         
7998 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7999
8000         * MdiClient.cs: After we move the scrollbars, invalidate the NC
8001         area, so any old scrollbar artifacts are cleaned up.
8002         [Fixes bug #336305]
8003
8004 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
8005
8006         * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
8007         for our menus, display that control box menu instead of the 1.1
8008         menu one.
8009
8010 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
8011
8012         * MdiControlStrip.cs: Add property to access the mdi form tied to
8013         each toolstripitem.
8014         * MdiClient.cs: Be smarter about removing and adding toolstripitems
8015         to the implicitly merged menu.  Every time we clicked the form, items
8016         were getting removed and the re-added, causing the form to jump around
8017         as the menu resized.
8018
8019 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
8020
8021         * MdiClient.cs: Make sure the NormalBounds always gets set.  It
8022         was being reset by the implicit menu merge for menustrips.
8023         [Fixes bug #336296]
8024
8025 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
8026
8027         * Form.cs: Don't do the previous change when WindowState = Normal,
8028         or it messes up where the window is placed.  Fixes test failure.
8029
8030 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
8031
8032         * Form.cs: When becoming visible, if we are an MDI child, call
8033         SetWindowState with a dummy old_state so that changes will actually
8034         be made.
8035         [Fixes the 2nd part of bug #325473]
8036
8037 2008-02-07  Andreia Gaita <avidigal@novell.com>
8038
8039         * Control.cs: Reset properties to their pre parent-change values in case
8040         the new parent == null (in which case we're basically removing the control, 
8041         and don't want any events fired due to fake property changes)
8042         [Fixes #355850]
8043
8044 2008-02-06  Ivan N. Zlatev  <contact@i-nz.net>
8045
8046         * PropertyGridView.cs: 
8047          - Refactor SetValue to allow setting the value
8048         when a custom editor is used, but the entry is not editable.
8049          - Remove the custom editor control on CloseDropDown.
8050         [Fixes #359196]
8051
8052 2008-02-06  Andreia Gaita <avidigal@novell.com>
8053
8054         * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
8055         reflection only on 1.1, this property is public on system.drawing on 2.0.
8056         Fixed #359247
8057
8058 2008-02-06  Andreia Gaita  <avidigal@novell.com>
8059         
8060         * WebBrowser.cs: Do a normal page refresh by default.
8061
8062 2008-02-05  Andreia Gaita  <avidigal@novell.com>
8063
8064         * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create 
8065         the window so that the check on Control.UpdateZOrderOfChild passes on non-X
8066         platforms. Fixes #359036
8067         
8068         Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on 
8069         platform-specific flags.
8070
8071 2008-02-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8072
8073         * Binding.cs: Add 2.0 BindableComponent property - just return control
8074         by now.
8075
8076 2008-02-05  Everaldo Canuto  <ecanuto@novell.com>
8077
8078         * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
8079         Jonathan for this patch. Fixes #358442.
8080
8081 2008-02-05  Jonathan Pobst  <monkey@jpobst.com>
8082
8083         * Form.cs: If we change the active MDI child form, let the others
8084         know they need to repaint their title bar so it will appear inactive.
8085         [Fixes part 1 of bug #325473]
8086
8087 2008-02-05  Ivan N. Zlatev  <contact@i-nz.net>
8088
8089          * PropertyGridView.cs: Do not trucate custom editors' width
8090          and align them to the left.
8091          [Fixes #358353 and #358349]
8092
8093 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8094
8095         * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
8096         Also fix the arguments passed to CollectionChangeEventArgs in the
8097         related methods.
8098
8099 2008-02-04  Geoff Norton  <gnorton@novell.com>
8100
8101         * Hwnd.cs: The conversion to Quartz coordinates happens in
8102         System.Drawing.  Removing this translation from here.
8103
8104 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
8105
8106          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
8107          CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
8108          GridItemCollection.cs:
8109          PropertyGrid rewrite part 2. Tons of bugfixes and new features.
8110
8111 2008-02-04  Geoff Norton  <gnorton@novell.com>
8112
8113         * X11Keyboard.cs: VK_MENU should send a KEYUP instead of 
8114         SYSKEYUP if any other key has been pressed in the mean time.
8115         Fixes #324404
8116
8117 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8118
8119         * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
8120         when the item in current position is different than 0. Also, save the
8121         item index in the beginning of the operation, instead of getting the
8122         index of the item when the event is actually performed. Lastly clean
8123         the related fields in ItemsMouseUp if the ItemDrag operation wasn't
8124         triggered.
8125         [Fixes #357873]
8126
8127 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8128
8129         * Form.cs: Alt-Minus for MDI children system menu should work
8130         with both the minus keys on the keyboard.
8131         [Fixes bug #336295]
8132
8133 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8134
8135         * Control.cs: Don't invalidate on region change.  The WM should
8136         take care of this automagically.  Keeps us out of an infinite
8137         paint loop if someone changes the Region in the OnPaint.
8138         [Fixes bug #358327]
8139
8140 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
8141
8142          * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
8143
8144 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8145
8146         * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
8147         down the MonthCalendar only on F4, not Alt+F4.
8148         * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
8149         [Fixes bug #358340]
8150
8151 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8152
8153         * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
8154         if its part of a DateTimePicker, else, use the back color.
8155         [Fixes bug #358339]
8156
8157 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8158
8159         * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
8160         [Fixes bug #358342]
8161
8162 2008-02-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8163
8164         * CurrencyManager.cs: When we get a ListChanged event from our source,
8165         always fire our own ListChanged event, as .Net does.
8166
8167 2008-02-03  Luke Page  <luke.a.page@gmail.com>
8168
8169         * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
8170         #358379.
8171
8172 2008-02-03  Luke Page  <luke.a.page@gmail.com>
8173
8174         * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
8175         property. Removed if for richtext property that was always true.
8176         PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
8177
8178 2008-02-03  Luke Page  <luke.a.page@gmail.com>
8179
8180         * TextBoxBase.cs - commited patch from James Purcell that
8181         correctly sets the FixedHeight control style when the MultiLine
8182         property is changed on a TextBox control. Fixes bug 358229.
8183
8184 2008-02-02  Luke Page  <luke.a.page@gmail.com>
8185
8186         * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
8187         Fixes bug 351938 - caret is positioned correctly when drawn
8188         and when calculating textual position of caret, no longer
8189         has a NRE in certain situations.
8190         
8191 2008-02-01  Geoff Norton  <gnorton@novell.com>
8192
8193         * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
8194         get that region removed from the paint event.
8195         * XplatUICarbon.cs: Remove the window mapping after disposing of 
8196         window.  Prevents a crash with handle reuse.  Optimize exposes
8197         only onto visible windows (rare; but possible).
8198
8199 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8200
8201         * UpDownBase.cs: Make sure the internal textbox calls the base's
8202         OnMouseDown and OnMouseUp so the textbox will function correctly.
8203         There were notes saying it doesn't chain up, but its an internal
8204         class, so our implementation may differ.
8205         [Fixes bug #357482]
8206
8207 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8208
8209         * ListBox.cs: Fix a logic error and don't process MouseDown
8210         for mouse buttons other than Left.
8211
8212 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8213
8214         * Control.cs: Remove HeightInternal.
8215         * ListBox.cs: Commit patch from James Purcell that correctly
8216         calculates heights for ListBoxen.
8217         [Fixes bug #357152]
8218
8219 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8220
8221         * Label.cs: Apply patch from James Purcell that corrects the 
8222         signature of the AutoSize property.
8223         [Fixes bug #357605]
8224
8225 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8226
8227         * ListBox.cs: Don't throw [Mouse]Click events for buttons
8228         other than the left mouse button.
8229
8230 2008-01-31  Jonathan Pobst  <monkey@jpobst.com>
8231
8232         * Control.cs: Remove my awesome optimization as it caused some
8233         regressions with control ordering.  :(
8234         [Fixes bug #357467]
8235
8236 2008-01-31  Ivan N. Zlatev  <contact@i-nz.net>
8237
8238          * PropertyGridView.cs: Fix a NRE on double click when there is no
8239          selected object.
8240
8241 2008-01-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8242
8243         * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
8244
8245 2008-01-30  Jonathan Pobst  <monkey@jpobst.com>
8246
8247         * ListBox.cs: Call MouseClick and MouseDoubleClick.
8248         [Fixes bug #357146]
8249
8250 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8251
8252         * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
8253         * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
8254         instead of Hwnd.bmp_g.
8255
8256 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8257
8258         * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
8259         Use the Hwnd one instead.
8260
8261 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8262
8263         * Form.cs: Remove duplicated copy of GetAutoScaleSize.
8264
8265 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8266
8267         * Form.cs: corcompare for RestoreBounds.
8268
8269 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8270
8271         * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
8272
8273 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8274
8275         * Form.cs: Handle Alt-Minus for MDI children forms.
8276         * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
8277         Add mnemonics to the control menu.
8278         [Fixes bug #336295]
8279
8280 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8281
8282         * Binding.cs: Initial implementation bits of FormattingEnabled
8283         property and BindingComplete event (2.0). 
8284         * BindingCompleteEventArgs.cs: Internal methods for setting error text
8285         and exception.
8286
8287 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
8288
8289         * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
8290         table.Location.  [Fixes bug #354672]
8291
8292 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
8293
8294         * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
8295         ResizeBegin and ResizeEnd.  [Fixes bug #346529 for win32]
8296
8297 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8298
8299         * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
8300         of doing all the re-bound work, just invalidate and call SetControlText 
8301         to set the updated text of selected item to our textbox.
8302         Fixes #333750.
8303
8304 2008-01-28  Andreia Gaita <avidigal@novell.com>
8305
8306         * HtmlWindow.cs: Add event handler support. Add Document, Frames, 
8307         IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
8308         missing properties and methods. Add Load, Unload, Error, GotFocus, 
8309         LostFocus, Resize, Scroll events (only load and unload are connected)
8310
8311 2008-01-27  Gert Driesen  <drieseng@users.sourceforge.net>
8312
8313         * AccessibleObject.cs: Modified argument names to match MS.
8314         * Button.cs: Modified argument names to match MS.
8315         * BindingContext.cs: Modified argument names to match MS.
8316         * BindingMemberInfo.cs: Modified argument names to match MS.
8317         * ButtonBase.cs: Modified argument names to match MS.
8318         * ComboBox.cs: Modified argument names to match MS.
8319         * Control.cs: Modified argument names to match MS.
8320         * CheckedListBox.cs: Modified argument names to match MS.
8321         * CommonDialog.cs: Modified argument names to match MS.
8322         * DataGrid.cs: Modified argument names to match MS.
8323         * CursorConverter.cs: Modified argument names to match MS.
8324         * ControlPaint.cs: Modified argument names to match MS.
8325         * CheckBox.cs: Modified argument names to match MS.
8326         * ControlBindingsCollection.cs: Modified argument names to match MS.
8327         * BindingSource.cs: Modified argument names to match MS.
8328         * DataFormats.cs: Modified argument names to match MS.
8329         * ContainerControl.cs: Modified argument names to match MS.
8330         * CurrencyManager.cs: Modified argument names to match MS.
8331         * Application.cs: Modified argument names to match MS.
8332         * ContextMenuStrip.cs: Modified argument names to match MS.
8333         * ContextMenu.cs: Modified argument names to match MS.
8334         * BindingManagerBase.cs: Modified argument names to match MS.
8335         * WindowsFormsSection.cs: Fixed line ending.    
8336
8337 2008-01-27  Andreia Gaita <avidigal@novell.com>
8338
8339         * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
8340         detecting that the dropdown toolwindow is hidden. EndLoop outside the
8341         while.
8342
8343 2008-01-26  Gert Driesen  <drieseng@users.sourceforge.net>
8344
8345         * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
8346         MS. Code formatting.
8347
8348 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8349
8350         * Binding.cs: Don't avoid the Format event if the control 
8351         property type is object. Also, if the value retrieved by 
8352         the data source is null _and_ the control proeprty type 
8353         is object, return Convert.DBNull (match .Net).
8354         Fixes part of #324286.
8355
8356 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8357
8358         * ListControl.cs: Since we are getting two BinginContextChanged events
8359         for the same binding context instance (when the control is added to
8360         form, and when the form is actually shown), take it into account only the
8361         first time for a given binding context instance.
8362         Fixes part of #324286.
8363
8364 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
8365
8366          * PropertryGridView.cs: Ops.
8367
8368 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
8369
8370          * PropertyGridView.cs: Close dropdown form if the owner form is
8371          moved or minimized.
8372          [Fixes bug #322446]
8373
8374 2008-01-25  Ivan N. Zlatev  <contact@i-nz.net>
8375
8376          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs, 
8377          RootGridEntry.cs, CategoryGridEntry.cs:
8378          PropertyGrid rewrite.
8379          - Rewrite all of the control logic in PropertyGrid.
8380          - Rewrite all of the ComponentModel logic in GridEntry.
8381          - Rewrite all UI work in PropertyGridView.
8382          - Many bugfixes, etc.
8383
8384 2008-01-24  Jonathan Pobst  <monkey@jpobst.com>
8385
8386         * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
8387         when all contained controls are autosize or dock-fill.  Also take into
8388         account when the total percentage of column/row sizes is not 100%.
8389         [Fixes bug #354672]
8390
8391 2008-01-24  Andreia Gaita <avidigal@novell.com>
8392
8393         * HtmlDocument.cs:
8394         - Save a reference to the IDocument in the instance and
8395           use that one instead of going to WebHost.Document; the document that the 
8396           WebHost returns might not be the right one (in case of frames).
8397         - Use the hashcode returned from the IDocument interface.
8398         - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie, 
8399           Domain (setter is not supported), Encoding, ForeColor, Forms, Images, 
8400           LinkColor, Url, VisitedColor, Window
8401
8402         * HtmlElement.cs: 
8403         - Implemented: CanHaveChildren, Children, Document, GetAttribute, 
8404           set_Attribute, NextSibling, Parent, TagName, AppendChild, 
8405           GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
8406           SetAttribute, Equals, equality operators.
8407         - Added stubs for: AttachEventHandler, DetachEventHandler, Focus, 
8408           InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView, 
8409         
8410         * HtmlElementCollection.cs: Change implementation to use a generic
8411         collection. Implemented Enumerator and CopyTo
8412
8413         * HtmlHistory.cs: Add constructor, no implementation yet.
8414
8415         * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
8416         Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode, 
8417         Equals, equality operators.
8418
8419         * HtmlWindowCollection.cs: Implemented. 
8420
8421         * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
8422         has been deprecated).
8423
8424         * WebBrowserBase.cs: Use Completed event to track document loading
8425         (Navigated has been deprecated)
8426
8427 2008-01-24  Jonatham Pobst  <monkey@jpobst.com>
8428
8429         * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems.  Top
8430         level MenuItems do not respect tabs.
8431         [Fixes bug #355196]
8432
8433 2008-01-23  Geoff Norton  <gnorton@novell.com>
8434
8435         * XplatUICarbon.cs:  Ensure that windows are created in their initial 
8436         FormWindowState.  Finished fixing Fullscreen windows on Carbon
8437
8438 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8439
8440         * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
8441         be used as grab_control. Also save status of capture before show ContextMenu
8442         and restore it after close.
8443
8444 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8445
8446         * Control.cs: Internal FindRootParent method added to return high control
8447         in parent tree.
8448
8449 2008-01-23  Geoff Norton  <gnorton@novell.com>
8450
8451         * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
8452         * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
8453         it work again.  Handle HITTEST events.
8454
8455 2008-01-23  Geoff Norton  <gnorton@novell.com>
8456
8457         * XplatUICarbon.cs: Ensure that we always have a host window.  Prevents
8458         a crash in certain cases.  Support for fullscreen windows in certain cases.
8459
8460 2008-01-23  Jonathan Pobst  <monkey@jpobst.com>
8461
8462         * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
8463         [Fixes bug #355703]
8464
8465 2008-01-23  Geoff Norton  <gnorton@novell.com>
8466         
8467         * XplatUICarbon.cs: Remove some dead code that was causing warnings.
8468
8469 2008-01-23  Geoff Norton  <gnorton@novell.com>
8470
8471         * XplatUICarbon.cs:  Re-enabled Carets in QuickDraw as a overlay window.
8472
8473 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8474
8475         * SplitContainer.cs: Remove unused declarations.
8476         * Binding.cs: Remove unused declarations.
8477
8478 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8479
8480         * Form.cs: Remove unused declaration of 'active' in Activate method.
8481         * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to 
8482         prevent compilation warnings.
8483         * TextControl.cs: Remove unused declaration of selection_pos_on_line.
8484         * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
8485         * Bindings.cs: Remove unused formatting_enabled declaration.
8486         * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
8487         warnings.
8488         * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
8489         warnings.
8490         * PropertyGridView.cs: Remove usused 'ex' declaration.
8491         * DataGridView.cs: Remove unused declarations.
8492
8493 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8494
8495         [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
8496         
8497         * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved 
8498         to Control class, it makes possible to grab menu to controls that can't 
8499         reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
8500         WmMouseMove removed since it was used only to track menu events.
8501
8502         * Control.cs:
8503         - Moved all active_tracker stuff from Form.
8504         - ProcessActiveTracker added to prevent code duplicity, now mouse events 
8505         can call this method instead of reimplement all necessary code handle for
8506         menu tracker.
8507         - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
8508         and WmMouseMove).
8509         
8510         * MenuAPI.cs: 
8511         - Remove special handle to ToolStripOverflow, now we can grab menu to 
8512         controls that can't reach Form using parent tree.
8513         - Change type of grab_control from Form to Control.
8514
8515 2008-01-22  Geoff Norton  <gnorton@novell.com>
8516
8517         * TextBoxBase.cs: Split up the sizing of controls and placing of 
8518         controls.  Fixes a bug where scrollbars in Reflector could be sized
8519         wrong and have non-working thumbers.
8520
8521 2008-01-23  Geoff Norton  <gnorton@novell.com>
8522
8523         * XplatUI.cs: Refactor environment variables to default support to the
8524         Carbon driver on the Mac.
8525
8526 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8527
8528         * Label.cs: Uses new LabelPainter for drawing operations.
8529         * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
8530         * Theme.cs: DrawLabel and LabelDefaultSize removed.
8531
8532 2008-01-22  Geoff Norton  <gnorton@novell.com>
8533
8534         * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
8535
8536 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
8537
8538         * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
8539         through the normal flat button code and don't draw the checkbox glyph.
8540         * Theme.cs: Button->ButtonBase signature change.
8541         [Fixes bug #324755]
8542
8543 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
8544
8545         * LinkLabel.cs: Uses new class LinkLabelPainter.
8546
8547 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
8548
8549         * MessageBox.cs: Adjust right border space, we don't need to add 
8550         "space_border*2" two times.
8551
8552 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
8553
8554         * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
8555         becomes a wrapper around Padding.
8556         [Fixes a part of bug #354676]
8557
8558 2008-01-22 Geoff Norton  <gnorton@novell.com>
8559
8560         * Mime.cs:  Avoid a needles exception on OSX if we dont have a buffer
8561         acquired.  Also ensure the buffer is large enough to grab the header
8562         we need on linux boxes.
8563
8564 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
8565
8566         * Control.cs: Implement a custom enumerator so people can delete
8567         from the Controls collection while in a foreach.
8568         [Fixes bug #355074]
8569
8570 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
8571
8572          * PropertyGridView.cs: Fix focusing behavior:
8573          - Tab should focus the grid text box.
8574          - Clicking on the labels shouldn't focus the grid text box.
8575
8576 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
8577
8578          * PropertyGridView.cs: IsValueTypeGridItem should return true 
8579          for Arrays as well.
8580
8581 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
8582
8583          * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
8584           - Renamed GridEntry.SelectedObjects to TargetObjects to better
8585           reflect the property name role.
8586           - PropertyGrid.GetTarget is not required as the target is known
8587           (TargetObjects).
8588           - Setting values will handle value types as a special case now and
8589           populate them up in the chain.
8590           [Fixes #354990]
8591
8592 2008-01-21  Jonathan Pobst  <monkey@jpobst.com>
8593
8594         * Hwnd.cs: Create a public property for the Graphics we keep around.
8595
8596 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
8597
8598          * PropertyGridView.cs: Just hide the grid textbox and do nothing more 
8599          when the current object selection changes. 
8600          Fixes failing test SelectedObject_Null2.B5.
8601
8602 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
8603
8604          * PropertyGrid.cs: Process Browsable properties with 
8605          DesignerSerializationVisibilityAttribute.Content as being expandable.
8606          This seems also what MS does. Without this e.g SplitContainer.Panel1/2
8607          will not be expandable. We should be nested components-friendly now.
8608
8609 2008-01-21  Andreia Gaita <avidigal@novell.com>
8610
8611         * WebBrowserBase.cs: Check if control was loaded properly, 
8612         don't bind if it wasn't.
8613
8614         * HtmlDocument.cs: Implement CreateElement, Equals, Focus, 
8615         GetElementFromPoint, equality operators, OpenNew, Write.
8616         Remove extra set_Body
8617
8618 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
8619
8620         * ContainerControl.cs, Control.cs: Apply patch from James Purcell
8621         that makes our AutoScale* stuff more tolerant to different orders
8622         of being set.  [Fixes bug #354669]
8623
8624 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
8625
8626          * PropertyGridView.cs, PropertyGridTextBox.cs: 
8627          Drop WM_LBUTTONDOWN msg sending and use focusing instead.
8628          [Fixes #339005 and #348209]
8629
8630 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
8631
8632          * PropertyGridView.cs: Hide the grid text box before adjusting it
8633          for the newly selected GridItem.
8634          [Fixes #338999]
8635
8636 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
8637
8638         * Form.cs: Give MDI children the opportunity to cancel the parent form
8639         attempting to close.  Ensure that all [Form]Clos[ing,ed] events get called
8640         properly for both the parent and child.
8641         * Application.cs: Signature of internal method changed, pass the previous
8642         default of false.
8643         [Fixes bug #354286]
8644
8645 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
8646
8647         * PropertyGridView.cs: Set the property value only if it has changed.
8648         [Fixes bug #338997]
8649
8650 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
8651
8652         * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
8653         If the mouse hasn't actually moved, ignore these messages so the currently
8654         highlighted menuitem isn't reset to the one under the mouse.
8655         [Fixes bug #333668]
8656
8657 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
8658
8659         * PropertyGridView.cs: When the property changes Invalidate the GridItem
8660         in order for the properties with UITypeEditor.GetPaintValueSupported == true
8661         to reflect the change visually.
8662         [Fixes bug #338998]
8663
8664 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
8665
8666         * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
8667         to 2.0 button drawing.
8668         * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw 
8669         the button text is tall enough for one line.  LineLimit says it will
8670         always draw at least one line, but it is a lie.
8671         [Fixes bug #324941]
8672
8673 2008-01-17  Atsushi Enomoto  <atsushi@ximian.com>
8674
8675         * XplatUIStructs.cs, X11Keyboard.cs :
8676           added some more VK_* keys to be handled.
8677
8678 2008-01-16  Andreia Gaita <avidigal@novell.com>
8679
8680         * Control.cs: Check if there is a container before setting or getting
8681         the validation flag.
8682
8683 2008-01-16  Andreia Gaita <avidigal@novell.com>
8684
8685         * ContainerControl.cs: Add flag to track if a control cancels validation, 
8686         so we don't fire click events.
8687
8688         * Control.cs: 
8689         - (HandleClick) Check if validation was cancelled before  firing the click
8690         events (doubleclicks are fired, but not clicks)
8691         - (WmLButtonDown) Reset validation flag. The flag is normally reset on 
8692         ContainerControl.set_ActiveControl, but in the case of non-selectable
8693         controls, like a Label, activecontrol is not set. 
8694
8695         * ButtonBase.cs: Only fire clicks if validation passes.
8696         
8697         Fixes #353310
8698
8699 2008-01-16  Geoff Norton  <gnorton@novell.com>
8700
8701         * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
8702         trunk
8703
8704 2008-01-16  Jonathan Pobst  <monkey@jpobst.com>
8705
8706         * FolderBrowserDialog.cs: If we cannot interpret the user's requested
8707         SelectedPath, just display the default dialog instead of crashing.
8708         [Fixes bug #348989]
8709
8710 2008-01-16  Geoff Norton  <gnorton@novell.com>
8711
8712         * XplatUICarbon.cs:  Flicker be gone!  Generate our messages in
8713         AddExpose instead of trusting apples compositing manager which doesn't
8714         work for our use case.  Remove some dead code causing warnings and 
8715         redecorate some other code to prevent warnings.
8716
8717 2008-01-16  Geoff Norton  <gnorton@novell.com>
8718
8719         * XplatUICarbon.cs:  Avoid some unecessary invalidation calls when
8720         carbon signals us to redraw.  Fixes another portion of the flickering bug
8721
8722 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8723
8724         * Form.cs: Prevent the MdiParent property to be set when value is the same
8725         as value already set. Fixes bug #328019.
8726
8727 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8728
8729         * Form.cs: Don't set mdi_parent as null when mdi window close is prevented, 
8730         it prevents NRE when closing mdi child windows. Fixes bug #325211.
8731
8732 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8733
8734         * InternalWindowManager.cs: Invalidade close button after mouse up when 
8735         mdi form is prevented to close.
8736
8737 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8738
8739         * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
8740         thanks to Andy Hume. Fixes bug #325433.
8741
8742 2008-01-16  Andreia Gaita <avidigal@novell.com>
8743
8744         * LinkLabel.cs: Reset focused_index when resellecting the control.
8745         Fixes #323190
8746
8747 2008-01-15  Geoff Norton  <gnorton@novell.com>
8748
8749         * XplatUICarbon.cs:  Rework Grab/Ungrab handling to send some needed 
8750         messages.
8751
8752 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
8753
8754         * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
8755         of truncate.
8756
8757 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
8758
8759         * ContainerControl.cs: Setting AutoScaleMode to anything should set
8760         Form.AutoScale to false.
8761         * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
8762         AutoScaleBaseSize should be changed on Font change unless it has been
8763         explicitly set.
8764         [Fixes bug #353827]
8765
8766 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
8767
8768         * MenuAPI.cs: On instance of MenuTracker check if source control is
8769         ToolStripOverflow and use properly method to find form.
8770         [Fixes bug #338511]
8771
8772 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
8773
8774         [Fixes bug #323241 Transparent toolbar support]
8775
8776         * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
8777         is flat.
8778
8779         * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
8780         defined in control style to mimic win32 behavior.
8781
8782         * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar, 
8783         it will be transparent.
8784
8785 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
8786
8787         * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
8788         CreateParams for ToolBar controls.
8789
8790 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8791
8792         * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
8793         FixedToolWindow, SizeableToolWindow, or None for border styles have
8794         different minimum sizes than regular forms.  Implemented to fix
8795         regression in PDN with toolbox being too wide.
8796
8797 2008-01-14  Andreia Gaita <avidigal@novell.com>
8798
8799         * HtmlElementCollection.cs: Implemented
8800
8801         * HtmlElement.cs: Implemented:
8802           - All
8803           - InnerHtml
8804           - InnerText
8805           - Id
8806           - Name
8807           - FirstChild
8808
8809         * HtmlDocument.cs: Implemented GetElementsByTagName.
8810
8811 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8812
8813         * Screen.cs: Stub BitsPerPixel to always return 32.
8814
8815 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8816
8817         * Form.cs: Implement RestoreBounds.
8818
8819 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8820
8821         * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
8822         Sebastien and his fabulous magical problem-finding machine:
8823         Gendarme.  Also put a MonoTodo on AutoWordSelect since we don't
8824         respect the value set.
8825
8826 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
8827
8828         * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
8829         minimized. Fixes bug #325122 for Win32. Thanks  Srikanth Madikeri.
8830
8831 2008-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8832
8833         * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
8834         messages (to match .Net), we need to remove the capture ourselves.
8835
8836 2008-01-11  Jonathan Pobst  <monkey@jpobst.com>
8837
8838         * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
8839         will process the message and close our window.
8840         [Fixes bug #324328]
8841
8842 2008-01-10  Geoff Norton  <gnorton@novell.com>
8843
8844         * XplatUICarbon.cs:  Clip the Graphics context to the invalid area
8845         tracked in the Hwnd.  Only invalidate the dirty region to the Carbon
8846         window manager.
8847
8848 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8849
8850         * Form.cs: Enforce the Form minimum size in SetBoundsCore.  Fixed
8851         failing test.
8852
8853 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8854
8855         * XplatUIX11.cs: Set a minimum window size and enforce it.  Even though
8856         Linux doesn't care, having a minimum matches MS and keeps the window
8857         from becoming too small to use window decorations.
8858         [Fixes bug #338996]
8859
8860 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8861
8862         * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
8863         ShowFocusCues.  Make focus rectangles fit the text instead of the whole
8864         control.  [Fixes bug #325419]
8865
8866 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8867
8868         * ComboBox.cs: Guard against an NRE if the user open a new form from a
8869         SelectedIndexChanged event.  This closes the combobox dropdown, and we
8870         were trying to dispose it.  [Fixes bug #352830]
8871
8872 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
8873
8874         * Control.cs, Form.cs: Implement the necessary semantics for
8875         ShowFocusCues.  All paint code will need to check Control.ShowFocusCues
8876         to determine if a focus rectangle should be drawn.
8877         * PropertyGrid.cs: Fix property visibility to match override.
8878         * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
8879
8880 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
8881
8882         * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
8883         [Fixes bug #323552]
8884
8885 2008-01-09  Geoff Norton  <gnorton@novell.com>
8886         
8887         * XplatUICarbon.cs: Scroll windows in the correct direction.
8888
8889 2008-01-09  Geoff Norton  <gnorton@novell.com>
8890
8891         * XplatUICarbon.cs: Track all created utility windows so we can hide them
8892         when the app is deactivated or spaces is enabled.
8893
8894 2008-01-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8895
8896         * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
8897         extra separation pixel for the label rect origin if SmallImageList is
8898         null, and thus we don't need that separation between icon and label
8899         rects.
8900         Patch by Ernesto Carrea.
8901         Fixes # 340195.
8902
8903 2008-01-08  Jonathan Pobst  <monkey@jpobst.com>
8904
8905         * StatusStrip.cs: Invalidate after completing a layout.  The base
8906         OnLayout does this, but we don't call the base.
8907         * ToolStripItem.cs: Revert the previous change to invalidate after
8908         the item moves.
8909         [Fixes bug #351341 better.]
8910
8911 2008-01-07  Geoff Norton  <gnorton@novell.com>
8912
8913         * XplatUICarbon.cs:  WM_DESTROY is a teardown of a single window
8914         not a notification to exit the application.  Listen for WM_QUIT
8915         instead.
8916
8917 2008-01-07  Andreia Gaita <avidigal@novell.com>
8918
8919         * HtmlDocument.cs: Fix case on GetElementById (interface changed)
8920
8921 2008-01-07  Jonathan Pobst  <monkey@jpobst.com>
8922
8923         * ToolStripItem.cs: If the bounds of an item changes, invalidate it
8924         so it can repaint at the correct location.
8925         [Fixes bug #351341]
8926
8927 2008-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8928
8929         * ListControl.cs: SelectedValue should return a null value if
8930         SelectedIndex is -1. Also, when setting it, it should throw an
8931         ArgumentNullException if the value is null, as well as taking
8932         into account the String.Empty value, instead of ignoring it (we have
8933         tests for that now).
8934         Fixes part of #324286.
8935
8936 2008-01-06  Jonathan Pobst  <monkey@jpobst.com>
8937
8938         * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
8939         SelectionStart is updated after pressing enter.  Fixes bug #351918.
8940
8941 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8942
8943         * TextControl.cs: Revert a piece r92316 that prevented the fix
8944         from working when there were multiple tags in the text box.
8945         Fixes bug #351881.
8946
8947 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8948
8949         * TextControl.cs: Apply patch from Luke Page that prevents an
8950         NRE when determining the beginning of a paragraph.
8951         Fixes bug #351886.
8952
8953 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8954
8955         * TextBoxBase.cs: Apply patch from Luke Page that ensures the
8956         caret gets moved with clicking away from a selected block of
8957         text.  Fixes bug #351885.
8958
8959 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8960
8961         * TextControl.cs: Apply patch from Luke Page that takes line
8962         alignment into account for mouse selection, so that center and
8963         right aligned text can be selected.
8964         Fixes bug #351881.
8965
8966 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8967
8968         * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
8969         issues after loading an RTF file by using the correct line feeds.
8970         Fixes bug #351841.
8971
8972 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8973
8974         * TextControl.cs: When deleting multiple line selections, we need
8975         to invalidate every line beginning at the first line of the selection.
8976         Patch from Luke Page fixes bug #351791.
8977
8978 2008-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8979
8980         * ListControl.cs: When getting a CurrencyManager.PositionChanged
8981         event, don't set SelectedIndex if the number of items is 1. This is
8982         because, for the first item, PositionChanged is fired _before_
8983         ItemChanged (the place where we actually populate the items), and
8984         leave us in a temporary invalid state (since items collection is
8985         empty).
8986         Fixes #349655.
8987
8988 2008-01-04  Geoff Norton  <gnorton@novell.com>
8989
8990         * XplatUICarbon.cs:  Create native toolwindows instead of
8991         the managed drawing ones.
8992
8993 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
8994
8995         * LineTag.cs: If the line doesn't have any characters, return
8996         0 for GetCharIndex.  Fixes an AOORE exception after certain
8997         caret movements.  Fixes bug #351683.  Patch by Luke Page.
8998
8999 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
9000
9001         * TextBoxBase.cs: Apply patch from Luke Page so when backspace
9002         is hit when there is selected text, only the selected text gets
9003         deleted, not the character in front of the selection as well.
9004         Fixes bug #351578.
9005
9006 2008-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9007
9008         * ComboBox.cs: When the values are displayed, calculate the
9009         ComboListBox scrollbar's LargeChange based on the visible area's
9010         height and  the actuall ItemHeight, instead of calculating it
9011         based on MaxDropItems value, since it's not used by our _current_ 
9012         2.0 profile.
9013         Fixes #332366.
9014
9015 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
9016
9017         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
9018         Patch from Luke Page that fixes issues with font colors and styles
9019         not showing up in a readonly RichTextBox.  Fixes bug #324354.
9020
9021 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
9022
9023         * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
9024         from Luke Page.  This one fixes bug #349926.
9025
9026 2007-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9027
9028         * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
9029         an item in the IBindingList source changes with
9030         ListChangedType.ItemAdded. Ignore for now firing the event for other
9031         changes, since we want to have tests for those cases as well.
9032
9033 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
9034
9035         * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
9036         created.
9037
9038 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
9039
9040         * TextBoxTextRenderer.cs: Implement a cache for measuring each
9041         character.  This is effective because the typical usage of a
9042         TextBox is with a limited amount of fonts and characters, and
9043         the current implementation of TextBox measures everything one
9044         character at a time.  Another second or two speedup for bug #347238.
9045
9046 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
9047
9048         * Control.cs: Rewrite the Font getter to only query the parent's
9049         Font property once instead of twice.  Since this operation is
9050         recursive, the queries were growing exponentially as the control
9051         tree got deeper.  Another second or two speedup for bug #347238.
9052
9053 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
9054
9055         * Control.cs: Avoid setting a parent (and more importantly, updating
9056         the zorder of all its children) if the parent is already correct in
9057         WmShowWindow.  Decreases the startup time of the test case on bug
9058         #347238 from 35 seconds to 11 seconds.
9059
9060 2007-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9061
9062         * X11Dnd.cs: When the dnd operation has started and we are 
9063         in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
9064         This is done to match .Net, which doesn't send those messages after
9065         dnd operation was completed/cancelled.
9066         Fixes #349922.
9067
9068 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
9069
9070         * ToolStrip.cs: Previous change should be != null, not == null.
9071         Thanks Gert!
9072
9073 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
9074
9075         * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
9076         user may have moved the mouse off the current item during the event.
9077
9078 2007-12-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9079
9080         * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
9081         calling GetItemAt for every MouseMove event by also taking into
9082         account whether any mouse button is pressed (probably dragging); 
9083         if so, we can call GetItemAt, and if not, try to not call it 
9084         (GetItemAt can be quite expensive when used with a large number of items).
9085
9086 2007-12-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9087
9088         * ListView.cs: Implement -finally- support for dnd, by calling
9089         OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
9090         authors list ;-).
9091         * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
9092         simple calculation of distances for all the items in the owner
9093         listview.
9094
9095 2007-12-21  Geoff Norton  <gnorton@novell.com>
9096
9097         * XplatUICarbon.cs:  Ensure that we create WindowMapping handles
9098         for windows that are originally created as invisible.  Fixes missing
9099         main window in paint-mono.
9100
9101 2007-12-21  Geoff Norton  <gnorton@novell.com>
9102
9103         * XplatUICarbon.cs:  Register our D&D handler.  Register our custom
9104         subclass handler for com.novell.mwfview subclassing HIView.  Implement
9105         Pasteboard and Dnd methods.
9106
9107 2007-12-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9108
9109         * ListBox.cs: When we got focus, give focus to first item if there
9110         wasn't any pervious focused item. Also update navigation to depend on
9111         SelectedIndex rather than FocusedItem, just as .Net does.
9112         Fixes #349174.
9113
9114 2007-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9115
9116         * ListBox.cs: Both FindString and FindStringExact methods must do an
9117         case insensitive search, should allow the last valid index to be
9118         passed in the overload taking an initial index, and should also
9119         continue searching from the top back to the specified index when it
9120         reaches the bottom.
9121
9122 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9123
9124         * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
9125         redraw issue, and allows RichTextBox to draw colored text even while
9126         disabled or readonly.
9127
9128 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9129
9130         * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
9131         disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
9132         and doesn't grey text in a disabled RichTextBox.
9133
9134 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9135
9136         * RichTextBox.cs: Apply patch from Luke Page that adds better support
9137         for many RTF commands: quad alignment, separate formatting for blocks
9138         inside groups, and ParDef support.  Makes the test case from bug #324589
9139         look much better.
9140
9141 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9142
9143         * LineTag.cs: Fix an error in the new Draw method that caused
9144         a crash when rendering the document on bug #324589.
9145
9146 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9147
9148         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
9149         TextControl.cs: Apply patch from Luke Page that adds support
9150         for URL links in RichTextBox.
9151         [Fixes enhancement #342516]
9152
9153 2007-12-18  Everaldo Canuto  <ecanuto@novell.com>
9154
9155         * MenuItem.cs: When cloning menuitem clone also name and tag properties for
9156         2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
9157
9158 2007-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9159
9160         * ListBox.cs: When a key gets pressed, try to find a string
9161         if the key is a character or a digit.
9162         Fixes #343971.
9163
9164 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
9165
9166         * TableLayoutPanel.cs: Remove some unused variables.
9167
9168 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
9169
9170         * DateTimePicker.cs: Commit patch from Luke Page that ensures
9171         we don't end up at an invalid date when we click the up/down
9172         spinner to change the month or year.  Fixes bug #348682.
9173
9174 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
9175
9176         * Application.cs: Calling Exit in 2.0 should chain to the
9177         Exit (CancelEventArgs) version so it can be cancelled.
9178         * Form.cs: Create a flag to allow raising the Closing
9179         events to be skipped.  We raise them once in Application.Exit
9180         and don't want to raise them again when the Form is actually
9181         closed.  [Fixes bug #349073]
9182
9183 2007-12-16  Jonathan Pobst  <monkey@jpobst.com>
9184
9185         * ToolStripDropDown.cs: Guard against an NRE when there
9186         hasn't been a mainform set in the application context.
9187         [Fixes bug #349108]
9188
9189 2007-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9190
9191         * ListBox.cs: When SetBoundsCore gets called, besides
9192         calling UpdateScrollBars, update the value of
9193         last_visible_index, since we could need to show more items
9194         than before, and we need to let the paint routines know that.
9195         Fixes #344445.
9196
9197 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9198
9199         * ListView.cs: Add DesignerSerializationVisibility attribute to
9200         InsertionMark property.
9201         * ListViewItem.cs: Add same attribute to Position property.
9202
9203 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9204
9205         * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
9206         is 2.0 only.
9207
9208 2007-12-14  Jonathan Pobst  <monkey@jpobst.com>
9209
9210         * ThemeWin32Classic.cs: Don't draw the background on a
9211         flat button if there is a background image.
9212         [Fixes bug #348649]
9213
9214 2007-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9215
9216         * ListBox.cs: If we remove the item currently selected,
9217         remove it not only from SelectedItems, but also
9218         resetting selected_index. Moreover, set focused_item to Items.Count - 1 if 
9219         the items count decreased and focused_item has bigger value than that.
9220
9221 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
9222
9223         * Control.cs: Perform our layout after we resize ourselves
9224         if we had to adjust our AutoSize.  Missed commit for bug
9225         #346246.
9226
9227 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
9228
9229         * TableLayoutPanel.cs: Override GetPreferredSizeCore so
9230         we can provide an implementation of AutoSize.
9231         [Fixes bug #346246]
9232
9233 2007-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9234
9235         * ListBox.cs: Add the internal overload Sort (bool paint),
9236         to indicate whether we actually need a paint or we will
9237         call Refresh ourselves. This way we don't request a paint
9238         _before_ having an updated and valid layout.
9239         Fixes #347233.
9240
9241 2007-12-12  Andreia Gaita <avidigal@novell.com>
9242
9243         * XPlatUIX11.cs: Send paint messages when updating a systray icon
9244         * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
9245         properly invalidated. 
9246         Fixes #324237
9247
9248 2007-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9249
9250         * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
9251         don't simply assign it to our internal group field, but instead 
9252         use our Group property, which should do all the neccessary work
9253         required to support groups. Fixes an issue reported to me (mail) by a 
9254         guy using this new feature.
9255
9256 2007-12-11  Jonathan Pobst  <monkey@jpobst.com>
9257
9258         * Control.cs: Use Scale instead of ScaleControl to ensure the
9259         whole hierarchy gets scaled.
9260         [Fixes bug #347282]
9261
9262 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
9263
9264         * DateTimePicker.cs: Don't set the internal MonthCalendar's
9265         Parent property.  Doing this causes the control to be hosted by
9266         the Form instead of being a popup window.
9267         [Fixes bug #347665]
9268
9269 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
9270
9271         * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
9272         at an index higher than Count, just use Add instead of Insert.
9273         [Fixes bug #347669]
9274
9275 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
9276
9277         * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
9278         DrawPictureBox, this is handled by Control.PaintBackground.
9279         [Fixes bug #347276]
9280
9281 2007-12-10  Everaldo Canuto  <ecanuto@novell.com>
9282
9283         * MenuAPI.cs: When process menu keys return true by default only if menu is
9284         active. Fixes bug #342892.
9285
9286 2007-12-09  Andreia Gaita <avidigal@novell.com>
9287
9288         * Control.cs: check if windows are actually mapped before
9289         trying to zorder. Fixes #342509, #346955
9290
9291 2007-12-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9292
9293         * ListView.cs:
9294         * ListViewInsertionMark.cs:
9295         * ThemeWin32Classic.cs: Implement the drawing side of the
9296         new 2.0 ListView.InsertionMark property.
9297
9298 2007-12-07  Jonathan Pobst  <monkey@jpobst.com>
9299
9300         * CurrencyManager.cs: Silence some debug spew.
9301
9302 2007-12-07  Geoff Norton  <gnorton@novell.com>
9303         
9304         * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
9305         masks for our children as well as siblings to avoid having to query
9306         Quartz for this information.
9307         * XplatUICarbon.cs: Implement a delegate based system to pass
9308         information to System.Drawing.  Implement Async methods.  Remove
9309         the hack for the resize thumb and imlpement a transparent Grow Box.
9310         Rework the messaging system to proplery create window's and messages,
9311         fixes TabControl.
9312
9313 2007-12-06  Andreia Gaita <avidigal@novell.com>
9314
9315         * X11Keyboard.cs: Use Xutf8LookupString to support international 
9316         characters under alternate codepages. Patch from #340878
9317
9318 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9319
9320         * ListView.cs: When doing layout computations, set position in the
9321         ListView instances (we cache the position just as .Net does).
9322         * ListViewItem.cs: New internal setter method for Position. Also set
9323         position field as also available in 1.1, since we are going to use it
9324         now in the common case.
9325
9326 2007-12-06  Andreia Gaita <avidigal@novell.com>
9327
9328         * Control.cs: When removing controls, get the actual container
9329         to notify about active control changes. Fixes 341314.
9330
9331 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9332
9333         * ListViewItem.cs: Forgot to add Font to our serialization stuff.
9334
9335 2007-12-05  Andreia Gaita <avidigal@novell.com>
9336
9337         * Control.cs: When updating the zorder, ignore windows that are not
9338         mapped. Fixes #342509
9339
9340 2007-12-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9341
9342         * ListViewItem.cs: Actually implement serialization on this class.
9343
9344 2007-12-05  Gert Driesen  <drieseng@users.sourceforge.net>
9345
9346         * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
9347         LinkCollection. Spaces to tabs, and removed extra tabs.
9348
9349 2007-12-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9350
9351         * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
9352           tests to fail (hopefully).
9353
9354 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
9355
9356         * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
9357         the image margin so custom renderers can correctly place it.
9358
9359 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
9360
9361         * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
9362         so custom renderers can correctly place it.
9363
9364 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
9365
9366         * Application.cs: Let WM_CHAR messages flow through to controls
9367         hosted in Strips.  [Fixes bug #343972]
9368
9369 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
9370
9371         * ToolStripManager.cs: Guard against an NRE I ran into.
9372
9373 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
9374
9375         * LinkLabel.cs: Apply patch from George to fix bug 344012.  If
9376         a Link is manually added to the Links collection, we need to set
9377         its owner, so it can invalidate properly.
9378         [Fixes bug #344012]
9379
9380 2007-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9381
9382         * ListView.cs: When changing ListViewItem.Position (which calls
9383         ListView.ChangeItemLocation), invalidate not only the area
9384         corresponding to the main item, but also to the area occupied
9385         by the items being moved.
9386
9387 2007-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9388
9389         * ListView.cs: When changing the position of a given item,
9390         don't use item bounds, but item areas (which includes the item spacing
9391         between them). Also, use first/last position if the requested
9392         position is outside bounds (as .Net does). Invalidate the previous and
9393         new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
9394         in a specific position, instead of directly accessing Items collection
9395         (this is done to get the right item - remember an Item can have a
9396         different position in the grid than in the Items collection).
9397
9398 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
9399
9400         * MessageBox.cs: Calculate text area instead of just top left, this rect 
9401         area will be used in DrawString. Fixes bug #343364.
9402
9403 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
9404
9405         * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
9406         screen width. Partially fixes bug #343364.
9407
9408 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
9409
9410         * NotifyIcon.cs: Remove duplicated code before call realculate and put this
9411         code inside recalculate, it makes code more simple.
9412
9413 2007-11-22  Everaldo Canuto  <ecanuto@novell.com>
9414
9415         * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
9416         between update or add icon. Fixes bug #324344.
9417
9418 2007-11-21  Andreia Gaita <avidigal@novell.com>
9419
9420         * XPlatUIX11.cs: Do not treat tool windows as if they have no 
9421         window manager, since that stretches the drawing area to include
9422         the window decorations, and they get hidden. Reverts r84444 and fixes
9423         #335849 and #342790 (mdi and pdn3 regression)
9424
9425 2007-11-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9426
9427         * ListView.cs: When setting focused item, try to give focus to the
9428         previous one _only_ if the previous one remains valid. 
9429         Fixes #342504.
9430
9431 2007-11-20  Jonathan Pobst  <monkey@jpobst.com>
9432
9433         * Application.cs: Revert r89650, as it broke a common case to fix
9434         an obscure case.  Fixes bug #342606.
9435
9436 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
9437
9438         * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
9439
9440 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
9441
9442         * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal 
9443         alignment. [Fixes #324228]
9444
9445 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
9446
9447         * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
9448         [Fixes bug #342123]
9449
9450 2007-11-19  Everaldo Canuto  <ecanuto@novell.com>
9451
9452         * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
9453         it prevent problems when empty captions. [Fixes #342141]
9454
9455 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
9456
9457         * Label.cs: Use Size instead of None.  Fixes bug #342077.
9458
9459 2007-11-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9460
9461         * ListViewItem.cs: Implement 2.0 FindNearestItem method.
9462
9463 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
9464
9465         * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
9466         but there isn't a MdiContainer.
9467         [Fixes bug #342358]
9468
9469 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
9470
9471         * TextControl.cs: Don't recalculate document if the recalc_start and
9472         recalc_end hasn't changed.
9473         [Fixes bug #342505]
9474
9475 2007-11-17  Gert Driesen  <drieseng@users.sourceforge.net>
9476
9477         * DataGridViewTextBoxCell.cs: Removed CWL.
9478
9479 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9480
9481         * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
9482
9483 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
9484
9485         * TextControl.cs: Missed some code for bug 341534 to trigger a
9486         recalculation when the font changes.
9487
9488 2007-11-16  Andreia Gaita <avidigal@novell.com>
9489
9490         * Control.cs: When updating the zorder, check if the child to update is
9491         the same control that is set to always be on top (i.e., scrollbars), and 
9492         just put it on top directly. Fixes BadMatch error on pdn3
9493
9494 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9495
9496         * ListView.cs: Throw the needed exceptions for FindNearestItem.
9497
9498 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
9499
9500         * Control.cs: Don't perform a new layout when a label changes its text,
9501         cause label handles its own autosizing.
9502         [Fixes bug #342077]
9503
9504 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9505
9506         * ListView.cs: Implement 2.0 FindNearestItem methods.
9507
9508 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
9509
9510         * ToolStripPanel.cs: Make Join at least add the control to the panel,
9511         even if the rest of what Join does isn't supported.  Add some more
9512         support for vertical toolbars.
9513         * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
9514         [Fixes the application breaking parts of bug #341998]
9515
9516 2007-11-15  Jonathan Pobst <monkey@jpobst.com>
9517
9518         * ToolStripItem.cs: When determining if we have a check/image margin,
9519         we need to look at ShowCheckMargin as well as ShowImageMargin.
9520
9521 2007-11-15  Geoff Norton  <gnorton@novell.com>
9522
9523         * XplatUIOSX.cs: Rename to...
9524         * XplatUICarbon.cs: and refactor all event handling out to the new event handling
9525         system in System.Windows.Forms.CarbonInternal.  Lots of code cleanup as well.
9526
9527 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
9528
9529         * KeysConverter.cs: The default values should be an array of Keys, not
9530         strings.  Also, the array has more values for 2.0.
9531         [Fixes bug #341851]
9532
9533 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
9534
9535         * Application.cs: Change ExecutablePath to use 
9536         Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
9537         [Fixes bug #323552]
9538
9539 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
9540
9541         * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
9542         When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
9543         * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
9544         be ignored.  Create a new GetLineEnding that can specify which types of
9545         line endings to look for.  On Insert, only create new lines for \n and \r\n.
9546         [Fixes bug #324274]
9547
9548 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
9549
9550         * TextBoxBase.cs: As we loop through each line changing the font, tell
9551         the document that the line needs to be recalculated.  Fixes bug #341534.
9552
9553 2007-11-13  Jonathan Pobst  <monkey@jpobst.com>
9554         [Another round of refactoring]
9555         * Line.cs: Add DeleteCharacters.
9556         * LineTag.cs: Add Delete.
9557         * TextBoxBase.cs: Update to use new methods.
9558         * TextControl.cs: Refactor the Delete* methods.
9559
9560 2007-11-13  Everaldo Canuto  <ecanuto@novell.com>
9561
9562         * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
9563         the patch. [Fixes #324856]
9564
9565 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9566
9567         * ListView.cs:
9568         * ListViewItem.cs: Add an initial implementation of
9569         2.0 ListViewItem.Position getter.
9570
9571 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9572
9573         * ListView.cs: Add a reordered_items_indices array, to allow us
9574         to have a different sorting than that of Items (the sorting in Items
9575         could not match the actual sorting in screen). This is needed to
9576         implement a pair of 2.0 features.
9577         * ListViewItem.cs: Add a DisplayIndex property to keep track of the
9578         actual position in the ListView grid, since it could have a position
9579         different than its Index (position in ListViewItemCollection). 
9580
9581 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
9582
9583         * Label.cs: Add StringFormatFlags.LineLimit.  This tells DrawString to
9584         not draw partial lines.
9585         * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
9586         LineLimit flag from the base is preserved.
9587         Fixes the windows part of bug #338965.
9588
9589 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
9590
9591         * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
9592         so that it can be canceled in KeyPress.
9593         Fixes bug #340078.
9594
9595 2007-11-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9596
9597         * ListView.cs: In ItemControl, reset mouse-handling related
9598         fields even if we dont' have items (we still should reset them when
9599         we had items but then called Items.Clear). Partially based in a patch
9600         by George Giolfan.
9601         Fixes #338399.
9602
9603 2007-11-08  Gert Driesen  <drieseng@users.sourceforge.net>
9604
9605         * Application.cs: In ProductVersion first try AssemblyFileVersion
9606         before falling back to assembly version. Fixes bug #339787.
9607
9608 2007-11-08  Andreia Gaita <avidigal@novell.com>
9609
9610         * HtmlElement.cs: Implement InnerText setter.
9611         * WebBrowserBase.cs: Implement Navigated event support.
9612         Add flag to track when the browser "document" is ready to be retrieved.
9613         * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
9614         Make sure browser document is ready before retrieving it.
9615         Clean up cached objects (document) when moving to a new page through
9616         any of the navigation methods.
9617         Use the new Mono.WebBrowser.INavigation interface to control navigation.
9618         Implement OnNavigated event.
9619
9620 2007-11-07  Jonathan Pobst  <monkey@jpobst.com>
9621
9622         * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
9623         DrawLinkLabel, this is handled by OnPaintBackground.
9624         Fixes bug #339565, part II.
9625
9626 2007-11-07  Andreia Gaita <avidigal@novell.com>
9627
9628         * Control.cs: Revert r88915. Selecting text on a textbox depends on
9629         getting a Select call on click, so this call needs to be here for now.
9630         Unfixes #325809
9631
9632 2007-11-07  Geoff Norton  <gnorton@novell.com>
9633
9634         * OSXStructs.cs: Add the kEventClassApplication constants.
9635         * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the 
9636         application is deactivated otherwise Menu overlays linger on top of
9637         other application windows.
9638
9639 2007-11-07  Geoff Norton  <gnorton@novell.com>
9640
9641         * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
9642         dont support cursors yet anyways.  This allows Reflector to run.
9643
9644 2007-11-07  Geoff Norton  <gnorton@novell.com>
9645
9646         * XplatUIOSX.cs: Implement DragSize.
9647
9648 2007-11-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9649
9650         * ListView.cs: When we receive a WM_LBUTTONDOWN message in
9651         ItemControl, request the focus, as .Net does. This is needed after 
9652         Control does not request focus anymore when it receives a
9653         WM_LBUTTONDOWN.
9654
9655 2007-11-06  Jonathan Pobst  <monkey@Jpobst.com>
9656
9657         * Label.cs: Make DrawImage internal so it can be called from Theme code.
9658         Remove the DrawImage call from OnPaint.
9659         * LinkLabel.cs: Remove the DrawImage call from OnPaint.
9660         * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
9661         but before we draw the text for DrawLabel and DrawLinkLabel.
9662         Fixes bug #339565.
9663
9664 2007-11-05  Andreia Gaita <avidigal@novell.com>
9665
9666         * Control.cs: Remove select call on click. Fixes #325809
9667
9668 2007-11-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9669
9670         * ListViewItem.cs: Add 2.0 Position property getter.
9671
9672 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9673
9674         * ListView.cs: Add 2.0 BackgroundImageTiled property.
9675         Also, to make it work properly, change item's BackColor and
9676         BackgroundImageLayout as needed.
9677         * ThemeWin32Classic.cs: Don't fill any background rectangle 
9678         in ListView.ItemControl when drawing items; just let the Control
9679         base implementation fill it.
9680
9681 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9682
9683         * ListViewGroup.cs: Adda TypeConverter attribute for this class,
9684         as well as adding a custom 'dummy' Converter, as .net does.
9685
9686 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9687
9688         * PropertyGridView.cs: When clicking drop-down button,
9689         select an index in the listbox only if our standard values collection 
9690         has one or more items.
9691
9692 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9693
9694         * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
9695         property.
9696
9697 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
9698
9699         * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
9700         the value is not changed. This ensure a pushed button remains in that
9701         state when clicked again. When switching the value of PropertySort
9702         between Categorized and CategorizedAlphabetical, do not update the
9703         grid items and do not fire a PropertyChangedEvent. When clicking the
9704         sorting buttons, do not modify the PropertySort value when switching
9705         between Categorized and CategorizedAlphabetical but only update the
9706         button state.
9707
9708 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
9709
9710         * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
9711         formatting.
9712         * PropertyGrid.cs: Also put Categorized button in pushed state when
9713         PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
9714         for help description label.
9715
9716 2007-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9717
9718         * ListView.cs: When calculating the biggest item for a given column,
9719         take into account 2.0 LIstViewItem.IndentCount, since it directly affects
9720         the item's width.
9721
9722 2007-11-03  Gert Driesen  <drieseng@users.sourceforge.net>
9723
9724         * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
9725         value for PropertySort on 1.0 profile. PropertySortChanged event
9726         should only be fired on 2.0 profile. Fixed NullReferenceException
9727         in UpdateSortLayout when PropertyGrid contains no items.
9728
9729 2007-11-02  Jonathan Pobst  <monkey@jpobst.com>
9730
9731         * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
9732         [Fixes bug #338554]
9733
9734 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9735
9736         * ListViewItem.cs: Implement 2.0 IndentCount property.
9737
9738 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9739
9740         * X11Dnd.cs: When sending status in a dnd operation, compare current
9741         effect with the 'allowed' field instead of 'drag_data.Allowed', since
9742         the later is only created when a Winforms application is both the
9743         source and the target, but not when we are the target only.
9744         Fixes part of #324251.
9745
9746 2007-11-01  Geoff Norton  <gnorton@novell.com>
9747
9748         * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
9749         order of Z-Order.
9750         * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling 
9751         children out of the drawing view on mac.
9752         * XplatUIOSX.cs: Code cleanup.  Handle more window grab cases.  Fix SetParent
9753         to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
9754         
9755 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
9756
9757         * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
9758         on the non-hosted-control part of it shouldn't do anything.
9759         Fixes part of bug #327498.
9760
9761 2007-11-01  Andreia Gaita <avidigal@novell.com>
9762
9763         * WebBrowserBase.cs: revert previous change, resize can be called anytime
9764
9765 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
9766
9767         * Application.cs: When a toolstrip has the keyboard input loop, let messages
9768         it does not use flow through to controls that are hosted in menus.
9769         Same with mouse clicks.
9770         * Form.cs: Don't close all menus on click if the click is on a
9771         control hosted in a menu.
9772         Fixes part of bug #327498, and part of bug #325969.
9773
9774 2007-10-31  Andreia Gaita <avidigal@novell.com>
9775
9776         * WebBrowserBase.cs: Only call resize on gluezilla when it is active
9777
9778 2007-10-31  Jonathan Pobst  <monkey@jpobst.com>
9779
9780         * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
9781         Addresses an issue raised in bug #336218.
9782
9783 2007-10-30  Jonathan Pobst  <monkey@jpobst.com>
9784
9785         * Form.cs: Patch from George that moves the conversion of ClientSize->Size
9786         for PreferredSize from OnLayout to PreferredSize.  Fixes bug #325242.
9787
9788 2007-10-30  Andreia Gaita <avidigal@novell.com>
9789
9790         * ContainerControl.cs: Check if the active control is a
9791         child of a removed control and update active_control accordingly.
9792         Fixes #329718
9793
9794 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9795
9796         * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
9797         or the MaxDate.  Fixed bug #337693.
9798
9799 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9800
9801         * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
9802         after calling SetWindowLong for a form, to force an immediate NC refresh.
9803         Fixes first part of bug #325150.
9804
9805 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9806
9807         * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
9808         simple.  Fixes the last part of bug #322668.
9809
9810 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9811
9812         * MessageBox.cs: If the owner is TopMost, then the MessageBox form
9813         needs to be TopMost as well, or else the MessageBox is under the form.
9814         Patch by George fixes bug #325300.
9815
9816 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9817
9818         * X11Dnd.cs: When starting a new drag operation, reset the static
9819         'dropped' field to false (previously the implementation didn't reset
9820         it and got confused after the first drag).
9821         Fixes #325071.
9822
9823 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9824
9825         * PropertyGrid.cs: When PropertySort changes, re-organize the grid
9826         items instead of re-creating them all. For this purpose we now cache
9827         both CategoryGridEntry items and the GridEntries for the main object's
9828         properties.
9829         * GridItem.cs: Make SetParent method abstract.
9830         * GridEntry.cs: Override the SetParent method (already there, but now
9831         we override it).
9832         Fixes #324866.
9833
9834 2007-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9835
9836         * PropertyGridView.cs: Set the plus/minus bounds of a grid item
9837         depending on its depth (as .Net does). Update the needed values in
9838         MouseDown handler. Also draw the plus/minus rect after the label,
9839         so we don't draw on top of it.
9840
9841 2007-10-24  Everaldo Canuto  <ecanuto@novell.com>
9842
9843         * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
9844         processed by forms or controls when menu is active. [Fixes #333548]
9845
9846 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
9847
9848         * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
9849         parent doesn't have focus.  This was causing ToolStripTextBoxes to take
9850         focus on mouse over.
9851
9852 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
9853
9854         * TextControl.cs: Code cleaning, simplifying.
9855
9856 2007-10-24  Geoff Norton  <gnorton@novell.com>
9857
9858         * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
9859         * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
9860
9861 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
9862
9863         * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
9864         the cap is maxvalue, not actually 0.  [Fixes bug #336218]
9865
9866 2007-10-24  Andreia Gaita <avidigal@novell.com>
9867
9868         * SendKeys.cs: apply jpobst's patch to bug #332409
9869
9870 2007-10-23  Andreia Gaita <avidigal@novell.com>
9871
9872         * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the 
9873         Windows 2000 gdi DrawText call doesn't draw if it's higher than that
9874         for some reason
9875
9876 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9877
9878         * PropertyGridView.cs: If a property has an UIEditor available,
9879         make the drop-down/editor button available only if the property
9880         is _not_ read only.
9881
9882 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9883
9884         * PropertyGridView.cs: Don't make the grid item textbox 
9885         editable when a drop-down control is available, but 
9886         CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
9887         true. The same bur the color of the grid item value's label.
9888
9889 2007-10-22  Geoff Norton  <gnorton@novell.com>
9890
9891         * OSXStructs.cs: Add the needed constants for keyboard modifiers.
9892         * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
9893         * XplatUIOSX.cs: New reversible frame support.  Wire in the new keyboard
9894         driver.  Padd the bottom of all real windows so the resize thumb doesn't
9895         obscure scroll/status bars.
9896
9897 2007-10-22  Jonathan Pobst  <monkey@jpobst.com>
9898
9899         * WindowsFormsSection.cs: Implement.
9900
9901 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
9902
9903         * MdiClient.cs: Maximize new active mdi child when a maximized child is 
9904         closed see #325434 patch.
9905
9906 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
9907
9908         * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
9909         see #325434 patch.
9910
9911 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9912
9913         * PropertyGridView.cs: When showing the textbox for a grid item,
9914         have two local variables to store the read-only and non-editable
9915         status of a grid item (we were previously using just one variable
9916         to do this, when actually they are slightly different).
9917         Fixes part of #325023.
9918
9919 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9920
9921         * PropertyGridView.cs: When showing a drop-down list, try to get the
9922         values using TypeConverter.ConvertTo (to convert to a string). Fixes
9923         part of #325023.
9924
9925 2007-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9926
9927         * PropertyGrid.cs: When updating a property and populating sub grid
9928         items, remove the previous ones, and invalidate the specific area.
9929         * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
9930         area behind a grid item.
9931         * GridItemCollection.cs: Add an internal Clear method, to allow us to
9932         clean the items if needed (specially for controls implementing 
9933         ICustomTypeDescriptor and returning a variable number of properties).
9934         Fixes #324865.
9935
9936 2007-10-19  Jonathan Pobst  <monkey@jpobst.com>
9937
9938         * TextControl.cs: Clean up and document the Insert function.
9939
9940 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9941
9942         * TextControl.cs: Make sure we know our start point for updating the view
9943         in ReplaceSelection.  Fixes an issue where pasting multiline text wouldn't
9944         update the view.
9945
9946 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9947
9948         * ListView: Couple of corcompare fixes.
9949
9950 2007-10-17  Geoff Norton  <gnorton@novell.com>
9951
9952         * XplatUIOSX.cs: Implement support for window icons in the dock.  Set
9953         the title caption of real window.
9954
9955 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9956
9957         * ErrorProvider.cs: Add the error provider's internal window to a 
9958         containercontrol when the parent changes.  [Fixes bug #329714]
9959
9960 2007-10-17  Geoff Norton  <gnorton@novell.com>
9961
9962         * XplatUIOSX.cs: Implement ScrollWindow.  Properly create TOOLWINDOWs.
9963         When we make a new window; restore the old active window - fixes dialogs.
9964
9965 2007-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9966
9967         * PropertyGridView.cs: Look for RefreshPropertiesAttribute
9968         when modifying a property, and if found then invalidate as
9969         requested.
9970         Fixes part of #324865.
9971
9972 2007-10-17  Geoff Norton  <gnorton@novell.com>
9973
9974         * XplatUIOSX.cs: Re-enable the native driver on the Mac.  This is still
9975         highly experimental.  Fixed coordinate translation.  Fixed window locations.
9976         Initial support for clipping. Implemented NC areas and menus.  Support for
9977         launching from command line from Will Johansson (wjohansson@atacomm.com).
9978         * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
9979         wjohansson@atacomm.com)
9980         * Hwnd.cs: Add some internal structures for tracking Mac cursors.
9981         Hwnds now track the existence of all of their children for Mac clipping.
9982     * XplatUI.cs: Re-enabled the native driver on the Mac.
9983
9984 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9985
9986         * Line.cs: Move the InsertString function to here.
9987         * TextControl.cs: Cleanup some duplicate code, move some InsertString
9988         functionality to Line.
9989
9990 2007-10-17  Geoff Norton  <gnorton@novell.com>
9991
9992         * ComboBox.cs: Destroy the popup after hiding it.  Fixes #322582
9993
9994 2007-10-16  Gert Driesen  <drieseng@users.sourceforge.net>
9995
9996         * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
9997         always setting value to true.
9998         * Form.cs: When changing AcceptButton, notify new and original button.
9999
10000 2007-10-16  Jonathan Pobst  <monkey@jpobst.com>
10001
10002         * Form.cs: Guard against an NRE when the user sets the AcceptButton to
10003         a custom control that implements IButtonControl instead of an actual
10004         button.  [Fixes bug #334244]
10005
10006 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
10007
10008         * Form.cs: Change SelectActiveControl to internal, we need to call it in
10009         MdiWindowManager.
10010         
10011         * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
10012         active control when activate a new mdi window.
10013         
10014         [Fixes bug #330495]
10015
10016 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
10017
10018         * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
10019         is already added.
10020         [Fixes bug #333617]
10021
10022 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
10023
10024         * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
10025         to MaxValue and recalc_end to MinValue.  Currently, recalc_start is always 1,
10026         so we always recalculate the whole document instead of just the new part.
10027         [Fixes bug #325082]
10028
10029 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
10030
10031         * LineTag.cs: Fix a case where the GetCharIndex would not return 0
10032         when the mouse was to the left of the first character in the line.
10033
10034 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
10035
10036         * TextBox.cs, TextBoxBase.cs: When setting the document's password
10037         character, use the property instead of the variable so that the
10038         UseSystemPasswordChar property is taken into account.
10039         [Fixes bug #333748]
10040
10041 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10042
10043         * FolderBrowserDialog.cs: When a node is right clicked and the "New
10044         folder" contex menu appears, actually add the new folder to it, even
10045         if the node is not currently selected. Still use SelectedNode in case 
10046         there wasn't found a node under the pointer.
10047         Fixes #325452.
10048
10049 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10050
10051         * ListViewItem.cs: When retrieving the focused state, the index check
10052         should be done only when ListView is in virtualmode, as it is an
10053         expensive check for normal mode.
10054
10055 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10056
10057         * ListViewItem.cs: Make the focus state information be stored
10058         in the ListView, not in the items. This is done to match the MS
10059         behaviour for items that are not yet part of a ListView control;
10060         besides that, since just one item can be focused at the same time,
10061         we save a little space in our items.
10062         Fixes part of #331643.
10063
10064 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
10065
10066         * ComboBox.cs: When focus is lost, deselect the text. When setting
10067         text of control, select all text. Do not hide selection when control
10068         does not have focus. Fixes bug #333663.
10069
10070 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
10071
10072         * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
10073         instead of ArgumentException when SelectionLength is set to negative
10074         value. Added same check to SelectionStart. Code formatting.
10075
10076 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
10077
10078         * TextBoxBase.cs: Invalidate selection before changing SelectionLength
10079         or SelectionStart. Code formatting.
10080
10081 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10082
10083         * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
10084         indicating that there was not a previous drag-and-drop operation going
10085         on.
10086         Fixes part of #325071.
10087
10088 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10089
10090         * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
10091         AllowedEffect, don't let the drop operation happen. 
10092         Fixes #32580.
10093
10094 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
10095
10096         * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
10097
10098 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
10099
10100         * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
10101         is called.
10102
10103 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
10104
10105         * Line.cs: Add a method that finds the tag that contains an x-coord.
10106         * LineTag.cs: Add a method that finds the character at an x-coord using
10107         a binary search, the old way was a linear search.
10108         * TextControl.cs: Change FindCursor to use the above new methods.
10109
10110 2007-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10111
10112         * DragEventArgs.cs: Allow Effect to have a non allowed value (a
10113         value different than AllowedEffect). This should be possible to
10114         indicate that dragging is not possible in some control/area.
10115
10116 2007-10-11  Jonathan Pobst  <monkey@jpobst.com>
10117
10118         * LineTag.cs: Encapsulate all variables with properties.  Calculate ascent/
10119         descent internally when font changes instead of outside code being responsible
10120         for setting it.
10121         * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
10122         instead of accessing internal variables.
10123
10124 2007-10-09  Everaldo Canuto  <ecanuto@novell.com>
10125
10126         * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
10127         remove special treatment for ArrangeIcons since it is already arranged.
10128
10129 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
10130
10131         * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
10132         the Win32 backend uses Color.
10133         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
10134         Refactor to store a Color instead of a Brush for Color.
10135
10136 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
10137
10138         * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
10139         away.  I didn't realize I needed this when I refactored these earlier.
10140
10141 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
10142
10143         * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
10144         store a Color structure and use the ResPool for back color instead of
10145         holding onto brushes.
10146
10147 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
10148
10149         * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
10150         [Fixes bug #325592]
10151
10152 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10153
10154         * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
10155         to recalculate its size.  Fixes a part of bug #331052.
10156
10157 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10158
10159         * NotifyIcon.cs: Set the correct mouse button when handling right mouse
10160         button.  Fixes a part of bug #331052.
10161
10162 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10163
10164         * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
10165         the CreateParams.
10166         * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
10167         decorations.
10168         [Fixes bug #330986]
10169
10170 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10171
10172         * TextBoxTextRenderer.cs: Don't make this a static class, as static
10173         doesn't exist in 1.1.  (Thanks jb!)
10174
10175 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10176
10177         * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
10178         class to allow us to use different backends on different platforms.
10179         Linux uses the current [Draw|Measure]String backend.  Windows uses
10180         the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
10181         of GDI+.  This leads to better looking text and more accurate measurements
10182         on Windows, fixing many of the reported issues.
10183         * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
10184
10185 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10186
10187         * FolderBrowserDialog.cs: When running on Windows,
10188         try to detect paths such "C:" and add Path.DirectorySeparatorChar,
10189         since we must match both "C:" and "C:\" forms. A little hackish, but
10190         works.
10191         Fixes #325247.
10192
10193 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10194
10195         * ListView.cs: When calling EndEdit (after editing an item),
10196         create a new instance of LabelEditEventArgs to keep clean the fields
10197         in case we get a new call to BeginEdit; also do Application.DoEvents
10198         to have focus in synch. This is a fix similar to TreeView's #325244.
10199
10200 2007-10-07  Andreia Gaita <avidigal@novell.com>
10201
10202         * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
10203         * WebBrowserBase.cs: Added dialog support, calling the
10204           WebBrowserDialogs classes for each specific dialog type.
10205
10206 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10207
10208         * ListView.cs: When the last item is focused and is removed,
10209         move the focus to the previous item (in Items order). This is what MS
10210         does.
10211         Fixes #330415.
10212
10213 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10214
10215         * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
10216         instead of the opposite (RemoveAt call Remove). This is a better
10217         approach since we don't need to to a pair of traversals when using
10218         RemoveAt.
10219
10220 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10221
10222         * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
10223         check that the node actually has nodes, and if not, move to the
10224         parent node instead. 
10225         Fixes #325265.
10226
10227 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10228
10229         * TreeView.cs: Move the previous change to the general case (to
10230         call Application.DoEvents in cases where the method was called by
10231         different places).
10232
10233 2007_10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10234
10235         * TreeView.cs: When calling EndEdit and we need to hide the textbox,
10236         call Application.DoEvents. This is neccessary when we get a call to
10237         BeginEdit from an AfterLabelEdit handler, because the focus always
10238         goes to the TreeView, even if we try to give it to our
10239         LabelEditTextBox. The call do Application.DoEvents seems to
10240         synchronize the focus, basically.
10241         Fixes #325244.
10242
10243 2007-10-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10244
10245         * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
10246         should be false. This also removes some nasty recursive paths. Fixes
10247         part of #325244.
10248
10249 2007-10-04  Everaldo Canuto  <ecanuto@novell.com>
10250
10251         * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
10252         state to normal. Also resize window when cascading. Fixes #325433. 
10253
10254 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
10255
10256         * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
10257         DefaultForeColor, as drawing empty colored lines isn't very useful.
10258         [Fixes the not drawn lines part of bug #324358]
10259
10260 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
10261
10262         * TextControl.cs: Move Line and LineTag classes into separate files to
10263         make things easier to find.
10264         * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
10265         * RichTextBox.cs: Capitalize LineTag.Length property access.
10266         - This is purely an organizational/formatting change, no logic changed. -
10267
10268 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10269
10270         * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
10271         text is empty.
10272
10273 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10274
10275         * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
10276         text is empty.
10277
10278 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10279
10280         * ComboBox.cs: On contructor use backgound_color instead of BackColor to
10281         prevent calling of OnBackColorChanged. Fixes #325321.
10282
10283 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10284
10285         * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
10286         because control can be disabled because owner is disabled.
10287
10288 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
10289
10290         * ComboBox.cs: For the 1.1 profile, the default SelectedText is
10291         string.Empty, test failed from previous change.
10292
10293 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
10294
10295         * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
10296         is null, not String.Empty.  See bug #323038.
10297
10298 2007-10-01  Jonathan Pobst  <monkey@jpobst.com>
10299
10300         * TextControl.cs: Change the margins to match MS a little better.
10301         Still not perfect for X11 due to some DrawString differences, but
10302         is still an improvement over the old stuff.
10303         Partially fixes #324467.
10304
10305 2007-09-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10306
10307         * FolderBrowserDialog.cs: When using MyComputer as 
10308         RootFolder, let absolute paths be considered as valid ones. Also, use
10309         Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
10310         for Windows compatibility.
10311         Partially fixes #325247.
10312
10313 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10314
10315         * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
10316         Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
10317         method, since it causes the dialog to not select folders directly
10318         under the root path (when setting SelectedPath property).
10319
10320 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10321
10322         * TreeNode.cs: When calling Expand/Collapse and need to call 
10323         ExpandBelow/CollapseBelow respectively, take into account
10324         partially visible nodes (previously Expanding/Collapsing
10325         a partially visible node in the bottom was not updating its +- sign).
10326
10327 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10328
10329         * TreeView.cs: When calling Expand on a TreeNode, and we need to
10330         expand nodes below (ExpandBelow), scroll the entire Viewport
10331         area if the node is above it and not visible (instead of scrolling
10332         the area from node's Bottom, which applies only when the node is
10333         visible).
10334         Fixes #325266.
10335
10336 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10337
10338         * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
10339         node in the bottom area (as .Net does). This is done to preserve the
10340         scroll position when ExpandAll is called before handle is created for
10341         the 1.1 profile (bottom area, as opposed to top area in 2.0).
10342         Fixes #324103.
10343
10344 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10345
10346         * TreeView.cs: When calling ExpandAll, don't move the scroll to the 
10347         bottom area if we are in fact not using the vertical scroll bar.
10348         Fixes #324824.
10349
10350 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
10351
10352         * Control.cs: Comment out a double buffering optimization that doesn't
10353         take into account invalidates created in OnPaint, causing the control
10354         to never be redrawn.  It would take quite a bit of work to work around
10355         this, but I left it commented with an explanation for later possible
10356         optimization.
10357         [Fixes bug #328681]
10358
10359 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
10360
10361         * Control.cs: Ask parent to perform a layout if control is AutoSize and
10362         the text changes.
10363         * RadioButton.cs: Implement GetPreferredSizeCore.
10364         [Fixes bug #328672]
10365
10366 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
10367
10368         * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
10369         corcompare stuffs.
10370
10371 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
10372
10373         * Application.cs: Move the sync context stuff to Run instead of RunLoop
10374         so that it doesn't get uninstalled on modal forms.
10375         * Control.cs: Install a sync context when a control is created.
10376         * WindowsFormsSyncronizationContext.cs: Create a private static control
10377         to invoke on.  This is easier than trying to find a created control we
10378         can use.
10379         [Fixes bug #327608]
10380
10381 2007-09-25  Jonathan Pobst  <monkey@jpobst.com>
10382
10383         * Application.cs: Install a WindowsFormsSynchronizationContext in the
10384         run loop, and uninstall it when done.
10385         * WindowsFormsSynchronizationContext.cs: Implement.
10386         [Fixes the common case in bug #327608]
10387
10388 2007-09-23  Gert Driesen  <drieseng@users.sourceforge.net>
10389
10390         * DataGridViewCellCollection.cs: Added argument checks for indexers.
10391         Use case-insensitive lookup of column name in indexer. Code
10392         formatting.
10393
10394 2007-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10395
10396         * TreeNode.cs: When collapsing or expanding a node, check whether its
10397         change will affect the visible area (we were previously doing a
10398         IsVisible check, but that check is not enough since children nodes
10399         could be still visible). Fixes part of #325266.
10400
10401 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
10402
10403         * TreeView.cs: Always select the first node when the TreeView gets
10404         focus if there is no currently selected node.
10405         [Fixes bug #324279]
10406
10407 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
10408
10409         * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
10410         node being selected is null.
10411         [Patch from Yves Bastide fixes bug #326858]
10412
10413 2007-09-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10414
10415         * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
10416         whether all the parent nodes are expanded.
10417         * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
10418         call RecalculateVisibleOrder if all previous nodes are expanded.
10419         Before that we were doing a IsVisible check, but sometimes the node
10420         is not in the visible area, but _should_already be ready, because of
10421         all previous nodes are expanded. Fixes #325259.
10422
10423 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10424
10425         * ToolStripSplitButton.cs: Call the ButtonClick event if the button
10426         portion of the item is clicked.
10427
10428 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10429
10430         * TextControl.cs: Do not tell the system to move the cursor if the
10431         textbox isn't focused.  Fixes part of bug #322668.
10432
10433 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10434
10435         * ComboBox.cs: When there are no items, do not show the dropdown if
10436         the down arrow is clicked.  Fixes part of bug #322668.
10437
10438 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10439
10440         * ToolStripComboBox.cs: Manually set the size of this control in the
10441         constructor, as it doesn't seem to be the same as DefaultSize.
10442         Fixes a failing monobuild test.
10443
10444 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
10445
10446         * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
10447         change it to DateTimePicker.MinDateTime.  [Fixes bug #326609]
10448
10449 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
10450
10451         * Theme.cs: FileDialogs should be using DesktopDirectory instead of
10452         Desktop.  This lets it work for people who have moved their desktops
10453         from the default location on windows.  For people who have not, both
10454         values are the same, so it shouldn't hurt anything.  [Fixes bug #325270]
10455
10456 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10457
10458         * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
10459         but when the base constructor sets this, the control is null.  Set it
10460         again in the constructor.  Fixes a failing monobuild test.
10461
10462 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10463
10464         * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
10465         get called.
10466         * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
10467         called.
10468
10469 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10470
10471         * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
10472         will handle it themselves.
10473         * ToolStripItem.cs: When deciding what the text of a tooltip should
10474         be, use the Text property instead of the text field.
10475         * ToolStripTextBox.cs: Handle tooltips.
10476         [Fixes bugs #325417 and #325973]
10477
10478 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10479
10480         * ToolStripDropDownButton.cs: Only drop down overflow menu with a
10481         left click.  Fixes the easy part of bug #325969.
10482
10483 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10484
10485         * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
10486         bug #325406, but set a minimum for StatusStrip to 22 to keep
10487         bug #325390 fixed.  I think this minimum would have been figured
10488         up automatically if the grip was actually a ToolStripItem, but it
10489         currently is not.
10490
10491 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10492
10493         * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
10494         as this is apparently the actual value used by .Net. Also apply
10495         ItemPadding in Details view only, and decrease the general width padding,
10496         to have only the needed. This should fix #324340 in Windows too.
10497
10498 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10499
10500         * ListViewItem.cs: Don't Invalidate item if parent is inside
10501         a BeginUpdate/EndUpdate block. This prevents to have differences
10502         between the ListView and items state, as well as avoid some exceptions
10503         there.
10504         * ListView.cs: Make 'updating' field internal.
10505
10506 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10507
10508         * ToolStripControlHost.cs: Realign control when ControlAlign changes.
10509         * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
10510         size if appropriate.
10511         Fixes reopened bug #325414.
10512
10513 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10514
10515         * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
10516         * ToolStripItem.cs: Invalidate before and after our new autosize when
10517         text changes.
10518         Fixes reopened bug #325390.
10519
10520 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10521
10522         * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
10523         mnemonics can be drawn or undrawn correctly.  Fixes reopened bug 
10524         #325044.
10525
10526 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10527
10528         * Control.cs: Do WM_CONTEXTMENU before OnMouseUp.  [Fixes bug #325535]
10529
10530 2007-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10531
10532         * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
10533         instead of EllipsisWord (by equistango at gmail.com). Fixes part of
10534         #82734.
10535
10536 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
10537
10538         * ToolStrip.cs: Make ToolStrip selectable when TabStop = true.  Find an
10539         item to select when the ToolStrip is selected.
10540         * ToolStripControlHost: Realign the control when the bounds or visibility
10541         change.
10542         * ToolStripItem.cs: When selected, if it's a control host, focus the control.
10543         * ToolStripOverflow.cs: When laying out the drop down, respect the item's
10544         preferred height.
10545         * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
10546         base.OnPaint.  Was causing text not to be drawn.
10547
10548 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
10549
10550         * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
10551
10552 2007-09-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10553
10554         * TreeView.cs: When creating the label edit text box,
10555         set is initially to Visible = false. This is done to
10556         prevent a confusion in the layout which makes it to lose
10557         focus when shown the first time. Fixes part of #82592.
10558
10559 2007-09-13 Andreia Gaita <avidigal@novell.com>
10560
10561         * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
10562
10563 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10564
10565         * ToolStrip.cs: Take Margin into account when calculating preferred
10566         size.  Also, allow preferred size to get smaller than the explicit
10567         size.
10568         * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
10569         First step towards fixing bug #82747.
10570
10571 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10572
10573         * TreeView.cs: Applied patch from latency@gmx.de to not paint the
10574         full row select background over the plus/minus glyph.  Also, turn
10575         off the focus rectangle for full row select since MS doesn't seem
10576         to ever paint it.  [Fixes bug #81839]
10577
10578 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10579
10580         * ToolStrip.cs: Don't FocusInternal if there is no selected item.
10581         This was causing keyboard opened dropdowns to lose focus.
10582         [Fixes bug #82803]
10583
10584 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10585
10586         * Control.cs: If Rectangle.Empty is passed to Invalidate, use
10587         ClientRectangle instead.  [Fixes bug #82838]
10588
10589 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10590
10591         * SplitContainer.cs: We can't reset Visible on every layout because
10592         someone may have set Visible = false explicitly on a SplitterPanel.
10593         Make sure when we switch orientation the SplitterDistance does not
10594         change.  Fixes two failing tests.
10595
10596 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10597
10598         * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
10599         TextRenderer, since the latter is only available in 2.0.
10600
10601 2007-09-13  Ivan N. Zlatev <contact@i-nz.net>
10602
10603         * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
10604         * SplitContainer.cs: Implement FixedPanel layouting.
10605
10606 2007-09-12  Andreia Gaita  <avidigal@novell.com>
10607
10608         * WebBrowserBase.cs: setup shutdown routine
10609
10610 2007-09-12  Andreia Gaita  <avidigal@novell.com>
10611
10612         * Application.cs: Let keyboard events that are targetted 
10613                 to non-mwf windows hosted inside mwf (as in, webbrowser),
10614                 propagate properly. Fixes keyboard handling on the webbrowser.
10615
10616 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10617
10618         * ListView.cs: When handling MouseUp event and we are 
10619         highligting a node with the mouse right button, don't trigger
10620         Before/AfterSelecting event, since we are not actually selecting
10621         the node.
10622
10623 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10624
10625         * TreeView.cs: When editing a node, modify the edit text box
10626         depending on the text length (as you are typing), like MS does.
10627
10628 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
10629
10630         * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars. 
10631         Override GetPreferredSizeCore to perform calculations.  Remove custom
10632         autosize logic.  [Fixes bug #82739]
10633
10634 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
10635
10636         * TextBoxBase.cs: Modified should default to false.
10637
10638 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10639
10640         * Control.cs: Update the anchoring distances even when layout is supspended.
10641         Patch provided by George fixes bug #82805.
10642
10643 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10644
10645         * Control.cs: Provide a setter for ExplicitHeight.
10646         * TextBoxBase.cs: Now that we have the implementation for explicit heights,
10647         remove the hacks in here for requested_height.
10648         [Fixes bug #82749]
10649
10650 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10651
10652         * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
10653         Maximum to lower that its current Value caused an ArgumentException by setting
10654         the Value to the new Maximum.
10655
10656 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10657
10658         * ThemeWin32Classic.cs: Math is hard!  Fix some math so that the TrackBar
10659         handle moves to the closest tick when it is being dragged.
10660         [Fixes bug #82751]
10661
10662 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10663
10664         * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
10665         can't let them count as real items when calculating where to merge in the
10666         user's items.  [Fixed bug #82786]
10667
10668 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10669
10670         * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
10671         who want to add a menu item directly onto a toolstrip.
10672         [Fixes bug #82775, part II]
10673
10674 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10675
10676         * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
10677         * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
10678         don't set it to available.
10679         * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
10680         [Fixes bug #82727, part II]
10681
10682 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10683
10684         * StatusStrip.cs: Change item placement to None if not visible.
10685         * ToolStripItem.cs: Invalidate when InternalVisible changes.
10686         These should have been committed to fix 82723, but I missed them.
10687
10688 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10689
10690         * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
10691         Click, and that it is only called once.
10692         * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
10693         * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
10694         dropped down.
10695         [Fixes bug #82775]
10696
10697 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10698
10699         * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
10700         to match .Net.
10701         * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
10702         instead of 8, just like above. Partially fixes #82734.
10703
10704 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10705
10706         Patch by Ernesto Carrea <equistango at gmail.com>. Partially 
10707         fixes #82734.
10708
10709         * ListView.cs: Remove extra space between rows in Details view (match
10710         .Net). 
10711         * ThemeWin32Classic.cs: Header text should use ListView.Font, not
10712         the DefaultFont.
10713
10714 2007-09-08  Gert Driesen  <drieseng@users.sourceforge.net>
10715
10716         * Application.cs: Modified ProductVersion to return value of
10717         AssemblyInformationVersion if available, and fallback to assembly
10718         version. Fixes bug #82746. Code formatting.
10719         * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
10720         instead.
10721
10722 2007-09-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10723
10724         * Control.cs: When updating ZOrder for a child control,
10725         take into account the implicit ones (we need it in our controls
10726         using them). Fixes #82642.
10727
10728 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
10729
10730         * ToolStripItem.cs: Add support for animated images.
10731         [Fixes bug #82726]
10732
10733 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
10734
10735         * ToolStrip.cs: Make sure we aren't drawing anything that isn't 
10736         visible.  [Fixes bug #82727]
10737
10738 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10739
10740         * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
10741         so we repaint using the new size.  [Fixes bug #82723]
10742
10743 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10744
10745         * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
10746         option.  [Fixes bug #81779]
10747
10748 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10749
10750         * TreeView.cs: Override HandleClick because the StandardClick style is
10751         set to false.  According to MSDN (and testing), the click events should
10752         only be raised when the click occurs on a TreeNode.  [Fixes bug #81739]
10753
10754 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10755
10756         * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
10757         the border will disappear.  Fixes reopened #82653.
10758
10759 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10760
10761         * Control.cs: If the control is autosize, and its preferred size changes
10762         when it lays out its children, tell its parent so it can be re-layed out.
10763         Fixing some of the fallout from r85433.
10764
10765 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10766
10767         * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
10768         and CheckBox share some code.
10769
10770 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10771
10772         * TrackBar.cs: Only call OnScroll if we actually changed the Value of
10773         the TrackBar, not every mouse move.  [Fixed bug #82718]
10774
10775 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10776
10777         * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
10778         under 2.0 rendering.  [Fixes bug #82657]
10779
10780 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10781
10782         * TreeView.cs: If we found a TreeNode to display a context menu, but
10783         it doesn't have one to show, let the TreeView display its menu
10784         instead.  [Fixes bug #82680]
10785
10786 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10787
10788         * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
10789         OnPaintInternal instead.  Give the internal TextBox a Border property
10790         so it can draw itself more correctly.  [Fixes bug #82653]
10791
10792 2007-09-06  Zoltan Varga  <vargaz@gmail.com>
10793
10794         * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
10795
10796 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
10797
10798         * ComboBox.cs: Adjust combobox button state to reflect current state when
10799         back to enabled = true. Fixes first issue of #82654.
10800
10801 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
10802
10803         * Control.cs: Fix last patch regression, prevent forms to update zorder when
10804         setting visible property.
10805
10806 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
10807
10808         * Control.cs: Update zorder after control creation in SetVisibleCore, it 
10809         fix zorder for controls initially created as non visible. Fixes #82667.
10810
10811 2007-09-04  Everaldo Canuto  <everaldo@simios.org>
10812
10813         * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
10814         mimic win32 look. Fixes #82656.
10815
10816 2007-09-01  Zoltan Varga  <vargaz@gmail.com>
10817
10818         * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs: 
10819         Stubs for new net 3.5 classes.
10820
10821 2007-08-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10822
10823         * ListViewItem.cs: In ListViewItemCollection operations calculate
10824         Layout for owner as well as invalidate it. Fixes part of #82642.
10825
10826 2007-08-31  Jonathan Pobst  <monkey@jpobst.com>
10827
10828         * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
10829         when returning Enabled.  [Fixes bug #82651]
10830
10831 2007-08-30  Everaldo Canuto  <everaldo@simios.org>
10832
10833         * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
10834
10835 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10836
10837         * ListView.cs: Put item padding info in a single place
10838         (Theme.ListViewItemPaddingWidth) to have working AutoResize on
10839         columns again.
10840         * ThemeWin32Classic.cs:
10841         * Theme.cs: Likewise.
10842
10843 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10844
10845         * ListView.cs: When a ListViewSubItem instance is invalidated,
10846         invoke Invalidate on parent ListViewItem, not parent ListView.
10847         Fixes #81570.
10848
10849 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
10850
10851         * ListView.cs, ListViewItem.cs: corcompare stuffs.
10852
10853 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
10854
10855         * BindingMemberInfo.cs: Implement == and != operators.
10856
10857 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
10858
10859         * HtmlElementEventArgs.cs: Implement properties.
10860
10861 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10862
10863         * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
10864
10865 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10866
10867         * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
10868         Add (string,string,string) to implement the imagekey.  It turns out, we
10869         use the requested imagekey whereas .Net does not.  So I broke ours to match
10870         theirs.  :(
10871
10872 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10873
10874         * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
10875
10876 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10877
10878         * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
10879
10880 2007-08-29  Gert Driesen  <drieseng@users.sourceforge.net>
10881
10882         * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
10883         up-to-date. Fixes bug #82618.
10884
10885 2007-08-29  Everaldo Canuto  <everaldo@simios.org>
10886
10887         * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
10888         reflect document changes. Fixes #82367.
10889
10890 2007-08-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10891
10892         * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
10893         as well as add new ones. This should make work the BackgroundImage
10894         property for ListView again.
10895
10896 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10897
10898         * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
10899         DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
10900         DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
10901
10902 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10903
10904         * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
10905         IsKeyLocked.
10906
10907 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10908
10909         * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
10910         * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
10911
10912 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10913
10914         * RadioButton.cs: Use 2.0 rendering.  Use base implementation of TextAlign.
10915         * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
10916
10917 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
10918
10919         * CursorConverter.cs: Implement conversion to InstanceDescriptor.
10920
10921 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
10922
10923         * GridEntry.cs: Implement GetService.
10924
10925 2007-08-27  Jonathan Pobst  <monkey@jpobst.com>
10926
10927         * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
10928         for label editting, make sure we focus back on the TreeView.
10929         [Fixes bug #82590]
10930
10931 2007-08-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10932
10933         * ListView.cs: Add some 2.0 overrides.
10934
10935 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
10936
10937         * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
10938         because getter dont returns right value before handle creation. Thanks 
10939         to George. Fixes #82569.  
10940
10941 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
10942
10943         * Theme.cs: Revert last patch, it causes error under win32. 
10944
10945 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
10946
10947         * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of 
10948         Environment.SpecialFolder.Desktop in Places method, Desktop returns the 
10949         logical Desktop rather than the physical file system location. Fixes #82603. 
10950
10951 2007-08-26  Everaldo Canuto  <ecanuto@novell.com>
10952
10953         * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
10954         for the patch. Fixes #82568.
10955
10956 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10957
10958         * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
10959         methods.
10960
10961 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10962
10963         * ListViewInsertionMark.cs: New stubbed class.
10964
10965 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
10966
10967         * FolderBrowserDialog.cs: When adding folder, immediately create the
10968         directory with temporary name and rename the directory when editing
10969         finishes. This matches MS. Ensure the node for the new folder is 
10970         selected and LabelEdit is disabled, when editing is either finished
10971         or cancelled.
10972
10973 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
10974
10975         * TreeView.cs: When editing label of node, ensure node is visible.
10976
10977 2007-08-25  Ivan N. Zlatev  <contact@i-nz.net>
10978
10979         * PropertyGridView.cs: Set the value only if it has changed.
10980
10981 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10982
10983         * ListView.cs: Some more code refactoring to add support sorting
10984         with groups (now for Details view). Remove unused code also.
10985
10986 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
10987
10988         * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
10989         Not a big fan of reacting immediately to a field in an EventArg, but that's
10990         the way it's done.  (This is part of the previous commit that got left out.)
10991
10992 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
10993
10994         * FolderBrowserDialog.cs: Removed need for separate description field.
10995         Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
10996         has focus when dialog box is displayed again, regardless of what
10997         button was pressed the previous time. Set RootFolder and SelectedPath
10998         each time dialog box is displayed. This ensures the treeview is
10999         refreshed, and fixes bug #82579. Do no hide selected node in TreeView
11000         when it does not have focus. Added support for more special folders.
11001
11002 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
11003
11004         * TreeView.cs: Create a CancelEdit method.  Clone the edit_args in EndEdit
11005         before calling AfterLabelEdit.  If the user calls BeginEdit in that event,
11006         it resets the edit_args.
11007         * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
11008         [Fixes bug #82577]
11009
11010 2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
11011
11012         * FolderBrowserDialog.cs: Modifies form caption and text of new folder
11013         button to match MS. Provide more meaningful exception message for
11014         invalid RootFolder value. Use zero-length string when SelectedPath
11015         is set to null. Allow non-rooted paths in SelectedPath, but ignore
11016         them in FolderBrowserTreeView. Allow folders to be created in
11017         RootFolder. Fixes bug #82576.
11018
11019 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11020
11021         * ListView.cs: Correctly compute the layout_ht (height) when using groups,
11022         since we need to take into account the group headers and the margin
11023         between them.
11024         * ListViewGroup.cs: Add a rows field to store the number of rows per
11025         group.
11026
11027 2007-08-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11028
11029         * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
11030           Anyways, let's just follow the lead.
11031
11032 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
11033
11034         * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
11035         * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored 
11036         controls in GetPreferredSizeCore.
11037         * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
11038         [Fixes bug #82488]
11039
11040 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
11041
11042         * PrintDialog.cs: Need to instantiate the form variable here too.
11043
11044 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11045
11046         * ListView.cs: Do some reorganization to support sorting in groups,
11047         by doing the layout sequentially in ListView.Items. Also add support
11048         for the Default Group, which should be available for items with no
11049         group assigned.
11050         * ListViewGroup.cs: Add support for DefaultGroup. Include new members
11051         for storing layout info also.
11052         * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
11053         collection, as well as providing internal members to do a traversal
11054         including the default group (needed when doing layout/drawing).
11055         * ThemeWin32Classic.cs: When drawing group headers use internal
11056         ListViewGroupCollection members to take into account the default
11057         group.
11058
11059 2007-08-23  George Giolfan  <georgegiolfan@yahoo.com>
11060
11061         * FlowLayoutPanel.cs: Add GetPreferredSizeCore.  [Fixes bug #82537]
11062
11063 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
11064
11065         * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
11066         been created.  If handle is created, we want arror keys.  If we are editing
11067         a node, we want things like enter, esc, home, end, page up, page down.
11068         Allows Esc to work for FolderBrowserDialog.
11069
11070 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
11071
11072         * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
11073         they close when ESC is pressed.  Thanks Andy!
11074
11075 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
11076
11077         * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
11078         This way we can tell if this is a CommonDialog provided with mono, or one
11079         that is being implemented outside by a developer.  If it is an external one,
11080         the developer is responsible for showing their own form.  We were showing
11081         our blank form after the developer showed his.
11082         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
11083         PageSetupDialog.cs: Instantiate form variable in our constructor.
11084         [Fixes bug #82531]
11085
11086 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
11087
11088         * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
11089         and always return true.  [Fixes bug #81616]
11090
11091 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
11092
11093         * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
11094         TextBox.  [Fixes bug #82549]
11095
11096 2007-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
11097
11098         * FileDialog.cs: When Save/Open is clicked and no filename is selected
11099         or entered then do not close the dialog. Fixes bug #82539. Removed
11100         CWLs.
11101
11102 2007-08-22  Everaldo Canuto  <ecanuto@novell.com>
11103
11104         * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
11105         code to this method. It is calling every time filter changes. This method
11106         will help to fix the bug #80887.
11107
11108 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
11109
11110         * CheckBox.cs: Implement AutoSize calculation.
11111
11112 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
11113
11114         * CheckBox.cs: Use new 2.0 rendering for 2.0.
11115         * Theme.cs: Method declarations for 2.0 rendering path.
11116         * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
11117
11118 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11119
11120         * ListViewGroupCollection.cs: Fix a typo of the previous patch.
11121
11122 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11123
11124         * ListViewGroupCollection.cs: Implement AddRange the right way, to
11125         only call Redraw on the parent one time.
11126
11127 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11128
11129         * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
11130           GetClipboardContent.
11131         * DataGridViewCell.cs: Implemented GetClipboardContent,
11132           GetEditedFormattedValue, GetFormattedValue.
11133         * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
11134
11135 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
11136
11137         * TableLayoutStyleCollection.cs: corcompare fix.
11138
11139 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11140
11141         * DataObject.cs: Implemented retrieval of convertible / not convertible
11142           objects.
11143
11144 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
11145
11146         * ToolStripItem.cs: When changing the item's text, invalidate before we resize
11147         ourselves.  This ensures the entire old bounds are repainted, in case our new
11148         size is smaller.  [Fixes bug #82518]
11149
11150 2007-08-20  Everaldo Canuto  <ecanuto@novell.com>
11151
11152         * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
11153         flag to make fast handle of mouse events, without this the mouse move is
11154         handled in some manner, whether it is a mouse move or not. Fixes #81588.
11155
11156 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11157
11158         * ListView.cs: When doing layout calculations don't use a ref
11159         param to keep the current item; instead use its Index value (this 
11160         is specially important when doing the layout with Groups
11161         and Items being sparse). Also don't take into account items added to
11162         the Group but not yet added to the main ListView.Items collection.
11163
11164 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11165
11166         * ListViewGroupCollection.cs: Forgot to mimic an issue
11167         in the indexer (don't assign the ListView owner for new values).
11168
11169 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11170
11171         * ListViewGroupCollection.cs: Make the string indexer use
11172         the int based indexer to re-use code, instead of duplicate the code.
11173         Also Redraw as needed and take into account null values.
11174
11175 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
11176
11177         * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
11178         [Fixes bug #82481]
11179
11180 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
11181
11182         * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
11183         when other buttons are clicked or navigated to.
11184
11185 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11186
11187         * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
11188           it's XplatUIX11 that attaches them.
11189
11190 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11191
11192         * DataGridView.cs: If a column has been added, recreate the editing row.
11193           Fixes #82226.
11194
11195 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11196
11197         * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
11198           of the tag to draw. Makes disappearing text show up again.
11199
11200 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11201
11202         * StatusBar.cs: Take into account any icons when a panel has AutoSize =
11203           Contents. Fixes #82487.
11204
11205 2007-08-19  Andreia Gaita  <avidigal@novell.com>
11206
11207         * Added HtmlElement.cs, HtmlElementCollection.cs, 
11208           HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
11209           
11210 2007-08-19  Andreia Gaita  <avidigal@novell.com>
11211
11212         * BindingSource.cs: Implement this, dispose and getenumerator.
11213         * DataGridViewRowCollection.cs: Move the InvalidOperationException
11214         out of AddInternal, throw it only on public Add calls. The 
11215         UsingWebBrowser sample was blowing up with this when setting the
11216         DataSource after adding DataBindings, so it's likely that .net
11217         only throws this exception when Add is called directly. 
11218         
11219         * ToolStripControlHost.cs: Return the hosted control's text
11220         property, and not the ToolStripItem one (it would always return
11221         the initial value).
11222         
11223         * HtmlDocument.cs: Implement GetElementById and All
11224         * WebBrowser.cs: Remove exception on set_DocumentStream.        
11225
11226 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11227
11228         * Form.cs: Fix the max and min value for opacity (0~1).
11229
11230 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11231
11232         [Fixes #80118]
11233         * DataGridTableStyle.cs: Default header font is now null, on getter it 
11234         returns datagrid font when is null. On setter permits null.
11235
11236         * DataGrid.cs:
11237         - When ResetHeaderFont set header font to null.
11238         - On EndInit set grid_style.DataGrid.
11239
11240 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11241
11242         * TabControl.cs: Fix regression in default padding x.
11243
11244 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11245
11246         * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
11247
11248 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11249
11250         * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
11251         not 2. Fixes #82229.
11252
11253 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11254
11255         * TabControl.cs: Fix tab size when image height is less than text height.
11256         Partially fixes #81837.
11257
11258 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11259
11260         * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using 
11261         "alt + tab". It works only for Win32, for X11 theres no way to remove window
11262         from taskbar and keep it on "alt_tab". Fixes #81722.
11263
11264 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11265
11266         * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
11267         and DrawReversibleLine, also apply same behavior to FillReversibleRectangle. 
11268         Fixes #80877 and #79418.
11269
11270 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11271
11272         * MenuAPI.cs: Fix popup menu position when the size is larger than distance 
11273         between position and one of the screen borders. Fixes #82349.
11274
11275 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11276
11277         * MessageBox.cs: When there is no form that invoked the MessageBox, shows
11278         the MessageBox in the taskbar. Fixes #82457.
11279
11280 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11281
11282         * MessageBox.cs: Fix form size when icon is set and text height is bigger
11283         than icon. Fixes #82468.
11284
11285 2007-08-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11286
11287         * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
11288         * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
11289           if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
11290           Refactored HandleNCCalcSize somewhat to avoid code duplication.
11291         * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
11292           FormBorderStyle to decide if we're calculating a new size from the
11293           client size or not. CreateParams: Don't fake tool windows, only the X11
11294           backend manages toolwindows manually.
11295
11296 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11297
11298         * Form.cs: Only reset is_visible if !IsDisposed to prevent an
11299         ObjectDisposedException.
11300
11301 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11302
11303         * Form.cs: Reset is_visible back to true after OnLoad.  Setting this
11304         in OnLoad should not have any effect.  [Fixes bug #82470]
11305
11306 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11307
11308         * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
11309         paint for controls that create their own ToolTipWindow instead of
11310         going through ToolTip.
11311
11312 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11313
11314         * ToolTip.cs: Make Hide internal instead of public to match MS API.
11315
11316 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11317
11318         * ListViewGroupCollection.cs: Use generic List instead of an
11319         ArrayList, since this collection is 2.0 only.
11320
11321 2007-08-17  Jeffrey Stedfast  <fejj@novell.com>
11322
11323         * ToolTip.cs (Hide): Made public to make the build work (should
11324         this not be public?).
11325
11326 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11327
11328         * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
11329         ToolTipWindow.
11330         * ToolTip.cs: Add an internal Visible property to facilitate transition.
11331
11332 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11333
11334         * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
11335         PopupEventHandler.cs: Make these internal for 1.1.
11336         * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
11337         use ToolTipWindow internals.
11338         * ToolTip.cs: Add 2.0 modal Show methods.  Had to move a lot of stuff around to
11339         support this.  A lot of stuff in the ToolTipWindow got moved to the ToolTip.
11340
11341 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11342
11343         * X11Dnd.cs: Add a null check.
11344
11345 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11346
11347         * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
11348           nothing else succeeds. Fixes #82453.
11349
11350 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11351
11352         * XplatUIWin32.cs: PaintEventStart: validate the entire source client
11353           rectangle if we're painting to another window than the one the paint
11354           message was generated on. Simplify the code somewhat, which makes
11355           PaintEventEnd also simpler.
11356
11357 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11358
11359         * Control.cs: When changing parent of a form, let the form decide whether
11360           XplatUI.SetParent should be called or not.
11361         * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
11362           recreating the handle. If the new parent's handle isn't created, don't
11363           recreate our handle, just destroy it. CreateParams: Check if the
11364           parent's handle is created before fetching it.
11365
11366 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11367
11368         * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
11369           Update calls to PaintEventStart/End to take a Message argument.
11370         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
11371           take a Message argument.
11372         * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
11373           Message argument, and handle the case where we don't paint to the window
11374           for which the paint message was generated.
11375
11376 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11377
11378         * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
11379           Marshal.GetLastWin32Error. Plug nasty memory leak in
11380           PaintEventStart/End, we were creating a DC we weren't releasing.
11381
11382 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11383
11384         * ListView.cs: Add Groups support in Details view. Also have a small
11385         method to do the layout of the group header. Don't use a separate
11386         method to do the groups calculation in Icons view, since our methods
11387         are now a little simpler.
11388         * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
11389         `Bounds'.
11390         * ThemeWin32Classic.cs: Likewise.
11391
11392 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
11393
11394         * Application.cs: Add FilterMessage method and rework our message loop
11395         logic to use it.
11396
11397 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
11398
11399         * Application.cs: Add some methods and stub a few methods that are
11400         pretty much never used.
11401
11402 2007-08-15  Jonathan Pobst  <monkey@jpobst.com>
11403
11404         * TreeNode.cs: Add some serialization methods.
11405
11406 2007-08-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11407
11408         * ListView.cs: In ListViewItemCollection have a 
11409         'is_main_collection' field to not modify ListViewItem.ListView
11410         when using it as ListViewGroup.Items (and not ListView.Items)
11411         and also don't modify selection state (.Net behaviour). 
11412         Instead, set group for items contained in a ListViewGroup.Items collection.
11413         * ListViewItem.cs: Simplify some code in Group setter.
11414         * ListViewGroup.cs: use the new .ctor to pass the current instance
11415         to the ItemsCollection.
11416         * ListViewGroup.cs: Set the ListView property for ListViewGroup
11417         instances when adding/removing. Also make Remove use RemoveAt, which
11418         should perform better.
11419
11420 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
11421
11422         * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
11423         that crept into the 1.1 profile.
11424
11425 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
11426
11427         * ToolBarButton.cs: Implement ImageKey.
11428
11429 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
11430
11431         * ToolBar.cs: Implement ScaleControl/ScaleCore.
11432
11433 2007-08-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11434
11435         * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
11436           created, it might have gotten destroyed since we last checked. Fixes
11437           #82405.
11438
11439 2007-08-11  Jonathan Pobst  <monkey@jpobst.com>
11440
11441         * ToolTip.cs: Remove mouse in control check from mouseleave handler so
11442         tooltip will hide when mouse is moved off the control.
11443         [Fixes bug #82407]
11444
11445 2007-08-11 Andreia Gaita <avidigal@novell.com>
11446
11447         * WebBrowserBase.cs, WebBrowser.cs: add implementation
11448         using Mono.Mozilla for loading and navigating webcontrol
11449         with xulrunner.
11450         The initial implementation was done on 
11451         /trunk/mozembed/tests/browser , and copied here.
11452
11453 2007-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
11454
11455         * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
11456         ToolTipWindow for drawing the tooltip. Fixes bug #82408.
11457
11458 2007-08-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11459
11460         * DataGridView.cs: Add support for an editing row. Fixes #82226.
11461           RowTemplateFull: throw an exception if a column doesn't have a template.
11462         * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
11463           add the row just before it.
11464         * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
11465           selected.
11466         * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
11467           DataGridView field to be able to reach the grid's editing row.
11468
11469 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
11470
11471         * ToolTip.cs: If the control's handle hasn't been created when it has a
11472         tooltip set on it, don't check to see if we need to show the tooltip.  This
11473         check was causing the control's handle to be created.
11474         [Fixes bug #82399]
11475
11476 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
11477
11478         * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
11479                                         1.1             2.0
11480         Handle Not Created      -1              0
11481         Handle Created          0               0
11482         [Fixes bug #82371]
11483
11484 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
11485
11486         * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
11487         [Fixes bug #82348]
11488
11489 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
11490
11491         * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
11492         * ToolTip.cs: Implement some properties and owner draw.
11493
11494 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11495
11496         * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
11497           show them again, since setting visibility causes a paint, causing an
11498           endless loop (instead use a temporary and set it all when it's known if
11499           they should be shown or not). Fixes #79265.
11500
11501 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11502
11503         * DataGridView.cs: Only do a full column/row selection if a header was
11504           clicked and we're in Column/RowHeader selection mode. If shift and ctrl
11505           isn't pressed, deselect everything before selecting something.
11506
11507 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11508
11509         * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
11510           behaviour according to bug #81075 - they are returned in the order they
11511           are selected. Fix HitTest to check if the point is within any of the
11512           headers. Allow for row/column selection when in ColumnHeader or
11513           RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
11514           the row and column to call when their selected state changes, and
11515           updated selected_[rows|columns] whenever SetSelected* is called.
11516         * DataGridViewBand.cs: Initialize isRow correctly. Call
11517           SetSelected[Row|Column]CoreInternal when the selected state changes, and
11518           add a SelectedInternal to avoid StackOverflows.
11519         * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
11520           ReadOnly no matter what.
11521         * DataGridViewSelectedColumnCollection.cs,
11522           DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
11523           the items in reverse order (just as MS does...)
11524
11525 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
11526
11527         * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
11528         itself, not part of a mnemonic.  [Fixes bug #82378]
11529
11530 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11531
11532         * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
11533         * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
11534           the DGV, the column, the row, or the cell itself is readonly.
11535
11536 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
11537
11538         * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
11539         OSVersion.Platform.
11540         * FileDialog.cs: Same.
11541         * TextRendered.cs: Same.
11542         * FolderBrowserDialog.cs: Same.
11543         * TextBoxBase.cs: Same.
11544         * Application.cs: Same.
11545         * Cursors.cs: Same.
11546         * ThemeClearLooks.cs: Same.
11547
11548 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
11549
11550         * XplatUI.cs: Added RunningOnUnix property to be used by controls
11551         instead of duplicating these checks everywhere.
11552         * FileDialog.cs: Use case-insensitive comparison for populating the
11553         DirComboBox when not running on unix. Fixes bug #82385.
11554         * OpenFileDialog.cs: to match MS, change label of DirComboBox to 
11555         "Look in".
11556
11557 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11558
11559         * DataGridView.cs: SelectedRows: we need to check if selectionMode is
11560           FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
11561           BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
11562           cell and column selection with ctrl and shift pressed. Call the correct
11563           BeginEdit/EndEdit whenever we start/end editing. Move painting code to
11564           the corresponding virtual method (PaintBackground to paint background,
11565           etc).
11566         * DataGridViewCell.cs: Implement Selected correctly, we're selected if
11567           either the column, row or the cell itself is selected.
11568         * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
11569           OnRowsAdded.
11570         * DataGridViewRow.cs: Moved some of the painting code from DataGridView
11571           here. When the row is selected, don't select all cells. Each cell now
11572           queries the row to see if the row is selected.
11573
11574 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11575
11576         * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
11577           SelectionMode.
11578
11579 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11580
11581         * ListView.cs: In ListViewItemsCollection check that owner is
11582         not null before trying to access it (this happens quite often
11583         using Groups). Also don't duplicate calls by calling CollectionChanged
11584         method.
11585
11586 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
11587
11588         * ToolStrip.cs: Record if we were activated by mouse or keyboard.  Redraw
11589         when we are dismissed to clear keyboard mnemonics.
11590         * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs, 
11591         ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
11592         * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
11593         was activated by keyboard or the OS tells us to always draw them.
11594         * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
11595         [Fixes bugs #82376, #82377]
11596
11597 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
11598
11599         * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a 
11600         shot at having it because Alt was pressed.
11601         * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
11602         the first real menu item.
11603         * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
11604         a mnemonic if Text is null.
11605         [Fixes bug #82374]
11606
11607 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11608
11609         * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
11610         search do check whether the item is already contained in the
11611         collection or not; instead check if the owner of the item is the same
11612         as ours. Also, remove a redundant check in the same method. 
11613
11614 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
11615
11616         * Control.cs: Allow the clip region to be set back to null.
11617         * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
11618         [Fixes button still showing up in bug #82370 when Show Through is turned off]
11619
11620 2007-08-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11621
11622         * GridEntry.cs: Add a null check.
11623         * PropertyGrid.cs: When checking for existing grid entries, ignore category
11624           entries. Fixes #82297.
11625
11626 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
11627
11628         * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
11629         for 2.0.
11630
11631 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
11632
11633         * ListBox.cs: Implement ScaleControl.
11634
11635 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11636
11637         * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
11638           have a menu strip.
11639         * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
11640           parent has a menu strip. Fixes #81689.
11641
11642 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11643
11644         * ToolTip.cs: We don't get mouse events on all platforms in the exact same
11645           moments, so apply some fuzzy logic to determine if the mouse is still
11646           inside a control or not. Fixes #82288 (for the third time).
11647
11648 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11649
11650         * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
11651           Don't create the child if it has been disposed already (may happen if
11652           the user closes the form the Load event).
11653
11654 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11655
11656         * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
11657           #82288.
11658
11659 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11660
11661         * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
11662           might call us after we've been destroyed, in which case our own private
11663           parent field is null. Fixes #82326.
11664
11665 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
11666
11667         * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
11668         check for setting the dropdown's owner.
11669
11670 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
11671
11672         * MdiClient.cs: Fix some failing tests on X11 by adding a null check
11673         before removing system menu items.
11674
11675 2007-08-02  Jonathan Pobst  <monkey@jpobst.com>
11676
11677         * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
11678         folding.
11679         * MdiControlStrip.cs: Added.  These are the menu items used in mdi
11680         folding.
11681         * ToolStrip.cs: Add a null check to mnemonics.
11682         * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
11683         no ConnectedArea.
11684         [Fixes most of bug #81689]
11685
11686 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11687
11688         * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
11689
11690 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11691
11692         Use InitialDelay if ReshowDelay is zero. Fixes #82288.
11693
11694 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11695
11696         * DataGridViewCell.cs: EditType: returns
11697           DataGridViewTextBoxEditingControl always.
11698
11699 2007-08-01  Jonathan Pobst  <monkey@jpobst.com>
11700
11701         * TextRenderer.cs: Remove the LineLimit string format flag from the
11702         DrawString fallback method so that things like buttons that aren't
11703         tall enough to draw a full line will still draw part of the text.
11704         [Fixes part of bug #82272]
11705
11706 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11707
11708         * DataGridView.cs: Implemented AutoResizeColumn(s).
11709         * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
11710           according to the Alignment.
11711         * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
11712           Implement alignment and padding when painting.
11713         * DataGridViewRow.cs: SetValues: Don't create a cell if it already
11714           exists.
11715         * DataGridViewCell.cs: Implement BorderWidths in the most primitive
11716           way.
11717         * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
11718           a column is added.
11719
11720 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
11721
11722         * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
11723         which is internal.
11724
11725 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
11726
11727         * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
11728         hide GetPreferredSize from public API.
11729         * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
11730         * ToolStripItem.cs: Stub out drag and drop methods and events.
11731         * ToolStripManager.cs: Stub out Save/LoadSettings.
11732         * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
11733         * ToolStripPanel.cs: Fix corcompare error.
11734         * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
11735         * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
11736         * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
11737
11738 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
11739
11740         * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
11741         bounds height instead of PreferredHeight.  Puts things back the way 
11742         they were for height while still fixing the width.  Fixes broken unit
11743         tests.
11744
11745 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11746
11747         * Binding.cs: Implement 2.0 constructors and add a null check.
11748
11749 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11750
11751         * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
11752           and fix row index (off by one).
11753
11754 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11755
11756         * PropertyGridView.cs: Remove debug output.
11757
11758 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11759
11760         * Control.cs: We need to reset the is_created flags when the handle is
11761           destroyed. Fixes #82187.
11762         * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
11763           client coordinates if the window doesn't have a parent.
11764           Win32GetParent returns the parent or the owner, and for top-level
11765           windows with no parent (but with an owner) we were calculating the
11766           location from the location of the owner.
11767         * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
11768           form has been disposed.
11769         * MdiClient.cs: Add a null-check.
11770
11771 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
11772
11773         * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
11774         actually do auto-sizing.  Override the internal GetPreferredSizeCore 
11775         so we can provide an implementation that returns the current width
11776         and preferred height.  Allows anchor = right to work with TextBox 2.0.
11777         [Fixes bug #82233]
11778
11779 2007-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11780
11781         * ListView.cs: Add support for navigating items in Groups mode, by
11782         creating a big matrix containing all rows and cols of all groups. When
11783         are in other mode than Details, pressing Up should have a similar
11784         behaviour as that one of Down (moving to the next available column if
11785         current one doesn't have an item in the requested row). Also, don't
11786         proceed to use groups if ShowGroups is false.
11787         * ListViewGroup.cs: Add an internal int field to store the starting
11788         row of the group (used by the big matrix used for navigating the
11789         ListView).
11790         * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
11791         false.
11792
11793 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
11794
11795         * ToolStripDropDown.cs: When we do Show, start with the 
11796         DefaultDropDownDirection, but if our popup menu is going to off-screen,
11797         modify the direction to keep it on screen.  [Fixes bug #82210]
11798
11799 2007-07-29  Gert Driesen  <drieseng@users.sourceforge.net>
11800
11801         * FileDialog.cs: Accept any FilterIndex value, and store it
11802         unmodified. When FilterIndex is less than 1, or greater than number
11803         of filters, then default to first filter. Only add filter extension to
11804         file if user did not specifiy an extension. When type of dialog is
11805         OpenFileDialog and DefaultExt is set, then only use filter extension
11806         if: CheckFileExists is true and no file wih the default extension
11807         exists, or CheckFileExists is false, and user specified file does not
11808         exist. When CheckFileExists is true, then add first extension of 
11809         selected filter that matches existing file. Perform checks for
11810         existing file, overwrite and create after extension has been added to
11811         file name. When CheckFileExists is true and type is SaveFileDialog,
11812         then only consider first filter extension if DefaultExt is set.
11813         When CheckFileExists is true, then ignore DefaultExt if file with that
11814         extension does not exist. Also perform check for existing file when
11815         type is SaveFileDialog. Changed some field to constants.
11816
11817 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11818
11819         * ListView.cs: Take into account the region used by header
11820         control when doing the vertical scroll (this way we invalidate
11821         the precise area, and don't get any dirty one).
11822
11823 2007-07-27  Everaldo Canuto  <ecanuto@novell.com>
11824
11825         * FileDialog.cs: Check for valid filterIndex on button open/save. 
11826         Fixes #82184.
11827
11828 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11829
11830         * ListView.cs: Update some layout calculations in details view
11831         and clean the code in a pair of assignations.
11832
11833 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
11834
11835         * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
11836         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
11837         MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
11838         ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
11839
11840 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
11841
11842         * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
11843         performance of thread-safe Graphic methods.  (Thanks rolf!)
11844
11845 2007-07-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11846
11847         * ListView.cs: When doing the layout calculations, don't calculate
11848         scroll bars before handle is created. This is unnecessary and also
11849         calculating them before handle creation item causes a number of random
11850         bugs (which begin to appear after Chris' big patch for handle creation
11851         fixes). 
11852
11853 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
11854
11855         * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
11856         for things that don't have a Graphics object.  Currently, things just use
11857         the static Hwnd.bmp_g which is not thread safe.
11858
11859 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11860
11861         * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
11862           dialog. Fixes #82187.
11863
11864 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11865
11866         * DataGridViewElement.cs: Initialize state.
11867         * DataGridView.cs: Forward a few Mouse events to cells. Add
11868           GetRowInternal and GetCellInternal that doesn't unshare rows.
11869           Implement GetCellDisplayRectangle. HitTest: if the row is shared,
11870           don't use the index, but look it up. Add
11871           DataGridViewControlCollection.RemoveInternal to remove controls
11872           that Remove won't remove (scrollbars, edit control).
11873         * DataGridViewColumn.cs: Initialize State correctly.
11874         * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
11875           DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
11876           implementing this.
11877         * DataGridViewRowCollection.cs: Implemented shared rows.
11878         * DataGridViewRow.cs: Throw exceptions as MS do.
11879         * DataGridViewCell.cs: A few properties are implemented by a
11880           Get<Property> method, so move implementation there and remove the
11881           NIEX in the method. Add a bunch of OnXInternal that DataGridView
11882           calls when necessary.
11883         * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
11884           complicates matters.
11885         * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
11886           unshare any rows.
11887
11888 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
11889
11890         * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
11891         the children controls.  Instead, we will just set up the proper docking for the
11892         children controls so we don't have to worry about it.  [Fixes bug #82188]
11893
11894 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
11895
11896         * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
11897         canceling and correct Before/AfterLabelEdit properties as layed out in bug
11898         81847.  [Fixes bug #81847]
11899
11900 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
11901
11902         * Label.cs: If AutoSize = true and a width or height is set, ignore it and
11903         redo the autosize.  VS2005 defaults to setting the AutoSize, and then setting
11904         an explicit size based on the design-time size of the text.  Since our fonts
11905         may not match this explicit size, we tend to cut off the ends of people's labels.
11906
11907 2007-07-24  Jonathan Pobst  <monkey@jpobst.com>
11908
11909         * Menu.cs: Add some missing methods to MenuItemCollection.
11910
11911 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11912
11913         * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
11914         * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
11915         * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
11916         * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
11917         * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
11918         * DataGridViewElement.cs: State defaults to Visible.
11919         * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
11920         * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
11921
11922 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11923
11924         * Control.cs: Minor 1.1 corcompare fix.
11925
11926 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
11927
11928         * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
11929         TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
11930
11931 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11932
11933         * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
11934           DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
11935           DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
11936           DataGridViewSelectedColumnCollection.cs,
11937           DataGridViewSelectedRowCollection.cs: Corcompare work.
11938
11939 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
11940
11941         * PrintDialog.cs: Stub UseEXDialog.  I chose to stub this because
11942         it is autoset by VS2005 designer and the effect is barely noticeable.
11943
11944 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
11945
11946         * TreeView.cs: Implement HitTest.
11947
11948 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11949
11950         * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
11951           manually adding and removing the control from the Controls
11952           collecftion.
11953         * DataGridView.cs: Implement DataGridViewControlCollection. Add an
11954           EditingControlInternal property that tracks the editing control.
11955           Always keeping the scrollbars in the Controls collection, as MS
11956           testing confirms is the right behaviour.
11957
11958 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11959
11960         * ScrollableControl.cs: Fix implementation of AutoScrollPosition
11961           according to MSDN and new test.
11962
11963 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11964
11965         * TreeNode.cs: Implement ToolTipText.
11966         * TreeView.cs: Implement tooltips, NodeMouse* events.
11967
11968 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11969
11970         * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
11971
11972 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11973
11974         * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
11975         * TreeView.cs: Use the node's contextmenu[strip] if applicable.
11976
11977 2007-07-20  Ivan N. Zlatev  <contact@i-nz.net>
11978
11979         * Control.cs, Form.cs, ContainerControl.cs,
11980         ScrollableControl.cs, ButtonBase.cs:  Added ShouldSerialize
11981         for misc properties.
11982
11983 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11984
11985         * TreeNode.cs: Implement StateImageIndex and StateImageKey.
11986         * TreeView.cs: Implement StateImageList.
11987
11988 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11989
11990         * Form.cs: Don't check if the current form is the active form before
11991           activating it. Fixes #81904.
11992
11993 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11994
11995         * Form.cs: Don't check if the current form is the active form before
11996           activating it. Fixes #81904.
11997
11998 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11999
12000         * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
12001
12002 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12003
12004         * Form.cs: Don't try to position the form after loading if the form was
12005           disposed. Fixes #81969.
12006
12007 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12008
12009         * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
12010           properties. Had to change ToolBar into ToolStrip, which required a
12011           few #ifs.
12012
12013 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12014
12015         * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
12016           resized, fixes part of #79829 (vertical lines in toolbar).
12017           PropertyGrid: Refactored Populate* to something that's easier to
12018           follow at least for me, as well as splitting it up into several new
12019           methods, required to update only subitems when something has
12020           changed by a popup editor or listbox. Don't use events to check
12021           when any values are changed, since the events are unreliable (we're
12022           changing the objects the events are registered with, and if the
12023           event handling requires the objects to be immutable (objects stored
12024           in hashtables for instance), the events will never be raised).
12025         * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
12026           everytime we change a value, since events are unreliable.
12027           DropDownButtonClicked: For the same reason don't compare objects to
12028           check if it has changed or not, it would require all objects to
12029           derive Equals. Fix dialog location on windows, MS is doing weird
12030           things when creating parented forms.
12031         * GridEntry.cs: Add a SelectedObject setter.
12032
12033 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
12034
12035         * TreeNode.cs: Add some corcompare attributes.
12036         * TreeNodeCollection.cs: Implement 2.0 stuffs.
12037         * TreeView.cs: Implement some 2.0 stuffs.
12038
12039 2007-07-18  Andreia Gaita  <avidigal@novell.com>
12040
12041         * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
12042         for moma.
12043
12044 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
12045
12046         * ListBox.cs: Implement custom tab offsets.
12047
12048 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12049
12050         * ToolStripContentPanel.cs: Support System renderer.
12051         * ToolStripControlHost.cs: Set RightToLeft to default to No.
12052
12053 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12054
12055         * ScrollableControl.cs: Don't mess up the user's explicit bounds.
12056
12057 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12058
12059         * CheckBox.cs: Chain TextAlign to base implementation instead of
12060         maintaining another one.
12061
12062 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12063
12064         * ButtonBase.cs: Fix an incorrect string constant.
12065
12066 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12067
12068         * TextRenderer.cs: Use the static Graphics context in Hwnd instead
12069         of creating one for measuring strings.
12070
12071 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12072
12073         * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs: 
12074         Implement MaxItemSize.
12075
12076 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
12077
12078         * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
12079         for DeviceContext.  Instead, use the static one available in Hwnd.
12080         Informal tests show this saves about 500k on formtest.exe.
12081
12082 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
12083
12084         * ContainerControl.cs: Implement 2.0 AutoScaling.
12085
12086 2007-07-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12087
12088         * ComboBox.cs: Work around bug #82120 (bug in mcs).
12089
12090 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
12091
12092         * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
12093         Darken the focus color.
12094
12095 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
12096
12097         * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
12098         for the checkbox.
12099         * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
12100         X, Y instead of a rect for drawing text.
12101         - For ControlPaint.DrawCheckBox, center the check a little better when the
12102         checkbox is odd width.  When drawing a flat checkbox, use a white background
12103         when state != inactive.
12104         [Fixes bugs #82097, 82100]
12105
12106 2007-07-16  Gert Driesen  <drieseng@users.sourceforge.net>
12107
12108         * ListControl.cs: When changing CurrencyManager, disconnect event
12109         handlers from previous one. Fixes bug #81771. Code formatting.
12110
12111 2007-07-15  Andreia Gaita <avidigal@novell.com>
12112
12113         * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
12114         full preview invalidation from layout invalidation, and only invalidate
12115         the layout when setting zoom or other properties. Invalidation should
12116         always be done even when resetting properties with the same values as
12117         what is there. Fixes #81744 and #79830.
12118
12119 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12120
12121         * ListView.cs: Implement initial support for Groups. Split some of the
12122         LayoutIcons code to render a partial list of the items (needed by
12123         items contained in ListViewGroup instances). Let the
12124         ListViewItemsCollection.ListView property be modifiable (needed when
12125         using Groups, too).
12126         * ListViewGroup.cs: Use a Bounds property rather than a Location
12127         one. Also invalidate the bounds when they get changed.
12128         * ThemeWin32Classic.cs: When drawing items, also draw the group header
12129         if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
12130         method as well.
12131
12132 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12133
12134         * ListView.cs: When space gets pressed and CheckBoxes is true, 
12135         don't invoke the Begin and EndUpdate methods. We are generating 
12136         a redraw of the entire control without need to do so.
12137
12138 2007-07-13  William Holmes <billholmes54@gmail.com> 
12139
12140         * Control.cs: Changing logic in FindFlatForward and 
12141           FindFlatBackward to handle multiple Controls with 
12142           the same TabIndex.  
12143           This fixes bug 81687.
12144
12145 2007-07-13  Jonathan Pobst  <monkey@jpobst.com>
12146
12147         * OSFeature.cs: Enable IsPresent.
12148
12149 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12150
12151         * Control.cs: Don't do anything in WmShowWindow if the control has been
12152           disposed. We can get WM_SHOWWINDOW after a control is disposed: a
12153           control is created, put on a form, the control is disposed (the
12154           form is never shown), and then we get a MapNotify, triggering a
12155           WM_SHOWWINDOW.
12156         * Form.cs: Exclude the current form when sending Deactivate to all
12157           MdiChildren.
12158         * NativeWindow.cs: Set WindowCreating to null as soon as possible,
12159           there was a race condition because assigning the handle raises
12160           events, we can get more messages, therefore trying to assign the
12161           handle again, which would fail if any of those event handlers
12162           closed/disposed the control.
12163
12164 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12165
12166         * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
12167
12168 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
12169
12170         * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
12171         XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
12172
12173 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12174
12175         * DateTimePicker.cs: If there's no part format specifier, return an
12176           empty string.
12177
12178 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
12179
12180         * FlatButtonAppearance.cs: Throw NotSupportedException for a
12181         Transparent BorderColor.
12182
12183 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12184
12185         * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
12186           MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
12187           X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
12188           LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
12189           LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
12190           TextBoxBase.cs, BindingNavigator.cs, Application.cs,
12191           ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
12192           Remove warnings.
12193         * X11Structs.cs: Remove warnings, add ToString implementations.
12194
12195 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12196
12197         * XplatUIX11.cs: Translate min/max size according to the actual min/max
12198           size, and not the current size. Fixes #81798.
12199
12200 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12201
12202         * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
12203           XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
12204           to the control yet).
12205
12206 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12207
12208         * PropertyGridTextBox.cs: Add a method that sends any forwarded
12209           mousedowns to the contained textbox.
12210         * X11Structs.cs: More ToString implementation.
12211         * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
12212           #81791.
12213
12214 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12215
12216         * PropertyGridView.cs: Add a null-check, fixes a few tests.
12217
12218 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
12219
12220         * TableLayoutPanelCellPosition.cs: TypeConverter.
12221
12222 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12223
12224         [ Fixes #79761]
12225         
12226         * PropertyGridTextBox.cs: Propagate any color changes to all contained
12227           controls.
12228         * PropertyGridView.cs: A few color fixes.
12229
12230 2007-07-10  Jackson Harper  <jackson@ximian.com>
12231
12232         * TextControl.cs: Remove some old unused text formatting stuff.
12233
12234 2007-07-10  Jackson Harper  <jackson@ximian.com>
12235
12236         * TreeView.cs: Update full row select invalidation to match the
12237         newer DrawSelection... method.
12238         - Make sure to invalidate the entire width when selecting a new
12239         node, if we have full row selection enabled.
12240
12241 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12242
12243         * PropertyGridView.cs: Fix for #81800, makes text show up on initial
12244           display of properties again.
12245
12246 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
12247
12248         * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
12249         to existing collections.
12250
12251 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12252
12253         * AccessibleObject.cs, RadioButton.cs: Fix some base classes
12254         that changed between 1.1 and 2.0.
12255
12256 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12257
12258         * PowerStatus.cs: Added.  This is just a data class, it is filled
12259         in by SystemInformation.
12260
12261 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12262
12263         * Message.cs: Add op_Equality and op_Inequality.
12264
12265 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12266
12267         * MenuStrip.cs: Finish corcompare work.
12268
12269 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12270
12271         * LinkArea.cs: Add op_Equality and op_Inequality.
12272
12273 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12274
12275         * Application.cs: Add MessageLoopCallback delegate.
12276
12277 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12278
12279         * ListBox.cs: First set of 2.0 stuffs.
12280
12281 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12282
12283         * Control.cs: Make an internal Height property we can override
12284         without messing up the public API.
12285         * ListBox.cs: Override HeightInternal to always return the size
12286         the user set.  [Fixes bug #80466]
12287
12288 2007-07-08  Jonathan Pobst  <monkey@jpobst.com>
12289
12290         * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
12291         paint cell borders if we haven't calculated where they go yet.
12292         [Fixes bugs #82040 and #82041]
12293
12294 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12295
12296         * ListView.cs: In Details view, set the location of item_control
12297         in the (0,0) position (and the header_control is thus on the
12298         item_control). This way the Bounds of the Items are relative to the
12299         ListView control (before this, they had a Bounds value without the
12300         header_control offset, which wasn't matching .Net). Fixes #82004.
12301
12302 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12303
12304         * ListControl.cs: When DataSource is set to null, pass an empty
12305         array of object to SetItemsCore. This is done to clean the items
12306         in the ListContol children. Fixes #81788.
12307
12308 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12309
12310         * ListControl.cs: Add 2.0 stuffs.
12311
12312 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12313
12314         * Label.cs: Finish up 2.0 stuffs.  Replace calls to Refresh with Invalidate,
12315         Refresh is overkill for just about every repaint request.
12316
12317 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12318
12319         * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
12320         so remove my custom Get method and fix the property getter.
12321
12322 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12323
12324         * Label.cs: DefaultMargin for 2.0.
12325
12326 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12327
12328         * ComboBox.cs: Override IsInputCharInternal and return true.  Fixes 
12329         reported issue where other controls with mnemonics would steal strokes
12330         from a selected ComboBox.
12331
12332 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12333
12334         * ScrollOrientation.cs: Make internal for 1.1.
12335         * ScrollEventArgs.cs: Add 2.0 stuffs.
12336
12337 2007-07-05  Jonathan Pobst  <monkey@jpobst.com>
12338
12339         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
12340         ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
12341         ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
12342
12343 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12344
12345         * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
12346
12347 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12348
12349         * ListView.cs: Implement the so-incredibly broken 2.0 
12350         VirtualItemsSelectionRangeChanged event.
12351
12352 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12353
12354         * ListView.cs: When enter is pressed and selection is non empty,
12355         an OnItemActivate event must be fired.
12356
12357 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12358
12359         * ListView.cs: Store the FocusedItem information as an
12360         int instead of a ListViewItem (needed by VirtualMode).
12361         Update the calls to SetFocusedItem to pass an index instead of
12362         an item.
12363         * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
12364         the Focused state from the owner ListView. 
12365
12366 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12367
12368         * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
12369         property. Also, invalidate previous focused item in the mentioned
12370         property (match .Net).
12371
12372 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12373
12374         * ListView.cs: Implement 2.0 FocusedItem property setter.
12375
12376 2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12377
12378         * ListView.cs: Implement 2.0 TopItem property setter.
12379
12380 2007-07-03  Jonathan Pobst  <monkey@jpobst.com>
12381
12382         * StatusStrip.cs: The default renderer is System.
12383         * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it 
12384         if the user specifies it.
12385         * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
12386         if we are ManagerRenderMode.
12387         * ToolStripMenuItem.cs: Calculate our text color better.
12388         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
12389         from Professional to the base class based off working with the System renderer.
12390         * ToolStripSystemRenderer.cs: Added.
12391
12392 2007-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12393
12394         * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
12395
12396 2007-07-02  Jonathan Pobst  <monkey@jpobst.com>
12397
12398         * ToolTip.cs: Implement 2.0 Tag property.
12399
12400 2007-06-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12401
12402         * ListView.cs: Implement 2.0 HitTest methods.
12403
12404 2007-06-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12405
12406         * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
12407         item is under the pointer or not (sugar). Also remove the TODO
12408         regarding to the cursor changes in OneClick activation.
12409         * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
12410         the subitems use the parent's HotFont if UseItemStyleForSubItems is
12411         true; otherwise don't show the underline style.
12412
12413 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12414
12415         * ListView.cs: In ItemControl.ItemsMouseMove, refactor
12416         the code to retrieve the item at position only one time. Also
12417         change cursor when Activation is ItemActivation.OneClick as well
12418         as invalidate the item if HotTracking is true (to show/hide the
12419         underline style). Add an internal HotItemIndex property to retrieve
12420         the current hot item's index.
12421         * ListViewItem.cs: Add an internal HotFont property to cache the
12422         font used when HotTracking is true and the pointer moves within the
12423         item's borders.
12424         * ThemeWin32Classic.cs: When drawing the item's text, use Font or
12425         HotFont depending on the hot state of the item.
12426
12427 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12428
12429         * ListView.cs: Implement 2.0 HotTracking property.
12430
12431 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
12432
12433         * ToolStripControlHost.cs: If our hosted control never got created,
12434         don't try to dispose it.  [Fixes bug #81909]
12435
12436 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
12437
12438         * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
12439
12440 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
12441
12442         * TableLayoutPanel.cs: Implement CellBorderStyle.  [Fixes bug #81884]
12443
12444 2007-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12445
12446         * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for 
12447         Details view.
12448         * DrawListViewColumnHeaderEventArgs.cs:
12449         * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
12450         using the DrawText () methods.
12451
12452 2007-06-19  Jonathan Pobst  <monkey@jpobst.com>
12453
12454         * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
12455         background which got erased in my changes yesterday.
12456
12457 2007-06-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12458
12459         * ListViewItem.cs: Actually set bounds for subitems in Details view
12460         (2.0 feature).
12461         * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
12462         can invoke from the owner draw routines if we need it. Also, add
12463         support for Owner draw in Details view.
12464
12465 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
12466
12467         * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
12468         ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
12469         ShowImageMargin setting, properly align text in a ToolStripLabel
12470         hosted on a ToolStripDropDown.
12471
12472 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
12473
12474         * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
12475         ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
12476
12477 2007-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12478
12479         * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
12480
12481 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
12482
12483         * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
12484         location to match ToolStripMenuItems.
12485
12486 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12487
12488         * DrawListViewColumnHeaderEventArgs.cs:
12489         * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
12490         column headers in ListView. 
12491
12492 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
12493
12494         * UserControl.cs: Implement AutoSize.
12495
12496 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12497
12498         * DrawListViewItemEventArgs.cs:
12499         * ListView.cs:
12500         * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
12501         ListView.
12502
12503 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
12504
12505         * ToolStripDropDownItemAccessibleObject.cs: Added.
12506         * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
12507         ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
12508         ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
12509         ToolStripTextBox.cs: corcompare work.
12510
12511 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
12512
12513         * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
12514         TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
12515         ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
12516                 corcompare.
12517
12518 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
12519
12520         * OSFeature.cs: Add IsPresent.
12521         * PrintPreviewControl.cs: Add RightToLeft.
12522         * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
12523         * SplitterPanel.cs: Add AutoSizeMode.
12524
12525 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12526
12527         * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
12528         * MdiClient.cs: Add 2.0 ScaleControl.
12529         * NativeWindow.cs: Implement 2.0 interface IWin32Window.
12530         * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
12531
12532 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12533
12534         * Form.cs: Implement some scaling methods, stub some RTL methods,
12535         corcompare work.
12536
12537 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12538
12539         * Control.cs: corcompare work.
12540         * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
12541
12542 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12543
12544         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
12545         ControlPaint 2.0 stuffs.
12546
12547 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12548
12549         * ThreadExceptionDialog.cs: Add 2.0 stuffs.
12550
12551 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12552
12553         * UpDownBase.cs: Add 2.0 stuffs.
12554
12555 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12556
12557         * NumericUpDown.cs: Add 2.0 stuffs.
12558
12559 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12560
12561         * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
12562
12563 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12564
12565         * ErrorProvider.cs: Implement 2.0 stuffs.
12566
12567 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12568
12569         * DomainUpDown.cs: Implement 2.0 stuffs.
12570
12571 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12572
12573         * CheckedListBox.cs: Fix RefreshItems signature.
12574
12575 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12576
12577         * PictureBox.cs: Implement 2.0 stuffs.
12578
12579 2007-06-12  Andreia Gaita  <avidigal@novell.com>
12580         
12581         * TabControl.cs: Check if there are tabpages before checking
12582         the selected index - fix #81802 (font changes raise a ResizeTabs
12583         call on controls.add, which blew up nicely with no tabpages)
12584
12585 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12586
12587         * ListView.cs:
12588         * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
12589
12590 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12591
12592         * ListView.cs:
12593         * ListViewItem.cs: In VirtualMode the selection information
12594         resides in the ListView, rather than in the Items. Also, throw
12595         InvalidOperationExceptions when VirtualMode is being used and
12596         CheckedItemCollection is accessed.
12597
12598 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
12599
12600         * ComboBox.cs: Add ScaleControl.
12601
12602 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
12603
12604         * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
12605
12606 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
12607
12608         * GroupBox.cs: Add 2.0 stuffs.
12609
12610 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
12611
12612         * Panel.cs: Add autosize properties/event.
12613
12614 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
12615
12616         * Control.cs:
12617         - When we remove a control, remove it from the collection before performing the layout.
12618         - Setup an internal property for explicit_bounds.
12619         - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
12620         - Perform a layout when we set a new AutoSizeMode.
12621
12622 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
12623
12624         * ScrollableControl.cs: Add 2.0 stuffs.
12625
12626 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12627
12628         * ScrollBar.cs: Add 2.0 stuffs.
12629
12630 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12631
12632         * Splitter.cs: Add 2.0 stuffs.
12633
12634 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12635
12636         * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
12637         to have BindingContext simply use base implementation.
12638
12639 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12640
12641         * ColumnHeader.cs: corcompare fix.
12642
12643 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12644
12645         * Button.cs: corcompare fixes.
12646         * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
12647
12648 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12649
12650         * Button.cs: Override GetPreferredSizeCore.
12651         * ButtonBase.cs: PerformLayout after changing properties that can affect
12652         AutoSize.  Simplify some mouse/keyboard code.
12653         * Control.cs: PerformLayout after changing Padding if AutoSize = true.
12654         * MouseEventArgs.cs: Make Location internal for 1.1.
12655         * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
12656         * Theme.cs: Add CalculateButtonAutoSize.
12657         * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
12658
12659 2007-06-05  Miguel de Icaza  <miguel@novell.com>
12660
12661         * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
12662
12663 2007-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12664
12665         * ListViewItem.cs: We can't cache Bounds in VirtualMode 
12666         since we can get different item instances every time we retrieve it.
12667
12668 2007-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12669
12670         * ListView.cs: Work around for #81602, since an unkown an pretty
12671         infrequent condition appears only in some systems (old linux boxes, it
12672         seems).
12673
12674 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12675
12676         * Button.cs: Completely reformat and a little refactor to bring
12677         this closer to Mono circa 2007.
12678
12679 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12680
12681         * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
12682         to be ButtonBase.Invalidate.
12683
12684 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12685
12686         * ButtonBase.cs: GetPreferredSize is 2.0 only.  Fixes build.
12687
12688 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12689
12690         * ButtonBase.cs: Completely reformat and a little refactor to bring
12691         this closer to Mono circa 2007.
12692
12693 2007-06-01  Everaldo Canuto  <ecanuto@novell.com>
12694
12695         * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
12696         values for autosize. Fixes #80137.
12697
12698 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
12699
12700         * Control.cs: Don't perform layout when AutoSize changes.
12701         * Form.cs: Perform layout in AutoSize override.  Don't set ClientSize
12702         directly when autosizing, use SetBounds with BoundsSpecified.None.
12703         Fixes unit tests my last commit broke.
12704
12705 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
12706
12707         * Control.cs: Perform layout when AutoSize changes.
12708         * Form.cs: Implement AutoSizing.
12709
12710 2007-06-01  Chris Toshok  <toshok@ximian.com>
12711
12712         * DataGrid.cs: remove the XXX'ed check at the top of
12713         ProcessGridKey.  fixes #80464.
12714
12715 2007-06-01  Chris Toshok  <toshok@ximian.com>
12716
12717         * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
12718         adding idempotent (add/remove in Edit()), and also make sure we
12719         don't add it until after we set the text, so it's not tripped in
12720         Edit().  Fixes unit test regression.
12721
12722 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
12723
12724         * Control.cs: In UpdateBounds, only recalculate anchor distances if the
12725         change is user explicit, not when the layout engine moves stuff.  Fixes
12726         anchoring to bottom and right.  [Fixes bug #81790]
12727
12728 2007-06-01  Andreia Gaita  <avidigal@novell.com>
12729
12730         * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
12731
12732 2007-06-01  Andreia Gaita  <avidigal@novell.com>
12733
12734         * ContainerControl.cs: 
12735         Fire enter event for common ancestor if it is not a ContainerControl.
12736         Send focus to the active_control and not the 'value', the active 
12737         control might have been changed in one of the events fired.     
12738         Definitely fixes #80159.
12739
12740 2007-06-01  Andreia Gaita  <avidigal@novell.com>
12741
12742         * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
12743
12744 2007-06-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12745
12746         * PropertyGrid.cs: Anchor the help description to the bottom of the
12747           help panel and refactor SelectGridItem into a
12748           SelectGridItemInternal that can be set to null (and update it to
12749           clear the help texts when it is set to null). Set root item to null
12750           when there's no SelectedObject. Fixes #80438.
12751         * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
12752           when we're recalculating after a resize (only).
12753
12754 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12755
12756         * ListView.cs: Implement 2.0 RedrawItems method.
12757
12758 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12759
12760         * ListControl.cs: Disconnect PositionChanged and ItemChanged
12761         handlers from previous data manager when DataSource is set to
12762         null. Fixes #81771.
12763
12764 2007-05-31  Jackson Harper  <jackson@ximian.com>
12765
12766         * TextBoxBase.cs: These seem to be the correct values.
12767
12768 2007-05-31  Everaldo Canuto  <ecanuto@novell.com>
12769
12770         * FileDialog.cs: When close dialog with ok set filterindex using combobox
12771         value. Fixes #81784.
12772
12773 2007-05-31  Jonathan Pobst  <monkey@jpobst.com>
12774
12775         * Control.cs: Implement 2.0 scaling methods.
12776
12777 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12778
12779         * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
12780           MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
12781           corcompare issues.
12782
12783 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12784
12785         * ProgressBar.cs: Implemented missing 2.0 members.
12786
12787 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12788
12789         * Control.cs: Corcompare issues.
12790         * MessageBox.cs: Implemented missing 2.0 functions.
12791
12792 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12793
12794         * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
12795           Implemented more 2.0 members.
12796
12797 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12798
12799         * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
12800           null (strange, but it seems to happen when running unit tests).
12801
12802 2007-05-30  Andreia Gaita  <avidigal@novell.com>
12803
12804         * ContainerControl.cs: Set active_control even earlier, before 
12805         firing any events, and undo it if validation returns false.
12806
12807 2007-05-30  Andreia Gaita  <avidigal@novell.com>
12808
12809         * ContainerControl.cs: Raise Validation and Enter/Leave events
12810         even if there is no Form and set active_control earlier, just
12811         before firing Enter events (toshok's patches). Fixes #80647.
12812
12813 2007-05-30  Jackson Harper  <jackson@ximian.com>
12814
12815         * TextControl.cs: Redid the pageup/pagedown a little to simplify
12816         things and fix bug #81311.
12817
12818 2007-05-30  Jackson Harper  <jackson@ximian.com>
12819
12820         * X11Dnd.cs: Now that we have our own event loop, we need to
12821         cancel when we get a mouseup but it won't be accepted.
12822
12823 2007-05-30  Chris Toshok  <toshok@ximian.com>
12824
12825         * DataGrid.cs (set_CurrentCell): guard against negative
12826         column/row.
12827
12828         * DataGridColumnStyle.cs (CheckValidDataSource): just use the
12829         array index syntax instead of looping over the property names.
12830
12831         * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
12832         and set IsInEditOrNavigateMode to false there.
12833
12834 2007-05-30  Jackson Harper  <jackson@ximian.com>
12835
12836         * TreeView.cs: Make sure we don't get a bad visible order when
12837         setting to the top node.  Fixes some misc crashing in
12838         ControlInspector.
12839
12840 2007-05-30  Andreia Gaita  <avidigal@novell.com>
12841
12842         * UserControl.cs: Add 2.0 AutoSizeMode
12843
12844 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12845
12846         * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
12847
12848 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12849
12850         * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
12851         lines. Fixes #80285. 
12852
12853 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12854
12855         * DataGridColumnStyle.cs: Add char trimming column header text format. 
12856
12857 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12858
12859         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
12860         Fixes #80147.
12861
12862 2007-05-29  Jackson Harper  <jackson@ximian.com>
12863
12864         * TreeNode.cs: Fix off by one on calculating whether or not a node
12865         is visible.
12866
12867 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
12868
12869         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
12870         * ScrollableControl.cs: Force an UpdateDistances when we move the
12871         scrollbars.
12872         [Fixes bug #80605]
12873
12874 2007-05-29  Andreia Gaita  <avidigal@novell.com>
12875
12876         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
12877         update the page setup screen.
12878
12879 2007-05-29  Andreia Gaita  <avidigal@novell.com>
12880
12881         * PageSetupDialog.cs: Fix landscape mode.
12882
12883 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12884
12885         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
12886         IconSizeHorizontalSpacing.
12887
12888 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12889
12890         * ListView.cs: The declaration of prev_tooltip_item should be inside
12891         a NET_2_0 conditional (avoid a warning).
12892
12893 2007-05-28  Andreia Gaita  <avidigal@novell.com>
12894
12895         * PageSetupDialog.cs: Implement PrintPreview control to display
12896         the preview thumbnail. Change unit conversion to use 
12897         PrinterUnitConvert methods.
12898         
12899         Note: there is a huge bug in ms.net where the default margins are 
12900         interpreted as centimeters (?), when in fact they are set in inches. When 
12901         loading the page setup dialog initially (ms.net), the default margins 
12902         are set to 1 inch, and the dialog shows them with value 10, when in fact 
12903         it should be 25 (properly converted). Our dialog doesn't have this bug.
12904         
12905         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
12906         RectangleF.
12907         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
12908
12909 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12910
12911         * ListView.cs:
12912         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
12913         items.
12914
12915 2007-05-28  Andreia Gaita  <avidigal@novell.com>
12916
12917         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
12918         an IntPtr on csc (it builds fine on mcs, could it be a compiler
12919         bug?), convert the ptr to Int32 first.
12920
12921 2007-05-28  Jackson Harper  <jackson@ximian.com>
12922
12923         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
12924         recieved, we will exit the dnd tracking loop.
12925
12926 2007-05-28  Jackson Harper  <jackson@ximian.com>
12927
12928         * X11Dnd.cs: Keep tracking until the xdnd finished event is
12929         recieved. TODO: I should probably stick a timer on the dropped
12930         event, and finish the drag if the XDND Finished event never shows
12931         (because some apps don't seem to send it).
12932
12933 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
12934
12935         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
12936         #81733.
12937
12938 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12939
12940         * MonthCalendar.cs: Only mark the keypresses we actually handle as
12941           handled.
12942
12943 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12944
12945         * MonthCalendar.cs: Set the size after initializing all the relevant
12946           variables. Fixes #81742.
12947
12948 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12949
12950         * KeyEventArgs.cs: Fix typo.
12951
12952 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
12953
12954         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
12955         to match MS. Fixed MinDate to only accept value less than or equal
12956         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
12957         Removed TODO's that are now verified by unit tests.
12958
12959 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
12960
12961         * TreeNodeCollection.cs: Minor corrections to exceptions to match
12962         MS.
12963
12964 2007-05-25  Jackson Harper  <jackson@ximian.com>
12965
12966         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
12967         it's own message loop.
12968         * XplatUIX11.cs: Remove some of the dnd hooks
12969
12970 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
12971
12972         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
12973         instead of MinimizedWindowSize.
12974
12975 2007-05-25  Jackson Harper  <jackson@ximian.com>
12976
12977         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
12978
12979 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12980
12981         * KeyEventArgs.cs: Added SuppressKeyPress.
12982         * Control.cs: Added support for SuppressKeyPress.
12983
12984 2007-05-24  Andreia Gaita  <avidigal@novell.com>
12985
12986         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
12987         problems with PieChart. suppress_validation should not be a counter,
12988         if there are several BeginInit calls, the first EndInit will 
12989         activate validation. Fix exceptions thrown by set_Value.
12990         * UpDownBase.cs: ValidateText only if it's the user editing it.
12991
12992 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12993
12994         * ListControl.cs: FilterItemOnProperty should return the filtered
12995         item proeprty even if DataSource is null. The same applies for
12996         GetItemText. Fixes #80427.
12997
12998 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
12999
13000         * Control.cs: If a control doesn't have a parent when it's Dock is
13001         set, but it has children, it needs to do a layout.  Fixes some nested
13002         controls issues.  [Fixes bug #81199]
13003
13004 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13005
13006         * ComboBox.cs: If there are few items in the drop down list, make it
13007           the exact size the items need, no bigger. Fixes #81612.
13008
13009 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
13010
13011         * Application.cs: When we have captured the keyboard for a menu,
13012         check for mouse down events in case we need to close the menu.
13013         * Control.cs, Form.cs: Remove mouse down checks for menus.
13014
13015 2007-05-24  Jackson Harper  <jackson@ximian.com>
13016
13017         * TextControl.cs: Handle tabs in non multiline mode a little
13018         differently.
13019
13020 2007-05-24  Jackson Harper  <jackson@ximian.com>
13021
13022         * TextControl.cs: We need to manually break apart tabbed text and
13023         move the tabs, since the system.drawing tabbing mechanism relies
13024         on tab stops.
13025         * TextBoxBase.cs: Move the caret properly when the user enters a
13026         tab.
13027
13028 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
13029
13030         * ContainerControl.cs: Don't check CanSelect before calling
13031         ProcessMnemonic.
13032         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
13033         release a KeyboardActive on click if it's not ours.
13034
13035 2007-05-23  Andreia Gaita  <avidigal@novell.com>
13036
13037         * ColumnHeader.cs: Add TypeConverter
13038
13039 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13040
13041         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
13042
13043 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13044
13045         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
13046
13047 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13048
13049         * LinkLabel.cs: Implement public Padding property.
13050
13051 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13052
13053         * LinkLabel.cs: Implement public FlatStyle.
13054
13055 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
13056
13057         * Control.cs: Apply patch from George to call parent.PerformLayout
13058         when Visible is changed.  [Fixes bugs #81118, 81718]
13059
13060 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13061
13062         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
13063
13064 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13065
13066         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
13067
13068 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13069
13070         * ContextMenu.cs: Implement Collapse.
13071
13072 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
13073
13074         * ToolBarButton.cs: Implement Name.
13075
13076 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
13077
13078         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
13079         use current_item, it prevents some NRE. Fixes #81675.  
13080
13081 2007-05-22  Andreia Gaita  <avidigal@novell.com>
13082
13083         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
13084         without updating the text.
13085
13086 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
13087
13088         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
13089         without calling DeleteObject.  [Should fix bug #81709]
13090
13091 2007-05-22  Jackson Harper  <jackson@ximian.com>
13092
13093         * RichTextBox.cs: Set the line endings correctly, when flushing
13094         RTF text.
13095
13096 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
13097
13098         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
13099          {Width=0,Height=0}.
13100
13101 2007-05-22  Jackson Harper  <jackson@ximian.com>
13102
13103         * TreeView.cs: Setting top with a null node should set to the very
13104         top.
13105
13106 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13107
13108         * Form.cs: ShowDialog: destroy the handle when message loop is
13109           finished, matches MS behaviour. Refactor parts of WmClose into
13110           RaiseCloseEvents, that only raises events if they haven't already
13111           been raised. Fixes #81688 and #81521.
13112         * Application.cs: Don't call close on the form when exiting a modal
13113           loop, it will raise all the (Form)Closed/Closing events again if
13114           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
13115           which doesn'r raise any events it they have been raised before.
13116
13117 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
13118
13119         * Control.cs: Add OnPrint.
13120         * ToolStrip.cs: Add GetChildAtPoint.
13121         * ToolStripContainer.cs: Add OnRightToLeftChanged.
13122         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
13123
13124 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
13125
13126         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
13127
13128 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13129
13130         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
13131           isn't visible anymore. Fixes #81651.
13132
13133 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13134
13135         * Control.cs: WmShowWindow: Update children's z-order after setting
13136           their parent. SetParent may show the window, thereby corrupting
13137           z-order, since the window will be shown on top.
13138         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
13139           multiple (and redundant) WM_SHOWWINDOW messages.
13140         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
13141           event has already been raised.
13142         * Form.cs: Change is_changing_visible_state to a counter, since
13143           SetVisibleCore can be called recursively. CreateHandle: when
13144           creating mdi children, send (De)Activated events.
13145         * MdiClient.cs: Update use of is_changing_visible_state.
13146         * Application.cs: OnThreadException: Surround exception handling with
13147           try/finally to ensure we always reset the error-handling state
13148           before leaving.
13149
13150 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13151
13152         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
13153           (#81704).
13154
13155 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13156
13157         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
13158         SmallIcon views, now that we have a standarized horizontal spacing.
13159
13160         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
13161         4, just like the other views (Match .Net).
13162
13163 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
13164
13165         * Control.cs: Delay calculating anchor distances until we actually layout.
13166         Always query the WM for the actual size and location it put us at instead of
13167         only when we send negative values.
13168         [Fixes bugs #81694, 81695]
13169
13170 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13171
13172         * Application.cs: Avoid a possible stack overflow when trying to exit
13173           the application.
13174
13175 2007-05-19  Marek Safar  <marek.safar@gmail.com>
13176
13177         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
13178         enum value.
13179
13180 2007-05-19  Andreia Gaita  <avidigal@novell.com>
13181
13182         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
13183         * NumericUpDownAcceleration.cs, 
13184           NumericUpDownAccelerationCollection.cs: Added 2.0
13185           implementation.
13186
13187 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
13188
13189         * RichTextBox.cs: Recalculate the document after the ScrollBars
13190         property is changed. Fixes bug #81681.
13191
13192 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
13193
13194         * DataObject.cs: Implement 2.0 methods.
13195
13196 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13197
13198         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
13199         in the center of the checkbox, not in the left-top corner. 
13200         Fixes #80037.
13201
13202 2007-05-18  Jackson Harper  <jackson@ximian.com>
13203
13204         * RichTextBox.cs: Recalculate the document after the scrollbars
13205         property is changed.
13206         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
13207         81486.
13208
13209 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13210
13211         * CreateParams.cs: Make HasWindowManager marginally faster.
13212         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
13213           into Hwnd so that other drivers can use it as well.
13214         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
13215           the default location from Hwnd. Fixes MDI client windows always
13216           showing up at (0,0) in Windows (Win32 won't set the default
13217           location since the window styles aren't correct).
13218
13219 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
13220
13221         * TreeView.cs: Modified DoubleBuffered to just use the base
13222         implementation.
13223
13224 2007-05-18  Jackson Harper  <jackson@ximian.com>
13225
13226         * TreeView.cs: Set the top node to the last child node when
13227         expanding all
13228         - When we get focus, if there is no selected node, use the top
13229         node.
13230
13231 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
13232
13233         * KeysConverter.cs: Add CanConvertTo.
13234         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
13235         * LinkConverter.cs: Added.
13236
13237 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13238
13239         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
13240         it prevents error when file dont have write access. Fixes #81669 and #81667.  
13241
13242 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13243
13244         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
13245         button text. Fixes #79640.  
13246
13247 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13248
13249         * Control.cs: According to MSDN controls created in the designer theres 
13250         keyboard accelerators visible by default. So included check for design
13251         in ShowKeyboardCuesInternal.  
13252
13253 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13254
13255         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
13256         text. Fixes #81621.  
13257
13258 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13259
13260         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
13261         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
13262
13263 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
13264
13265         * Control.cs: Finish implementation of UI State using WmChangeUIState
13266         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
13267         in some controls to check for show_keyboard_cues to draw accell keys "_".  
13268
13269 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13270
13271         * ListBox.cs: When calculating the horizontal scrollbar
13272         in single column mode, don't use values less than 0 for
13273         Maximum. Fixes #81474.
13274
13275 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13276
13277         * ListBox.cs: Throw the some missing exceptions in
13278         ListBox.ObjectCollection methods.
13279
13280 2007-05-17  Jackson Harper  <jackson@ximian.com>
13281
13282         * TextBoxBase.cs: Recalculate the document when the word wrap
13283         value has changed. This fixes 81488.
13284
13285 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
13286
13287         * Clipboard.cs: Implement missing GetText overload.
13288
13289 2007-05-17  Chris Toshok  <toshok@ximian.com>
13290
13291         * Control.cs (CheckDataBindings): remove the binding_context arg
13292         to binding.Check.
13293
13294         * CurrencyManager.cs (OnItemChanged): fix this now that
13295         BindingManagerBase is fixed. also remove the comment telling where
13296         the fix should go.  We set transfering_data to true/false around
13297         the call to PushData to keep UpdateIsBinding from being called.
13298         (ListChangedHandler): remove the extra OnMetaDataChanged call for
13299         PropertyDescriptorAdded in the 1.1 case.  The extra call is
13300         actually generated by System.Data generating 2 metadata changed
13301         events of its own per column add.  The fix should go there.  Add a
13302         comment to that affect in our test's Assert.Ignore.
13303
13304         * BindingManagerBase.cs: Rework PullData and PushData slightly.
13305         we keep a boolean flag (transfering_data) that keeps us from
13306         calling UpdateIsBinding multiple times if we re-enter either of
13307         them.
13308
13309         * ControlBindingsCollection.cs (AddCore): remove the
13310         binding_context arg to binding.Check.
13311
13312         * Binding.cs (IsBinding): don't check if we're binding here, just
13313         return our cached value.  we update it in UpdateIsBinding.
13314         (Check): don't take the binding_context arg, we'll just use our
13315         control's.  Also, for some reason MS doesn't use the data member
13316         field when getting the bindingmanager for this binding.  it just
13317         uses the datasource.  Make this method callable multiple times,
13318         and only do the is_null_desc stuff if manager.Position != -1 (so
13319         we don't get an exception accessing manager.Current).
13320         (UpdateIsBinding): move the code from IsBinding here.
13321         (PositionChangedHandler): call Check here to we can initialize
13322         things that require a non- -1 position.
13323
13324 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
13325
13326         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
13327         control.
13328
13329 2007-05-17  Andreia Gaita  <avidigal@novell.com>
13330
13331         * TabControl.cs: Add 2.0 methods and events, including
13332         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
13333         * TabPage.cs: Add 2.0 methods
13334
13335 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
13336
13337         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
13338         keyboard_cues is properly handled by message method.  
13339
13340 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
13341
13342         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
13343
13344 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
13345
13346         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
13347
13348 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
13349
13350         * Control.cs: 
13351         - WmUpdateUIState added to handle state changes, it make call to
13352         OnChangeUICues event.
13353         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
13354         SystemInformation.
13355
13356 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
13357
13358         * ImageKeyConverter.cs: Added.
13359         * TreeViewImageKeyConverter.cs: Added.
13360
13361 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13362         
13363         * ToolTips.cs: Update Text if SetToolTip is called for a control
13364         already showing the tooltip, as well as restarting its timer; show
13365         tooltip if we are inside the control bounds by the time of calling
13366         SetToolTip. Inside ShowTooltip remove the check to not show the 
13367         tooltip again for the active control (it is allowed by .Net to 
13368         show the tooltip on the same control multiple times).
13369
13370 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13371
13372         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
13373
13374 2007-05-16  Andreia Gaita <avidigal@novell.com> 
13375
13376         * ContainerControl.cs: only process tab key if there are no 
13377         modifier keys present, otherwise the control does the 
13378         tab processing, if it needs to. Fixes #81622
13379         * TabControl.cs: Fixes calculation for which tab to select on
13380         shift+ctrl+tab.
13381
13382 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13383
13384         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
13385
13386 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
13387
13388         * Control.cs: Make IsInputCharInternal to allow controls to
13389         override it and still match MS API.
13390         * TextBoxBase.cs: Override IsInputCharInternal and always
13391         return true.
13392         [Fixes bug #81616]
13393
13394 2007-05-15  Jackson Harper  <jackson@ximian.com>
13395
13396         * TextBox.cs: Disable some of the menu options when using a
13397         readonly textbox.
13398
13399 2007-05-15  Jackson Harper  <jackson@ximian.com>
13400
13401         * TextBox.cs:
13402         * TextBoxBase.cs:
13403         * RichTextBox.cs: Some new 2.0 methods
13404
13405 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
13406
13407         * FileDialog.cs: On 1.0 profile, do not support multidotted 
13408         extensions.
13409
13410 2007-05-14  Jackson Harper  <jackson@ximian.com>
13411
13412         * TextBoxBase.cs: Implement some of the new 2.0 methods.
13413         * RichTextBox.cs: We need to override these methods on 2.0.
13414         * MaskedTextBox.cs: These are implemented now
13415         * TextControl.cs: This was off by one.
13416
13417 2007-05-14  Jackson Harper  <jackson@ximian.com>
13418
13419         * TextControl.cs: Because the line endings are including in the
13420         text, we don't need to add them in anymore.
13421
13422 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13423
13424         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
13425         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
13426
13427 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13428
13429         * ToolBar.cs: Adjust size to default size when button theres no text and
13430         image, it fixes remaining issues from #81524.
13431
13432 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13433
13434         * ToolBar.cs: 
13435         - When not flat call redraw to recalculate sizes on creare handle to match
13436         win32 behavior.
13437         - Revert 77220 because it causes some regressions in toobar
13438         button.
13439
13440 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13441
13442         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
13443           now actually enters a usable state.
13444
13445 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13446
13447         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
13448         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
13449         3 buttons.
13450
13451 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13452
13453         * ToolBar.cs: Save default_size on create handle to use later for buttons
13454         without text, needed to mimic win32 behavior.
13455
13456 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13457
13458         * ToolBar.cs: Fix button layour to best fit width or height according to
13459         vertical or not. Fixes #81524.
13460
13461 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
13462
13463         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
13464         toolbar size info because different styles theres different sizes.
13465         Fixes #81522.
13466
13467 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13468
13469         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
13470         if we are using checkboxes, checked is true, and we have less
13471         than two images in StateImageList; for the 1.1 in the same scenario
13472         draw the first image if we have at least one image in StateImageList.
13473         Fixes part of #81191.
13474
13475 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
13476
13477         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
13478         the owner's Items collection on merge.
13479
13480 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
13481
13482         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
13483         * ToolStripItemCollection.cs: Lots of fixes to when events get called
13484         and parent/owner gets changed based on gert's unit tests.
13485
13486 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13487
13488         * MaskedTextBox.cs: Started implementing parts of it.
13489
13490 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13491
13492         * ListView.cs: When clicking the checkbox on the items
13493         take into account the double clicks even if we have only
13494         one image in StateImageList (only for 1.0/1.1). Also 
13495         generate an extra change of checked state when we receive
13496         the second click on checkbox (match .Net behaviour). 
13497         Fixes part of #81191.
13498
13499 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
13500
13501         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
13502
13503 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
13504
13505         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
13506         even if OnLoad is overriden and base.OnLoad is not called.
13507         [Fixes bug #81582]
13508
13509 2007-05-10  Andreia Gaita  <avidigal@novell.com>
13510
13511         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
13512         shame. (I blame my ever-persisting and annoying cold)
13513
13514 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13515
13516         * ListView.cs: Don't eat navigation keys.  Let them flow through to
13517         KeyDown/KeyPress routines.  [Fixes bug #81569]
13518
13519 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13520
13521         * ListView.cs: When handling keys for selecting the item based off
13522         keyboard input, do not consider keys pressed with Alt or Control.  Also,
13523         correctly handle keys when the Shift key is down. [Fixes bug #81578]
13524
13525 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13526
13527         * Control.cs: When using UseWaitCursor, we have to store the requested
13528         Cursor to use when UseWaitCursor is turned off.
13529
13530 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13531
13532         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
13533         to false.
13534         * Application.cs: Use PreProcessControlMessage instead of
13535         PreProcessMessage.
13536         * PreProcessControlMessage.cs: Make internal for 1.1.
13537
13538 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13539
13540         * Control.cs: Add InternalContains focus property, which hast the same
13541         functionality of ContainsFocus, but also including implicit controls.
13542         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
13543         since we need to know if the focus is contained in our implicit
13544         ItemControl when calculating Layout. Fixes part of #80888.
13545
13546 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
13547
13548         * ToolTip.cs: Remove center form string alignment as it must be align to
13549         left.
13550
13551 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
13552
13553         * ToolStripItemCollection.cs: Set the new item's parent and owner
13554         in Insert like we do in Add.  [Fixes bug #81568]
13555
13556 2007-05-08  Jackson Harper  <jackson@ximian.com>
13557
13558         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
13559         - Off by one error in SetTop
13560         - Disable DoubeBuffering
13561         
13562 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13563
13564         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
13565           control as much as necessary in order to make it entirely visible,
13566           instead of centering the control in the container (matches MS
13567           behaviour). CalculateCanvasSize: we need to take the current scroll
13568           position into account when calculating the maximum canvas,
13569           otherwise the following scenario will fail: resize so that the
13570           scrollbars appear, use the scrollbars to scroll, resize again
13571           smaller, and now the canvas size is too small. Recalculate: when
13572           showing scrollbars make sure they start off at 0, and try to scroll
13573           the active control into view. Fixes #79540. HandleScrollBar: don't
13574           scroll anywhere if the scrollbar isn't visible.
13575
13576 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13577
13578         * ListView.cs: When focus changed, call Layout/Invalidate
13579         in the focused item to update the selected state (should show
13580         entire label when ListView is focused, and a part of it if is not).
13581         * ListViewItem.cs: When doing layout for LargeIcon, take into account
13582         for displaying the entire label not only the Focused state of the
13583         item, but also the Focused state of the ListView (match .Net
13584         behaviour).
13585
13586 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13587
13588         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
13589         Implement UseWaitCursor. 
13590
13591 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13592         Applying contributed patch from Sergey Volk.
13593
13594         * Clipboard.cs: Implement SetDataObject retry logic and new overload
13595         of SetDataObject.
13596         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
13597
13598 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13599
13600         * Control.cs: Implement DrawToBitmap.
13601
13602 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13603         Applying contributed patch from Stefan Noack.
13604         
13605         * Control.cs: Add [Get|Set]AutoSizeMode.
13606
13607 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13608
13609         * MdiClient.cs: Unmerge menus when the last child is closed.
13610
13611 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13612
13613         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
13614         * ToolStripManager.cs: Call Merge on DropDowns.
13615         [Fixes bug #81477]
13616
13617 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13618
13619         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
13620           uints.
13621         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
13622           visibility. We can't create forms visible, since we have to set the
13623           owner before making the form visible (otherwise Win32 will do
13624           strange things with task bar icons). The problem is that we set the
13625           internal is_visible to true before creating the control, so
13626           is_changing_visible_state is the only way of determining if we're
13627           in the process of creating the form due to setting Visible=true -
13628           this works because SetVisibleCore explicitly makes the form
13629           visibile afterwards anyways. Fixes #80775.
13630
13631 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13632
13633         * ThemeWin32Classic.cs: When drawing ListViewItems,
13634         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
13635         or LargeIcon _and_ item is not focused (match .Net behaviour).
13636
13637 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
13638
13639         * Control.cs, Form.cs: Fix some obsolete method warnings.
13640
13641 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
13642
13643         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
13644         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
13645
13646 2007-05-04  Andreia Gaita  <avidigal@novell.com>
13647
13648         * ContainerControl.cs: Fix active_control attribution when going
13649         up the parent chain so that the first parent container gets the control
13650         and the rest of the parent containers get the child containers (skips
13651         non-containers). Fixes #80729
13652
13653 2007-05-04  Randolph Chung  <tausq@debian.org>
13654
13655         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
13656         [Fixes bug #81499]
13657
13658 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13659
13660         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
13661           takes a size parameter, since the CreateParam's size isn't true for
13662           minimized forms. Fixes #81518,
13663
13664 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13665
13666         * Form.cs: Add OnDeactivateInternal.
13667         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
13668
13669 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13670
13671         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
13672           accessing the parent. Fixes #81508.
13673
13674 2007-05-03  Chris Toshok  <toshok@ximian.com>
13675
13676         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
13677         2.0 block, pass listposition + 1 to ChangeRecordState when a row
13678         was added before the current listposition.  Fixes the
13679         TestInsertRowBeforeCurrent unit test.
13680
13681 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
13682
13683         * Application.cs: Add RaiseIdle.
13684         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
13685         XplatUIX11.cs: Implement RaiseIdle.
13686
13687 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
13688         corcompare work: N - Z
13689         * NotifyIcon.cs
13690         * ProgressBar.cs
13691         * RadionButton.cs
13692         * ScrollableControl.cs
13693         * SplitContainer.cs
13694         * SplitterPanel.cs
13695         * StatusBar.cs
13696         * SystemInformation.cs
13697         * TabControl.cs
13698         * TableLayoutControlCollection.cs
13699         * TableLayoutPanel.cs
13700         * TabPage.cs
13701         * ToolBar.cs
13702         * ToolBarButton.cs
13703         * ToolStrip.cs
13704         * ToolStripComboBox.cs
13705         * ToolStripContainer.cs
13706         * ToolStripContentPanel.cs
13707         * ToolStripDropDown.cs
13708         * ToolStripDropDownItem.cs
13709         * ToolStripDropDownMenu.cs
13710         * ToolStripItem.cs
13711         * ToolStripItemCollection.cs
13712         * ToolStripMenuItem.cs
13713         * ToolStripPanel.cs
13714         * ToolStripSplitButton.cs
13715         * ToolTip.cs
13716         * TreeNode.cs
13717         * TreeNodeCollection.cs
13718         * TreeNodeMouseHoverEventArgs.cs
13719         * TreeView.cs
13720
13721 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
13722
13723         * ContextMenu.cs: Add public method Show with alignment property to 2.0
13724         stuff. Thanks aatdark for the patch. 
13725
13726 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13727
13728         * GridItem.cs: Implement 2.0 Tag property.
13729
13730 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
13731
13732         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
13733         count instead of Nodes.Length.  [Fixes bug #81448]
13734
13735 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13736
13737         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
13738         [Fixes bug #81506]
13739
13740 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13741         corcompare work: A - M
13742         * BindingNavigator.cs
13743         * Button.cs
13744         * ButtonBase.cs
13745         * CheckBox.cs
13746         * Control.cs
13747         * FlowLayoutPanel.cs
13748         * Form.cs
13749         * Label.cs
13750         * LinkLabel.cs
13751         * ListView.cs
13752
13753 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13754
13755         * Application.cs: Give toolstrips a chance to process mnemonics.
13756         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
13757         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
13758         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
13759
13760 2007-05-01  Jackson Harper  <jackson@ximian.com>
13761
13762         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
13763         wider area too.
13764         - Don't set the BoundsSpecified
13765
13766 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
13767
13768         * Application.cs: When using the toolstrip shortcut mechanism, allow the
13769         message to pass through to a regular control if it hosted by a toolstrip.
13770         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
13771         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
13772
13773 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
13774
13775         * TextRenderer.cs: Use the flags argument when using the MeasureString
13776         fallback algorithm.
13777
13778 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
13779
13780         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
13781         the MDI menu item.  [Fixes bug #81483]
13782
13783 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
13784
13785         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
13786         string. When setting Name to null, use zero-length string instead.
13787
13788 2007-04-29  Andreia Gaita  <avidigal@novell.com>
13789
13790         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
13791         DeselectTab). Implement missing 2.0 TabPageCollection methods
13792         (Add, ContainsKey, RemoveByKey, IndexOfKey)
13793
13794 2007-04-29  Pedro Martínez Juliá  <pedromj@gmail.com>
13795
13796         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
13797
13798 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
13799
13800         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
13801         Fixes bug #81479. Include details of exception when LoadFile fails.
13802
13803 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
13804
13805         * DrawListViewSubItemEventArgs.cs: Added missing setter
13806
13807 2007-04-27  Andreia Gaita  <avidigal@novell.com>
13808
13809         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
13810         Hide methods (not complete). Implement missing 2.0 OnPopup event.
13811
13812 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13813
13814         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
13815         removed in ly last commit (it was breaking the Label edit feature).
13816
13817         * ThemeWin32Classic.cs: When drawing a ListViewItem use
13818         StringAlignment.Near for LineAlignment (match .Net).
13819
13820 2007-04-27  Andreia Gaita  <avidigal@novell.com>
13821
13822         * TabControl.cs: Change SetTab so it adds the tabpage to the list
13823         of controls if it isn't already there - was blowing up when doing
13824         tabcontrol.TabPages[i]=new TabPage(). 
13825         SetTab now does a replace by removing the page at the index. 
13826         Add a new InsertTab method that inserts a page in a given index 
13827         instead of replacing. 
13828         Implements TabPageCollection.Insert(int, TabPage).
13829
13830 2007-04-27  Chris Toshok  <toshok@ximian.com>
13831
13832         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
13833         internal handler that can be invoked from our subclasses.)  Also,
13834         add a comment to PushData about how we need to fix it.
13835
13836         * CurrencyManager.cs: tons of changes here.  trying to get things
13837         matching the behavior of .net wrt event orders (ItemChanged,
13838         CurrentChanged, PositionChanged.)  I've implemented a private .net
13839         symbol (ChangeRecordState) that appears in stack traces because
13840         it's actually easier to do this than to effective inline all its
13841         various behaviors at every call site.
13842
13843         * RelatedPropertyManager.cs: guard against an exception here by
13844         not using parent.Current if the position is set to -1 (if the
13845         parent datasource is cleared, for instance).
13846
13847         * Binding.cs: don't parse data in PushData (this might be wrong,
13848         but it jives with MS's behavior.)  Also, don't call PushData when
13849         we get a CurrentChanged event.
13850
13851 2007-04-27  Andreia Gaita  <avidigal@novell.com>
13852
13853         * WebBrowser.cs,
13854           WebBrowserBase.cs,
13855           WebBrowserSiteBase.cs,
13856           HtmlDocument.cs: Added stubbed out classes, no real implementations 
13857           yet.
13858
13859 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
13860
13861         * MainMenu.cs: In draw method without parameters call draw method with 
13862         PaintEvent, another one (just rect) adjust rectangle and we dont need it
13863         as Rect property is already adjusted. Fixes #80694.
13864
13865 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
13866
13867         * Application.cs: Need to handle keyboard menu deselection here.
13868         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
13869         navigation, allowing keyboard to work on X11.
13870         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
13871
13872 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
13873
13874         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
13875         menu bar. It fixes some drawing issues in menu bar.
13876
13877 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
13878
13879         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
13880         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
13881         when <alt> key is pressed.
13882
13883 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
13884
13885         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
13886         example just set visible to false and make this prevent from other problems.
13887         In SystrayAdd always remove pending expose. Fixes #81072.
13888
13889 2007-04-26  Marek Safar  <marek.safar@gmail.com>
13890
13891         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
13892         value is set.
13893
13894 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
13895
13896         * ListView.cs: Added three missing 2.0 events and corresponding
13897         EventHandlers. Added the OwnerDraw property.
13898         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
13899
13900 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
13901
13902         * DrawListViewItemEventArgs.cs
13903         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
13904
13905 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
13906
13907         * TextControl.cs: Fixed typo in constructor
13908
13909 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
13910
13911         * Application.cs: Create a shortcut path so that currently selected
13912         MenuStrips can intercept keyboard events without having focus.
13913         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
13914         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
13915         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
13916         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
13917         generate WM_SYSCOMMAND message in X11 for other platforms.
13918         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
13919         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
13920         * ToolStripSplitButton.cs: Add DefaultItem property.
13921         
13922 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
13923
13924         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
13925         fixes some menu draw problem on Windows with border diferent from default
13926         it also fixes #81403.
13927
13928 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13929
13930         * Form.cs: Refactor WndProc into separate methods, just like Control is
13931           doing it.
13932
13933 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13934
13935         * Control.cs: set_Text: move the call to the driver into a seperate
13936           virtual method so that Form can override it.
13937         * MaskedTextBox.cs: Corcompare fixes.
13938         * Form.cs: Override UpdateWindowText and only update the styles if the
13939           form has been shown (fixes #81405).
13940
13941 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
13942
13943         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
13944         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
13945         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
13946         the form lost focus or another control was clicked.
13947
13948 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
13949
13950         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
13951         fixed.
13952
13953 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13954
13955         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
13956           DrawListViewItemEventHandler.cs,
13957           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
13958           Added.
13959         * X11Structs.cs: More ToString implementation.
13960
13961 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
13962
13963         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
13964         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
13965
13966 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13967
13968         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
13969           handle.
13970         * FormCollection.cs: Don't add a form if it's already in the
13971           collection.
13972         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
13973           according to behaviour and MSDN. The ownerWin32 is the active
13974           window at the moment when we call ShowDialog, not the context's
13975           main form (the context's main form may open another form that opens
13976           a form with ShowDialog, the win32 owner is the second form). Add
13977           and remove forms to the Application.OpenForms in other places to
13978           better match MS behaviour. Add an IsActive property that raises
13979           On(de)Activated only if the active state has changed (we were
13980           raising OnDeactivated before OnActivated while creating forms).
13981         * Application.cs: Refactor Enabling/Disabling of windows for modal
13982           dialog loops out to separate methods, and restore the thread
13983           context when we quit the method. Fixes #81407.
13984
13985 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13986
13987         * ListView.cs: In ItemControl.HandleClicks, also fire 
13988         2.0 MouseClick or MouseDoubleClick events on the parent,
13989         not only the Click/DoubleClick events.
13990
13991 2007-04-24  Andreia Gaita  <avidigal@novell.com>
13992
13993         * TableLayoutSettings.cs: 
13994         - Added a GetControls method and a support structure to help the 
13995         TypeConverter to enumerate the controls for     serialization. 
13996         - Added a new serialization constructor. 
13997         - Added a isSerialized flag initialized to true on the 
13998         serialization constructor so that the TableLayoutPanel.LayoutSettings 
13999         setter does not throw the designed NotSupportedOperation exception
14000         when the object is built through deserialization.
14001         - Implemented GetObjectData
14002         
14003         * TableLayoutPanel.cs: Added check on LayoutSettings.
14004
14005 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14006
14007         * ListView.cs: Report Click and DoubleClick events to the parent
14008         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
14009         from breaking the click count state when using dialog forms (Control
14010         reports the clicks in a similar fashion). In the previous behaviour
14011         the last WM_LBUTTONUP message in a  double click was sent to the
14012         ListView's form, instead of the ListView, which was breaking the click
14013         count for it. Fixes #80387.
14014
14015 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
14016
14017         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
14018
14019 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
14020
14021         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
14022         us from created dropdowns for menu items that do not have subitems.
14023         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
14024         Check HasDropDownItems before calling DropDown so a dropdown will not be
14025         created if it isn't needed.
14026
14027 2007-04-24  Jackson Harper  <jackson@ximian.com>
14028
14029         * TreeView.cs: Set the first node to the selected node when we get
14030         focus if there is no selected node.
14031
14032 2007-04-24  Andreia Gaita  <avidigal@novell.com>
14033
14034         * MimeIcon.cs: remove using blocks so that image streams are
14035         not disposed of. Fixes #80151
14036
14037 2007-04-24  Jackson Harper  <jackson@ximian.com>
14038
14039         * TextBoxBase.cs: Fixup the height of textboxes when the control
14040         is created.
14041
14042 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
14043
14044         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
14045         for each ToolStripItem when the parent's RightToLeftChanged is called.
14046
14047 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14048
14049         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
14050           Fixes #80163.
14051         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
14052           property, so that the setter can be overriden too.
14053         * TextBox.cs: Change GetContextMenuInternal() to use
14054           ContextMenuInternal.
14055
14056 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14057
14058         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
14059           #81406.
14060
14061 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14062
14063         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
14064           #81406.
14065
14066 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14067
14068         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
14069           avoid duplicate work. Mostily skeleton code, it's not working at
14070           all yet.
14071
14072 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
14073
14074         * NotifyIcon.cs : stub for MouseClick event
14075         * Application.cs: stub for SetUnhandledExceptionMode
14076
14077 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
14078
14079         * BindingNavigator.cs : Initial (partial) implementation
14080
14081 2007-04-23  Jackson Harper  <jackson@ximian.com>
14082
14083         * TreeView.cs: Do not create the treeview's handle when setting
14084         the scroll position.
14085         - ExpandAll needs to compute the scrollbars so it knows which
14086         position to set the bar too.
14087         * TreeNode.cs: 
14088         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
14089
14090 2007-04-23  Jackson Harper  <jackson@ximian.com>
14091
14092         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
14093         key. Fixes #81408.
14094
14095 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
14096
14097         * ToolStripItem.cs: Make GetImageSize internal.
14098         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
14099         need to draw an item.  Fixes a reported issue where images on menus
14100         that were not 16x16 were drawing incorrectly.
14101
14102 2007-04-21  Miguel de Icaza  <miguel@novell.com>
14103
14104         * Padding.cs: Use the converter, fixes the resgen2 issue with
14105         XMLNotePad. 
14106
14107 2007-04-21  Jackson Harper  <jackson@ximian.com>
14108
14109         * TreeView.cs: Dont try to unhighlight the selected node if there
14110         isn't a selected node.
14111
14112 2007-04-21  Jackson Harper  <jackson@ximian.com>
14113
14114         * UpDownBase.cs:
14115         * TextBoxBase.cs:
14116         * ListView.cs:
14117         * ListBox.cs:
14118         * TreeView.cs: Use the InternalBorderStyle property to set the
14119         initial border style, this forces the client rectangle to be sized
14120         correctly.
14121
14122 2007-04-20  Jackson Harper  <jackson@ximian.com>
14123
14124         * TreeView.cs: Simplify scrolling to the last node after expanding
14125         all.
14126         - Fix some off by ones with setting the bottom.
14127
14128 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
14129
14130         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
14131         that.  We were incorrectly doing it the other way around.  Also,
14132         update ClientSize if we change the BorderStyle before the control
14133         is created.
14134
14135 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
14136
14137         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
14138         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
14139         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
14140         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
14141         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
14142         Caption to CaptionHeight.
14143         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
14144         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
14145         and FixedFrameBorderSize to return value from current XplatUI driver.
14146         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
14147         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
14148         and FixedFrameBorderSize using win32 API. Renamed Caption to
14149         CaptionHeight.
14150         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
14151         * SystemInformation.cs: Fixed typo in BorderSize.
14152
14153 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
14154
14155         * XplatUI.cs: Added MenuAccessKeysUnderlined.
14156         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
14157         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
14158         returning false.
14159         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
14160         value from XplatUI driver.
14161         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
14162         SystemParametersInfo.
14163         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
14164         override.
14165         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
14166         returning false.
14167
14168 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14169
14170         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
14171
14172 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14173
14174         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
14175
14176 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
14177
14178         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
14179         MenuStrips that contain ToolStripSeparators.
14180
14181 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14182
14183         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
14184           DefineStdCursorBitmap.
14185         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
14186           has been created off a standard cursor. This is used to get a
14187           bitmap of the standard cursor when Draw or DrawStretched is called
14188           in order to draw the cursor.
14189         * X11Structs.cs: Added XcursorImage and XcursorImages.
14190         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
14191           DefineStdCursorBitmap.
14192         * Cursors.cs: Update all relevant creations of Cursor to use the new
14193           internal constructor.
14194
14195 2007-04-19  Jackson Harper  <jackson@ximian.com>
14196
14197         * TextBox.cs: Move the has_been_focused into the base control, so
14198         some of the text adding methods can manipulate it (probably time
14199         for a better name for this flag too).
14200         - Call a new version of selectall that doesn't scroll
14201         * TextBoxBase.cs: When we append text, if the document is empty,
14202         don't scroll.  If the document has text already, we scroll to the
14203         end of the appended text.
14204         - When the text is changed, we reset the has_been_focused, so the
14205         next time the control gets focused, all the text is selected.
14206
14207 2007-04-19  Jackson Harper  <jackson@ximian.com>
14208
14209         * TextControl.cs: Move the margins to the document, add a method
14210         so the margin sizes can be updated.
14211         * TextBoxBase.cs: When the border style is changed, update the
14212         border sizes.
14213
14214 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
14215
14216         * Control.cs: Respect DefaultPadding.
14217         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
14218         padding into account.
14219         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
14220
14221 2007-04-19  Jackson Harper  <jackson@ximian.com>
14222
14223         * TextControl.cs: Oops, we need to use the ClientRect not the
14224         bounds here.
14225
14226 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14227
14228         * ListView.cs: In ItemControl.ItemsMouseDown, take into
14229         account the double clicks when CheckBoxes are used and
14230         the pointer is inside the checkbox. Fixes part of #81191.
14231
14232 2007-04-18  Jackson Harper  <jackson@ximian.com>
14233
14234         * TextControl.cs: Pressing the end key shouldn't move the caret
14235         past the line ending.
14236         * TextBoxBase.cs: We can still delete if we are in the line
14237         ending and the combine will just kill the existing line ending.
14238
14239 2007-04-18  Jackson Harper  <jackson@ximian.com>
14240
14241         * TextControl.cs: We can't move lines, then invalidate their
14242         bounds, we need to get the old bounds and combine that with the
14243         new bounds.
14244         * TextBoxBase.cs: Before combining two lines for a delete, we need
14245         to invalidate the area of the old line, since that will be moved
14246         in the combine operation.
14247
14248 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
14249
14250         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
14251         with transparent background. Fixes #80482.
14252
14253 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
14254
14255         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
14256         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
14257         [Fixes bug #81391]
14258
14259 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14260
14261         * CreateParams.cs: Add a couple of helper methods and do a less string
14262           concatenation in ToString.
14263         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
14264           overload that takes a Control parameter, since this method may be
14265           called before a control is assigned to the hwnd (from
14266           CreateWindow), and update CreateWindow to use the new overload. In
14267           GetMenuOrigin subtract the title bar from the y position if the
14268           form has a window manager (since we're painting it and not X).
14269         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
14270           CreateParams to calculate the origin (since border sizes may vary).
14271           In ScreenToMenu only subtract the title height if we actually have
14272           a title.
14273         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
14274           mdi children never have menus of themselves.
14275         * InternalWindowManager.cs: Implement menu handling like form does.
14276           Added GetMenuOrigin to calculate the menu origin, can't use the
14277           CreateParams from the form like normally since it's lying.
14278         * Hwnd.cs: Implement GetBorderSize better (in the sense more
14279           windows-like) and add Inflate and comparison operators to the
14280           Borders type. When calculating MenuOrigin and it's a form with a
14281           window manager, use the window manager to calculate it.
14282
14283 2007-04-17  Chris Toshok  <toshok@ximian.com>
14284
14285         * Control.cs (CreateControl): turns out in 2.0 we don't need this
14286         OnBindingContextChanged thing here.  It's only generated from
14287         ContainerControl.OnCreateControl.  Fixes a newly written unit test
14288         - BindingTest.BindingContextChangedTest4.
14289         
14290 2007-04-17  Jackson Harper  <jackson@ximian.com>
14291
14292         * ScrollBar.cs: When setting values, make sure the current
14293         position stays within the new values range.
14294
14295 2007-04-17  Chris Toshok  <toshok@ximian.com>
14296
14297         * Control.cs (CreateControl): talk about a bizarre corner case.
14298         Don't emit OnBindingContextChanged here if we're a parentless
14299         control (i.e. if we're a form.).  Fixes
14300         BindingTest.BindingContextChangedTest2.
14301
14302 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
14303
14304         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
14305         from win32. Fixes #81255.
14306
14307 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
14308
14309         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
14310         already present in CalculateButtonTextAndImageLayout.
14311
14312 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14313
14314         * XplatUIX11.cs: When setting min/max size for a window we need to
14315           translate the coordinates to x coordinates. Create an overload of
14316           SetWindowMinMax that takes a CreateParams handling this, and change
14317           SetWMStyles to call this function (can't use Control.FromHandle in
14318           the SetWindowMinMax to get the control/CreateParams from the handle
14319           because the handle might not have been assigned to the control
14320           yet). Fixes #81371.
14321
14322 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14323
14324         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
14325         if StateImageList is non-null and it has less than two items (match MS
14326         behaviour). Also, in HandleNavKeys handle the Space key, calling
14327         the new ToggleItemsCheckState method, which tries to change the
14328         checked state of the selected items. Fixes part of #81191.
14329
14330 2007-04-16  Jackson Harper  <jackson@ximian.com>
14331
14332         * RichTextBox.cs: namespace cleanup.
14333
14334 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
14335
14336         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
14337
14338 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
14339
14340         [Fixes #79447]
14341         * Control.cs: Call invalidate in set_Region.
14342
14343         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
14344         it dont works here.
14345
14346 2007-04-16  Jackson Harper  <jackson@ximian.com>
14347
14348         * TextBoxBase.cs: When enter is pressed, we need to update all
14349         lines below the current.
14350
14351 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
14352
14353         * MdiClient.cs: Implement implicit menu merging for MDI
14354         children.  When a child form is active, if it has a menustrip
14355         and the parent form has a MainMenuStrip, automatically merge
14356         the menus.
14357
14358 2007-04-15  Andreia Gaita  <avidigal@novell.com>
14359
14360         * TabControl.cs: Refactored sizing methods to not repeat
14361         code all over the place. Tab bounds are now calculated
14362         as if alignment is top and single line, and only when 
14363         setting the bounds are the positions adjusted according
14364         to alignment. Replaced hardcoded positions, spacings and
14365         paddings by getting the values the ThemeEngine. 
14366         Fixes #79619.
14367         
14368         * Theme.cs: Change TabControl properties and methods so
14369         that all start with TabControl*. Added more properties
14370         to help remove hardcoded values on tabcontrol.
14371         Add CPDrawBorder3D declaration so the Theming classes
14372         can access it.
14373         
14374         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
14375
14376         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
14377         on the Theming namespace, and call the appropriate methods here.
14378         Change CPDrawBorder3D to public.
14379
14380 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14381
14382         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
14383         the control after firing the OnMouseUp event, instead of sending
14384         the message before the mentioned event. This is so we can match the
14385         MS behaviour. Fixes part of #80385.
14386
14387 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
14388
14389         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
14390         RightToLeft property.
14391
14392 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
14393
14394         * ToolStrip.cs: Add properties and internal methods to support merging.
14395         * ToolStripItem.cs: Add MergeAction and MergeIndex.
14396         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
14397         not trigger reparenting or layouts.
14398         * ToolStripManager.cs: Add Merge and RevertMerge methods.
14399         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
14400         is hosting the overflow menu.
14401
14402 2007-04-13  Jackson Harper  <jackson@ximian.com>
14403
14404         * TextControl.cs: Set the line ending correctly for the first
14405         inserted line.
14406
14407 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
14408
14409         * Theme.cs: Update GetMethod to get the new definition for 
14410         KnownColors.Update (and fix theme color updates).
14411
14412 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
14413
14414         * MessageBox.cs: Fix some test and button position.
14415
14416 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14417
14418         * Form.cs: Consider the implicit controls in
14419         GetRealChildAtPoint. We need it since this method
14420         is called on Form when handling the some messages in
14421         WndProc, and need to consider those implicit ones too.
14422         Fixes #80385.
14423
14424 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
14425
14426         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
14427         if there are no ShortcutKeys set.
14428         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
14429         set, use it when painting.
14430
14431 2007-04-12  Jackson Harper  <jackson@ximian.com>
14432
14433         * TextControl.cs: Fix some off-by-one issues in line duplication
14434         and insertion in the undo manager. Also, overwrite the first tag
14435         of a line on insert, if it is just a zero lengthed tag. This
14436         prevents us from getting an extra stranded tag at the beginning of
14437         the first line.
14438
14439 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
14440
14441         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
14442         to calculated proper size including when handle was not created yet.
14443
14444 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14445
14446         * MdiWindowManager.cs: When moving a form, allow the form to be moved
14447           when the mouse is outside of it's parent's client rectangle. Fixes
14448           #79982 (take 3, part 2).
14449
14450 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14451
14452         * X11Structs.cs: Add a few ToString() overrides.
14453         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
14454           the window location in a window-manager independent way. Reworked
14455           FrameExtents, it now actually works. Reworked AddConfigureNotify
14456           and ReparentNotify handling to use GetTopLevelWindowLocation
14457           instead of the earlier, more hacky solution. Reworked SetWMStyles,
14458           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
14459           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
14460           for all other windows (fixes #81281 part 1), a toolwindow is hidden
14461           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
14462           and generally refactored to do as few calculations as possible
14463           inside the lock.
14464
14465 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
14466
14467         * Theme.cs: Change "reflective-contract" between MWF and SD to 
14468         minimize # of calls, avoid Color serialization and avoid updating 
14469         every "known colors" each time a single one is updated.
14470
14471 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
14472
14473         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
14474         when not readonly and the text is explicitly set. Code style updates.
14475         * DataGridTableStyle.cs: Removed extra line.
14476         * DataGrid.cs: Code style updates. Removed extra whitespace.
14477         * DataGridColumnStyle.cs: Code style updates. Removed extra 
14478         whitespace.
14479
14480 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14481
14482         * XplatUIX11.cs: Added comment that "fixes" #80021.
14483
14484 2007-04-09  Jackson Harper  <jackson@ximian.com>
14485
14486         * TextControl.cs: We don't need this -1 on the line count anymore.
14487
14488 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
14489
14490         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
14491         entered value to underlying type, and convert it back to a string to
14492         apply formatting. Modified GetFormattedValue to use TypeConverter
14493         if available.
14494
14495 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
14496
14497         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
14498         Use SubItems property when we want to ensure there's at least one
14499         subitem. Modified SubItems property to ensure there's always at least
14500         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
14501         the NRE's reported by MS.
14502
14503 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
14504
14505         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
14506         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
14507         Spaces to tabs. Removed extra tabs.
14508
14509 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
14510
14511         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
14512         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
14513
14514 2007-04-06  Jackson Harper  <jackson@ximian.com>
14515
14516         * TextBoxBase.cs: When a delete removes a line, recalculate all
14517         lines below that line (they need to get offsets setup correctly)
14518         and invalidate.
14519
14520 2007-04-05  Jackson Harper  <jackson@ximian.com>
14521
14522         * TextControl.cs: We need to invalidate across the width of the
14523         document when we are invalidating multiple lines.
14524         * TextBoxBase.cs: Don't delete into the line ending.
14525
14526 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14527
14528         * ListView.cs: Restore the check for the MouseHover event
14529         in ListView. It looks like the ListView fires more than one MouseHover
14530         event when HoverSelection is true  _only_ in weird-corner scenarios, but
14531         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
14532         event.
14533
14534 2007-04-05  Mike Kestner  <mkestner@novell.com>
14535
14536         * ListView.cs : raise MouseDown before updating selection.
14537         [Fixes #80373 tab 1&3]
14538
14539 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
14540
14541         * ToolStripRenderer.cs: Add static method to mirror image.
14542         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
14543         and RightToLeftAutoMirrorImage.
14544         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
14545
14546 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
14547
14548         * ToolStripSplitStackLayout.cs: Support Alignment property.
14549         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
14550
14551 2007-04-05  Jackson Harper  <jackson@ximian.com>
14552
14553         * TextControl.cs: Move around the line endings when crossing line
14554         boundaries.
14555         - When combining lines, strip the ending text off the first line.
14556
14557 2007-04-05  Jackson Harper  <jackson@ximian.com>
14558
14559         * TextControl.cs:
14560         * TextBoxBase.cs: Try to never move the cursor into the line
14561         ending.
14562         
14563 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
14564
14565         * ToolStripItem.cs: Make sure we aren't firing mouse events when
14566         the item is disabled.  Also add a few missing methods.
14567
14568 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14569
14570         * ListView.cs: We don't need the MouseEnter/MouseLeave check
14571         to fire just one MouseHover event when HoverSelection is true, since
14572         .Net does fire more than one MouseHover event in that scenario. Also,
14573         fix the selection in HoverSelection, by invoking UpdateMultiSelect
14574         if MultiSelect is true, instead of only setting ListViewItem.Selected.
14575         Finally, we need to reset the Hover logic in MouseMove, even when we
14576         don't have a selected item.
14577
14578 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
14579
14580         * ToolStrip.cs: Add several missing methods, properties, and events.
14581
14582 2007-04-04  Chris Toshok  <toshok@ximian.com>
14583
14584         * DataGridTextBoxColumn.cs: set the bounds of the text box to
14585         (0,0,0,0) in Commit, as MS does.
14586
14587         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
14588         make sure we set CurrentRow on a row header click *before* calling
14589         Select.  This moves the current cell (and the textbox) to the new
14590         row.  The call to Select then hides the textbox, giving us the
14591         correct behavior.  Fixes #80362.
14592
14593         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
14594         (ListChangedHandler): reorder the position/current changed events,
14595         and call UpdateIsBinding in the ItemAdded case.
14596
14597         * GridColumnStylesCollection.cs: add some columns events, one of
14598         which raises the CollectionChanged event.
14599
14600 2007-04-04  Jackson Harper  <jackson@ximian.com>
14601
14602         * TextControl.cs: When we delete multiple selection lines
14603         invalidate the selection area, don't need to do that for single
14604         lines because the final update view will handle it.
14605
14606 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
14607
14608         * Control.cs: When we CreateControl, we need to also create all of the
14609         control's children.  The child's OnLoad must also fire before the parent's
14610         OnLoad.  Fixes the toolbox size in PDN.
14611
14612 2007-04-04  Jackson Harper  <jackson@ximian.com>
14613
14614         * TextBoxBase.cs: When the user presses enter, insert a line
14615         ending into the text. (Maybe this would be a good spot for
14616         Environment.NewLine).
14617         * TextControl.cs: Remove undo manager hack, line endings get
14618         inserted properly now.
14619         
14620 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
14621
14622         * MenuAPI.cs: 
14623         - Remove unneeded parameters in UpdateCursor.
14624         - Fix UpdateCursor to check if menu is active.
14625         - Call UpdateCursor when menu deactivate my click.
14626         [Fixes remaining issues from #80410]
14627
14628 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
14629
14630         * Control.cs: GetRealChildAtPoint method added, it make an
14631         recursive child control search for the point. 
14632
14633         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
14634         menu.
14635
14636         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
14637
14638 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
14639
14640         * Form.cs: Fix mouse position when send back mouse event after closes
14641         menu.
14642
14643 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
14644
14645         * Form.cs: Simplify the BUTTONDOWN for active tracker.
14646
14647 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
14648
14649         * Control.cs: Fix an issue where if a user resized a control inside
14650         a sizing method like OnResize, we would overwrite their explicit
14651         value.  Also, only call DefaultSize once in the constructor instead
14652         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
14653         nothing actually changed.
14654
14655 2007-04-03  Jackson Harper  <jackson@ximian.com>
14656
14657         * TextControl.cs: Don't attempt to copy text for lines with no
14658         text in them (technically this shouldn't happen, but we aren't
14659         always inserting line endings when we should be).
14660
14661 2007-04-03  Jackson Harper  <jackson@ximian.com>
14662
14663         * TextBoxBase.cs: Calculate the scrollbars before calculating the
14664         document, because this sets some of the document size properties
14665         that are needed.
14666
14667 2007-04-03  Jackson Harper  <jackson@ximian.com>
14668
14669         * TextBoxBase.cs: We need to calculate maximums even if this is
14670         not a multiline control, because the maxs are used for scrolling.
14671         - Display the caret after doing a page up/down, we need to
14672         manually display it because a proper CaretMoved event isn't
14673         triggered (this is because of the way the math is done to
14674         determine how far to scroll).
14675
14676 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
14677
14678         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
14679         (ToolBar was relying on SetBoundsCore to default the values sent 
14680         base off of BoundsSpecified.)
14681
14682 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14683
14684         * DateTimePicker.cs: Change Text so that when a null value or empty
14685           string is assigned to the test we always raise ValueChanged and
14686           TextChanged (earlier implementation would only raise ValueChanged
14687           if the current date value was different from DateTime.Now).
14688
14689 2007-04-03  Andreia Gaita <avidigal@novell.com> 
14690
14691         * ButtonBase: Call update after invalidation, fixes #80194
14692
14693 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14694
14695         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
14696           #79335.
14697
14698 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14699
14700         * XplatUIX11.cs: SetWMStyles: If the control is a form with
14701           FormBorderStyle = None, don't give the window any decorations.
14702           Fixes #81276.
14703
14704 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14705
14706         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
14707         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
14708           to check for is a mix of several styles (such as WS_CAPTION for
14709           instance).
14710         * Control.cs: Don't paint an area bigger than the client area when
14711           painting the background colour. Add an internal GetCreateParams.
14712           Update calls to XplatUI.CalculateWindowRect due to API change.
14713         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
14714           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
14715           the size if it hasn't been handled by any windows. When creating
14716           and moving windows, X wants the location of the entire window, but
14717           the size of the client window, so add
14718           TranslateClientRectangleToXClientRectangle,
14719           TranslateWindowSizeToXWindowSIze and
14720           TranslatedXWindowSizeToWindowSize to cope with this, and call them
14721           before every window creation and move. Update CalculateWIndowRect
14722           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
14723           In AddConfigureNotify don't do anything if the hwnd is a zombie
14724           (fixes the BadWindow we were getting while running the tests),
14725           always calculate the offsets when it's a parentless window, not
14726           only when reparented, and translate the window size, since we're
14727           getting the client size of the whole window, excluding entire
14728           window.
14729         * Theme.cs: Added BorderSizableSize.
14730         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
14731           anymore. Update calls to XplatUI.CalculateWindowRect due to API
14732           chang
14733         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
14734           change. Fake the window styles here instead of in XplatUIWin32 so
14735           that all back-ends get the same window styles (and it's Form that's
14736           deciding when to use wm, not the Win32 backend anyways)
14737         * Hwnd.cs: Completely reworked GetWindowRectangle and
14738           GetClientRectangle - they are now passed a CreateParams and they
14739           only use Style and ExStyle to determine the rectangles (they should
14740           now work just like Win32AdjustWindowRectEx - though quite a few
14741           special cases are probably missing). They should also be 100%
14742           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
14743           == rect), and all numbers (borders, menu sizes) are taken from the
14744           current theme. Added a GetBorders helper function that will return
14745           the borders for any given CreateParams (including captions and
14746           menus), and GetBorderSize that returns the given border size only.
14747         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
14748           Hwnd.GetClientRectangle.
14749
14750 2007-04-02  Chris Toshok  <toshok@ximian.com>
14751
14752         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
14753         logic between the values we present to the user and the values
14754         which are stored in the column's property.  Also, don't call
14755         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
14756
14757 2007-04-02  Jackson Harper  <jackson@ximian.com>
14758
14759         * TextBoxBase.cs: Scroll faster!
14760
14761 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
14762
14763         * StatusStrip.cs: Layout fixes for PDN.
14764         * ToolStrip.cs: Set item's available to true, and placement to main when
14765         added.
14766         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
14767         changing in setter before doing any work, add InternalVisible.
14768         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
14769         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
14770         infinite loop.
14771
14772 2007-04-02  Jackson Harper  <jackson@ximian.com>
14773
14774         * TextBox.cs: LBUTTON does not make the textbox select all of it's
14775         text on focus.
14776
14777 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14778
14779         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
14780           Makes ToolStripComboBoxes show up again.
14781
14782 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14783
14784         * ListView.cs: Add a hover_pending field in ListView
14785         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
14786         cycle (we are resetting the MouseHover logic in XplatUI
14787         to handle HoverSelection). Fixes #80429.
14788
14789 2007-04-02  Jackson Harper  <jackson@ximian.com>
14790
14791         * TextControl.cs: Make sure the attributes get set on the last
14792         tag.
14793         - Still have to do the end tag if we have stepped all the ways to
14794         the end.
14795
14796 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
14797
14798         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
14799         on an internal libgdiplus call when the information is already 
14800         available via the public API.
14801
14802 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14803
14804         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
14805           control is removed from a control collecftion.
14806         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
14807           Fixes FormPropertyTest (failed on rare occasions).
14808         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
14809           of Win32SetParent (when changing from no parent to a parent it
14810           might add the new parent's location in screen coordinates to this
14811           window's location).
14812         * Form.cs: Rework ChangingParent once again, now the handle is
14813           recreated whenever a FormWindowManager is added or removed (that is
14814           whenever a normal form is parented or abandoned). Also change
14815           CreateParams so that all non-toplevel windows always get the
14816           specified sice (StartupPosition is never considered for
14817           non-TopLevel forms).
14818         * ContainerControl.cs: Add ChildControlRemoved, the container control
14819           needs to be notified when a control is removed from it's
14820           collection, in the case the removed control is the active control.
14821
14822 2007-04-02  Jackson Harper  <jackson@ximian.com>
14823
14824         * RichTextBox.cs: Use the new methods for setting the font and
14825         color, these methods set the specified attribute without
14826         overriding the other attributes.
14827
14828 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
14829
14830         * ToolStripPanel.cs: Fixes for better layouts in PDN.
14831
14832 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
14833
14834         * TextBox.cs: Added internal ChangeBackColor method to special-case
14835         Color.Empty. Added check for invalid ScrollBars value.
14836         * TextBoxBase.cs: Added internal ChangeBackColor method.
14837         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
14838         internal ChangeBackColor method to special-case Color.Empty. Added
14839         check for invalid ScrollBars value.
14840
14841 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
14842
14843         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
14844
14845 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
14846
14847         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
14848         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
14849         [Based on submitted patch from Olivier Duff.]
14850
14851 2007-03-30  Jackson Harper  <jackson@ximian.com>
14852
14853         * TextBox.cs: Only select all on initial focus if the user has not
14854         specified a selection area.
14855
14856 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
14857
14858         * UserControl.cs: Override CreateParams.
14859
14860 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14861
14862         [ Fixes #80995 ]
14863
14864         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
14865         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
14866           check for is a mix of several styles (such as WS_CAPTION for instance).
14867         * Control.cs: Don't paint an area bigger than the client area when painting
14868           the background colour. Add an internal GetCreateParams. Update calls to
14869           XplatUI.CalculateWindowRect due to API change.
14870         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
14871           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
14872           hasn't been handled by any windows. When creating and moving windows, X
14873           wants the location of the entire window, but the size of the client
14874           window, so add TranslateClientRectangleToXClientRectangle,
14875           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
14876           to cope with this, and call them before every window creation and move.
14877           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
14878           removing DeriveStyles). In AddConfigureNotify don't do anything if the
14879           hwnd is a zombie (fixes the BadWindow we were getting while running the
14880           tests), always calculate the offsets when it's a parentless window, not
14881           only when reparented, and translate the window size, since we're getting
14882           the client size of the whole window, excluding entire window.
14883         * Theme.cs: Added BorderSizableSize.
14884         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
14885           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
14886         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
14887           Fake the window styles here instead of in XplatUIWin32 so that all
14888           back-ends get the same window styles (and it's Form that's deciding when
14889           to use wm, not the Win32 backend anyways)
14890         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
14891           they are now passed a CreateParams and they only use Style and ExStyle
14892           to determine the rectangles (they should now work just like
14893           Win32AdjustWindowRectEx - though quite a few special cases are probably
14894           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
14895           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
14896           sizes) are taken from the current theme. Added a GetBorders helper
14897           function that will return the borders for any given CreateParams
14898           (including captions and menus), and GetBorderSize that returns the given
14899           border size only.
14900         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
14901           Hwnd.GetClientRectangle.
14902
14903 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14904
14905         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
14906           layout of the mdi children is handled by CreateParams. Fixes
14907           #79964,
14908
14909 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14910
14911         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
14912         processed.
14913
14914         * Form.cs: When active tracker mouse down is not processed, send event 
14915         back to control inside mouse position. [Fixes #81227]
14916
14917 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
14918
14919         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
14920         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
14921         stealing focus from the active form on Windows.  (Control will be made
14922         visible in ShowWindow.)
14923
14924 2007-03-29  Mike Kestner  <mkestner@novell.com>
14925
14926         * ImageList.cs : add internal Changed event.
14927         * ListView.cs : hook up to StateImageList.Changed to perform
14928         invalidations when the the state icon list changes. [Fixes #81191]
14929
14930 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
14931
14932         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
14933         to prevent tooltips from stealing focus from the active form on Windows.
14934
14935 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14936
14937         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
14938
14939         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
14940
14941 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14942
14943         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
14944         balloons.
14945
14946 2007-03-29  Jackson Harper  <jackson@ximian.com>
14947
14948         * TextControl.cs: When deleting text from non multiline textboxes,
14949         we need to update the entire document, because line offsets will
14950         be shifting.
14951
14952 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14953
14954         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
14955         added to theme, now we can create themes that uses diferent notify engines
14956         like notification-daemon from galago project or growl for Mac OS.
14957
14958 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
14959
14960         * NotifyIcon.cs: Prevent Balloon to show in task bar.
14961
14962 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
14963
14964         * XplatUIX11.cs: Prevent system to open more than one balloon.
14965
14966         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
14967         some compiler warning messages.
14968
14969 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
14970
14971         [Fixes #79149]
14972
14973         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
14974
14975         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
14976         implemented, this methods is used by NotifyIcon.BalloonWindow class.
14977
14978         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
14979         systems.
14980
14981 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14982
14983         * ListViewItem.cs: Forgot to make Invalidate internal.
14984
14985 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14986
14987         * ListView.cs: Add a InvalidateSelection method to
14988         invalidate methods which are currently selected, and call
14989         it when setting FullRowSelect and HideSelection, instead of
14990         calling Redraw.
14991
14992 2007-03-28  Chris Toshok  <toshok@ximian.com>
14993
14994         * XplatUIX11.cs (UnmapWindow): reindent this block.
14995
14996         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
14997         the selection_start if we're moving the selection (that is, not
14998         extending it). Fixes bug #80461.
14999
15000 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
15001
15002         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
15003         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
15004         create private ControlCollection.
15005
15006 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
15007
15008         * Control.cs: We need to call OnVisibleChanged for our implicit
15009         children as well as our normal children.  Fixes scrollbars in
15010         comboboxes not showing up.
15011
15012 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
15013
15014         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
15015         the check for IsHandleCreated first.  The check in CreateHandle is not
15016         good enough because CreateHandle can be overriden, and the override 
15017         should not be called if the handle is already created.
15018
15019 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
15020
15021         * ToolStrip.cs: Remove MonoTODO for tooltips.
15022         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
15023         * ToolStripContainer.cs: Add custom ControlCollection class.
15024         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
15025         * ToolStripDropDown.cs: Add some missing properties/methods.
15026         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
15027         * ToolStripItem.cs: Remove MonoTODO for tooltips.
15028         * ToolStripManager.cs: Add IsShortcutDefined.
15029         * ToolStripOverflow.cs: Override LayoutEngine.
15030         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
15031         * ToolStripSeparator.cs: Add ImageKey.
15032
15033 2007-03-28  Jackson Harper  <jackson@ximian.com>
15034
15035         * TextControl.cs: If a char delete removes a line ending, we need
15036         to update the ending style.
15037         - Make sure the line ending calcs get called.
15038
15039 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15040
15041         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
15042           it was making the new code not work. Fixed a typo in the new code
15043           as well. Fixes #79826.
15044
15045 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
15046
15047         * XplatUIWin32.cs:
15048         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
15049         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
15050         - SystrayBalloon method implemented.
15051         [Add support for notifyicon balloon on win32, #79149]
15052
15053 2007-03-27  Mike Kestner  <mkestner@novell.com>
15054
15055         * ThemeWin32Classic.cs : update StateImageList selection to mirror
15056         the ms behavior when only one image is added to the list.
15057         [Fixes #81191]
15058
15059 2007-03-27  Jackson Harper  <jackson@ximian.com>
15060
15061         * TextControl.cs: Improvements to non multiline line ending
15062         drawing/measuing.
15063
15064 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
15065
15066         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
15067
15068 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
15069
15070         * NotifyIcon.cs: 
15071         - Balloon message handling added.
15072         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
15073
15074         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
15075         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
15076         to SystrayBalloon to me like other Systray method, also a
15077         handle parameter added.
15078
15079 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15080
15081         * ListView.cs: Show scrollbars even when items.Count == 0
15082         but the columns Width is bigger than the ListView.Width.
15083         Also, when columns.Count == 0 set layout_wd and layout_ht
15084         to the ClientRectangle values, so we don't show any scrollbar
15085         in that case.
15086
15087 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
15088
15089         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
15090
15091 2007-03-27  Jackson Harper  <jackson@ximian.com>
15092
15093         * RichTextBox.cs: The RTF library decodes the text properly for us
15094         now.
15095
15096 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15097
15098         * ListView.cs: Display HeaderControl even when columns.Count == 0.
15099         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
15100         ListView header (HeaderControl), instead of Control.BackColor.
15101
15102 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
15103
15104         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
15105         Fixes tab control issues where controls would not show up because they
15106         never received their OnVisibleChanged call.
15107
15108 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
15109
15110         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
15111         BalloonTipShown).
15112
15113 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
15114
15115         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
15116         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
15117         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
15118         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
15119         the handle.  Fix WindowState by using the internal variable until we are 
15120         sure that we've been shown.
15121         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
15122         max or min.
15123         [Fixes bug #81198]
15124
15125 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15126
15127         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
15128           (at least borders). Fixes #79386 on Linux (with a small difference
15129           in behaviour: when trying to resize a caption-less window metacity
15130           shows the sysmenu. Resizing is still possible though).
15131         * XplatUIWin32.cs: When setting window styles send request an extra
15132           WM_NCCALCSIZE when it's a form without title (due to no text and no
15133           caption), since Win32 seems to calculate it wrong the first time we
15134           get the message, though the second time things work as they should.
15135         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
15136           newly reparented window might show up unparented. Update
15137           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
15138           there's no title text. Fixes #79386.
15139
15140 2007-03-27  Mike Kestner  <mkestner@novell.com>
15141
15142         * ListBox.cs : don't perform invalidations if the handle hasn't been
15143         created.  [Fixes #80753]
15144
15145 2007-03-27  Mike Kestner  <mkestner@novell.com>
15146
15147         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
15148         [Fixes #80428]
15149
15150 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
15151
15152         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
15153         needed to implement Balloon.
15154
15155 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15156
15157         * ListViewItem.cs: In the constructors that take
15158         an array of strings, don't use ListViewSubItemCollection.AddRange
15159         method to add items, since we need to have a different behaviour (in
15160         the constructors we add an item for each null string, opposed to
15161         the behaviour of AddRange, which adds nothing).
15162
15163 2007-03-26  Andreia Gaita  <avidigal@novell.com>
15164
15165         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
15166
15167 2007-03-26  Jackson Harper  <jackson@ximian.com>
15168
15169         * TextControl.cs: Draw and measure line endings when in non
15170         multiline mode.
15171         - When searching the text, count the end of the last line as a
15172         word boundary.
15173
15174 2007-03-26  Jackson Harper  <jackson@ximian.com>
15175
15176         * RichTextBox.cs: The selection_start and selection_end don't
15177         really track the correct tags for the selection. So we'll manually
15178         compute the correct tag here.
15179
15180 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15181
15182         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
15183           and Continuous styles. Fixes #79469.
15184
15185 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
15186
15187         * ToolStrip.cs: Implement Tooltips.
15188         * ToolStripItem.cs: Create internal method for determining tooltip.
15189
15190 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
15191
15192         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
15193
15194 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
15195
15196         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
15197         it prevents a problem thak keeps icon visible after application 
15198         closes on win32.
15199
15200 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
15201
15202         * NotifyIcon.cs: Balloon properties and methods created.
15203
15204         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
15205         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
15206
15207 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
15208
15209         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
15210
15211 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
15212
15213         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
15214         parameter indicates which aspects were explicit/user-set.
15215         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
15216
15217 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
15218
15219         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
15220         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
15221         SmallChange, and Value (2.0).
15222         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
15223
15224 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15225
15226         * ListView.cs: Always set item_control.Width in LayoutDetails
15227         if View is Details. Setting it later in CalculateScrollBars
15228         in a not-so-corner scenario (the sum of columns width is
15229         not bigger than the ListView width when handle is created, and then
15230         that sum gets bigger by increasing the width of the columns)
15231         causes a very weird recursion path (which shouldn't be happening,
15232         since header_control sets it in CalculateScrollBars too). This bug
15233         appeared after Chris' fixes for handle created issues, so probably
15234         it's related to some handle-creation time.
15235
15236 2007-03-23  Chris Toshok  <toshok@ximian.com>
15237
15238         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
15239         case where there's an add row, just so we don't end up in a case
15240         where it's not displayed (this happens when the row is partially
15241         obscured).  Fixes bug #79574.
15242
15243 2007-03-23  Jackson Harper  <jackson@ximian.com>
15244
15245         * TextControl.cs:
15246         * TextBoxBase.cs:
15247         * RichTextBox.cs: Preserve line endings in the lines text buffer,
15248         also added an enum that represents the line ending type. 
15249
15250 2007-03-23  Andreia Gaita  <avidigal@novell.com>
15251
15252         * NumericUpDown.cs: Fix logic so Text and Value properties are not
15253         messed with in every method call, but only from DownButton, 
15254         UpButton, UpdateEditText() and ValidateText. Fixes #80346
15255
15256 2007-03-23  Chris Toshok  <toshok@ximian.com>
15257
15258         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
15259         format objects if the format spec is "".  Fixes bug #80889.
15260
15261 2007-03-22  Miguel de Icaza  <miguel@novell.com>
15262
15263         * ToolStripPanel.cs (Join): added stubs to build PDN3
15264
15265         * Control.cs (AutoScrollOffset): Add.
15266
15267         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
15268         property, its only implemented for Win32, on X11 it defaults to
15269         some hardcoded value.
15270
15271         * ToolStripItem.cs (AllowDrop): Add property
15272
15273 2007-03-22  Mike Kestner  <mkestner@novell.com>
15274
15275         * ListView.cs : in FullRowSelect Details mode, only enable box
15276         selection if the user clicks over the "item" column outside of the
15277         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
15278
15279 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15280
15281         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
15282           handle is not created yet.
15283         * Form.cs: Select: Don't call CreateHandle if the handle is already
15284           created, avoids a stack overflow on Windows when we are recreating
15285           controls.
15286         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
15287           they are made visible, and override AfterTopMostControl to keep
15288           them on top when other controls are brought to front.
15289           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
15290           or force_*scroll_visible is true (old implementation always shows
15291           scrollbars when needed, no matter what auto_scroll was set to).
15292         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
15293           IsHandleCreated check.
15294
15295 2007-03-22  Andreia Gaita  <avidigal@novell.com>
15296
15297         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
15298         row or col separator.
15299         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
15300
15301 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
15302
15303         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
15304
15305 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
15306
15307         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
15308         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
15309         every time. Fixes #80410.
15310
15311 2007-03-22  Chris Toshok  <toshok@ximian.com>
15312
15313         * BindingSource.cs (AddNew): partially implement.
15314
15315         remove a couple of NotImplementedException's
15316         to get bug #81148 closed.
15317
15318 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
15319
15320         [Fixes #80380]
15321         
15322         * Control.cs:
15323         - UpdateCursor method added to update the screen cursor.
15324         - GetAvailableCursor method added to return cursor for enabled tree,
15325         it searches for cursor on control and it's parent's for enabled control.
15326         - Call UpdateCursor method on setter of Cursor property.
15327         - On setter of Enabled call UpdateCursor when it is false, we need to
15328         change cursor to normal (or to this parent cursor) because cursor 
15329         setting theres no effect to disabled controls.
15330         - Some minor source changes to follow the coding style guidelines.
15331
15332         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
15333         controls.
15334
15335 2007-03-22  Chris Toshok  <toshok@ximian.com>
15336
15337         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
15338         generates.
15339
15340 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15341
15342         * XplatUIX11.cs: Implement default locations for forms.
15343         * Form.cs: Completely rework startup location for forms. Fixes #79964.
15344         * Hwnd.cs: Add previous_child_startup_location (to track the current
15345           startup location for any child forms of the current form) and
15346           previous_main_startup_location (to track the startup location for
15347           the current toplevel form).
15348
15349 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
15350
15351         * Control.cs: Don't trigger a layout if an implicit control is added
15352         that isn't visible.  Also, don't notify the owner when an implicit control
15353         is added.  (Owners shouldn't even know about their implicit controls.)
15354
15355 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
15356
15357         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
15358         to save some re-layouts.
15359
15360 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
15361
15362         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
15363         [Fixes #81203]
15364
15365 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
15366
15367         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
15368         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
15369
15370 2007-03-21  Mike Kestner  <mkestner@novell.com>
15371
15372         * ListView.cs : disable selection update for non-left button clicks
15373         with mods and over selected items.  [Fixes #80524]
15374
15375 2007-03-20  Jackson Harper  <jackson@ximian.com>
15376
15377         * TextControl.cs:
15378         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
15379         \r\r\n, \n.
15380
15381 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15382
15383         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
15384           very probably a more complicated calculation there. Update the
15385           textbox' ForeColor and BackColor when the ComboBox' colors are
15386           changed. Change the border change in LayoutComboBox to only affect
15387           the textbox, not all the calculations there. Seems to fix most of
15388           #79436.
15389
15390 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15391
15392         * ComboBox.cs: Handle Home and End keys as well as all combinations of
15393           modifiers + navigation keys as input keys, enables advanced text
15394           selection in the combobox (like Shift+Left Arrow for instance).
15395           ComboTextBox now overrides Focused and returns whatever
15396           ComboBox.Focused returns, since it really should be focused
15397           whenever the ComboBox is. Fixes #80795. Also make the border around
15398           the text box one pixel bigger, as mentioned in #79436.
15399
15400 2007-03-20  Jackson Harper  <jackson@ximian.com>
15401
15402         * TreeView.cs: Don't offset the images, this was causing some
15403         artifacts when expanding/collapsing with images that were the
15404         exact height of the treenode.
15405
15406 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15407
15408         * TrackBar.cs: Query the theme for the correct value when the mouse
15409           moves and the thumb is pressed. 
15410         * Theme.cs: Added TrackBarValueFromMousePosition
15411         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
15412           implementation was updating the trackbar value when drawing, now
15413           the drawing methods only draw. Fixes #80900. Refactored the
15414           calculations out to TrackBarValueFromMousePosition and
15415           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
15416           according to the mouse position whenever it wants to. Changed the
15417           light coloured pen when drawing the thumb from ControlLight to
15418           ControlLightLight, because the ControlLight is the same colour as
15419           the background so the 3D effect is lost. 
15420
15421 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15422
15423         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
15424         defined. Fixes #80784.
15425
15426 2007-03-20  Marek Habersack  <mhabersack@novell.com>
15427
15428         * ContextMenuStrip.cs: align with the change introduced in
15429         revision 74664.
15430
15431 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15432
15433         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
15434         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
15435         in SetTopmost.
15436
15437 2007-03-19  Chris Toshok  <toshok@ximian.com>
15438
15439         * Control.cs (WmPaint): don't make use of the Handle property
15440         after an event is emitted, as the user could have closed the
15441         form/destroyed the control.  Store the Handle in a local variable
15442         and make use of that.  Fixes bug #80768.
15443
15444 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15445
15446         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
15447         behavior in X11 environments.
15448
15449 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15450
15451         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
15452         because on setter of topmost we dont call SetTopmost when handle is not
15453         created.
15454
15455 2007-03-20  Jackson Harper  <jackson@ximian.com>
15456
15457         * TextControl.cs: Need to use SelectionLength () not
15458         selection_length, since that var is reset to -1.
15459         - Draw the caret when we don't have focus.
15460         * TextBox.cs: The selectall actually doesn't occur until the first
15461         focus.
15462         * TextBoxBase.cs: Need to update the caret position after a
15463         selectall.
15464         
15465 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15466
15467         * ListView.cs: Enable scrolling when using Tile view.
15468
15469 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15470
15471         [Fixes #80902]
15472
15473         * XplatUIDriver.cs: Abstract SetOwner method created.
15474
15475         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
15476         must be implemented and was masked as todo.
15477
15478         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
15479         GWL_HWNDPARENT.
15480
15481         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
15482         cheking for null owner to remove transient. The SetTopmost will be change
15483         on a decond step.
15484
15485         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
15486         SetTopmost. Now owned forms will work properly in win32 and X11.
15487
15488 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15489
15490         * MdiWindowManager.cs: Update function name.
15491         * Form.cs: After closing a form MdiParent is always null.
15492         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
15493           better what it should do: necessary book-keeping when the form is
15494           closed, it should not close the form itself.
15495
15496 2007-03-19  Andreia Gaita  <avidigal@novell.com>
15497
15498         * ListViewItem.cs: Fix back and fore color. The subitems only
15499         use their own colors if they are set, otherwise use the listview's
15500         colors. Don't set default colors on constructor for subitem.
15501         Fixes #79315.
15502
15503 2007-03-19  Mike Kestner  <mkestner@novell.com>
15504
15505         * ListView.cs : make box selection for Details views with 
15506         FullRowSelect conform to MS behavior when clicking in the "item" 
15507         column and clicking outside the defined columns.
15508         [Fixes case 5-6 of #80374]
15509
15510 2007-03-19  Chris Toshok  <toshok@ximian.com>
15511
15512         * ScrollableControl.cs: create the controls from within the ctor,
15513         but don't actually add them until our handle is created.  this
15514         fixes a NRE possibility jpobst found (if you override OnLayout in
15515         a subclass, it's called before your ctor).  Also, add a
15516         IsHandleCreated guard to UpdateSizeGripVisibility as well.
15517
15518 2007-03-19  Jackson Harper  <jackson@ximian.com>
15519
15520         * TextBox.cs: Reduce the amount of invalidation we do.
15521         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
15522         some of them are true by default on MS.
15523         - Add some functions to reduce the amount of invalidates we do.
15524         * TextControl.cs: Less invalidation.
15525
15526 2007-03-19  Chris Toshok  <toshok@ximian.com>
15527
15528         [ Fixes #81773, and *seems* to fix #81553 as well ]
15529
15530         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
15531         AccumulateDestroyedHandles.  We need to do it *after* we send
15532         WM_DESTROY, as the user's code can access Control.Handle in
15533         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
15534         move the WM_DESTROY/zombie handling to before the call to
15535         XDestroyWindow.  For some reason without this ordering
15536         FormTest.RecreateHandle hangs.  This ordering is semantically
15537         equivalent, however, as XDestroyWindow is async anyway.
15538
15539 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
15540
15541         * RichTextBox.cs: Reset backcolor_set after setting default.
15542
15543 2007-03-19  Chris Toshok  <toshok@ximian.com>
15544
15545         * ScrollableControl.cs: the scroll position should not effect the
15546         canvas size.  commit patch from georgegiolfan@yahoo.com, which
15547         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
15548         
15549 2007-03-19  Chris Toshok  <toshok@ximian.com>
15550
15551         * ScrollableControl.cs: clean this up a bit.  create the
15552         scrollbars in the ctor and just show/hide them as needed.  Also,
15553         make hscroll_visible/vscroll_visible internal to Recalculate, and
15554         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
15555         everywhere else.  This seems to fix the scrollbars appearing
15556         beneath the content for me (i have *no* idea why that is,
15557         however.)
15558
15559 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
15560
15561         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
15562         some redundacy for stuff in Anchor and Dock that base will take care of.
15563         [Fixes #80762]
15564
15565 2007-03-19  Mike Kestner  <mkestner@novell.com>
15566
15567         * ListView.cs : make box selection for Details views without 
15568         FullRowSelect dependent on the text bounds, not item bounds.
15569         * ListViewItem.cs : add an internal property to obtain the TextBounds
15570         in Details view.  [Fixes case 1-4 of #80374]
15571
15572 2007-03-19  Andreia Gaita  <avidigal@novell.com>
15573
15574         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
15575         we're < 2.0. #78448 && #80316
15576
15577 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
15578
15579         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
15580         have the same style available as the previously selected one.  Also,
15581         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
15582
15583 2007-03-19  Jackson Harper  <jackson@ximian.com>
15584
15585         * TextControl.cs: Add an alignment property that all new lines
15586         will be given.
15587         - Make sure to use the align shift when calculating the line's X
15588         position.
15589         * TextBox.cs: Set the alignment on the document as well as on all
15590         the document lines.
15591
15592 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15593
15594         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
15595           throw if setting the parent of an mdichild that already has an
15596           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
15597           AssemblyProductAttribute in the assembly, use the type's namespace (as
15598           MS seems to do). CreateControl: don't create the handle if the control
15599           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
15600           create handle if the control is not a form. Change FocusInternal to
15601           virtual so that it can be overriden by Form.
15602         * TextBox.cs: Update call to FocusInternal.
15603         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
15604           form is not a toplevel form when it's a mdi child, so update is_toplevel
15605           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
15606           hasn't been created. Show (IWin32Window): Don't allow this overload for
15607           toplevel windows. CenterToParent/CenterToScreen/Select: create the
15608           handle as MS does. SetVisibleCore: if called on a MdiChild and the
15609           parent isn't visible yet, save the visibility and restore it when the
15610           parent is made visible.
15611         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
15612           methods, since the visibility of the scrollbars can be changed from
15613           several places, not only from AutoScroll.
15614           [Fixes #81179]
15615
15616 2007-03-19  Jackson Harper  <jackson@ximian.com>
15617
15618         * RichTextBox.cs: Enable shortcuts by default.
15619         * TextBoxBase.cs: Add conditional shortcuts.  
15620
15621 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
15622
15623         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
15624
15625 2007-03-19  Chris Toshok  <toshok@ximian.com>
15626
15627         [ Fixes bug #80604]
15628         
15629         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
15630         swallow the message we're waiting on, instead of delivering it, as
15631         this is only used for the WM_SHOWWINDOW raised from
15632         MapWindow/UnmapWindow, and the message needs to be generated
15633         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
15634         before doing the Map/Unmap.  Also make sure that the Hwnd is still
15635         alive after the message has been handled.
15636
15637         *before* the window is shown.
15638
15639         * Control.cs (CreateControl): guard a few more things inside the
15640         if (!is_created) block, as we might end up being called again -
15641         yay .net.
15642         (WmShowWindow): call CreateControl if we're showing the control.
15643
15644 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15645
15646         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
15647           controls without a handle if they have any parent with a handle. In
15648           Dispose add a check whether the handle is created or not before
15649           calling BeginInvoke, this removes the need of the extra disposing
15650           parameter (which was bogus anyway since it didn't prevent the
15651           invoke from happening, it only skipped the check for an existing
15652           handle, meaning that the invoke would call on an inexistent
15653           handle).
15654
15655 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
15656
15657         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
15658         appears in taskbar.
15659
15660 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
15661
15662         * MessageBox.cs:
15663         - Fixed a problem that dont show help button for messages with 3 buttons.
15664         - Refactory button size and position calculations, now dont use fixed 
15665         values, also fixed button sizes (#80043) and form's border space.
15666         - AddButton method created, now all other AddButton methods call this one.
15667         - Some other source code cosmetic changes.
15668
15669 2007-03-18  Jackson Harper  <jackson@ximian.com>
15670
15671         * RichTextBox.cs: Don't do this all fonts must match check if
15672         there is only one char selected.
15673
15674 2007-03-18  Jackson Harper  <jackson@ximian.com>
15675
15676         * TreeView.cs: ScrollWindow works properly now, so we don't need
15677         to screw around with the scroll area.  This fixes some artifacts
15678         when expanding and collapsing.
15679
15680 2007-03-18  Jackson Harper  <jackson@ximian.com>
15681
15682         * TextBoxBase.cs: Allow updating the selection position when the
15683         cursor is outside the textarea, but we have a capture.
15684         * TextControl.cs: A special case for when the cursor is outside
15685         the bounds of the TB.
15686         
15687 2007-03-18  Jackson Harper  <jackson@ximian.com>
15688
15689         * TextBoxBase.cs: Remove image pasting code for now.  There is no
15690         way to get an image on the clipboard right now anyways.
15691         * TextControl.cs:
15692         * RichTextBox.cs: Use the new RTF Picture class for pictures.
15693
15694 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
15695
15696         * MessageBox.cs:
15697         - Set window properties in constructor intead of on CreateParams.
15698         - Remove topmost from Window ExStyle.
15699         - Set ShowInTaskbar to false.
15700         - Set form border to FixedDialog.
15701         - Some cosmetic changes and remove unneeded comments.
15702         - It fixes itens 2,3 and 4 of bug #80043.
15703
15704 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
15705
15706         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
15707         none was explicitly set. Fixes part of bug #79949.
15708
15709 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
15710
15711         * ToolStripComboBox.cs: Add AutoComplete*.
15712
15713 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
15714
15715         * ToolStripComboBox.cs: Add FlatStyle.
15716
15717 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
15718
15719         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
15720         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
15721
15722 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15723
15724         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
15725           CheckBox.cs, RadioButton.cs, BindingSource.cs,
15726           DataGridColumnStyle.cs: Remove warnings.
15727
15728 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15729
15730         * Menu.cs: MergeMenu: Check menu argument for null before looping over
15731           it.
15732         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
15733           visibility of mdi child forms. FormSizeChangedHandler: update the
15734           maximized size if size has changed while maximized.
15735         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
15736           creating the handle.
15737         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
15738           avoid creating the handle if not created.
15739         * XplatUI.cs: Update debug output.
15740         * XplatUIStructs.cs: Added ToString's for a couple of structs.
15741
15742 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
15743
15744         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
15745         ProcessCmdKey().
15746         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
15747         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
15748         Implement keyboard shortcuts.
15749
15750 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
15751
15752         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
15753         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
15754         ColorDialog and all derived classes.
15755
15756 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
15757
15758         [ Fixes bug #79828 ]
15759
15760         * ToolBar.cs:
15761         - Rename ToolBarButtonInfor to ToolBarItem.
15762         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
15763         - Maintain an array of ToolBarItem, used instead of ToolBarButton
15764         collection to be able add same button more than one time on a toolbar.
15765         - Refactory all properties and methods to use ToolBarItem. 
15766
15767         * ToolBarButton.cs: 
15768         - Remove all propeties and methods that is now in ToolBarItem.
15769         - Rectangle propery now gets the rectangle from first ToolBarItem to
15770         mimic win32 behavior.
15771         - Size calculation and layout methods also removed.
15772
15773         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
15774         ToolBarItem instead of ToolBarButton to right drawing buttons when
15775         same button/separator was added more than one time to ToolBar.
15776
15777         * ThemeNice.cs: Same as above. 
15778
15779 2007-03-15  Andreia Gaita  <avidigal@novell.com>
15780
15781         * XplatUIX11.cs: Fire extra MouseMove events right after
15782         MouseDown and MouseUp, emulating win32's <censored> behaviour
15783         for apps that rely on it.
15784
15785 2007-03-15  Jackson Harper  <jackson@ximian.com>
15786
15787         * TextControl.cs:
15788         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
15789         it is drawn on the controls client window and there is no NC
15790         area.
15791         - Set the background color to gray on 2.0 when we are readonly.
15792
15793 2007-03-15  Chris Toshok  <toshok@ximian.com>
15794
15795         [ Fixes bug #81144 ]
15796         
15797         * XplatUIX11.cs: implement VirtualScreen independently of
15798         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
15799         property.
15800
15801 2007-03-15  Chris Toshok  <toshok@ximian.com>
15802
15803         * Hwnd.cs: add an internal field for the cached_window_state.
15804
15805         * XplatUIX11.cs: cache the window state, invalidating the cache
15806         (and thus re-querying the X server) only when we see an update to
15807         the _NET_WM_STATE property.
15808
15809 2007-03-15  Chris Toshok  <toshok@ximian.com>
15810
15811         * BindingSource.cs: get a lot of the unit tests working.
15812
15813 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
15814
15815         * Control.cs: Modify UpdateStyles to store distances when bounds >=
15816         0 instead of just bounds > 0.  [Fixes bug #80912]
15817
15818 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
15819
15820         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
15821         and methods.
15822
15823 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
15824         
15825         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
15826         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
15827         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
15828         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
15829
15830 2007-03-15  Chris Toshok  <toshok@ximian.com>
15831
15832         [ Fixes #81101 ]
15833         
15834         * Control.cs: add Ivan's fix for 81101, with a slight modification
15835         - you can set control.Target to null.
15836
15837 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
15838
15839         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
15840         HideDropDown, use Hide instead to prevent an NRE.
15841         [Fixes bug #81147]
15842
15843 2007-03-14  Jackson Harper  <jackson@ximian.com>
15844
15845         * TextBoxBase.cs: Mess with the creation stuff a little. We need
15846         to calculate the document before the handle is created, in some
15847         cases. (Actually just one case).
15848
15849 2007-03-14  Jackson Harper  <jackson@ximian.com>
15850
15851         * TextBoxBase.cs: Need to display the caret after letting the base
15852         wndproc handle the focus methods, because the caret display
15853         methods check the focus state.
15854         - Try to display the caret after updating it's position with SelectWord.
15855         - Don't need to do an immediate update on this recalc, since there
15856         will be an invalidate anyways.
15857
15858 2007-03-14  Jackson Harper  <jackson@ximian.com>
15859
15860         * TreeView.cs: Some workarounds so that we can match event order a
15861         little better.
15862
15863 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
15864
15865         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
15866         #80803. Avoid NullReferenceException when Control does not have
15867         parent. Fixed different blinkstyle issues. Only subscribe to Tick
15868         event a single time. Only draw error icon when control is created and
15869         visible. Fixes failing unit tests.
15870
15871 2007-03-14  Andreia Gaita  <avidigal@novell.com>
15872
15873         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
15874         Selecting events. Fire Leave and Enter events when changing tabs.
15875
15876 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
15877
15878         * TreeView.cs: Add TreeViewNodeSorter.
15879         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
15880
15881 2007-03-14  Chris Toshok  <toshok@ximian.com>
15882
15883         * Form.cs: go ahead and remove the RecreateHandles that jpobst
15884         removed earlier and I had him add back it.  It turns out metacity
15885         *does* in fact handle the MOTIF_WM_HINTS property changing, it
15886         just doesn't redraw the window titlebar until you resize the
15887         window.  This also means we aren't recreating the entire window
15888         hierarchy on X when you change this property.  And it looks better
15889         on windows, too.
15890
15891 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15892
15893         * ListViewItem.cs:
15894         * ListView.cs: Collecting selection information
15895         is now done in SelectedIndexCollection rather than in
15896         SelectedListViewItemCollection. This is done so we can
15897         have the selection information code in one single place
15898         (virtual mode selection information entirely depends on
15899         SelectedIndexCollection).
15900
15901 2007-03-13  Miguel de Icaza  <miguel@novell.com>
15902
15903         * ErrorProvider.cs: Add stubs for ISupportInitialize
15904
15905 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15906
15907         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
15908         in the right order with the right values, from the Checked property, 
15909         just as MS does (instead of triggering them from ListView).
15910
15911         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
15912
15913 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15914
15915         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
15916         the correct handler in OnItemCheck method (ItemCheckEventHandler 
15917         instead of EventHandler). This used to throw an InvalidCastException.
15918
15919 2007-03-13  Jackson Harper  <jackson@ximian.com>
15920
15921         * TextBoxBase.cs: Calculate the document before the handle is
15922         created, so there isn't an extra invalidate called.
15923
15924 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
15925
15926         * Form.cs: Don't set owner in ShowDialog until we are sure
15927         that we aren't going to throw an exception.  [Fixes bug #80773]
15928
15929 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
15930
15931         * TreeView.cs: Make it compile.
15932
15933 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15934
15935         * Control.cs: Another place we don't call SizeFromClientSize.
15936         * Form.cs: Another place we don't call SizeFromClientSize.
15937         [Fixes bug #81125]
15938
15939 2007-03-12  Jackson Harper  <jackson@ximian.com>
15940
15941         * TreeView.cs: Basically emulating some strangness here with
15942         exanding nodes and setting node positions when windows aren't
15943         created.
15944         - Also attempting to walk the node tree less than previously, and
15945         just use visible order calculations for determining offsets.
15946         - oops made scrolling backwards.
15947         * TreeNode.cs: We need to start nodes with a zero visible order,
15948         because the order calcs are based on the first nodes order.
15949
15950 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15951
15952         * Form.cs: Don't exit the program if RecreateHandle is called on
15953         the main form.
15954
15955 2007-03-12  Chris Toshok  <toshok@ximian.com>
15956
15957         * XEventQueue.cs: remove the use of PostQuitState.
15958
15959         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
15960         WM_QUIT message in GetMessage, return false (and if we're in the
15961         nested WaitForHwndMessage, repost the WM_QUIT message).
15962
15963 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15964
15965         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
15966         or the MaximizeBox properties.  [Part of bug #80640]
15967
15968 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
15969
15970         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
15971         no links.
15972
15973 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15974
15975         * ToolStripItem.cs: Fix some tests I broke by checking Visible
15976         instead of visible.
15977
15978 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
15979
15980         * FileDialog.cs: Use text of File name combobox to determine what
15981         files the user selected. Added tokenizer to parse the file names.
15982         Fixes bug #81123.
15983
15984 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15985
15986         * Control.cs: We can't call SizeFromClientSize in the constructor,
15987         but we still need to do the same work, so make an internal version.
15988         [Fixes bug #80621]
15989
15990 2007-03-12  Jackson Harper  <jackson@ximian.com>
15991
15992         * TreeView.cs:
15993         * TreeNode.cs:
15994         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
15995         IsExpanded.
15996
15997 2007-03-12  Jackson Harper  <jackson@ximian.com>
15998
15999         * TextBoxBase.cs: Now that the handles are being created a little
16000         later, we need to make sure that the document is recalculated when
16001         the handle is created.
16002
16003 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
16004
16005         * Theme.cs: GetLinkFont abstract method added.
16006         
16007         * LinkLabel.cs: 
16008         - Remove CalcTrimRectangle, no longer needed.
16009         - Factor also remove, position issues must be fixed in libgdiplus.
16010         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
16011         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
16012         care about font used to draw links.
16013         - Set TabStop to true when control is "Selectable", control is selectable
16014         when have one or more links. Fixes #80501 (test case is also added).
16015         - Set the LinkArea values after links change, LinkArea values must be
16016         based in first link position and size, a test case was created.
16017         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
16018         the attribute must be true LinkArea.Length > 0. The same was applied to
16019         TabStop.
16020         
16021         * ThemeWin32Classic.cs: 
16022         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
16023         in draw method.
16024         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
16025         color change.
16026         - Draw focus rectangle for every parts focused, including parts that 
16027         is on another line, its because regions returns various rectangles
16028         and not only one. Needed to mimic W32 look.
16029         - Uses Graphics.Clip to delimite region painted, it mean that now 
16030         complete text is passed to DrawString, with this we solve layout
16031         issues without create another text renderer.
16032         - Uses Region.Intersect to fix some flickers problems, now only needed
16033         parts will redrawed.
16034         - This changes fixes #79614 and some other unreported issues, on Linux 
16035         some layout problems still remain, the problem is under 
16036         MeasureCharacterRanges but it is an libgdiplus bug.
16037
16038 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
16039
16040         * TextBox.cs: Set for foreground color.
16041         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
16042         this is already done in Control.
16043
16044 2007-03-10  Jackson Harper  <jackson@ximian.com>
16045
16046         * TextBox.cs: Set the background color, but reset the
16047         backcolor_set flag which is just for the user setting the
16048         background color.
16049
16050 2007-03-09  Chris Toshok  <toshok@ximian.com>
16051
16052         * Control.cs: really remove the call to XplatUI.SetVisible from
16053         CreateHandle(), like I said I did when I merged the branch.
16054
16055         * BindingSource.cs: implement some more of this stuff.
16056
16057 2007-03-09  Jackson Harper  <jackson@ximian.com>
16058
16059         * TextBox.cs: Don't explicitly set our background colors.
16060         * TextControl.cs:
16061         * TextBoxBase.cs: Draw readonly text.
16062         - Need to invalidate when backcolor or readonly are changed.
16063         
16064 2007-03-09  Jackson Harper  <jackson@ximian.com>
16065
16066         * TextBoxBase.cs: Don't set the forecolor until the handle is
16067         created.
16068         - Do not raise OnPaint, and removed some old debug code.
16069
16070 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
16071
16072         * ScrollableControl.cs: Fix mouse wheel scrolling.
16073
16074 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
16075
16076         * Control.cs: Wire up MouseDoubleClick event.
16077
16078 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
16079
16080         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
16081         top or bottom.
16082         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
16083         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
16084         item is added.  This logic was moved to ToolStrip.OnItemAdded.
16085         [Fixes bug #81090]
16086
16087 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16088
16089         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
16090
16091 2007-03-08  Jackson Harper  <jackson@ximian.com>
16092
16093         * TreeView.cs: Show the correct image for selected node (this used
16094         to work, not sure how the code got deleted). Also implemented 2.0 feature
16095         SelectedImageKey.
16096
16097 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16098
16099         * ListView.cs:
16100         * ListViewItem.cs: Cache index in items when retrieving them
16101         in VirtualMode.
16102
16103 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
16104
16105         * ToolStripItem.cs: Don't return the explicit_size if we are using 
16106         AutoSize.  Fixes invalidation issue when user has explicitly set a
16107         size and has AutoSize = true.
16108
16109 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
16110
16111         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
16112
16113 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16114
16115         * DataGridView.cs: Remove event handler from DataView when a
16116         DataTable is used as DataSource.
16117
16118 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
16119
16120         * Control.cs: Create internal setter for client_size to allow it to be
16121         set without triggering resizing code.
16122         * Form.cs: Calculate client_size in constructor, only change client_size
16123         in FormBorderStyle property if Handle has been created.
16124         [Fixes #80574, #80791]
16125
16126 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
16127
16128         * SystemInformation.cs: Add TerminalServerSession.
16129
16130 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
16131
16132         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
16133         TreeView code.
16134
16135 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
16136
16137         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
16138         Handle before we were supposed to.  Now checks ActivateOnShow property
16139         in Control.
16140         * Control.cs: Add internal ActivateOnShow property.
16141         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
16142         for ActivateOnShow.
16143         * Hwnd.cs Remove no longer needed no_activate field.
16144
16145 2007-03-07  Jackson Harper  <jackson@ximian.com>
16146
16147         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
16148         2.0 properties
16149         * DrawTreeNodeEventHandler.cs: Add
16150         * DrawTreeNodeEventArgs.cs: Correct default value.
16151         
16152 2007-03-07  Chris Toshok  <toshok@ximian.com>
16153
16154         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
16155         to be called before NativeWindow.WndProc.  Put the HwndCreating
16156         magic there to hook up our Hwnd's to handles.
16157
16158 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
16159
16160         * DataGridView.cs: Comment out debug code.
16161
16162 2007-03-07  Chris Toshok  <toshok@ximian.com>
16163
16164         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
16165         to make the rest of the world happy]
16166
16167         * Control.cs (CreateHandle): there's no need to call
16168         XplatUI.SetVisible here, it's effectively done by
16169         XplatUI.CreateWindow on X now, and always was on windows.
16170
16171         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
16172         shortcircuit out of the loop if we have a message loop running on
16173         this thread.
16174
16175         [Changelog from merge]
16176
16177         2007-03-05  Chris Toshok  <toshok@ximian.com>
16178
16179                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
16180                 causes handle creation.
16181
16182         2007-02-28  Chris Toshok  <toshok@ximian.com>
16183
16184                 * ApplicationContext.cs: Add a flag to make sure we only raise the
16185                 ThreadExit event once (ExitThreadCore can be indirectly called
16186                 from a few places.)  I don't like the additional flag, but it
16187                 makes the event ordering/count correct.
16188
16189                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
16190                 without locking the collection.  An enumerator doesn't give us any
16191                 protection from modification anyway.  Lock the thread hash and
16192                 replace the complicated enumerator loop with a foreach.
16193                 (Application.CloseForms): make internal so it can be called from
16194                 ApplicationContext.  This should probably be moved to MWFThread.
16195                 (Application.ExitThread): don't call MWFThread.Current.Exit()
16196                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
16197                 when the runloop exits (in response to WM_QUIT.)
16198                 (Application.RunLoop): add a comment (and check) for
16199                 context.MainForm being null after setting context.MainForm.Visible
16200                 = true.  This is because you're perfectly free to dispose of a
16201                 form in VisibilityChanged.  Chalk this up to another case where we
16202                 need to synchronously generate WM_ACTIVATE from Control.Show.
16203                 Also, add handling for WM_QUIT here so we'll exit the loop.
16204                 
16205                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
16206                 fact that we don't wait if we're only unmapping the whole_window
16207                 makes me a bit nervous, but it doesn't seem to cause any problems
16208                 yet.
16209
16210                 also, add a comment about the stupid, broken and wrong resetting
16211                 of PostQuitState to false in GetMessage().
16212
16213                 In PostQuitMessage, we need to add a WM_QUIT message to the
16214                 thread's queue.  We use the FosterParent to get the right
16215                 handle/hwnd/queue.
16216
16217                 Lastly, in SetVisible, we need to unmap both windows, since the
16218                 waiting only happens when we're unmapping the client window.  So
16219                 now, the *only* time we unmap just the whole_window is in the hack
16220                 for resizing a control to 0,0.
16221                 
16222         2007-02-21  Chris Toshok  <toshok@ximian.com>
16223
16224                 * Application.cs (CloseForms): rewrite this so that we don't
16225                 modify the list while we're traversing it.
16226
16227         2007-02-20  Chris Toshok  <toshok@ximian.com>
16228
16229                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
16230                 of OnHandleCreated.
16231                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
16232                 handle is created.  otherwise we'll create it here.
16233                 (VerticalScrollEvent): same here.
16234
16235                 * Application.cs (CloseForms): call Form.Dispose, don't post
16236                 WM_CLOSE_INTERNAL.
16237
16238                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
16239                 here. Application should Dispose() of the Form's.
16240
16241                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
16242                 WM_DESTROY as well.
16243                 (MapWindow,UnmapWindow): only actually do the waiting for
16244                 SHOWWINDOW if the control we're dealing with is a Form.
16245                 (CreateWindow): if the control isn't a form, SendMessage
16246                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
16247
16248                 * Control.cs (SetVisibleCore): always use is_visible here, not
16249                 value.  If we use value, we can end up re-setting something
16250                 visible if, for instance, you do Control.Hide() in a delegate
16251                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
16252
16253         2007-02-20  Chris Toshok  <toshok@ximian.com>
16254
16255                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
16256                 the message we need.  PeekMessage returning false should not be a
16257                 condition under which we exit the loop.
16258
16259         2007-02-15  Chris Toshok  <toshok@ximian.com>
16260
16261                 * Control.cs (Refresh): only refresh if we've got a handle and are
16262                 visible.
16263                 (CreateAccessibilityInstance): CreateControl() here.
16264                 (UpdateChildrenZOrder): complicate the code loop even more by
16265                 taking into account controls that haven't had their handle
16266                 created, and those that aren't visible.  But on the flip side,
16267                 simplify the code by splitting it into two loops.  one which
16268                 builds up the list of child controls we're interested in, and the
16269                 other that sets the z order of those children.
16270
16271         2007-02-14  Chris Toshok  <toshok@ximian.com>
16272
16273                 * Control.cs: Control.AccessibilityObject causes the control to be
16274                 created, not just the handle.
16275
16276         2007-02-14  Chris Toshok  <toshok@ximian.com>
16277
16278                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
16279                 problem on X where a window might have its handle created (and be
16280                 visible) while the window is unmapped.  calling XConfigureWindow
16281                 on an unmapped window is bad, and generates X errors.
16282
16283         2007-02-13  Chris Toshok  <toshok@ximian.com>
16284
16285                 * Control.cs (CreateHandle): don't loop over our children setting
16286                 their parent here.  do it when in WndProc when we're shown.
16287                 (UpdateChildrenZOrder): make this internal so we can call it from
16288                 ScrollableControl.
16289                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
16290                 creating its handle.  Also, remove the calls to PerformLayout from
16291                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
16292                 OnVisibleChanged only seems to be called directly here for the
16293                 toplevel control.  It's propagated down the window hierarchy by
16294                 calls to child.OnParentVisibleChanged.
16295                 (OnVisibleChanged): don't do layout here - it's done (oddly
16296                 enough, according to a glance at stack traces on ms.net..) in
16297                 ScrollableControl.
16298                 
16299                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
16300                 z order of our children before calling PerformLayout.
16301
16302         2007-02-12  Chris Toshok  <toshok@ximian.com>
16303
16304                 [big change, fixes #80020]
16305                 
16306                 * AccessibleObject.cs: we need to make owner internal again to fix
16307                 some of ControlAccessibleObject.
16308
16309                 * Control.cs: lots of changes here.  add support for WM_CREATE,
16310                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
16311                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
16312                 we create child controls.  leave the MonoTODO's for the
16313                 accessibility calls, but fix the exceptions so the tests pass.
16314
16315                 Add the InvalidOperationExceptions to Invoke methods, and remove a
16316                 couple of InvokeInternal methods we aren't using.
16317                 
16318                 Also, add a couple of CreateHandle calls in places where we know
16319                 the handles are being created but our code doesn't reference
16320                 .Handle.
16321
16322                 Make SetVisibleCore call OnVisibleChange if the handle isn't
16323                 created.  If the handle is created, we rely on XplatUI.SetVisible
16324                 generating the event synchronously.
16325                 
16326                 Lastly, make sure we don't use this.Handle inside CreateHandle,
16327                 because we can call back into client (and that code can dispose of
16328                 the control).
16329
16330                 * XplatUIStructs.cs: misc/cleanup.
16331
16332                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
16333                 although we don't populate the wParam properly.
16334                 (CreateWindow): generate WM_CREATE.
16335                 (MapWindow,UnmapWindow): make these calls synchronous, at great
16336                 performance expense (particularly in the unmap case), to match
16337                 win32 behavior.
16338
16339                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
16340                 to call it.
16341                 (set_MdiParent): don't recreate the handle unless it's been
16342                 created already.
16343                 
16344                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
16345                 it's created.
16346
16347                 * NativeWindow.cs: this is probably the weirdest part of the
16348                 patch.  We need a way to link up the window being created to the
16349                 WM_CREATE message.  Since we can only be creating one window at a
16350                 time on a given thread, we keep track of a per-thread reference so
16351                 we can dispatch it properly.  We also need to keep track of the
16352                 Hwnd currently being created so that the win32 backend doesn't
16353                 have problems.
16354                 
16355                 * XplatUIWin32.cs: a similar change to the one we made in
16356                 NativeWindow.cs.
16357
16358 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
16359
16360         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
16361         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
16362         to draw the menu shortcut string.
16363
16364 2007-03-07  Jackson Harper  <jackson@ximian.com>
16365
16366         * TreeNode.cs: Add the 2.0 collapse method.
16367
16368 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16369
16370         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
16371
16372 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16373
16374         * DataGridView.cs: Change DataSource will clear column and row
16375         lists. Call Invalidate() to reflect DataSource change.
16376
16377 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16378
16379         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
16380         and a new row is added to it.
16381
16382 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16383
16384         * DataGridView.cs: Add columns when DataSource is en empty list but
16385         is a System.Data.DataView (from a System.Data.DataTable).
16386
16387 2007-03-06  Andreia Gaita  <avidigal@novell.com>
16388
16389         * Label.cs: Implement AutoEllipsis (2.0)
16390
16391 2007-03-06  Jackson Harper  <jackson@ximian.com>
16392
16393         * TreeView.cs: Implement 2.0 TopNode setter property.
16394         - Use a local var instead of the skipped_nodes field for computing
16395         how many nodes to skip.  Otherwise we won't scroll because the
16396         valuechanged handler checks if skipped_nodes is equal to the new
16397         value.
16398         - Implement 2.0 Sort method.
16399         - Add useless 2.0 DoubleBuffer property
16400         - Implement 2.0 LineColors property.  Lets you change the color of
16401         the lines in the tree. Terribly useful for creating non cohesive
16402         desktops.
16403         - Implement 2.0 image key feature.
16404
16405 2007-03-06  Jackson Harper  <jackson@ximian.com>
16406
16407         * TreeView.cs: We can't get the bounds of the nodes before raising
16408         the AfterSelect event, because that event could change the node's
16409         bounds (scrolling, font change, etc).
16410
16411 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16412
16413         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
16414         * Form.cs: Don't recreate handle when creating FormWindowManager, just
16415           update window styles. In CreateParams us VisibleInternal instead of
16416           VIsible to get the actual visible flag set for this form.
16417         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
16418           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
16419           handle the case when the form is already maximized, in which case
16420           it should be restored. Fixes #81043.
16421
16422 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16423
16424         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
16425
16426 2007-03-05  Jackson Harper  <jackson@ximian.com>
16427
16428         * TreeViewHitTestInfo.cs: implement.
16429
16430 2007-03-05  Jackson Harper  <jackson@ximian.com>
16431
16432         * InternalWindowManager.cs: class status fix.
16433
16434 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16435
16436         * InternalWindowManager.cs: All windows that have a parent
16437         are confined to their parent when they're being moved.
16438         Fixes #80822.
16439
16440 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
16441
16442         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
16443         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
16444
16445 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16446
16447         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
16448           buttons invisible before deciding which ones should be visible
16449           (fixes minimize/maximize buttons showing up in toolwindows). Remove
16450           an unused variable.
16451         * InternalWindowManager.cs: Remove warning.
16452
16453 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16454
16455         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
16456         to throw an InvalidOperationException is virtual mode is being used.
16457
16458 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
16459
16460         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
16461         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
16462         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
16463         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
16464         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
16465         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
16466
16467 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16468
16469         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
16470           driver.KeyboardDelay from XplatUI.KeyboardDelay 
16471         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
16472           (patch by Sergey Volk)
16473
16474 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16475
16476         * ToolWindowManager.cs: Added, contains logic for
16477           tool windows.
16478         * CreateParams.cs: Add a few helper methods and an
16479           internal variable to know which control the CreateParams belongs
16480           to.
16481         * Control.cs: Call Form.ChangingParent when the
16482           parent is about to be changed.
16483         * XplatUIX11.cs: DeriveStyles (): Set
16484           caption_height for all windows that have captions and are children.
16485           Update to use ToolWindowManager instead of InternalWindowManager
16486           for ToolWindows.
16487         * XplatUIWin32.cs: Set fake window styles for all
16488           windows that have window managers.
16489         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
16490           now duplicated for mdi windows when they are
16491           maximized, first for the buttons the window itself has, then for
16492           the buttons that appear in the menu bar. Makes things a little
16493           easier). Updated UpdateWindowDecorations, SetWindowState and the
16494           mouse eventhandlers accordingly.
16495         * Form.cs: Add ChangingParent (), contains the
16496           logic of what should happen when the parent changes. In MdiParent
16497           don't set things that ChangingParent () is doing. When handling
16498           WM_CLOSE, we can close the form if there are any other modal forms
16499           and the current form is a descendent of the modal form.
16500         * InternalWindowManager.cs: A lot of refactoring,
16501           the title buttons are now extracted to a separate container class
16502           that takes care of all button code (clicks, tooltips, etc). Moved
16503           Iconic|Maximized|Normal Bounds properties to this class from
16504           MdiWindowManager, so that the window state logic can succeed for
16505           other than mdi wm's. Implemented general window state change logic.
16506           Moved CreateButtons to ThemeWin32Classic, since the theme might
16507           override which buttons are available when as well as the exact
16508           location.
16509         * FormWindowManager.cs: Added, contains logic for
16510           normal forms.
16511         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
16512           which buttons go where (and if they are at all visible). 
16513           Removed special handling of maximized windows, since they aren't special. 
16514           In DrawManagedWindowDecorations don't try to draw the text if it is
16515           empty.
16516         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
16517           use whatever the wm gives us.
16518
16519 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
16520
16521         * ButtonBase.cs: Add 2.0 properties.
16522         * Button.cs: Override Draw for 2.0.
16523         * Control.cs: Add Entered and Selected properties.
16524         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
16525         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
16526         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
16527         buttons.
16528         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
16529
16530 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
16531
16532         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
16533
16534 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
16535
16536         * XplatUIWin32.cs: Register a new class with Windows each time we get
16537         a new ClassStyle.  [Fixes bugs #79432, #80817]
16538         * Controls.cs: Set the correct ClassStyle in CreateParams.
16539         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
16540
16541 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
16542
16543         * ListView.cs: Add fireEvent argument to ReorderColumn since the
16544         ColumnReordered event must not be signaled when modifying DisplayIndex
16545         of a ColumnHeader. Added internal ReorderColumns method which takes
16546         care of drawing, and updating the internal DisplayIndex of the
16547         ColumnHeader. Added AddColumn method which is invoked from
16548         ColumnHeaderCollection when adding or inserting columns, and which
16549         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
16550         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
16551         Recalculated dispay indices after removing a ColumnHeader.
16552         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
16553         match MS. Allows last display index to be returned after ListView
16554         is disposed. Update actual location of ColumnHeader when DisplayIndex
16555         is modified.
16556
16557 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
16558
16559         * LinkLabel.cs: Improve CalcTrimRectangle.
16560         
16561         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
16562
16563 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
16564
16565         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
16566         get rectangle as a result value.
16567
16568 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
16569
16570         * LinkLabel.cs: Theres some diferences between rectangle return from 
16571         MeasureCharacterRanges and the area used for DrawString to fix this 
16572         CalcMeasurementFactor method was created, it calcules the diferences
16573         to be use later to adjust rectangle in draw operations. Fixes #80473.
16574         
16575         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
16576         to adjust draw rectangle.
16577
16578 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
16579
16580         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
16581         text and some other changes to reduce and optimize source code.
16582
16583 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
16584
16585         * RadioButton.cs: Implement 2.0 event.
16586         * RelatedImageListAttribute.cs: Implement new class.
16587
16588 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
16589
16590         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
16591
16592 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
16593
16594         * CheckBox.cs: Implement 2.0 functionality.
16595
16596 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16597
16598         * ListView.cs: Refactor Add and AddRange methods of
16599         ListViewItemCollection, to not update the ListView
16600         everytime an item is added in AddRange. Also move the update
16601         code to a new CollectionChanged method, and call it
16602         from other methods that need it as well (this should also fix some
16603         bugs when Sorting is used).
16604
16605 2007-02-27  Jackson Harper  <jackson@ximian.com>
16606
16607         * TextControl.cs: Try to never let the caret stay in a non-text
16608         tag.
16609         * TextBoxBase.cs: Update the caret.
16610
16611 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
16612
16613         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
16614         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
16615         delete POINT structure, duplicate of one in XplatUIStructs.
16616         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
16617
16618 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
16619
16620         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
16621         edit box since otherwise the Label would immediately be set (even if
16622         the user did not modify the label). In OnKeyDown set Handled to true
16623         if Return or Escape was pressed. In ColumnHeaderCollection unlink
16624         columns that are to be removed. In ListViewItemCollection unlink items
16625         that are to be removed.
16626
16627 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
16628
16629         * TextRenderer.cs: If we set a GDI clip region, we need to clear
16630         it when we are done.  [Fixes bug #80949]
16631
16632 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16633
16634         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
16635
16636 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16637
16638         * ListView.cs: I forgot to commit the changes for ListView 
16639         in my previous patch.
16640
16641 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16642
16643         * Clipboard.cs: Partially implement an overload of SetDataObject.
16644         * Form.cs: Implement ShowWithoutActivation.
16645         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
16646
16647 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16648
16649         This is a first set of changes to make the Virtual mode works,
16650         by avoiding the retrieval of ListViewItem instances until
16651         draw time.
16652
16653         * ListView.cs: Store item position in the ListView instead of the
16654         ListViewItem, this way we don't request the Bounds property of
16655         ListViewItem inside the ListView calculations, as well as cache the item
16656         size in item_size field. Store indexes instead of ListViewItem
16657         instances in the matrix used by icon view. Add a ItemMatrixLocation
16658         struct to hold the row and col info of the matrix info.
16659
16660         * ListViewItem.cs: Don't store the location anymore, and only cache
16661         the rectangles for GetBounds. Use the ListView.GetItemLocation
16662         method to retrieve the actual location.
16663
16664 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16665
16666         * TextRenderer.cs: Add clipping support, thanks to George.
16667         [Fixes bug #80949]
16668
16669 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
16670
16671         * ListViewItem.cs: Cancel label edit when item is removed from 
16672         ListView.
16673         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
16674         event before the edit textbox is displayed.  Added CancelEdit method
16675         which is used end to editing while ignoring the value set by the
16676         user. In EndEdit, set focus to ListView to avoid losing focus to
16677         other controls. In ListViewItemCollection.Clear, cancel editing of
16678         any of the items.  In Remove, cancel editing of item being removed.
16679         Avoid udplicate code by modifing RemoveAt to invoke Remove.
16680
16681 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
16682
16683         * FileDialog.cs: Update FSEntry when move is successful. Fixes
16684         bug #80948.  
16685
16686 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
16687
16688         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
16689         compatible with non X11 systems. Fixes #80901.
16690
16691 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
16692
16693         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
16694         whether the item should be unselected and reselect. We do no want this
16695         when we're starting to edit the label. Do not fire the 
16696         SelectedIndexChanged event from ListView when its already been fired
16697         by modifying ListViewItem.Selected. Fixes bug #80943.
16698
16699 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16700
16701         * TextRenderer.cs: Previos commit logic was backwards.
16702
16703 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16704
16705         * TextRenderer.cs: Don't add padding on MeasureText if we were
16706         sent the NoPadding flag.
16707
16708 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
16709
16710         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
16711         after DrawButton. To prevent image overlaps button borders SetClip and 
16712         ResetClip added before and after draw image. Fixes #79129.
16713
16714 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
16715
16716         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
16717         window size, it fix problem when you run under win32 that theres
16718         Size diferent than ClientSize. Also fix controls size and positions
16719         to mimic Win32. Fixes #80837.
16720
16721 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
16722
16723         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
16724         menu area to fix some problems for non X11 systems. Fixes #80613.
16725
16726 2007-02-22  Jackson Harper  <jackson@ximian.com>
16727
16728         * TreeNode.cs: When a node is expanded, set its is_expanded flag
16729         even if it doesn't have any children.
16730
16731 2007-02-22  Jackson Harper  <jackson@ximian.com>
16732
16733         * TreeView.cs: Calculate the top node 'on the fly', this
16734         eliminates issues where you need to click on the tree before
16735         scrolling it to get the top node computed correctly.
16736         * TreeNodeCollection.cs: We don't need to mess with the top node
16737         anymore.
16738
16739 2007-02-22  Jackson Harper  <jackson@ximian.com>
16740
16741         * DataGridViewRow.cs: Fix typo so height can actually be set.
16742         Patch by Peter Grimm.
16743
16744 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
16745
16746         * FileDialog.cs: Fixed support for renaming files and directories.
16747         * ListView.cs: Do not lose focus when edit is canceled. Process
16748         Escape as regular key (to prevent closing of dialogs).
16749
16750 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
16751
16752         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
16753         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
16754
16755 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
16756
16757         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
16758         did not modify label.
16759         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
16760         modified the text. Reset Label when user presses Escape in edit mode.
16761         Move focus to ListView after having cancelled or finished editing the
16762         label.
16763
16764 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
16765
16766         * ComboBox.cs: Removed unnecessary initializations. Marked items field
16767         private. Clear textbox when Text is set to null and SelectedIndex is
16768         already -1.
16769         * FileDialog.cs: Removed unnecessary initializations. Removed 
16770         workarounds for ComboBox bugs that are now fixed. Modified
16771         DefaultExt, InitialDirectory and Title property to change null to
16772         zero-length string in getters. Avoid directly accessing fields.
16773
16774 2007-02-20  Jackson Harper  <jackson@ximian.com>
16775
16776         * TextControl.cs: Remove RecalAlignments call, that was some
16777         debugging leftovers.
16778         - Don't use the line indent when we shouldn't.
16779         * RichTextBox.cs: Add support for paragraph left indents.
16780
16781 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16782
16783         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
16784         Seems like the class status pages doesn't catch params differences.
16785
16786 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
16787
16788         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
16789
16790 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
16791
16792         * ComboBox.cs: Setting Text should have no effect if item text of
16793         selected item exactly matches value. First lookup text using
16794         case-sensitive comparison, and fallback to case-insensitive comparison.
16795         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
16796         allow startIndex to be last index. Changed ArgumentOutOfRangeException
16797         paramname to match MS. Restart from first item if string is not found
16798         after startIndex. Fixed paramname of ArgumentNullException that is
16799         thrown for null value in ObjectCollection.Contains.
16800
16801 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
16802
16803         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
16804
16805 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16806
16807         * ListControl.cs: In SelectedValue use value.Equals to compare for
16808         equality instead of ==, otherwise it will fail for strings.
16809         Fixes #80794.
16810
16811 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16812         
16813         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
16814         since the caret won't show up unless ShowSelection is true. 
16815         Fixes #80795.
16816
16817 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16818
16819         * Application.cs: When disabling all forms but the main form, do not
16820           disable any descendants of the main form (such as mdi children or
16821           other parented forms). Fixes #80822 on Windows.
16822         * Form.cs: If we have a parent, set the WS_CHILD style.
16823         * Control.cs: Update the window styles if the control whose parent has
16824           changed is a form (the WS_CHILD style has to be switched).
16825
16826 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
16827
16828         * XplatUIStructs.cs: MsgUIState structure added.
16829
16830 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
16831
16832         * FileDialog.cs: Removed need for separate fileName field. On 2.0
16833         profile, do not check filename(s) for illegal character if filename(s)
16834         were set non-interactively but always check on 1.0 profile. Fixed NRE
16835          in DefaultExt and only strip off first leading dot. Improve exception
16836         message when invalid Filter is set. Do not ignore InitialDirectory if
16837         it does no exist. Store specified Title, and if empty use default
16838         title (depending on type of dialog). Added an internal DialogTitle 
16839         property for retrieving dialog title. Fixed logic of displayed dir to
16840         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
16841         string as its buggy.
16842         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
16843         FileName is a zero-length string (it can never be null). Override 
16844         DialogTitle property to set default title of dialog box.
16845         * SaveFileDialog.cs: Override DialogTitle property to set default
16846         title of dialog box.
16847
16848 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
16849
16850         * FileDialog.cs: Modify default text of filename and filetype labels
16851         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
16852         after we've updated the SelectedIndex. Fixes part of bug #80887.
16853         * SaveFileDialog.cs: Set text of filetype label.
16854
16855 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16856
16857         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
16858         label field. Needed by latest Jackson's fixes for ListView.
16859
16860 2007-02-16  Andreia Gaita  <avidigal@novell.com>
16861
16862         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
16863         print preview images.
16864
16865 2007-02-16  Jackson Harper  <jackson@ximian.com>
16866
16867         * ListView.cs: Make AfterLabelEdit work correctly.
16868         * FileDialog.cs: After changing the name of the folder, we have to
16869         make sure that it is created, or that we pop up an error because
16870         it already exists.
16871
16872 2007-02-16  Jackson Harper  <jackson@ximian.com>
16873
16874         * X11Dnd.cs: Implement aliases on mime handlers, so things like
16875         System.String are mapped to text.
16876         - Handle dataobjects, getting all the possible formats out of them
16877         - We dont need the drag event args before we give feedback. This
16878         allows feedback cursors to be immediate before selections have
16879         been converted.
16880
16881 2007-02-16  Jackson Harper  <jackson@ximian.com>
16882
16883         * TextBoxBase.cs: Modified the method for inserting images to
16884         taking a line and position instead of tag and position.
16885         * RichTextBox.cs: Handle PngBlip data by inserting the png image
16886         into the RTF file.
16887         * TextControl.cs: Allow images to be inserted as the first tag of
16888         a line.
16889         - Fix some off by one issues when we assume the first tag is a
16890         text tag, not an image tag.
16891
16892 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16893
16894         * ListView.cs: Set focus to ListView when ItemControl gets a
16895         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
16896         Fixes part of #80467.
16897
16898 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16899
16900         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
16901           validate Text input (if null or empty string reset Value to default
16902           value). Fixes #80830.
16903
16904 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16905
16906         * ListView.cs: Set owner as null for columns and items when
16907         Dispose is invoked. Fixes #80607.
16908
16909 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
16910
16911         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
16912         showing DropDowns, don't show a Grip when doing Flow layout.
16913         [This fixes the toolbox in PDN 2.72.]
16914         * ToolStripItem.cs: Add Anchor property and some internal properties to
16915         reduces needed changes to FlowLayout.
16916         * ToolStripOverflow.cs: Remove unused variable.
16917         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
16918         use it in the layout calculations.
16919
16920 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16921
16922         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
16923         reported in #79640.
16924         
16925         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
16926         size calculation.
16927
16928 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16929
16930         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
16931         MeasureString format, it can make button very large in some cases, it is
16932         strange but is what win32 do.
16933
16934 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16935
16936         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
16937         size calculation.
16938
16939         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
16940         rendering, the value is based on MenuAccessKeysUnderlined.
16941
16942 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16943
16944         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
16945         for most themes.
16946         
16947         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
16948         
16949         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
16950         and use MenuAccessKeysUnderlined instead.
16951
16952 2007-02-13  Andreia Gaita  <avidigal@novell.com>
16953
16954         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
16955         A selected control would not get a Focus call if:
16956                 - the default active control of the container is the same as
16957                   the one that was selected
16958                 - we are switching from one container to another
16959         Under these conditions, the container being selected already has
16960         an active_control, which is the same as the one being activated, 
16961         so set_ActiveControl would always return and not send the Focus
16962         call. Fix to check if the currently active control of the container
16963         is actually focused.
16964
16965 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
16966
16967         * StatusStrip.cs: Implement the spring layout.
16968         * ToolStripControlHost.cs: Make sure the hosted control's visibility
16969         always matches the host.
16970         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
16971         and TextAfterImage.
16972
16973 2007-02-13  Andreia Gaita  <avidigal@novell.com>
16974
16975         * Control.cs: Code reorganization only.
16976           - Reorganize the WndProc cases so that each case has it's own handling method, 
16977           to help with the no-line-numbering stack traces.
16978           - Formatting changes (it's vstudio's fault, really :p)
16979
16980 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16981
16982         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
16983           Thread.CurrentUICulture to match DateTimePicker's (and MS)
16984           behaviour.
16985
16986 2007-02-12  Jackson Harper  <jackson@ximian.com>
16987
16988         * RichTextBox.cs:
16989         * TextBox.cs: By default we have a non multiline document
16990         - use the multiline property instead of the internal variable
16991         * TextBoxBase.cs: Treat multiline and non multiline the same in
16992         most places.
16993         - Use the documents multiline flag instead of tracking it ourself
16994         * TextControl.cs: Attempt at getting multiline to match MS
16995         behavior.  Lines now track an offset, which is either their X or Y
16996         offset depending on whether or not we are in multiline mode.
16997         - Update all the methods to understand that lines have an X value.
16998         - Fix crash in Undo::Duplicate when empty lines are deleted.
16999
17000 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
17001
17002         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
17003         code moved to properties PreferredHeight and PreferredWidth. It solve the
17004         all problems when preferred sizes must be recalculated. Fixes #80801.
17005
17006 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
17007
17008         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
17009         font height when compatible_text_rendering is false. Partially fix #80801.
17010
17011 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
17012
17013         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
17014
17015 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
17016
17017         * Form.cs: Improved exception messages in ShowDialog.
17018
17019 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
17020
17021         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
17022         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
17023         if not set. Fixes bug #80764. Avoid accessing current_settings field
17024         directly.
17025
17026 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
17027
17028         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
17029         false.
17030
17031         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
17032         public in 2.0 and for easy maintenance and dont break compatibility it is 
17033         internal in 1.1.
17034         
17035 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
17036
17037         * ToolStripItem.cs: Implement using images from ImageList.
17038
17039 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17040
17041         * DateTimePicker.cs: Change default date-formatting culture from
17042           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
17043           seems to be the way MS does it.
17044
17045 2007-02-08  Andreia Gaita  <avidigal@novell.com>
17046
17047         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
17048         (the 6 was cut off on the right side)
17049
17050 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
17051
17052         * Form.cs: Tell MenuStrips to close when the form is clicked.
17053         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
17054         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
17055         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
17056         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
17057         support for Overflow, where items that do not fit are automatically
17058         reparented to a drop down menu.
17059         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
17060         Also: fixes bug #80747.
17061
17062 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17063
17064         * ComboBox.cs: Remove warning (unused code).
17065         * ScrollableControl.cs: Remove warning for 1.1 profile.
17066
17067 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17068
17069         * Form.cs: Remove a warning.
17070
17071 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17072
17073         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
17074           'g' specifier, not documented anywhere, but seems to always show up
17075           as a single space (might have something to do with the DateTime 'g'
17076           specifier, which is the era format, but since DateTimePicker can't
17077           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
17078           won't crash if the format has an unmatched quote. Now shows
17079           single-character formats correctly. Fixes #80744.
17080
17081 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
17082
17083         * StatusStrip.cs: Stretch property needs to call base.Stretch,
17084         not this.Stretch to fix stack overflow. [Fixes bug #80760]
17085
17086 2007-02-07  Chris Toshok  <toshok@ximian.com>
17087
17088         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
17089         background color.  it overwrites the background image we've
17090         already painted.  Fixes #80599.
17091
17092 2007-02-07  Chris Toshok  <toshok@ximian.com>
17093
17094         * DataGrid.cs: return immediately from Edit() when there are no
17095         columns.  Fixes #80662.
17096
17097 2007-02-07  Chris Toshok  <toshok@ximian.com>
17098
17099         * MessageBox.cs: fix #80625.  don't always show the Help button in
17100         2.0.  use the displayHelpButton parameter to determine if we
17101         should show it. Also, make the internal show_help field private.
17102
17103 2007-02-07  Chris Toshok  <toshok@ximian.com>
17104
17105         * Control.cs (SetVisibleCore): check in the proposed patch for
17106         80604, and set is_visible before calling CreateControl.
17107
17108 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
17109
17110         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
17111         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
17112         on it.
17113
17114 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
17115
17116         * MenuAPI.cs: hotkey_active internal field added, it is required because
17117         we need to know when hotkeys must be draw, before this change a keystate
17118         Navigating was used but we can have menu in navigating state without
17119         hotkeys. Fixes #80694.
17120         
17121         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
17122
17123 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17124
17125         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
17126           corresponding events and methods to be internal for 1.1 profile and
17127           public for 2.0 profile (required by SizeGrip).
17128         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
17129           implicit control list). Don't set the size nor the location of the
17130           SizeGrip anymore as it's not needed.
17131         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
17132           draw directly on the captured control (fixes #80656). Removed
17133           ShowGrip (it wasn't used anywhere), redraw (always true), added
17134           GetDefaultSize and GetDefaultRectangle to calculate defaults.
17135         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
17136           be called from SizeGrip.
17137
17138 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17139
17140         * Timer.cs: Throw ArgumentException if Interval <= 0.
17141
17142 2007-02-05  Jackson Harper  <jackson@ximian.com>
17143
17144         * TreeView.cs: We need to check scrollbar visibility when window
17145         visibility is updated, because non visible trees don't ever add
17146         scrollbars.
17147         * Cursor.cs: We want the override cursor to be reset to NULL when
17148         we set current cursor to the default cursor.
17149
17150 2007-02-05  Jackson Harper  <jackson@ximian.com>
17151
17152         * TextControl.cs: Don't have crlfs when we are non multiline.
17153         - Consolidate the line position.
17154
17155 2007-02-05  Jackson Harper  <jackson@ximian.com>
17156
17157         * X11Keyboard.cs: BACK+CTRL gets a special char code.
17158
17159 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17160
17161         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
17162           handling LeaveNotify->NotifyUngrab in order to send
17163           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
17164           after calling XUngrabPointer, so we call WindowUngrabbed directly
17165           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
17166         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
17167           MouseCaptureChanged correctly. Also create handles if changing
17168           Capture (matches MS behaviour).
17169
17170 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17171
17172         * SizeGrip.cs: Make the last change 2.0 only.
17173
17174 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17175
17176         * SizeGrip.cs: If resizing and the capture is lost, revert any size
17177           changes to initial size (fixes #80597).
17178
17179 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17180
17181         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
17182
17183 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17184
17185         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
17186           background) and only allow dragging if enabled. This way the
17187           sizegrip can be used to fill the open square that otherwise would
17188           have been shown in the bottom right corner of ScrollableControl
17189           when ScrollableControl is not suppose to support sizing.
17190         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
17191           sizegrip is shown and enabled, and hook up with necessary events.
17192
17193 2007-02-01  Chris Toshok  <toshok@ximian.com>
17194
17195         * DataGridTextBoxColumn.cs: clean up the
17196         GetFormattedString/GetColumnValueAtRow combination of functions.
17197         Also fix UpdateUI, and the initial state of
17198         IsInEditOrNavigateMode.
17199
17200         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
17201         aren't supposed to scroll the textbox here, we're supposed to
17202         scroll the datagrid.
17203
17204 2007-02-01  Chris Toshok  <toshok@ximian.com>
17205
17206         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
17207         setting the position.
17208
17209 2007-02-01  Chris Toshok  <toshok@ximian.com>
17210
17211         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
17212         here, since the most recent focus fixes keep us from generating
17213         the Leave event when our textbox gets focus.
17214         (Edit): we should be passing null for the column style's
17215         instantText parameter.
17216         
17217 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
17218
17219         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
17220         raised.  Fixes menu text/icons not showing up in PDN.
17221
17222 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17223
17224         * Control.cs: Remove code in constructor that makes every
17225         control with WS_CHILD set have initial location -1, -1.
17226
17227 2007-01-31  Jackson Harper  <jackson@ximian.com>
17228
17229         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
17230         XplatUIX11.
17231         * XplatUIX11.cs: Give teh keyboard to teh dnd.
17232
17233 2007-01-31  Jackson Harper  <jackson@ximian.com>
17234
17235         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
17236         - Remove some debug code.
17237
17238 2007-01-31  Jackson Harper  <jackson@ximian.com>
17239
17240         * XplatUIX11.cs: If you set the override cursor during a grab, it
17241         should actually override the grab cursor.  This comes into play
17242         when you are setting custom cursors in a DND feedback method.
17243
17244 2007-01-31  Jackson Harper  <jackson@ximian.com>
17245
17246         * X11Dnd.cs: Add support for handling the QueryContinue and
17247         GiveFeedback events.
17248         - Cancel drag and drop actions when the escape key is clicked.
17249         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
17250         can handle the ESCAPE key.
17251         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
17252         done when dnd events are continued after the button is released.
17253         - Add a new helper method so that dnd can translate key events.
17254
17255 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
17256
17257         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
17258         make it more obvious what is happening.
17259
17260 2007-01-30  Jackson Harper  <jackson@ximian.com>
17261
17262         * XplatUIX11.cs: Don't break when handling button release in drag
17263         and drop operations. We need that BUTTONUP message to get through
17264         so capture is released.
17265         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
17266         this is handled automatically when the mouse is down.
17267
17268 2007-01-30  Jackson Harper  <jackson@ximian.com>
17269
17270         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
17271         is closed, so we need to make sure that we aren't changing the
17272         dialog result when the OK (Open or Save) button has been clicked
17273         and we are closing the window ourselves.  Note we don't need to
17274         worry about the cache being written in this case, because it was
17275         already done in the previous FilOk call.
17276
17277 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17278         
17279         * DateTimePicker.cs: Remove a warning.
17280         * ComboBox.cs: Remove a couple of warnings.
17281
17282 2007-01-29  Chris Toshok  <toshok@ximian.com>
17283
17284         * XplatUIX11.cs: don't crash, and remove the icon if the user has
17285         set one, if SetIcon is passed a null icon.
17286
17287 2007-01-29  Andreia Gaita  <avidigal@novell.com>
17288
17289         * TextBox.cs: Redraw when the password characters changes
17290         * TextControl.cs: Check if textbox has a password char and draw 
17291         a line of password chars instead of the text in the line. LineTag gets 
17292         an extra Draw() method which allows document.Draw to override the text 
17293         that will be drawn. Removes 1024 char limitation on length of passworded 
17294         lines.
17295
17296 2007-01-29  Jackson Harper  <jackson@ximian.com>
17297
17298         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
17299         single chars is not.
17300
17301 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
17302
17303         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
17304         one pixel.  Fix a StackOverflowException caused by an overload wrongly
17305         calling itself.
17306
17307 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
17308
17309         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
17310         also remove ProcessArrowKey and put the code inside ProcessKeys.
17311
17312 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
17313
17314         * PaddingConverter.cs: Added.
17315
17316 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17317         
17318         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
17319         ShowPanels is false (fixes #80600). Only draw up to 127 characters
17320         of text (fixes #80601). For panels clip the text to draw to the
17321         panel (fixes #80603).
17322
17323 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17324
17325         * ComboBox.cs: Fixed implementation of ResetText.
17326
17327 2007-01-25  Jackson Harper  <jackson@ximian.com>
17328
17329         * TextControl.cs: For the last char of a line we need to use the
17330         line size, not that chars width, since it won't actually be
17331         computed since the right side of a char is based on the start of
17332         the left side of the next char, and the next char does not exist.
17333
17334 2007-01-25  Chris Toshok  <toshok@ximian.com>
17335
17336         * Splitter.cs: fix the new unit tests, and reindent some switch
17337         statements.
17338
17339 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17340
17341         * ComboBox.cs: Implemented 2.0 methods and events.
17342         * TextBoxBase.cs: Added OnTextUpdate, so that
17343         ComboBox.ComboTextBox can inform ComboBox of it.
17344
17345 2007-01-25  Jackson Harper  <jackson@ximian.com>
17346
17347         * TextControl.cs: Respect ShowSelection when deciding whether or
17348         not to display the caret, this allows comboboxes to have carets
17349         when the combotextbox does not have focus.
17350
17351 2007-01-25  Jackson Harper  <jackson@ximian.com>
17352
17353         * TextControl.cs: Add a Suspend/Resume for updating, basically the
17354         same as the Suspend/Resume for recalc, except this will do actual
17355         Invalidates.
17356         - New Undo manager, works much like the MS version.
17357         - Implemented Redo
17358         * TextBoxBase.cs: The Cut operation is undoable.
17359
17360 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17361         
17362         * TextBoxBase.cs: Don't antialias text. Makes it look way better
17363         on Windows (no difference on Linux).    
17364
17365 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17366
17367         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
17368         we don't want to activate any windows. Fixes #79433.
17369
17370 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
17371
17372         - ButtonBase.cs: Fix capitalization of parameter: disposing.
17373         [Fixes bug #80609]
17374
17375 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
17376
17377         * FileDialog.cs:
17378         - Move to using System.ComponentModel.EventHandlerList
17379         - Replace Refresh with Invalidate
17380         - Clear the mime filecache on closing
17381         - Some other memory reducing work. After beeing closed FD now uses
17382           only about 300 KB for the fdo mime stuff plus the memory of the
17383           cached icons.
17384         * Mime.cs: Changed coding style and removed unnecessary commented
17385         code. Some more memory memory reducing work.
17386
17387 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17388
17389         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
17390         a few other missing 2.0 properties.
17391         * Theme.cs: Added DrawFlatStyleComboBox.
17392         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
17393
17394 2007-01-24  Chris Toshok  <toshok@ximian.com>
17395
17396         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
17397         wake_waiting flag, not just when there's data to be read.  if we
17398         don't, then future wakeup's won't reach us and we'll be doomed to
17399         wait for the entire 1 second timeout forever (unless there are X
17400         events to be had).
17401
17402 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
17403
17404         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
17405         until you pass Items.Count, not Items.Count - 1 like 1.1.
17406
17407 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
17408
17409         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
17410
17411 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
17412
17413         * ToolStripContainer.cs: The recent Dock fix exposed that I was
17414         adding the panels in the wrong order.
17415
17416 2007-01-24  Jackson Harper  <jackson@ximian.com>
17417
17418         * TextBoxBase.cs: When we move the caret we also need to move the
17419         selection, this fixes some random crashing after doing select
17420         text, unselect, delete a char, paste.
17421
17422 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17423
17424         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
17425
17426 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
17427
17428         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
17429         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
17430         * ToolBar.cs: Force redraw in BackgroundImageChanged.
17431
17432 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
17433
17434         * ToolBar.cs:
17435         - Implement support for vertical toolbars. Fixes #80539;
17436         - Call LayoutToolBar when resize, it fix some other problems in layout.
17437         - Rename requested_height to requested_size, as we can have width on it
17438         when toolbar is vertical.
17439         - Create a private property "Vertical" that uses Dock to verify when 
17440         toolbar is vertical or not.
17441         - Set ControlStyles when change Dock property.
17442         - Refactory in LayoutToolBar to have better variables names and to support
17443         vertical toolbars.
17444         - Fixes default value for ButtonSize when button count is equal zero, size
17445         must be (39, 36) test case writed.
17446
17447 2007-01-23  Chris Toshok  <toshok@ximian.com>
17448
17449         * Control.cs: fix the checks so that they work correctly for mdi
17450         parents/children.
17451
17452 2007-01-23  Chris Toshok  <toshok@ximian.com>
17453
17454         * Control.cs: ControlCollection seems to have super-secret
17455         abstraction breaking knowledge of Mdi containers.  allow MdiClient
17456         to add toplevel controls.
17457
17458 2007-01-23  Chris Toshok  <toshok@ximian.com>
17459
17460         * Control.cs: throw an ArgumentException if a toplevel control is
17461         added to our control collection from ControlCollection.Add, as
17462         well as from ControlCollection.IList.Add.  This fixes the
17463         ControlSetTopLevelTest.TestTopLevelAdd unit test.
17464
17465         Also, in ControlCollection.IList.Add, don't through an
17466         ArgumentNullException, throw an ArgumentException, when value ==
17467         null.  This matches MS.
17468
17469 2007-01-23  Chris Toshok  <toshok@ximian.com>
17470
17471         * BindingSource.cs: initial, incomplete, implementation of
17472         BindingSource.
17473
17474 2007-01-23  Jackson Harper  <jackson@ximian.com>
17475
17476         * TextControl.cs:
17477         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
17478         that I can fix a broken unit test (TextBoxTest::ClearUndo)
17479         
17480 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
17481
17482         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
17483
17484 2007-01-23  Andreia Gaita  <avidigal@novell.com>
17485
17486         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
17487         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
17488         IndexOfKey() for 2.0
17489
17490 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17491
17492         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
17493         to prevent it from changing z-order.
17494         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
17495         leave UI updates in MdiWindowManager.
17496         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
17497         1 sized (NC handling goes weird on Linux otherwise).
17498         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
17499         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
17500         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
17501         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
17502         and SetWindowState(s) to allow for changing the size of an activated child
17503         before activating it (reduces a lot of flicker).
17504
17505 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
17506
17507         * Form.cs: Changing FormBorderStyle has different semantics based
17508         on whether the Form is visible or not.  If not visible, don't change
17509         the Size.  But InvalidateNC needs to be called to force the window
17510         to pick up the changes and redraw itself.  [Fixes bug #80574]
17511
17512 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
17513
17514         [Moma work]
17515         * ContainerControl.cs: ProcessCmdKey.
17516         * ErrorProvider.cs: new constructor.
17517         * Form.cs: fix AutoValidateEvent compiler warning.
17518         * Label.cs: fix OnAutoSizeChanged compiler warning.
17519         * MenuStrip.cs: fix CanOverflow compiler warning.
17520         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
17521         * TextBox.cs: Dispose.
17522         * ToolStrip.cs: CanOverflow, re-enable double buffering.
17523         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
17524         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
17525         * ToolStripItem.cs: Overflow, RightToLeft properties.
17526
17527 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17528
17529         * Form.cs: Move the layout of the main form to MdiWindowManager.
17530         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
17531         do a layout of the main window to update MdiClient's client area to
17532         the right area. Fixes #80533. Remove the calculation of nc size, 
17533         it was just wrong and the correct one is the same as for 
17534         InternalWindowManager. 
17535
17536 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
17537
17538         * Control.cs: Setting Anchor or Dock needs to reset the other
17539         to its default.  [Fixes bug #80556]
17540
17541 2007-01-20  Chris Toshok  <toshok@ximian.com>
17542
17543         * CheckedListBox.cs: class status changes.
17544
17545         * ScrollableControl.cs: same.
17546
17547         * RichTextBox.cs: same.
17548
17549         * ContainerControl.cs: same.
17550
17551         * ListView.cs: same.
17552
17553         * NotifyIcon.cs: same.
17554
17555         * MenuStrip.cs: same.
17556
17557         * RadioButton.cs: same.
17558
17559         * CheckBox.cs: same.
17560
17561         * PrintPreviewDialog.cs: same.
17562
17563         * Form.cs: same.
17564
17565 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
17566
17567         * TreeNode.cs: Apply Alan's patch for Name property.
17568
17569 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17570         
17571         * Form.cs: Implemented SizeGripStyle.
17572         * SizeGrip.cs: Check for minimum and maximum size for the
17573         control being resized and only resize if size has actually
17574         changed.
17575
17576 2007-01-19  Chris Toshok  <toshok@ximian.com>
17577
17578         * DataGridColumnStyle.cs: stop setting _readonly in the
17579         PropertyDescriptor setter.  fixes a unit test failure.
17580
17581         also, rename ParentReadOnly to TableStyleReadOnly, and have it
17582         just consult our table style (if we have one).  We don't need to
17583         consult the datagrid readonly attribute because that's passed in
17584         as the _ro arg to Edit.  this simplifies things a little.
17585         
17586         * DataGrid.cs: use CurrentColumn instead of
17587         current_cell.ColumnNumber just to simplify some of the code.
17588
17589         switch the order of some things in the CurrentCell setter to keep
17590         the previous cell from getting a textbox again -
17591         EnsureCellVisibility causes scrolling to happen, which calls Edit.
17592         So we need to set the new cell before calling it.
17593         
17594         call Edit in OnEnter, as does Microsoft.
17595         
17596         also, make sure the current table style isn't the one we create
17597         initially when checking to see if it's different than the one
17598         we're setting it to in BindColumns (this fixes #80421).
17599
17600         * GridTableStylesCollection.cs: table styles can have "" for a
17601         mapping name.  part of the fix for #80421.
17602
17603         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
17604         Edit significantly.
17605
17606 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17607
17608         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
17609         and less GDI object leaky-er.
17610
17611 2007-01-18  Andreia Gaita  <avidigal@novell.com>
17612
17613         * LinkLabel.cs: Add opaque control style
17614
17615 2007-01-18  Jackson Harper  <jackson@ximian.com>
17616
17617         * TextControl.cs: Calculate width properly.
17618         - Don't store the tag's X offset, this can be figured out very
17619         easily.
17620         - When getting the caret tag make sure to get the last empty tag.
17621
17622 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17623
17624         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
17625         [Fixes bug #79959]
17626
17627         * Control.cs: Color.Empty shouldn't count for previous transparent
17628         redraw changes.
17629
17630 2007-01-18  Jackson Harper  <jackson@ximian.com>
17631
17632         * TextBox.cs:
17633         * RichTextBox.cs:
17634         * TextControl.cs: Starting to merge in some pieces of my older
17635         undo work.  Basically just some slight cleanup of the undo API.
17636
17637 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17638
17639         * TrackBar.cs: Fix signature of RightToLeftLayout.
17640         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
17641         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
17642         * Application.cs: Implemented UseWaitCursor.
17643
17644 2007-01-18  Jackson Harper  <jackson@ximian.com>
17645
17646         * TextControl.cs: We can't skip tags if any part of the tag is
17647         visible.
17648
17649 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17650
17651         * ContainerControl.cs: Override OnLayout.
17652
17653 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17654
17655         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
17656
17657         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
17658         everything else.
17659
17660 2007-01-18  Chris Toshok  <toshok@ximian.com>
17661
17662         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
17663         (leftover from the container_selected days, I'd wager).  fixes bug
17664         #80546.
17665
17666 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17667
17668         * Control.cs: Apply patch from George to fix the new testcase on
17669         bug #80451.  We can't just check for Color.Transparent, we need 
17670         to check if the back color's alpha channel is < 255.
17671
17672 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17673
17674         * Form.cs: Move setting show_icon = true to before the constructor
17675         so that the base constructor has that information when it calculates
17676         the form's size.  Was causing forms to be (6, 6) bigger than they
17677         were supposed to be.  Thanks for catching this Rolf!
17678
17679 2007-01-18  Jackson Harper  <jackson@ximian.com>
17680
17681         * TextControl.cs: When replacing a selection we need to invalidate
17682         from the initial selection start, because selection start is moved
17683         to the end of the replacement.
17684
17685 2007-01-18  Andreia Gaita  <avidigal@novell.com>
17686
17687         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
17688
17689 2007-01-18  Chris Toshok  <toshok@ximian.com>
17690
17691         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
17692         I just added.
17693
17694 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
17695
17696         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
17697         layout methods and properties from ToolBarButton must be available
17698         into ToolBarButtonInfo.
17699
17700 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
17701
17702         * Control.cs: If the control has a transparent background, we
17703         need to refresh it when it moves and when it's parent's background
17704         image changes.  [Fixes bug #80451]
17705
17706 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
17707
17708         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
17709
17710 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
17711
17712         * XplatUIWin32.cs: Implement proper double buffering for Windows.
17713         [Fixes bug #80447, and probably speeds up things as well]
17714
17715 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17716
17717         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
17718         * XplatUIWin32.cs: We need to recalculate NC size after changing 
17719         window style to toolwindow (otherwise the client rectangle will be
17720         3 pixels to small for some reason).
17721         * MdiWindowManager.cs: Revert NC size calculations to match how
17722         they are calculated only based on window styles (to match
17723         Win32AdjustWindowRectEx, since otherwise when setting size or 
17724         location, Control will call Win32AdjustWindowRectEx to update client 
17725         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
17726         calculate a different value of client size causing another paint 
17727         (and flickering))
17728         * InternalWindowManager.cs: When moving or resizing a window only
17729         update size or location if they actually changed.
17730         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
17731         (seems to match Windows behaviour better). Cleaned up 
17732         ManagedWindowDecorations to draw what's needed and nothing else
17733         (was drawing borders and lines where they shouldn't be)
17734         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
17735         (style = 0xFFFF) and takes into account caption height when 
17736         calculating window rectangle.   
17737
17738 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
17739
17740         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
17741         can be added to toolbar multiple times, we need to maintain a list of 
17742         button information for each positions.
17743
17744 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
17745
17746         * ToolBar.cs: Some small stetic changes.
17747
17748 2007-01-16  Jackson Harper  <jackson@ximian.com>
17749
17750         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
17751         that allow us to have nested recalc = false blocks.
17752         - Add paste support for images in the RichTextBox
17753         * RichTextBox.cs: flush the text after the color is changed, so
17754         the change takes effect.
17755         - Use SuspendRecalc
17756         - Some extra debugging info
17757         * TextControl.cs: Tags no longer track their length, it is just
17758         computed from the next tags length, this makes things a little
17759         simpler and reduces places that we have to track length changes.
17760         - Refactored the linetag class a little so we could make it
17761         a base class for different kinds of tags
17762         - Created a image tag, a tag that can have a single image inserted
17763         into it
17764         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
17765         that we can call suspend multiple times.
17766         - Add some debugging methods
17767
17768 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17769
17770         * MdiClient.cs: Add ActivatePreviousChild for 
17771         mdi child window navigation.
17772         * Form.cs: Use MdiClient.ActivateNextChild/
17773         ActivatePreviousChild instead of Form.SelectNextControl
17774         to select the next/previous child since 
17775         SelectNextControl doesn't do it in the same order
17776         as mdi children should do it.
17777
17778 2007-01-16  Chris Toshok  <toshok@ximian.com>
17779
17780         * Control.cs: remove container_selected field.
17781
17782 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17783
17784         * MdiClient.cs: Update main form's ActiveChild when
17785         updating keyboard focus for the mdi child.
17786
17787 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
17788
17789         * Control.cs: PreferredSize fix.
17790
17791         * Form.cs: Add several 2.0 events, properties, and methods.
17792
17793 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
17794
17795         * Form.cs: Provide meaningful message when MdiParent is assigned a
17796         Form that is not an MdiContainer.
17797
17798 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17799
17800         * MdiClient.cs: Update main form's ActiveChild when
17801         activating a mdi child.
17802
17803 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17804
17805         * MdiWindowManager.cs: Fix NRE when merging menus and main form
17806         doesn't have a menu.
17807
17808         * Form.cs: Request NCRecalc after creating a mdi child window.
17809         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
17810         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
17811         
17812         * MdiClient.cs: Add new method SendFocusToActiveChild that either
17813         sends keyboard focus to the active child, or to the MdiClient
17814         if there are no child forms.
17815         
17816 2007-01-15  Chris Toshok  <toshok@ximian.com>
17817
17818         * ListView.cs: drop the *Internal overrides, just do our work in
17819         ItemControl's WndProc instead.
17820
17821         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
17822         of the various controls, and forward the events properly (in the
17823         same manner as MS) from the textbox to the UpDown.  Also the
17824         ActiveControl of the UpDownBase gets set properly now.  Finally,
17825         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
17826
17827         * NumericUpDown.cs: set Text in the ctor.
17828
17829         * DomainUpDown.cs: call UpdateEditText in the ctor.
17830         
17831         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
17832         so even a Selectable = false textbox can be focused if you click
17833         in it.  Go figure.
17834
17835         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
17836         just add their handling in their respective WndProc's.  Also add
17837         an explicit FocusInternal method that doesn't consult CanFocus
17838         before calling Select(this).
17839
17840         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
17841         do our work in WndProc instead.
17842
17843         * TabControl.cs: same.
17844
17845         * ComboBox.cs: same.
17846
17847 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
17848
17849         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
17850         Fixes #80006.
17851
17852 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17853
17854         * ListViewItem.cs:
17855         * ThemeWin32Classic.cs: Don't draw the item text outside
17856         item bounds in Details view, as well as use trimming.
17857         Fixes bug #80376.
17858
17859 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
17860
17861         * Form.cs: Implement Form.ShowIcon.
17862         
17863         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
17864         null, which when combined with the DlgModalFrame window style removes
17865         the icon from the title bar.
17866
17867 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
17868
17869         * Control.cs: Call OnMouseClick after OnClick. (2.0)
17870
17871 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
17872
17873         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
17874         menu when mdi child windows theres a menu, uses insert to get icon
17875         at first position. Partially fix #80006.
17876
17877 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
17878
17879         * Clipboard.cs: Implement 2.0 methods.
17880
17881 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
17882
17883         * Menu.cs: Implement Insert method of MenuItemCollection class
17884         to fix MenuMerge.
17885
17886 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17887
17888         * ListView.cs: Implement 2.0 FindItemWithText method.
17889
17890 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
17891
17892         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
17893         to calculate menu bar size. Fixes #80290.
17894
17895 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
17896
17897         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
17898
17899 2007-01-11  Chris Toshok  <toshok@ximian.com>
17900
17901         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
17902         initial form.
17903
17904 2007-01-11  Chris Toshok  <toshok@ximian.com>
17905
17906         * LinkLabel.cs: make sure to call base.Select in our Select method
17907         if it turns out we're going to be selected (i.e. if we have a link
17908         that is going to receive focus).  That way our container's
17909         ActiveControl is updated properly.
17910
17911 2007-01-11  Chris Toshok  <toshok@ximian.com>
17912
17913         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
17914         they have 1 or more links.  this fixes the crash gert reported.
17915
17916 2007-01-11  Andreia Gaita  <avidigal@novell.com>
17917
17918         * ContainerControl.cs: Remove ContainerSelected flag, not needed
17919         anymore.
17920
17921         * Control.cs (Controls.Add): Check if control to be added to the collection
17922         is a top level control, and throw an ArgumentException if it is.
17923         Remove ContainerSelectedFlag, not needed anymore.
17924
17925         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
17926         top most control doesn't activate the form. This fixes a problem in the
17927         MessageBox, where the default button wouldn't get focus because the form
17928         was activated before being Loaded - when the Owner is set, SetTopMost is
17929         called, and it would activate it.
17930
17931 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
17932
17933         * Button.cs: When clicked and setting the parent form's DialogResult,
17934         use FindForm instead of Parent, since parent could be a container
17935         control and not the Form.  Fixes bug #80495.
17936
17937 2007-01-10  Chris Toshok  <toshok@ximian.com>
17938
17939         * Form.cs: move the call to SendControlFocus into the same
17940         is_loaded check.
17941
17942 2007-01-10  Chris Toshok  <toshok@ximian.com>
17943
17944         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
17945         It breaks in the face of the new ActiveControl stuff, and should
17946         be unnecessary.
17947
17948         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
17949         activecontrol's focus if it's not already set, after we set
17950         ActiveControl, but before we call OnActivated.  Re-fixes #79667
17951         after the previous focus/active control fixes regressed it.
17952
17953         * Control.cs: reindent some code.
17954         
17955 2007-01-10  Chris Toshok  <toshok@ximian.com>
17956
17957         * Splitter.cs: clearing some outstanding changes from my tree.
17958         Replace all accesses (not writes) to the internal dock_style field
17959         with the Dock property.
17960
17961 2007-01-10  Chris Toshok  <toshok@ximian.com>
17962
17963         * Control.cs: make FireEnter, FireLeave, FireValidating, and
17964         FireValidated virtual.
17965
17966         * Form.cs: override and don't chain up calls to FireEnter and
17967         FireLeave.
17968
17969 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17970
17971         * ListView.cs: Add more text padding space when using
17972         auto resize for columns (the previous value didn't work fine).
17973
17974         * ThemeWin32Classic.cs: Update text position inside columns,
17975         to match the appeareance of .Net.
17976
17977         * ColumnHeader.cs: When using auto resize, only the Width should
17978         depend on the sub items, not the Height. Also, set width after
17979         auto resizing (the value of Width should never remain as -1 or -2).
17980
17981 2007-01-10  Chris Toshok  <toshok@ximian.com>
17982
17983         * Application.cs: fix compilation errors when debug is enabled.
17984
17985 2007-01-10  Chris Toshok  <toshok@ximian.com>
17986
17987         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
17988         add some nice ascii art pictures and explanation of the process).
17989         (GetMostDeeplyNestedActiveControl): new utility function we need
17990         because our ActiveControl can refer to a child container with its
17991         own ActiveControl.
17992
17993         * Form.cs (OnActivated): remove the call to SelectActiveControl
17994         from here, since you can override this method and not chain up,
17995         and winforms still sets the active control.
17996         (OnCreateControl): also remove the unnecessary SelectActiveControl
17997         call from here.
17998         (WndProc): it's actually called from the WM_ACTIVATE block, just
17999         before calling OnActivated.
18000
18001         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
18002         inside the else.  the ActiveControl setter will end up setting
18003         focus on @control.  This keeps us from setting it again (and
18004         generating an extra LostFocus/GotFocus pair).
18005         (Select (bool, bool)): reindent.
18006
18007 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
18008
18009         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
18010         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
18011         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
18012         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
18013         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
18014         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
18015         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
18016         ToolStripTextBox.cs: Another wave of corcompare work.
18017
18018 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18019
18020         * ColumnHeader.cs: Implement 2.0 AutoResize method using
18021         the Width property.
18022
18023         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
18024         methods by callling Column.AutoResize method on columns.
18025
18026 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
18027
18028         * Control.cs: Provide proper implementations of PreferredSize
18029         and GetPreferredSize (2.0).
18030
18031 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
18032
18033         * Form.cs: Remove one character (!) to make my previous OnClosing
18034         stuff work for modal windows like MessageBox.
18035
18036 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18037
18038         * ListView.cs:
18039         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
18040         ListView.Columns to get the last displayed column. Fixes #80452.
18041
18042 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
18043
18044         * Label.cs, LinkLabel.cs: Source code identation fixes.
18045
18046 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
18047
18048         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
18049         we dont need to invalidate only borders because when we invalidate four
18050         border lines the invalidate's generates a complete redraw of button, 
18051         because it now invalidate a complete rect some other redraws operations
18052         are fixed. Fixes #80196.
18053         
18054         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
18055         Remove ToolBarInvalidateEntireButton as it is not used.
18056
18057 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
18058         
18059         * Form.cs: Make sure that both OnClosing and OnFormClosing are
18060         called for 2.0 profile.
18061         * CloseReason.cs: Make class internal for 1.1.
18062
18063 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
18064
18065         * ToolStripManager.cs: Implement FindToolStrip functionality.
18066         * ToolStrip.cs: Register and unregister with ToolStripManager.
18067
18068 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
18069
18070         * Control.cs: This was messy.  2.0 moves much of ControlCollection
18071         to ArrangedElementCollection.  Implemented this with as few #if's as 
18072         possible (which is still too many).
18073
18074 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
18075
18076         * Control.cs: Implement SizeFromClientSize() [2.0].
18077
18078 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
18079
18080         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
18081         use Theme.BorderSize to calculate area instead of static value 1, 
18082         by the way use new BorderStaticSize instead     Border3DSize when 
18083         border_static is true. Fixes #79537.
18084         
18085         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
18086         
18087         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
18088         it is not needed.
18089
18090 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
18091
18092         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
18093
18094 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
18095
18096         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
18097         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
18098         
18099         * Hwnd.cs: 
18100         - border_static field added, it will used to define when a control 
18101         theres 3D border but it must be static (thin).
18102         - In GetWindowRectangle use Theme.BorderSize to calculate area 
18103         instead of static value 1, by the way use new BorderStaticSize instead
18104         Border3DSize when border_static is true.
18105
18106         * XplatUIX11.cs, XplatUIOSX.cs: 
18107         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
18108         
18109         * Theme.cs: BorderStaticSize field added.
18110
18111 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
18112
18113         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
18114
18115 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
18116
18117         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
18118         mimic same behavior than win32 that set border only in CreateParams,
18119         it fix problems under CreateParams overrides. Fix #79442 and partial
18120         fix #79537.
18121         
18122         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
18123         of thi control you must call recreate handle. 
18124         
18125         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
18126         need to do anything as RecreateHangle will take care about borders.
18127
18128 2007-01-05  Mike Kestner  <mkestner@novell.com>
18129
18130         * ListView.cs: hack to eliminate Lost/Got focus notifications on
18131         cycles between the ItemControl and parent.  Fixes #80388.
18132
18133 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
18134
18135         * Control.cs: Lazy init layout engine. Do not directly use 
18136         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
18137
18138 2007-01-05  Chris Toshok  <toshok@ximian.com>
18139
18140         * DataGrid.cs: don't forceably rebind columns in SetDataSource
18141         unless our list manager has changed (i.e. unless we have reason to
18142         believe our columns have changed).  Fixes #80422.
18143         
18144         also, disable the call do BindColumns in
18145         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
18146         1.1 the event isn't raised in response to a column addition on a
18147         table.)
18148
18149 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
18150
18151         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
18152         that inheritors can not call it if they choose.  Fixes bug #80456.
18153
18154 2007-01-05  Andreia Gaita  <avidigal@novell.com>
18155
18156         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
18157         doesn't blow up with a null exception on marshalling.
18158         
18159 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
18160
18161         * Control.cs: Implement several 2.0 protected properties and methods.
18162         Ensure that all necessary events are being called when properties
18163         are set.
18164
18165 2007-01-05  Mike Kestner  <mkestner@novell.com>
18166
18167         * ListView.cs: implement PgUp/PgDn for Details view.  Also
18168         fixes First/LastVisibleIndex to use the item_control.ClientRect 
18169         instead of the parent control.  Fixes #80378.
18170
18171 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
18172
18173         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
18174           determine whether to use yard-pound or not (bug #78399).
18175
18176 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
18177
18178         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
18179         problems. So it is time to bring back the old popupbutton colors.
18180
18181 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18182
18183         * ColumnHeader.cs:
18184         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
18185         property by using the internal information of the
18186         columns order in ListView.
18187
18188 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
18189
18190         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
18191         Add 2.0 Tag properties.
18192
18193         * LinkArea.cs: Add 2.0 ToString method.
18194
18195 2007-01-03  Chris Toshok  <toshok@ximian.com>
18196
18197         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
18198         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
18199         when we're editing, which fixes #80047.
18200
18201 2007-01-03  Chris Toshok  <toshok@ximian.com>
18202
18203         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
18204         #80404.
18205
18206 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
18207
18208         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
18209         property and implementation.
18210
18211         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
18212         for MdiWindowListItem property.
18213
18214         * ToolStripDropDown.cs: Don't consider hidden menu items while
18215         laying out the menu.
18216
18217 2007-01-03  Andreia Gaita  <avidigal@novell.com>
18218
18219         * SendKeys.cs: window handle is not needed in win32, so just
18220         get the active window for X after parsing keys and don't use
18221         it when building the message; it is passed by parameter to the 
18222         Xplat method and used there to build the message instead. Also,
18223         wait for events to be processed on SendWait, as opposed to Send,
18224         which doesn't wait :) Playing with threads and Send() completely 
18225         hangs on ms.net, only SendWait() works.
18226         
18227         XplatUIX11.cs
18228         X11Display.cs: Check for valid window handle.
18229
18230 2007-01-03  Jackson Harper  <jackson@ximian.com>
18231
18232         * TextControl.cs: Need to prevent wrap calculations when replacing
18233         text (this was there before i removed it accidently).
18234         - Don't update the cursor during the positioning, just set it to
18235         selection_start at the end of the operaion.
18236
18237 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18238
18239         * Control.cs:
18240         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
18241         
18242 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18243
18244         * MonthCalendar.cs: Added Click and DoubleClick events again,
18245         but this time they only hide Control's Click and DoubleClick.
18246         
18247 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
18248
18249         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
18250         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
18251
18252 2007-01-02  Jackson Harper  <jackson@ximian.com>
18253
18254         * TextBoxBase.cs: We move the caret with the split now, so we
18255         don't need to explicitly move the caret after splitting.  This
18256         fixes the caret bumping down an extra line on Enter.
18257
18258 2007-01-02  Miguel de Icaza  <miguel@novell.com>
18259
18260         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
18261         2.72). 
18262
18263         * ScrollableControl.cs: Add Scroll event.
18264
18265 2007-01-02  Mike Kestner  <mkestner@novell.com>
18266
18267         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
18268         to fix all hdr height padding codepaths.  Fixes #80207.
18269
18270 2007-01-02  Chris Toshok  <toshok@ximian.com>
18271
18272         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
18273         setting it to the Control defaults anyway, and it being after the
18274         Dock set was screwing up layout.
18275         (set_Dock): don't short circuit out of setting base.Dock.  Also,
18276         no need to call UpdateStatusBar here, as it'll be re-layed out if
18277         it needs to be.
18278
18279 2007-01-02  Mike Kestner  <mkestner@novell.com>
18280
18281         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
18282         to header height for width == -1. Fixes the rest of #80207.
18283
18284 2007-01-02  Mike Kestner  <mkestner@novell.com>
18285
18286         * ListView.cs: rework the mouse event forwarding everaldo added
18287         to translate the coordinates to the parent control not
18288         raise the parent events until after we've done our work. Hover
18289         needs more work, in the case where HoverSelection is on, because
18290         the item control receives more than one MouseHover per Enter
18291         event, so we need to ensure only the "first" hover gets forwarded.
18292         Opening a minor bug for that.
18293
18294 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
18295
18296         * CheckedListBox.cs: Fixed SelectionMode to match MS.
18297         * ListControl.cs: Implemented AllowSelection property. Removed extra
18298         tabs.
18299         * ListBox.cs: Implemented AllowSelection property.
18300
18301 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18302
18303         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
18304         SelectedItem, it prevent for errors when you must disable item
18305         before perform click. Fixes #80409.
18306
18307 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18308
18309         * MenuAPI.cs: Prevent second level and beyond submenus to close
18310         until first level when move out side of popup.
18311         
18312 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18313
18314         * MenuAPI.cs:
18315         - Down submenu positin in three pixels.
18316         - Closes sub menu when mouse leaves from menu. Fixes #80402.
18317
18318 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18319
18320         * ThemeWin32Classic.cs:
18321         - Fix popup menu size adding one pixel on the top.
18322         - Down menu item border from two to one to mimic Win32.
18323         - Some source identation fixes. 
18324
18325 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
18326
18327         * ThemeWin32Classic.cs: Use float numbers to calculate size and
18328         position of menu arrows, it fix wrong arrow size.
18329
18330 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
18331
18332         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
18333         instead of line, it simplify draw operation and fix it using 3D
18334         borders to mimic Win32.
18335
18336 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
18337
18338         * StatusStrip.cs: Add implementation of the sizing grip.
18339
18340         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
18341         StatusStrip rendering.
18342
18343 2006-12-31  Chris Toshok  <toshok@ximian.com>
18344
18345         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
18346         override the layout style (anchor/dock) of the control.  assign to
18347         Dock instead.  Fixes bug #80416.
18348
18349         * ToolStrip.cs: same.
18350
18351 2006-12-31  Andreia Gaita  <avidigal@novell.com>
18352
18353         * ContainerControl.cs: Use ContainerSelected flag to check if 
18354         a Container is directly selected, or if Select is called on a 
18355         non-container. If a container is directly selected, focus events 
18356         should not be raised.
18357         Apply #80411 patch to throw exception on set_ActiveControl if 
18358         control is the same as the current one.
18359         
18360         * Control.cs: Use ContainerSelected flag (see above).
18361         Add invalidation check to raise event but not invalidate if 
18362         dimensions are 0.       
18363         Apply #80411 patch.
18364         
18365
18366 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
18367
18368         * MenuAPI.cs: After click, dont close popup menu when menu is
18369         ContextMenu. Fixes #80399.
18370
18371 2006-12-30  Chris Toshok  <toshok@ximian.com>
18372
18373         * ContainerControl.cs: make sure we throw the exception if the
18374         container control doesn't contain the control we're setting
18375         ActiveControl to.
18376
18377 2006-12-30  Chris Toshok  <toshok@ximian.com>
18378
18379         * Control.cs (SetTopLevel): fix the exception raised by
18380         SetTopLevel for child controls.
18381         (set_Anchor): call UpdateDistances when setting the anchor type.
18382         This fixes bug #80336.
18383
18384 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
18385
18386         * Theme.cs: For now, revert back to 8pt font.
18387
18388 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
18389
18390         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
18391         Fixes #80395.
18392
18393 2006-12-29  Chris Toshok  <toshok@ximian.com>
18394
18395         * Control.cs: reorder the code in OnResize to give the same event
18396         ordering as MS.
18397
18398 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18399
18400         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
18401         TileHorizontally and TileVertically.
18402         
18403 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
18404
18405         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
18406         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
18407         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
18408         Corrected copyright and email adress.
18409
18410 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
18411
18412         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
18413         of Exception in FullPath property if no TreeView is associated with
18414         the TreeNode.
18415
18416 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
18417
18418         * Theme.cs: Marked default_font as private, and initialize it in ctor
18419         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
18420         on 2.0 profile.
18421         * ThemeGtk.cs: Removed default_font intialization.
18422         * ThemeWin32Classic.cs: Removed default_font initialization.
18423
18424 2006-12-28  Chris Toshok  <toshok@ximian.com>
18425
18426         * Control.cs: fix a couple of place where we were creating handles
18427         more aggressively than we should be.  Fixes ControlRefresh unit
18428         tests.
18429
18430 2006-12-28  Chris Toshok  <toshok@ximian.com>
18431
18432         * Control.cs: contrary to what the comment said, Control.Dock does
18433         not supercede Control.Anchor - the last one you assign to decides
18434         the layout behavior.  so we need to keep track of which was the
18435         last set.  Also, fix some of the affected property arguments in
18436         PerformLayout calls, and remove an redundant parent.PerformLayout
18437         call in OnResized.
18438
18439         Add a VisibleInternal property, which returns is_visible.  We
18440         can/should get rid of all the usage of this field elsewhere.
18441
18442 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18443         
18444         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
18445         control style, not DoubleBuffer. Added UseDoubleBuffering property
18446         that indicates whether doublebuffering is enabled and supported.
18447         (comment from and code based on Gert Driesen's patch in #80324).
18448         Fixes #80324.
18449
18450 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18451         
18452         * Control.cs: Fixed a NRE.
18453
18454 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18455
18456         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
18457         for 2.0.
18458
18459 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18460
18461         * Control.cs: Rewrote double buffering, now a seperate
18462         class handles all the buffering, no Graphics is disposed of
18463         until the painting is finished (earlier implementation 
18464         would crash if the control was resized in the OnPaint, 
18465         since it would cause the double buffer to be recreated
18466         and the old one disposed), a separate Graphics is 
18467         created for every paint (MS behaviour and anyways the state
18468         of the Graphics would have to be saved and restored otherwise)
18469         
18470         * XplatUIDriver.cs: 
18471         * XplatUIX11.cs:
18472         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
18473         so that we can get the graphics for the back buffer without
18474         having to create a new one and remove the offscreen_dc parameter
18475         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
18476         
18477 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18478
18479         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
18480         Also make virtual all the key-related methods.
18481
18482         * ListViewItem.cs: Make virtual the key related methods for
18483         ListViewSubItemCollection.
18484
18485 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18486
18487         * ListView.cs:
18488         * ListViewItem.cs:
18489         * ThemeWin32Classic.cs:
18490         * Theme.cs: Initial support for Tile view in ListView,
18491         as well as the implementation of the required bits for it (Item
18492         and Subitem).
18493
18494 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18495
18496         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
18497         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
18498         Provide useful exception messages.
18499
18500 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18501
18502         * TrackBar.cs: Remove a warning.
18503         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
18504         when used by DateTimePicker, fixes #80287. This also requires that 
18505         MonthCalendar implements it's own drawing for the yearly updown control,
18506         otherwise the Capture tracking would be too complicated. Removed the Click 
18507         and DoubleClick events (according to comments they were hiding the base class
18508         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
18509         raise these events, not that they cannot be raised. It is possible to raise 
18510         them by calling OnClick and OnDoubleClick). Added two internal fields in 
18511         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
18512         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
18513         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
18514         event, no longer needed.
18515         
18516 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18517
18518         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
18519         true if new value differs from current value.
18520
18521 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18522
18523         * Control.cs: ControlCollection.Count must be public. Fixed build of
18524         unit tests.
18525
18526 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18527
18528         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
18529
18530 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18531
18532         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
18533
18534 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
18535
18536         * Control.cs: Invalidates control including when Width and Height is 
18537         equal zero or is not visible, only Paint event must be care about 
18538         this. Fixes #79913.
18539
18540 2006-12-26  Chris Toshok  <toshok@ximian.com>
18541
18542         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
18543         more corcompare work.
18544
18545         * DataGridView.cs: fix compiler warning.
18546
18547         * ColumnHeader.cs: some corcompare work, and also take the
18548         opportunity to make the internal fields private.
18549
18550         * ListView.cs: fix the fallout from the above field change.
18551
18552 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
18553
18554         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
18555         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
18556         ToolStripTextBox.cs: Fixes to events and corcompare.
18557
18558 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
18559
18560         * ListView.cs: Call owner.OnMousexx event to propagate events from
18561         item to ListView. Fixes #80367.
18562
18563 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
18564
18565         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
18566         if value is less than one. ItemHeight should not be set to a value
18567         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
18568         Removed extra tabs.
18569
18570 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
18571
18572         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
18573         * ToolStripStatusLabel.cs: Add Spring for Moma.
18574
18575 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
18576
18577         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
18578         Fixed code formatting. Removed debug code.
18579         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
18580
18581 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
18582
18583         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
18584         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
18585         ArgumentOutOfRangeException if ColumnCount is negative. In 
18586         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
18587         less than 4 or higher than 32768.
18588         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
18589         Fixed FormatProvider to return CurrentCulture unless explicitly set.
18590         Fixed IsFormatProviderDefault to return true if FormatProvider has
18591         not been explicitly set.
18592
18593 2006-12-25  Chris Toshok  <toshok@ximian.com>
18594
18595         * Application.cs: add a couple of 2.0 events.
18596
18597 2006-12-25  Chris Toshok  <toshok@ximian.com>
18598
18599         * Control.cs: fix compiler warning.
18600
18601         * AxHost.cs: corcompare fixes.
18602
18603         * ApplicationContext.cs: corcompare fixes.
18604
18605 2006-12-25  Chris Toshok  <toshok@ximian.com>
18606
18607         * Control.cs: only update dist_right/dist_bottom if the
18608         width/height is > 0.  this fixes anchored controls being resized
18609         smaller until they disappear and then resized larger again.
18610
18611 2006-12-25  Chris Toshok  <toshok@ximian.com>
18612
18613         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
18614         since they're nothing more than X/Left and Y/Top, respectively.
18615
18616         Also, move back to a per-control Bitmap/Graphics for
18617         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
18618         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
18619         Height.
18620
18621 2006-12-25  Miguel de Icaza  <miguel@novell.com>
18622
18623         * MessageBox.cs: Implemented overload that takes a new "bool
18624         displayHelpButton" by adding a new internal field "show_help".
18625         When clicked this will raise the HelpRequested on the owner or the
18626         main form. 
18627
18628         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
18629         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
18630
18631         * ListView.cs: Add support ColumnWidthChanged and
18632         ColumnWidthChanging. 
18633
18634         Add support for ColumnReordered event.
18635         (ReorderColumn): Add NET_2_0 specific support for cancelling the
18636         reorder.
18637
18638         Very nice codebase!
18639
18640         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
18641
18642         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
18643
18644 2006-12-24  Chris Toshok  <toshok@ximian.com>
18645
18646         * GridTablesFactory.cs: 2.0 corcompare work.
18647
18648         * ToolStripContainer.cs: add "override" to
18649         ContextMenuStripChanged, and remove the local event object.
18650
18651         * ToolStripDropDown.cs: same with a couple properties.
18652
18653         * ToolStripPanel.cs: same with AutoSizeChanged event.
18654
18655         * TextBoxBase.cs: add "override" to AutoSizeChanged.
18656
18657         * Form.cs: add the remaining 2.0 events, and do some corcompare
18658         attribute work.
18659
18660         * DateTimePicker.cs: add "new" to padding.
18661
18662         * ButtonBase.cs: use Control's use_compatible_text_rendering.
18663
18664         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
18665
18666         * DataGridView.cs: PaddingChanged is overridden.
18667
18668 2006-12-24  Chris Toshok  <toshok@ximian.com>
18669
18670         * Control.cs: corecompare work here too.
18671
18672         * DataGridViewElement.cs, DataGridView.cs,
18673         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
18674         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
18675         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
18676         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
18677         work.
18678
18679 2006-12-24  Miguel de Icaza  <miguel@novell.com>
18680
18681         * Control.cs: Switched the error message on the console for a
18682         todo.  A review of the code will have to cope with this anyways
18683         (since its a large feature, it is in our radar) and it was
18684         producing too much output when running PDN.
18685
18686         * ToolStripComboBox.cs: Set the text when the SelectedIndex
18687         changes.  Applications depend on this (PDN 2.72)
18688
18689 2006-12-23  Chris Toshok  <toshok@ximian.com>
18690
18691         * TableLayoutSettings.cs: finish up the corcompare work for this
18692         class.
18693
18694 2006-12-23  Chris Toshok  <toshok@ximian.com>
18695
18696         * Control.cs: make SetImplicitBounds internal, do some futzing
18697         with LayoutEngine so that it's available in 1.1, and remove the
18698         entire duplicated code mess from PerformLayout.  Use
18699         System.Windows.Forms.Layout.DefaultLayout instead.
18700
18701         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
18702
18703 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
18704
18705         * Form.cs: Add MainMenuStrip property.
18706
18707 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
18708
18709         * Control.cs: Add ContextMenuStrip property and implementation.
18710         Fix ContextMenu implementation to show menu centered on control when
18711         activated using the keyboard instead of showing at screen (0,0).
18712
18713         * ToolStripDropDown.cs: Fix needed overload of Show ().
18714
18715 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18716
18717         * Menu.cs: Name property added for 2.0 profile.
18718         
18719 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18720
18721         * Menu.cs: Update information about FindMenuItem, method to be
18722         implemented soon.
18723
18724 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18725
18726         * MenuAPI.cs: When deselect items deselect also selected subitems.
18727         
18728 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18729
18730         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
18731         FindSubItemByCoord to found itens that is not active, also an
18732         cheking added to FindSubItemByCoord to search for items only 
18733         in visible popup windows. Fixes #80274.
18734
18735 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
18736
18737         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
18738         internal property, it be care about change ExStyle. 
18739
18740 2006-12-22  Andreia Gaita  <avidigal@novell.com>
18741
18742         * ContainerControl.cs: set activeControl for parent forms up the 
18743         tree when the new activecontrol is a container.
18744         When validating the active control, if it is a container, also
18745         raise up the validation for it's active control. Fixes #80280
18746         
18747         * Control.cs: Add internal property flag and check to prevent
18748         Focus events from getting raised when Select() is called for
18749         a ContainerControl. There are still too many focus events being
18750         raised at the moment though.
18751         Cleaned up the code a bit.
18752
18753 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18754
18755         * Control.cs: Added all missing 2.0 events.and
18756         fixed a couple of corcompare issues.
18757         * TrackBar.cs: Implemented missing 2.0 bits.
18758         * MonthCalendar.cs, 
18759         * DateTimePicker.cs, 
18760         * MdiClient.cs: Fixed some corcompare issues.
18761
18762 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
18763
18764         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
18765         SplitterPanel.cs: corecompare work.
18766
18767 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
18768
18769         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
18770         Clean up warnings for BackgroundImageChanged and PaddingChanged
18771         events now that they are implemented in Control.cs.
18772
18773 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
18774
18775         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
18776         
18777         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
18778         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
18779         of TableLayoutPanel and supporting cast.
18780
18781 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18782
18783         * XplatUIWin32.cs: 
18784         - GrabWindow now confines the mouse pointer to the confine window.
18785         - Added Win32ClipCursor and Win32GetClipCursor.
18786
18787         * Control.cs: 
18788         - Added CaptureWithConfine to be able to capture and confine 
18789         mouse pointer.
18790         
18791         * InternalWindowManager.cs: 
18792         - Call CaptureWithConfine instead of Capture if we're an
18793         MdiChild (fixes #79982).
18794
18795 2006-12-21  Chris Toshok  <toshok@ximian.com>
18796
18797         * DataGrid.cs: guard against the initial state of selection, where
18798         selection_start == -1.  make sure we only select from index >= 0.
18799         Fixes bug #80291.
18800
18801 2006-12-21  Chris Toshok  <toshok@ximian.com>
18802
18803         * Control.cs: we don't need to be so draconian with
18804         UpdateDistances, and we thusly don't need to call it before
18805         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
18806
18807 2006-12-21  Daniel Nauck  <dna@mono-project.de>
18808
18809         * ComboBox.cs,
18810         TextBox.cs: Implemented AutoComplete properties.
18811
18812 2006-12-20  Chris Toshok  <toshok@ximian.com>
18813
18814         * DataGridView*.cs: some corecompare work.
18815
18816 2006-12-20  Jackson Harper  <jackson@ximian.com>
18817
18818         * XplatUIX11.cs: We need to hide the caret when deleting it,
18819         otherwise you get carets left lying around everywhere.
18820         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
18821         prevents getting some weird half drawn caret tracers when
18822         scrolling.
18823         * TextControl.cs: Attempt to reduce the number of times we need to
18824         recreate the caret.
18825
18826 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
18827
18828         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
18829
18830 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18831
18832         * DateTimePicker.cs:
18833         - Implemented missing 2.0 bits.
18834         - Changed some default values to match MS.
18835         
18836 2006-12-20  Jackson Harper  <jackson@ximian.com>
18837
18838         * TextBoxBase.cs: When changing the font across the document we
18839         can't recalculate after changing each line, since that will cahnge
18840         the line count.
18841         - PreferredHeight is a little different than i thought.
18842         - When backspacing, move the caret before we do the actual char
18843         delete, because when that delete crosses a wrap boundary the
18844         positional information will change.
18845
18846 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18847
18848         * Control.cs: Added some missing 2.0 bits: 
18849         BackgroundImageLayout, BackgroundImageLayoutChanged, 
18850         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
18851         add IBindableComponent and IDropTarget implementation.
18852         
18853         * MonthCalendar.cs: 
18854         - Added all missing 2.0 features:
18855         BackgroundImageLayout, RightToLeftLayout, 
18856         OnHandleDestroyed, RightToLeftLayoutChanged, 
18857         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
18858         PaddingChanged.
18859         - Rewrote all the BoldDate code, it was completely broken.
18860         - Fixed all the tests (the tests can now be re-enabled, the
18861         problems were not with the tests, but with the control, it was
18862         mostly broken).
18863         
18864         * DateTimePicker.cs: Changed the location where the 
18865         MonthCalendar is shown.
18866         
18867 2006-12-19  Chris Toshok  <toshok@ximian.com>
18868
18869         * DataGridView.cs: add IDropTarget implementation.
18870
18871         * ToolStripPanel.cs: add IDropTarget implementation.
18872
18873 2006-12-19  Jackson Harper  <jackson@ximian.com>
18874
18875         * TextControl.cs: soft now means something different than what it
18876         used to mean, we want to move the caret regardless of whether or
18877         not this break was soft (would we really have wanted the caret
18878         to not move with the break in the old context?)
18879         * TreeView.cs: Make sure we factor in the vert scrollbar when
18880         calculating the horizontal scrollbar's maximum.
18881
18882 2006-12-19  Andreia Gaita  <avidigal@novell.org>
18883
18884         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
18885         check for keywords in alternate casing, close bug #80049.
18886
18887 2006-12-19  Chris Toshok  <toshok@ximian.com>
18888
18889         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
18890         methods (which all do nothing).
18891
18892         * IDropTarget.cs: add the 4 missing methods.
18893
18894 2006-12-19  Chris Toshok  <toshok@ximian.com>
18895
18896         * TableLayoutRowStyleCollection.cs: corcompare work.
18897         
18898         * TableLayoutSettings.cs: same.
18899
18900         * TableLayoutStyle.cs: same.
18901
18902         * TableLayoutColumnStyleCollection.cs: same.
18903
18904 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
18905
18906         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
18907         TableLayoutPanel I've had in my local tree for way too long.
18908
18909 2006-12-19  Miguel de Icaza  <miguel@novell.com>
18910
18911         * TableLayoutSettings.cs: Finish the public API (still needs all
18912         the logic to update on changes). 
18913
18914         * TableLayoutPanelCellPosition.cs: new file.
18915         
18916         * TableLayoutRowStyleCollection.cs,
18917         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
18918         TableLayoutSettings.cs: Track the final 2.0 table api.
18919
18920 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18921
18922         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
18923         and Image List 2.0 members for ColummnHeader.
18924         * ListView.cs: Add key-related 2.0 methods for
18925         ColumnHeaderCollection.
18926
18927 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
18928
18929         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
18930         ArgumentNullException if items argument is null. Ignore null item in
18931         arrays. Removed extra tabs.
18932
18933 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
18934
18935         * MonthCalendar.cs: Fixed InvalidCastException.
18936
18937 2006-12-19  Jackson Harper  <jackson@ximian.com>
18938
18939         * TextControl.cs: Don't increment the position here.
18940         - When calculating char positions only add in the line break size
18941         for hard line breaks.
18942
18943 2006-12-19  Andreia Gaita  <avidigal@novell.org>
18944
18945         * SendKeys.cs: Changed some things to match ms.net behaviour
18946         when parsing shifted capital letters.
18947         
18948         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
18949         Add window handle as parameter to SendInput. X11 needs the 
18950         window handle, and the handle being passed      to it in the keys 
18951         queue is the active control handle (which windows needs), not 
18952         the window handle.
18953         
18954         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
18955         to support SendKeys on X.       
18956         
18957         * X11Keyboard: Implement helper method to lookup a linux keycode
18958         given the virtual keycode. Added table of keycode-2-virtualkey
18959         values to support this.
18960
18961 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18962
18963         * ListView.cs: Add support for SelectedIndexCollection
18964         and SelectedItemCollection 2.0 methods. Implement support
18965         for ImageKey too.
18966         * ListViewItem.cs: Add support for ListViewSubItemCollection
18967         2.0 methods. Also, fix an incorrect behavior of AddRange method
18968         (it shouldn't call Clear).
18969         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
18970
18971 2006-12-19  Jackson Harper  <jackson@ximian.com>
18972
18973         * RichTextBox.cs: 
18974         * TextBoxBase.cs: New args for FormatText
18975         * TextControl.cs: Rewrote the main drawing method, this version
18976         feels a little easier to understand and debug to me.  Hopefully it
18977         does to others also
18978         - Fix FormatText to OR in the new formating values.  Added
18979         FormatSpecified param, basically this works in the same way as
18980         BoundsSpecified in Control.
18981         - Set the caret properties when the caret is positioned.
18982         - When wrapping text make sure that we calculate the width of the
18983         last character
18984         - when calculating alignments we might have wrapped down to the
18985         next line, so don't search for an individual tag, search for the
18986         end of the line
18987         - We need to invalidate the selection area when we replace the
18988         selection.
18989         
18990 2006-12-19  Daniel Nauck  <dna@mono-project.de>
18991
18992         * Application.cs: add Restart () 2.0 support
18993
18994 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
18995
18996         * MenuItem.cs: Invalidate menu item rectangle after change Enable
18997         property. Fixes #80268.
18998         
18999 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
19000
19001         * MenuAPI.cs: Dont trigger select event when closes top menu
19002         item. Fixes #80270.
19003
19004 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
19005
19006         * MenuAPI.cs: When you click on menuitem only trigger onselect
19007         event for top menu itens. Fixes #80271.
19008         
19009 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19010
19011         * MdiWindowManager.cs: Make IconicBounds depend on
19012         the bottom of MdiClient, not the top (fixes #80267)
19013         
19014 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19015
19016         * MdiClient.cs: Added missing 2.0 attribute
19017
19018 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19019
19020         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
19021         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
19022
19023 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
19024
19025         * MenuAPI.cs: Fix click when menuitem is not popup,
19026         this regression was caused by last commit (#80272).
19027
19028 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
19029
19030         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
19031         fire click event or close menu. Fixes #80272.
19032
19033 2006-12-17  Daniel Nauck  <dna@mono-project.de>
19034
19035         * ListViewHitTestInfo.cs: add
19036
19037 2006-12-17  Daniel Nauck  <dna@mono-project.de>
19038
19039         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
19040         * FlatButtonAppearance.cs: add
19041         * DockingAttribute.cs: add
19042
19043 2006-12-17  Chris Toshok  <toshok@ximian.com>
19044
19045         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
19046         and rebind our columns when it does - this way, if you make
19047         changes to the DataTable (or set the Table attribute on a DataView
19048         after setting it as the DataGrid's DataSource, the changes are
19049         made visible.)  Fixes bug #80107.
19050
19051 2006-12-17  Daniel Nauck  <dna@mono-project.de>
19052
19053         * ListViewGroup.cs: add internal Location property for layouting.
19054         * Theme.cs: add abstract ListViewGroupHeight function.
19055         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
19056
19057 2006-12-16  Andreia Gaita  <avidigal@novell.com>
19058
19059         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
19060         Added reset of selected index to 0 when adding first tab page.
19061         Fixes #80264
19062         
19063         * NumericUpDown.cs: Fix NET_2_0 check
19064
19065 2006-12-16  Daniel Nauck  <dna@mono-project.de>
19066
19067         * ListViewGroup.cs: fixed DefaultValueAttribute value
19068
19069 2006-12-16  Daniel Nauck  <dna@mono-project.de>
19070
19071         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
19072
19073 2006-12-15  Miguel de Icaza  <miguel@novell.com>
19074
19075         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
19076         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
19077         ScrollableControl.cs: Add a handful of methods that are
19078         overwritten in 2.0 
19079
19080 2006-12-15  Chris Toshok  <toshok@ximian.com>
19081
19082         * XplatUIWin32.cs: initial implementation of the Reversible
19083         drawing functions.  there are some problems.  DrawReversibleFrame
19084         doesn't seem to work at all for Dashed FrameStyle, and in the
19085         Thick case there are drawing errors at the corners (we probably
19086         need to bind Rectangle instead of doing moveto/lineto's.)
19087
19088 2006-12-16  Andreia Gaita  <avidigal@novell.com>
19089         
19090         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
19091         to send blocks of key messages. Send accumulates keys to send with Flush, 
19092         while SendWait sends all keys immediately.
19093                 
19094         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
19095         XplatUIX11.cs,  XplatUIX11-new.cs:
19096         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
19097         to Win32 SendInput.
19098         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
19099         
19100         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
19101         testing for ms.net on this class is very tricky, as the tests run too fast 
19102         to allow the hook to release, essentially freezing the keyboard and the 
19103         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
19104         category :p
19105
19106 2006-12-16  Daniel Nauck  <dna@mono-project.de>
19107
19108         * Padding.cs: fixed serialization compability to MS ("_var" field names),
19109                         added missing attributes.
19110  
19111 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19112
19113         * ListViewGroup.cs: Added missing attributes.
19114         * ListViewGroupCollection.cs: Added missing attributes.
19115
19116 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19117
19118         * ListViewItem.cs: fixed ListViewSubItem text property.
19119
19120 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19121         
19122         * Control.cs: Added missing 2.0 attributes
19123         
19124 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19125         
19126         * MdiClient.cs: Added missing 2.0 attribute.
19127         * MonthCalendar.cs: Added some missing 2.0 attributes 
19128         and properties.
19129         
19130 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19131
19132         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
19133
19134 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
19135
19136         * MainMenu.cs: Add the new 2.0 constructor to help out people
19137         using the MainMenu in VS2005.
19138
19139 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19140         
19141         * MdiChildContext.cs: Removed it, no longer used.
19142         * MdiClient.cs: Added missing 2.0 attributes.
19143         
19144 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19145         
19146         * InternalWindowManager.cs: Fix a NullRef with previous 
19147         changes for toolwindows.
19148         
19149 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19150
19151         * Control.cs: 
19152         - Added AfterTopMostControl to allow for certain controls 
19153         to always stay on top when normal controls are brought to 
19154         front.
19155         
19156         * XplatUIWin32.cs: 
19157         - (DrawInversibleRectangle): Get window rectangle from Win32 
19158         in stead of from control, since Win32 doesn't calculate
19159         screen coords correctly from control's Location if it 
19160         have docked siblings.
19161         
19162         * MdiWindowManager.cs:
19163         - Correct the control menu popup location when clicked on
19164         the maximized form icon. (fixes #80223.1)
19165         - Don't show moving rectangle if mouse hasn't moved from
19166         the original clicked point.
19167         - Removed FormGotFocus handler (not used).
19168         - Calculate the control buttons location from the main
19169         window's size and not client size (fixes #79770).
19170         - Form is now closed when the form icon is double-clicked
19171         (fixes #79775). 
19172         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
19173         
19174         * InternalWindowManager.cs:
19175         - Moved some MDI-only methods to MdiWindowManager.
19176         - Removed unused properties and methods.
19177         - Unified method naming for methods handling wm messages.
19178         - Moved all message handling to seperate methods for
19179         each message.
19180         
19181         * ThemeWin32Classic.cs:
19182         - DrawManagedWindowDecorations now draws the title bar 
19183         with a gradient brush.
19184         - Add a CPDrawButtonInternal that allows us to specify
19185         light, normal and dark colors for the buttons (control 
19186         buttons for MDI children were drawn with the same light
19187         color as the background, therefore loosing the 3D effect).
19188         
19189         * SizeGrip.cs:
19190         - Add a CapturedControl property that is used to 
19191         determine the control to resize (defaults to parent). 
19192         Needed for MdiClient, since its SizeGrip's parent is
19193         MdiClient, but the control to resize is the main form.
19194         
19195         * MdiClient.cs:
19196         - Set SizeGrip's CapturedControl to the main form in order
19197         to resize the main form and not the MdiClient.
19198         - Override AfterTopMostControl to leave the scrollbars 
19199         always on top.
19200
19201 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19202
19203         * ListView.cs: fixed ListViewItemCollection AddRange and
19204                         implemented ListViewItemCollection AddRange 2.0 support.
19205
19206 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19207
19208         * ListViewGroup.cs: Add.
19209         * ListViewGroupCollection.cs: Add
19210         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
19211         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
19212                                 stub for ImageKey 2.0 support.
19213
19214 2006-12-14  Mike Kestner  <mkestner@novell.com>
19215
19216         * ListView.cs: add text padding to the autocalculation for columns
19217         of width -2.  Fixes #80207.
19218  
19219 2006-12-14  Mike Kestner  <mkestner@novell.com>
19220
19221         * ListView.cs: add some index guarding for partial row navigation 
19222         logic.  Fixes #80250.
19223
19224 2006-12-14  Mike Kestner  <mkestner@novell.com>
19225
19226         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
19227         are added or inserted to the collection.  Fixes #81099.
19228
19229 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
19230
19231         * MenuAPI.cs: Closes menu when right click out side of popup
19232         it fix problem in ContextMenu and MainMenu. Fixes #80252.
19233
19234 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19235
19236         * ListViewItem.cs: Fix dumb error.
19237
19238         * ListView.cs: Add Find and ContainsKey methods in 
19239         ListViewItemCollection, and also return true for IsReadOnly
19240         and IsFixedSize (changes for 2.0). 
19241
19242 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
19243
19244         * Control.cs: Allow Region to be set to null.
19245
19246 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19247
19248         * MdiWindowManager.cs: Remove unused (commented out) code.
19249         * Form.cs: When the MdiChild is maximized, the form needs 
19250         WM_NCMOUSELEAVE, so request it.
19251         * InternalWindowManager.cs: 
19252         - Added tooltips to control buttons.
19253         - Removed duplicated control button handling code.
19254         - Removed unused (commented out) code.
19255         
19256 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
19257
19258         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
19259         was used because we must set cursor without trigger ChangeCursor event
19260         and without change Cursor control property. Fixes #79963.
19261
19262 2006-12-12  Andreia Gaita  <avidigal@novell.com>
19263         
19264         * Control.cs: Check if Region setter value is null, and ignore
19265
19266 2006-12-12  Jackson Harper  <jackson@ximian.com>
19267
19268         * TextControl.cs: We were almost always drawing one more line then
19269         needed, since the GetLineByPixel will return the last line found
19270         at that pixel. In most cases though, we were invalidating up to
19271         the junction between two lines.
19272         - Improve debug code.
19273
19274 2006-12-12  Chris Toshok  <toshok@ximian.com>
19275
19276         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
19277         and FillReversibleRectangle.
19278
19279         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
19280         and FillReversibleRectangle.
19281
19282         * XplatUIWin32.cs: add stubs which do nothing for
19283         DrawReversibleFrame, DrawReversibleLine, and
19284         FillReversibleRectangle.
19285
19286         * XplatUIOSX.cs: add stubs which raise NIE for
19287         DrawReversibleFrame, DrawReversibleLine, and
19288         FillReversibleRectangle.
19289
19290         * XplatUIX11.cs: add working implementation for
19291         DrawReversibleFrame, DrawReversibleLine, and
19292         FillReversibleRectangle.
19293         
19294         * ControlPaint.cs: implement DrawReversibleFrame,
19295         DrawReversibleLine, and FillReversibleRectangle, by calling into
19296         the appropriate XplatUI method.
19297
19298 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19299
19300         * Form.cs: Make MdiClient have the focus even if it's
19301         not selectable, since it should receive WM_KEY* and WM_MOUSE 
19302         messages. Fixes #79907.
19303         
19304 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19305
19306         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
19307         queried after the window is created.
19308         
19309         * XplatUIX11.cs: Added SendParentNotify to implement 
19310         WM_PARENTNOTIFY logic. Fixes #79965.
19311         
19312         * Control.cs: Added MakeParam.
19313         
19314 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19315
19316         * MdiClient.cs: Resume Layout before setting window
19317         states (fixes #80201).
19318
19319 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19320
19321         * MenuAPI.cs: Deselect a menu item after performing
19322         the click (fixes #80197).
19323
19324 2006-12-11  Jackson Harper  <jackson@ximian.com>
19325
19326         * TextBoxBase.cs: We need to cap this value, since Maximum -
19327         ViewPortHeight can be less than zero.
19328         - Only do selection with the left mouse button.
19329         * TextBox.cs: Don't tell the world that we have a context menu.
19330         * Control.cs: New method so that we can control whether or not the
19331         context menu is visible outside MWF.
19332
19333 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
19334
19335         * ToolBarButton.cs: Fix text positon. 
19336
19337 2006-12-11  Miguel de Icaza  <miguel@novell.com>
19338
19339         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
19340
19341         * Control.cs (DoubleBuffered): Add implementation.
19342
19343         * Application.cs (OpenForms): Add.
19344
19345 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
19346
19347         * Form.cs: Use opacity instead of Opactiy to determine if we need
19348         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
19349
19350 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
19351
19352         * Control.cs: Fix NRE if Control.Site was set to null.
19353
19354 2006-12-11  Chris Toshok  <toshok@ximian.com>
19355
19356         * Control.cs: ControlCollection.Remove should return if the arg is
19357         null, and ControlCollection.SetChildIndex should raise a ANE.
19358
19359 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
19360
19361         * Control.cs: Verify value set for Dock property. Code formatting
19362         updates.
19363
19364 2006-12-11  Jackson Harper  <jackson@ximian.com>
19365
19366         * TextControl.cs: Draw the caret and the selection when a flag is
19367         set on the owner.
19368         * TextBoxBase.cs: We want to draw the caret and the selection for
19369         TextBox but not for TextBoxBase.
19370         - If the window is resized and scrolling is no longer needed (the
19371         whole doc is visible) set the scroll position to zero.
19372         - The default SelectWord (the one TextBox uses) should move the
19373         caret to the end of the word.
19374         - SelectAll moves the caret to the end of the selection.
19375         * TextBox.cs: We don't selectall on focus, we just do it when the
19376         control is created.
19377         
19378 2006-12-11  Mike Kestner  <mkestner@novell.com>
19379
19380         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
19381
19382 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19383
19384         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
19385         2.0 support.
19386         * ListViewItem.cs: Add Name 2.0 property.
19387
19388 2006-12-11  Andreia Gaita  <avidigal@novell.com>
19389
19390         * TabControl.cs: Set visibility on selected or default tab 
19391         when tabcontrol handle is created, so that it's contents
19392         actually show up (duh). Fixes #80193
19393         Don't redraw the control if there is no handle created, as
19394         the selected index might be completely invalid. Added some tests
19395         to check for this.
19396
19397 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
19398
19399         * ToolBar.cs: Uses maximun width and height of all buttons as 
19400         button rectangle when ButtonSize specified, it looks strange but
19401         is what happens in Win32. Fixes #80189.
19402
19403 2006-12-11  Jackson Harper  <jackson@ximian.com>
19404
19405         * TextControl.cs: Need to track undo levels ourself, since
19406         compound actions will mess them up.
19407
19408 2006-12-10  Andreia Gaita  <avidigal@novell.com>
19409
19410         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
19411         SelectedIndex value is changed (even if it's not valid).
19412         Reset SelectedIndex to 0 when the handle is created and if
19413         the current index is invalid.
19414         Fixes SelectdeIndex unit tests and #80128
19415
19416 2006-12-08  Chris Toshok  <toshok@ximian.com>
19417
19418         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
19419         calls EndEdit, it needs to be called before we set current_cell to
19420         its new value.  Otherwise, we end up committing the value in the
19421         textbox to the new cell as well.  Fixes bug #80160.
19422
19423 2006-12-08  Chris Toshok  <toshok@ximian.com>
19424
19425         * Form.cs (set_CancelButton): if the button's DialogResult is
19426         None, set it to Cancel.  Fixes bug 80180.
19427
19428 2006-12-08  Jackson Harper  <jackson@ximian.com>
19429
19430         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
19431         to watch ourselves when setting the canvas size and setting the
19432         scrollbar values.
19433
19434 2006-12-08  Chris Toshok  <toshok@ximian.com>
19435
19436         * DataGrid.cs: comment out the two MakeTransparent calls for the
19437         time being so people using trunk (and not 1.2.2) on windows can
19438         actually use the datagrid.  This deals with bug #80151.
19439
19440 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
19441
19442         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
19443         Graphics.DrawImage (image, int, int, int, int) overload instead
19444         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
19445         the dpi difference and was blurring images it drew.
19446         [Fixes bug #79960]
19447
19448 2006-12-08  Chris Toshok  <toshok@ximian.com>
19449
19450         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
19451         rowcnt is 0 (such as with an empty datasource), and make sure we
19452         initialize not_usedarea.Y to cells.Y, so we don't draw over the
19453         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
19454
19455 2006-12-08  Chris Toshok  <toshok@ximian.com>
19456
19457         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
19458         grid.
19459
19460 2006-12-08  Chris Toshok  <toshok@ximian.com>
19461
19462         [ Fixes bug #80167 ]
19463         
19464         * ThemeWin32Classic.cs: don't draw the image if the button's flat
19465         style is FlatStyle.System.
19466
19467         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
19468         ButtonBase.flat_style private, and switch uses of it to the public
19469         property.
19470         
19471 2006-12-08  Chris Toshok  <toshok@ximian.com>
19472
19473         [ Fixes bug #80121 ]
19474         
19475         * ThemeWin32Classic.cs: center the caption text in the datagrid
19476         when we draw it.
19477
19478         * DataGrid.cs: lessen the amount we add to the caption height from
19479         6 to 2.  6 was making it huge.
19480
19481 2006-12-08  Andreia Gaita  <avidigal@novell.com>
19482
19483         * UpDownBase: Handle MouseWheel call directly instead of capturing
19484         the inner textbox's OnMouseWheel. Fixes #80166
19485
19486 2006-12-08  Jackson Harper  <jackson@ximian.com>
19487
19488         * TextControl.cs: We need to invalidate the textbox when we empty
19489         it (how had this not been discovered before?)
19490
19491 2006-12-08  Jackson Harper  <jackson@ximian.com>
19492
19493         * TextBoxBase.cs: Reworked the mouse down code so I could get it
19494         to behave like MS, we now ignore the eventargs.Click and just
19495         track state ourself, which we were already doing anyways.
19496         - Constrain the double click handler to the double click size.
19497         
19498 2006-12-08  Chris Toshok  <toshok@ximian.com>
19499
19500         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
19501         direction if that scrollbar isn't shown.  fixes bug #80158.
19502
19503 2006-12-08  Andreia Gaita  <avidigal@novell.com>
19504
19505         * NumericUpDown.cs: Update value on getter. Fixes #79950
19506
19507 2006-12-08  Chris Toshok  <toshok@ximian.com>
19508
19509         * MenuItem.cs: add back in the event cloning code.  I didn't know
19510         how to do it in the face of the EventHandlerList work i'd done
19511         last week.  Fixes bug #80183.
19512
19513 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
19514
19515         * Control.cs: Add an invalidate to the BackgroundImage setter.
19516         [Fixes 80184]
19517
19518 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
19519
19520         * ToolStrip*: Add some small properties reported by MoMA, fix event
19521         firing and default properties based off of unit tests, and add some
19522         attributes based off of the class status page.
19523
19524 2006-12-07  Jackson Harper  <jackson@ximian.com>
19525
19526         * TextBoxBase.cs: Take HideSelection into account when determining
19527         whether or not to show the selection.
19528         * RichTextBox.cs: After inserting the RTF into the document move
19529         the cursor to the beginning of the document.
19530
19531 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
19532
19533         * Control.cs: Remove static ArrayList "controls" which maintained
19534         a reference to every control created.
19535         * Application.cs: Create a static FormCollection to maintain a reference
19536         to every form created.  Use it in places that formerly enumerated through
19537         the controls one looking for forms.
19538         * Form.cs: Add and remove self from above FormCollection.
19539
19540 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
19541
19542         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
19543           not libgdk (though it makes me wonder why I didn't have any
19544           problems)
19545
19546 2006-12-07  Chris Toshok  <toshok@ximian.com>
19547
19548         [ you had to know this was coming after that last commit...]
19549         
19550         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
19551         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
19552         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
19553         XCopyArea).
19554
19555 2006-12-07  Chris Toshok  <toshok@ximian.com>
19556
19557         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
19558         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
19559         all the behavior we need for double buffering.
19560
19561         * XplatUIDriver.cs: implement the 3 double buffer methods using a
19562         client side Bitmap, just like the old Control-based double buffer
19563         code did.  The methods are virtual, so each XplatUI driver
19564         subclass can replace the implementation to use a faster, platform
19565         specific approach.
19566
19567         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
19568         double buffer code, and clean things up a bit in the process.
19569
19570 2006-12-06  Chris Toshok  <toshok@ximian.com>
19571
19572         * Control.cs: reindent WndProc.
19573
19574 2006-12-06  Chris Toshok  <toshok@ximian.com>
19575
19576         [ I wanna be like BenM when I grow up ]
19577         
19578         * Hwnd.cs: create a single static Graphics object on the static
19579         Bitmap we create.  use this for our text measurements.
19580
19581         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
19582         This was causing us to allocate a backbuffer for every control,
19583         even when it wasn't flagged as double buffered.  Instead use the
19584         single graphics instance.  This might have implications for
19585         multithreaded applications.  If we run into problems we can switch
19586         to creating 1 Graphics per control, on the static Hwnd bitmap.
19587
19588         this change nets us a 7M savings in private dirty mappings when
19589         running FormsTest.exe.
19590
19591 2006-12-06  Chris Toshok  <toshok@ximian.com>
19592
19593         * ListView.cs: the BackgroundImage override is just to set
19594         attributes.  chain up to base.BackgroundImage.
19595
19596         * RichTextBox.cs: same.
19597
19598         * ToolBar.cs: same, but we need to also redraw the toolbar when it
19599         changes, so instead a handler for BackgroundImageChanged.
19600         
19601         * Control.cs: make background_image private.
19602
19603 2006-12-06  Chris Toshok  <toshok@ximian.com>
19604
19605         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
19606         sure we even need this assignment, but roll with it for now.
19607
19608         * Control.cs: make the cursor field private.
19609
19610 2006-12-06  Chris Toshok  <toshok@ximian.com>
19611
19612         * Form.cs: we don't need to explicitly set ImeMode to
19613         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
19614         behavior in the face of ImeMode.Inherit.
19615
19616         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
19617         change the ctor's assignment to use ImeMode instead of ime_mode.
19618
19619         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
19620         ImeModeInherit.  Only check for the parent's imemode (and return
19621         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
19622         This fixes the button unit test, which sets both ImeMode and
19623         DefaultImeMode to ImeMode.Disable.
19624
19625         also make the ime_mode field private.
19626
19627 2006-12-06  Chris Toshok  <toshok@ximian.com>
19628
19629         * Control.cs: make control_style private.
19630
19631         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
19632         setting the styles to true, then setting them to false instead of
19633         reverting to their previous values.
19634
19635         also, call SetStyle on the scrollbars instead of using
19636         control_style directly.
19637
19638 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
19639
19640         * FormCollection.cs: Implement. [2.0]
19641
19642 2006-12-06  Chris Toshok  <toshok@ximian.com>
19643
19644         * Control.cs: make tab_stop private.
19645
19646         * Label.cs: set TabStop, not tab_stop.  reformat some event
19647         add/remove methods to make them more compact.
19648
19649 2006-12-06  Chris Toshok  <toshok@ximian.com>
19650
19651         * RadioButton.cs: fix TabStop handling.
19652
19653 2006-12-06  Chris Toshok  <toshok@ximian.com>
19654
19655         * TextBox.cs: remove the explicit assignments to has_focus.
19656         Control does that.
19657
19658         * ButtonBase.cs: remove the assignment to has_focus.  Control will
19659         manage that.
19660         
19661 2006-12-06  Chris Toshok  <toshok@ximian.com>
19662
19663         * ButtonBase.cs: remove all uses of is_enabled from this code.
19664         it's always true when any of the code containing the checks is
19665         executed.
19666
19667 2006-12-06  Chris Toshok  <toshok@ximian.com>
19668
19669         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
19670         with different semantics (some are present in both 1.1 and 2.0
19671         profiles) so that we match MS's behavior in our unit tests.
19672
19673 2006-12-06  Jackson Harper  <jackson@ximian.com>
19674
19675         * TextControl.cs: Make this operation undoable.
19676         * TextBoxBase.cs: Factor the border width into the preferred
19677         height.
19678         - implement Modified as per the spec.
19679
19680 2006-12-06  Chris Toshok  <toshok@ximian.com>
19681
19682         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
19683
19684 2006-12-06  Chris Toshok  <toshok@ximian.com>
19685
19686         * Control.cs: make right_to_left and context_menu fields private.
19687
19688 2006-12-06  Chris Toshok  <toshok@ximian.com>
19689
19690         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
19691         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
19692         Control.child_controls private.  switch all uses over to
19693         Control.Controls.
19694
19695 2006-12-06  Chris Toshok  <toshok@ximian.com>
19696
19697         * System.Windows.Forms/GroupBox.cs,
19698         System.Windows.Forms/AccessibleObject.cs,
19699         System.Windows.Forms/ErrorProvider.cs,
19700         System.Windows.Forms/Control.cs,
19701         System.Windows.Forms/UpDownBase.cs,
19702         System.Windows.Forms/ScrollBar.cs,
19703         System.Windows.Forms/DateTimePicker.cs,
19704         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
19705         System.Windows.Forms/ToolTip.cs,
19706         System.Windows.Forms/RadioButton.cs,
19707         System.Windows.Forms/LinkLabel.cs,
19708         System.Windows.Forms/Splitter.cs,
19709         System.Windows.Forms/TextBoxBase.cs,
19710         System.Windows.Forms/ToolStripTextBox.cs,
19711         System.Windows.Forms/ContainerControl.cs,
19712         System.Windows.Forms/ThemeWin32Classic.cs,
19713         System.Windows.Forms/SizeGrip.cs,
19714         System.Windows.Forms/ToolStripDropDown.cs,
19715         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
19716         private.  switch all uses over to Control.Parent.
19717
19718 2006-12-06  Chris Toshok  <toshok@ximian.com>
19719
19720         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
19721         Control does this before calling emitting these events.
19722
19723         * TabControl.cs: same.
19724
19725         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
19726         Control.client_rect.
19727
19728         * ButtonBase.cs: use the ClientSize property instead of the
19729         client_size field.
19730
19731         * ScrollableControl.cs: same.
19732
19733         * Control.cs: another pass at making properties private.  also,
19734         move the initialization of tab_stop to the ctor.
19735
19736 2006-12-05  Andreia Gaita <avidigal@novell.com>
19737
19738         * TabControl.cs: Let the selected index be set freely if the 
19739         control handle is not yet created.
19740
19741 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
19742
19743         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
19744         internal until I can rewrite DefaultLayout.
19745         * ToolStrip.cs: Fix build error and some general cleaning.
19746         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
19747         Fix build errors caused by making some of Control's fields private.
19748
19749 2006-12-05  Jackson Harper  <jackson@ximian.com>
19750
19751         * TextControl.cs: Redo Insert a little so that it use IndexOf
19752         instead of Split, this prevents it from messing up on things like
19753         \n\n\n. Also more effecient since the split array doesn't need to
19754         be created.
19755         * TextBoxBase.cs: AppendText doesnt handle multiline and non
19756         multiline text differently, this is the first of many fixes that
19757         will make multiline/non-multiline the same thing as far as the
19758         TextBoxBase is concerned.
19759         - Don't split the text and insert lines, this can lose some line
19760         endings (like is the last line a soft or hard break). Instead use
19761         the new Insert.
19762         - Fix an off by one when combining all the lines in the Text
19763         getter.
19764         - Remove separate multiline handling from the Text getter/setter.
19765
19766 2006-12-05  Chris Toshok  <toshok@ximian.com>
19767
19768         * ButtonBase.cs: a few changes:
19769
19770         - don't reinitialize internal Control fields in the ctor when they
19771         have the same values as Control sets them.
19772
19773         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
19774         this before calling those methods.
19775
19776         - we don't need to call Refresh for anything.  use Invalidate
19777         instead.
19778
19779         - OnEnabledChanged doesn't need to redraw at all - Control.cs
19780         calls Refresh in its OnEnabledChanged.
19781         
19782         - several of the events we were registered for in the ctor to
19783         redraw ourselves already include calls to Invalidate in the
19784         property setters that raise the events.  remove the extra
19785         invalidation.
19786
19787         - reformat a switch statement that was 83274658 columns wide.
19788         
19789 2006-12-05  Mike Kestner  <mkestner@novell.com>
19790
19791         * ComboBox.cs: fix a unit test regression from a TextBox
19792         SelectionLength return of -1 when there's no selection.  
19793
19794 2006-12-05  Chris Toshok  <toshok@ximian.com>
19795
19796         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
19797         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
19798         cleaning up some of the internal Control fields being used by
19799         subclasses.
19800
19801 2006-12-05  Mike Kestner  <mkestner@novell.com>
19802
19803         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
19804         listbox after AddImplicit calls since it defaults to hidden. Add a 
19805         hack to preserve requested heights across DropDownStyle changes.
19806
19807 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
19808
19809         * PropertyGrid.cs: Hide FindFirstItem method from public API.
19810
19811 2006-12-05  Chris Toshok  <toshok@ximian.com>
19812
19813         * DataGridView.cs: fix compiler warnings.
19814
19815         * PrintControllerWithStatusDialog.cs: same.
19816
19817         * ToolBar.cs: same.
19818
19819         * FolderBrowserDialog.cs: same.
19820
19821         * Splitter.cs: same.
19822
19823         * DataGridViewComboBoxCell.cs: same.
19824
19825         * XplatUIWin32.cs: same.
19826
19827         * PictureBox.cs: same.
19828
19829         * Win32DnD.cs: same.
19830
19831         * PageSetupDialog.cs: same.
19832
19833         * FileDialog.cs: same.
19834
19835         * PrintDialog.cs: same.
19836
19837         * DataGridTextBoxColumn.cs: same.
19838
19839         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
19840
19841 2006-12-05  Chris Toshok  <toshok@ximian.com>
19842
19843         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
19844         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
19845         System.ComponentModel.EventHandlerList work.
19846
19847 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
19848
19849         * DrawTreeNodeEventArgs.cs: Added.
19850
19851 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19852         
19853         * InternalWindowManager.cs: Remove an unused field.
19854         
19855 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19856
19857         * InternalWindowManager.cs:
19858         - Save the point where the title bar is clicked.
19859         
19860         * MdiWindowManager.cs:
19861         - Only allow moving of the window as long as the 
19862         clicked point on the title bar does not get out of
19863         MdiClient's rectangle. Fixes #79982.
19864         
19865         * MdiClient.cs:
19866         - Added Horizontal/VerticalScrollbarVisible.
19867         - Simplified the scrollbar sizing algorithm.
19868         - Cache the difference in scrolled value in
19869         H/VBarValueChanged and move the calculation out
19870         of the for loop.
19871
19872 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19873
19874         * Control.cs: Make the Console.WriteLine in WndProc 
19875         write more info.
19876
19877 2006-12-05  Chris Toshok  <toshok@ximian.com>
19878
19879         * ToolStripManager.cs, ToolStripButton.cs,
19880         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
19881         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
19882         ToolStripSplitButton.cs, ToolStripSeparator.cs,
19883         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
19884         ToolStripProgressBar.cs, ToolStripContainer.cs,
19885         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
19886         to using System.ComponentModel.EventHandlerList.
19887
19888 2006-12-04  Chris Toshok  <toshok@ximian.com>
19889
19890         * LinkLabel.cs: fix up compiler warnings.
19891
19892         * TableLayoutSettings.cs: same.
19893
19894         * TreeView.cs: same.
19895
19896         * ToolBar.cs: same.
19897
19898         * TabControl.cs: same.
19899
19900         * RichTextBox.cs: same.
19901
19902         * ListViewItem.cs: same.
19903
19904         * PropertyGrid.cs: same.
19905
19906         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
19907
19908         * ToolTip.cs same.
19909
19910         * TextRenderer.cs: fix up compiler warnings.
19911
19912         * Label.cs: same.
19913
19914         * Form.cs: corcompare fixes.
19915
19916         * PictureBox.cs: fix up compiler warnings.
19917
19918         * ImageListStreamer.cs: same.
19919
19920         * TrackBar.cs: corcompare fix.
19921
19922         * Control.cs: fix up compiler warnings.
19923
19924         * SplitterPanel.cs: same.
19925
19926         * NumericTextBox.cs: same.
19927
19928         * ImageList.cs: same.
19929
19930         * StatusStrip.cs: same.
19931
19932         * ProgressBar.cs: corcompare fix.
19933
19934         * ToolStripButton.cs: fix up compiler warnings.
19935
19936         * ToolStripStatusLabel.cs: same.
19937
19938         * ToolStripSplitButton.cs: same.
19939
19940         * ToolStripSeparator.cs: same.
19941
19942         * ToolStripProgressBar.cs: same.
19943
19944         * ToolStripDropDownMenu.cs: same
19945
19946         * ToolStripDropDown.cs: same.
19947
19948         * ToolStripDropDownButton.cs: same.
19949
19950         * ToolStrip.cs: same.
19951
19952         * ToolStripControlHost.cs: same.
19953
19954         * ToolStripContentPanel.cs: same.
19955
19956         * ToolStripDropDown.cs: same.
19957
19958         * ToolStripContainer.cs: same.
19959
19960         * ToolStripPanel.cs: same, and add "new" where we need it to work
19961         with the new ArrangedElementCollection.
19962
19963         * ToolStripItemCollection.cs: add "new" where we need it to work
19964         with the new ArrangedElementCollection.
19965
19966 2006-12-04  Andreia Gaita <avidigal@novell.com>
19967
19968         * TabControl.cs: Fix default tab selection to after TabControl
19969         gets focus and not before. Fixes #80128
19970
19971 2006-12-04  Chris Toshok  <toshok@ximian.com>
19972
19973         * DataGridTableStyle.cs: remove the gross calling of
19974         datagrid.Refresh from here.  It's a broken idea and it doesn't
19975         work anyway.
19976
19977         * DataGrid.cs: instead, just register/unregister from the
19978         DataGridTableStyle events in CurrentTableStyle.  we play it
19979         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
19980         even though some would most likely not require it.  Fixes bug
19981         #80115 (and one portion of #80117 as a side effect).
19982
19983 2006-12-04  Chris Toshok  <toshok@ximian.com>
19984
19985         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
19986         so the textbox (if any) goes away.  Fixes bug #80117.
19987
19988 2006-12-04  Chris Toshok  <toshok@ximian.com>
19989
19990         * DataGridColumnStyle.cs: set the column's readonly property
19991         initially based on the property descriptor's IsReadOnly.  Fixes
19992         bug #80044.
19993
19994 2006-12-04  Chris Toshok  <toshok@ximian.com>
19995
19996         * ComboBox.cs: wrap the dropdown style changing work in
19997         SuspendLayout/ResumeLayout.  Fixes bug #79968.
19998
19999 2006-12-04  Jackson Harper  <jackson@ximian.com>
20000
20001         * TextBoxBase.cs: Fix off by one, since these are one-based.
20002         * TextBox.cs: Select all the text when we get focus.  The TextBox
20003         does this but the RTB does not.
20004
20005 2006-12-04  Chris Toshok  <toshok@ximian.com>
20006
20007         * DataGridTextBoxColumn.cs: remove some spew.
20008
20009         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
20010         but some part of me is saying "it shouldn't be here.."  At any
20011         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
20012         setting the value.
20013
20014 2006-12-04  Chris Toshok  <toshok@ximian.com>
20015
20016         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
20017         to reassign the propertydescriptor.
20018
20019 2006-12-04  Jackson Harper  <jackson@ximian.com>
20020
20021         * TextBoxBase.cs:
20022         * TextControl.cs: Remove some unused variables.  Maybe this will
20023         patch things up between mike and I.
20024         - don't split lines less then one char wide, if the viewport is
20025         that small text won't be visible anyways.
20026         
20027 2006-12-04  Jackson Harper  <jackson@ximian.com>
20028
20029         * TextBoxBase.cs: Default selection length is -1, need to do some
20030         more testing on windows to see when this is used for the property.
20031         - Redid the Lines [] property to that we properly remove soft line
20032         breaks
20033         - added support for preserving carriage returns
20034         -  CanUndo is not a variable like 'is undo enabled' it just returns
20035         true if there is undo operations available.
20036         - AppendText doesn't need to grab the last tag itself anymore,
20037         this happens automatically when we move the cursor.
20038         * TextControl.cs: Add CompoundActions to the undo class. This
20039         allows combining the other operations into one big option.  ie a
20040         paste will combine { delete old, insert new, move cursor }
20041         - Add InsertString undo operation
20042         - New method for deleting multiline text
20043         - Add carriage returns to lines. So we can preserve carriage
20044         returns when text is 'roundtripped'
20045
20046 2006-12-04  Chris Toshok  <toshok@ximian.com>
20047
20048         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
20049         minimum 0.  Fixes the scrollbar exception in bug #80136.
20050
20051 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20052
20053         * MdiClient.cs: 
20054         * MdiWindowManager: Removed unused fields and methods.
20055         
20056 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20057         
20058         * StatusBar.cs: Update all panels when a AutoSize=Contents
20059         panel needs updating.
20060         
20061         * StatusBarPanel.cs: Remove twidth and only use initialize.
20062         Fixes #80031.
20063                 
20064 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20065
20066         * Form.cs: When a form's MdiParent is set add it directly
20067         on top of the z-order in stead of relying on MdiClient's
20068         ActivateChild to do it. Fixes #80135.
20069         
20070         * MdiClient.cs: 
20071         - Remove original_order, mdi_child_list is already doing
20072         the same thing.
20073         - Create mdi_child_list on construction in
20074         stead of first use (avoids a few null checks).
20075
20076         * MenuItem.cs: Use an already existing list of mdi children
20077         to get the correct order of children and remove the other
20078         redundant list.
20079
20080 2006-12-04  Chris Toshok  <toshok@ximian.com>
20081
20082         * PropertyGridView.cs: cached_splitter_location is only used in
20083         !DOUBLEBUFFER code.
20084
20085         * PropertyGrid.cs: implement the ComComponentNameChanged event
20086         using Events, hoping that would fix the warning.  Looks like a
20087         compiler bug instead (#80144).
20088
20089         * PropertyManager.cs: remove unused method.
20090
20091 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
20092
20093         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
20094         include parentesis to fix expression evaluation. Fixes #79634.
20095
20096 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
20097         
20098         * MenuAPI.cs:
20099         - Changes to fix behavior in Menu control, some reported in #80097
20100         and other detected during behavior refactory like a select event
20101         problems.
20102         - Remove unneded "if's" conditions.
20103         - Created an internal to flag when popup is active in control, we need 
20104         it because in .NET you can have menu active but without popup active
20105         when you active menu using popup without visible items.
20106         - Mimic win32 behavior for Select and Popup events.  
20107         - Dont open popup menu when you dont have visible subitems.
20108         - Do nothing when click on disabled menu item.
20109         - Some small changes to follow the coding style guidelines.
20110         - Unselect menu only when another control gives focus. Fixes #80097.
20111         - Remove unused code.
20112         
20113         * MenuItem.cs: internal VisibleItems method to check if menu
20114         theres visible subitems, it will be usefull to fix some 
20115         behavior in Menu control.
20116         
20117 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
20118         
20119         * Timer.cs: Tag property for 2.0 profile.
20120         
20121 2006-12-01  Chris Toshok  <toshok@ximian.com>
20122
20123         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
20124         
20125         * Win32DnD.cs: comment out some unused fields.
20126
20127         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
20128         some unused properties/methods.
20129
20130         * XplatUIX11.cs: fix MousePosition so we override the base class's
20131         property instead of conflicting with it.
20132
20133         * PictureBox.cs: comment out some unused fields
20134
20135         * OSXStructs.cs: make some struct fields public.
20136
20137         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
20138         MousePosition so we override the base class's property instead of
20139         conflicting with it.
20140
20141         * X11Dnd.cs: comment out some unused fields
20142
20143         * X11DesktopColors.cs: fix some struct field visibility to quiet
20144         the compiler.
20145
20146         * X11Dnd.cs: remove some debug code.
20147
20148         * ThemeClearlooks.cs: comment out unused field.
20149
20150         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
20151
20152         * ThemeGtk.cs: comment out some unused pinvokes.
20153
20154         * Timer.cs: remove some unused fields.
20155
20156         * ThemeClearlooks.cs: comment out unused field.
20157
20158         * UpDownBase.cs: comment out unused field.
20159
20160         * DataObject.cs: comment out unused field.
20161
20162         * DataGridBoolColumn.cs: reomve unused field.
20163
20164         * DataGrid.cs: remove unused field.
20165
20166         * Cursor.cs: remove old ToBitmap code.
20167
20168         * ControlPaint.cs: remove unused method.
20169
20170         * ScrollBar.cs: remove unused fields.
20171
20172         * ComboBox.cs: remove unused field, and chain up to
20173         AccessibleObject ctor.
20174
20175         * ListBox.cs: remove unused field.
20176
20177         * ButtonBase.cs: wrap a couple fields in NET_2_0.
20178
20179         * GridEntry.cs: remove unused fields.
20180
20181         * Binding.cs: remove unused fields.
20182
20183         * AxHost.cs: remove unused method.
20184
20185         * ContainerControl.cs: remove unused field.
20186
20187         * ScrollableControl.cs: remove unused fields.
20188
20189 2006-12-01  Chris Toshok  <toshok@ximian.com>
20190
20191         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
20192         the Where/WhereString stuff.  it's easy enough to CWL
20193         Environment.StackTrace.
20194
20195         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
20196         unused private fields.
20197
20198 2006-12-01  Jackson Harper  <jackson@ximian.com>
20199
20200         * TextControl.cs: Do not update the view while inserting multiline
20201         text. If we update the view we might wrap lines, before entering
20202         the new lines, which causes the new line insertion calculations to
20203         be totally fubared.
20204         - Remove an old TODO
20205         - Make debug output a little nicer
20206         
20207 2006-12-01  Chris Toshok  <toshok@ximian.com>
20208
20209         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
20210
20211 2006-12-01  Chris Toshok  <toshok@ximian.com>
20212
20213         [ fix the majority of the CS0108 warnings we've been suppressing ]
20214         
20215         * TreeView.cs: mark BackgroundImageChanged as 'new'.
20216
20217         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
20218         to "LayoutToolBar" to quiet mcs.
20219         
20220         * TabControl.cs: mark our ControlCollection class as 'new'.
20221
20222         * TextBoxBase.cs: mark some events as 'new'.
20223
20224         * Splitter.cs: TabStop is 'new'.
20225
20226         * ControlBindingsCollection.cs: mark a few methods as new since
20227         they change the visibility from protected to public.
20228
20229         * RadioButton.cs: DoubleClick -> base class, and remove unused
20230         HaveDoubleClick.
20231
20232         * MonthCalendar.cs: ImeMode property -> base class, and mark many
20233         events as new.
20234
20235         * NumericUpDown.cs: TextChanged -> base class.
20236
20237         * CheckedListBox.cs: mark our ObjectCollection class as new to
20238         quiet mcs.
20239
20240         * FolderBrowserDialog.cs: make HelpRequest event new and have it
20241         muck with the base class.
20242
20243         * StatusBar.cs: fix some mcs warnings about Update being the same
20244         name as a base class method.
20245
20246         * RichTextBox.cs: mark some events as new, and make them do things
20247         to the base class impl.
20248
20249         * UserControl.cs: mark TextChanged as new, and have it manipulate
20250         base.TextChanged.
20251
20252         * UpDownBase.cs: mark some things new.
20253
20254         * CheckBox.cs: mark DoubleClick "new", and add some text about
20255         what we need to look at.
20256
20257         * Panel.cs: make the events "new", and manipulate the base
20258         version.  these are just here for attributes.
20259
20260         * AccessibleObject.cs: make owner private.
20261
20262         * Control.cs: deal with AccessibleObject.owner being private.
20263         cache our own copy if we need it.
20264
20265         * Button.cs: add "new" to the DoubleClickEvent.
20266
20267         * ListBox.cs: no need to track our own has_focus here.  let
20268         Control.has_focus do it for us.  Also some other work to clear up
20269         warnings about not overriding base class methods of the same name.
20270         
20271         * ComboBox.cs: clear up some warnings about not override base
20272         class methods of the same name.
20273
20274 2006-12-01  Chris Toshok  <toshok@ximian.com>
20275
20276         * Form.cs: flag a few things as "new" to quiet some of the mcs
20277         warnings.
20278
20279         * AxHost.cs: same.
20280
20281         * PrintPreviewDialog.cs: same.
20282
20283         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
20284         now DGV isn't so horrible on the class status page.  also, move
20285         all events to using System.ComponentModel.EventHandlerList.  my
20286         wrists hurt.
20287
20288 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20289
20290         * MdiWindowManager.cs:
20291         - Set form to active mdi child if shown,
20292         and update the active mdi child to the next 
20293         remaining child in the z-order if the form is hidden.
20294
20295         * Form.cs: 
20296         - Track if the form has been visible and if its 
20297         visibility is beeing changed, so that the MdiClient
20298         can properly decide the ActiveMdiChild. The MdiClient 
20299         cannot track this since the form can change visibility 
20300         before MdiClient is created.
20301
20302         * MdiClient.cs:
20303         - Don't activate anything of the parent form is changing
20304         its visibility.
20305         - Rework ActiveMdiChild to only return visible mdi 
20306         children and take into account several other corner 
20307         cases.
20308
20309 2006-12-01  Chris Toshok  <toshok@ximian.com>
20310
20311         * IBindableComponent.cs: new 2.0 interface.
20312
20313 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
20314
20315         * DataGrid.cs: Font for caption area is bold by default.
20316
20317 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
20318
20319         * Menu.cs: Tag property for 2.0.
20320         
20321 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
20322
20323         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
20324         
20325 2006-12-01  Chris Toshok  <toshok@ximian.com>
20326
20327         * TreeView.cs: doh, the Begin* events should be
20328         TreeViewCancelEventHandler.
20329
20330 2006-12-01  Chris Toshok  <toshok@ximian.com>
20331
20332         * Form.cs: Form.ControlCollection already stores off the
20333         form_owner field.  don't access the base class's internal "owner"
20334         field.
20335
20336         * Control.cs: make all the fields in Control.ControlCollection
20337         private.  there's no need for any internal fields here.
20338
20339 2006-12-01  Chris Toshok  <toshok@ximian.com>
20340
20341         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
20342         OnHandleCreated.  Fixes bug #80109.
20343
20344 2006-12-01  Chris Toshok  <toshok@ximian.com>
20345
20346         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
20347         SplitContainer.cs, Control.cs, StatusStrip.cs,
20348         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
20349         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
20350         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
20351         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
20352         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
20353         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
20354         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
20355         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
20356         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
20357         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
20358
20359         do most of the work to convert our code over to use
20360         System.ComponentModel.Component.Events for
20361         adding/removing/dispatching events.
20362
20363
20364 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
20365
20366         * DataGridView.cs: Fix an ArgumentNullException reported 
20367         twice today in IRC.
20368
20369 2006-11-30  Mike Kestner  <mkestner@novell.com>
20370
20371         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
20372         grabbed listbox.  Fixes #80036 and #80101.
20373
20374 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
20375
20376         * Message.cs: Changed ToString() to match MS.
20377         
20378 2006-11-30  Jackson Harper  <jackson@ximian.com>
20379
20380         * TextBoxBase.cs: You can still change the selected text on a read
20381         only textbox.
20382         * TextControl.cs: Lower magic number for wrap calculations. This
20383         lets text get closer to the right (far) edge.
20384
20385 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
20386
20387         * Control.cs: Tweak 2.0 layout properties.
20388         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
20389         * TextRenderer.cs: Add a new overload.
20390         * ToolStrip*: Huge amount of changes and new features.
20391
20392 2006-11-30  Mike Kestner  <mkestner@novell.com>
20393
20394         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
20395         scroll range correct.  Fixes #79994.
20396
20397 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
20398
20399         * MdiWindowManager.cs: Update main form's text when
20400         a form is closed. (fixes #80038)
20401         
20402 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
20403
20404         * ToolBar.cs:
20405         - Fix an regression in ButtonSize.
20406         - Get ImeMode default value change to "Disable".
20407         - Get ShowTooltips default value change to true, default value is 
20408         "false" but after make a test in .NET we get "true" result as default.
20409         
20410 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
20411
20412         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
20413
20414 2006-11-29  Chris Toshok  <toshok@ximian.com>
20415
20416         * XplatUIWin32.cs (GetWindowTransparency): check return value of
20417         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
20418         SetWindowTransparency hasn't been called.
20419
20420 2006-11-29  Chris Toshok  <toshok@ximian.com>
20421
20422         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
20423         if it's supported.
20424         (set_AllowTransparency): reorder things a little so that the
20425         WS_EX_LAYERED style is removed properly.
20426
20427 2006-11-29  Chris Toshok  <toshok@ximian.com>
20428
20429         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
20430         
20431         * Form.cs: only call the XplatUI transparency method (get/set) if
20432         SupportsTransparency says it's supported. Otherwise fallback to
20433         doing nothing (in the set case) or returning the instance field we
20434         cache (in the get case).
20435
20436         * XplatUIStructs.cs: add TransparencySupport flag enum.
20437         
20438         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
20439         change to SupportsTransparency.
20440
20441         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
20442         TransparencySupport.None from SupportsTransparency.
20443
20444         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
20445         TransparencySupport.Set from SupportsTransparency.
20446
20447         * XplatUIWin32.cs: implement GetWindowTransparency calling
20448         GetLayeredWindowAttributes, and implement SupportsTransparency by
20449         checking whether or not both
20450         GetWindowTransparency/SetWindowTransparency are available
20451         entrypoints.  We need to do this since SetWindowTransparency is
20452         available as of win2k, but GetWindowTransparency requires winxp.
20453         yay win32 api.
20454
20455         * XplatUI.cs: Add GetWindowTransparency, and change
20456         SupportsTransparency to allow for either/both Get/Set.
20457
20458 2006-11-29  Chris Toshok  <toshok@ximian.com>
20459
20460         * DataGrid.cs: keep from going into an infinite loop redrawing a
20461         datagrid that has no datasource.  Fixes bug #80033.
20462
20463 2006-11-29  Chris Toshok  <toshok@ximian.com>
20464
20465         * MenuItem.cs: fix the NRE when we assign text (and therefore call
20466         Invalidate) before the mainmenu has been assigned to a control.
20467
20468 2006-11-29  Chris Toshok  <toshok@ximian.com>
20469
20470         * DataGrid.cs: detect when we should be double the double click
20471         row/column autosize stuff, although that codepath has yet to be
20472         written.  part of the work for bug #79891.
20473
20474 2006-11-29  Chris Toshok  <toshok@ximian.com>
20475
20476         * Binding.cs (SetControl): fix unit test.
20477
20478 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20479
20480         * PageSetupDialog.cs: Validate the margins and set them in
20481         PageSettings. 
20482         * NumericTextBox.cs: New class to mimic the behavior of the
20483         textboxes used in the printing dialogs.
20484
20485 2006-11-29  Andreia Gaita  <avidigal@novell.com>
20486         
20487         * Form.cs: Revert previous change (remove call UpdateBounds
20488         from form constructor), because it messes with the handle creation
20489         order, and that one needs lots and lots of love.
20490         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
20491         for valid printer and throw InvalidPrinterException if document
20492         is set but printer not valid), adding a MonoTODO. Once 
20493         handle creation is done properly, we can put this back in.
20494
20495 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
20496
20497         * MenuItem.cs: Create a invalidate method for menu item, to be
20498         calling from set text, it make text changes to imadiate update
20499         on screen. Fixes #80013. 
20500         
20501 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
20502
20503         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
20504         fixes bug #80070 and some other problem on toolbar buttons
20505         layout.
20506
20507 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
20508
20509         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
20510         with dotted brush.      Fixes #79564
20511         
20512 2006-11-28  Andreia Gaita  <avidigal@novell.com>
20513
20514         * Form.cs: Removed call to UpdateBounds on Form
20515         constructor, it was causing a call to CreateHandle
20516         before it was supposed to.
20517         * PrintControllerWithStatusDialog: Applied patch
20518         by Chris Toshok to hide controller when there are
20519         no printers available.
20520         PrintDialog.cs: initialize printer settings to 
20521         null - correct DefaultValues test #5
20522         * PrintPreviewControl.cs: Move PrintController
20523         initialization to GeneratePreview
20524         * PrintPreviewDialog.cs: 
20525         - Remove Preview generation     from Document_set(). It is 
20526         called on OnPaint
20527         - Throw InvalidPrinterException on CreateHandle if
20528         a Document is set but there are no printers or 
20529         printer is not valid.
20530         * ThemeWin32Classic: don't paint PrintPreviewControl
20531         if there is nothing to paint    
20532
20533 2006-11-28  Miguel de Icaza  <miguel@novell.com>
20534
20535         * Form.cs: Add another popular method.
20536
20537         * TabPage.cs: ditto.
20538
20539 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20540
20541         * MenuItem.cs: Fixed a warning.
20542         * InternalWindowManager: Fixed a warning.
20543
20544 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20545
20546         * MenuItem.cs:
20547         - When cloning a menu also clone MdiList and clone the 
20548           window menu items properly (as the forms and menuitems
20549           are kept in an internal hashtable, these need updating 
20550           as well)
20551         - Rewrote the window menu code, menu items are added in the
20552           order the forms were added to their parent, and they are
20553           updated every time the window menu is shown (before the
20554           list was only generated once, in the current order of the
20555           forms, and would never be updated). A checkmark is shown
20556           next to the item corresponding to the active mdi child.
20557
20558 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20559
20560         * XplatUIStructs.cs: 
20561         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
20562         
20563         * XplatUIWin32.cs: 
20564         - Added TME_NONCLIENT to TMEFlags.
20565         - Handles WM_NCMOUSEMOVE in GetMessage to 
20566           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
20567
20568         * MdiWindowManager:
20569         - Now merges mdi child menu to parent menu when maximized.
20570         - Recalculate NC areas of both mdi child and mdi parent. 
20571           Fixes #79757 (4).
20572           on window state and size changes.Fixes #79844 (3).
20573         - Handle WM_NCCALCSIZE to properly calculate borders.
20574
20575         * Form.cs:
20576         - Add/remove to the mdi containers list of mdi children 
20577           in the order they are added.
20578         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
20579           to the maximized mdi child.
20580         
20581         * InternalWindowManager.cs:
20582         - Only execute a click on the control buttons on the mouse up,
20583           not on the mouse down. Show the state of the button 
20584           (was only showing Normal state, never Pressed state). The
20585           pressed button now follows the mouse (if you click the Close 
20586           button and move the mouse over the Maximize button, the 
20587           Maximize button will be shown as pressed). Since Win32 does
20588           not generate WM_NCLBUTTONUP if you release the button outside
20589           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
20590           it as a mouse up.
20591         
20592         * ThemeWin32Classic.cs:
20593         - Draw a missing border around mdi child forms. Fixes #79844 (2).
20594
20595         * MdiClient.cs:
20596         - Added a list of forms which contains the order the forms are
20597           added to the mdi parent.
20598         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
20599         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
20600         - If the active form changes set the scrollbars to the top
20601           of the Z order, otherwise the form could hide them.
20602         - Scrollbars are now sized according to ClientSize, not 
20603           to Size, and they take into account the other scrollbar
20604           to determine maximum.
20605         
20606 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
20607         
20608         * XplatUI.cs:
20609         * XplatUIDriver.cs:
20610         * XplatUIX11.cs:
20611         * XplatUIWin32.cs:
20612         * XplatUIOSX.cs:
20613         - Added RequestAdditionalWM_NCMessages for windows to 
20614           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
20615           Currently only implemented in XplatUIWin32.
20616
20617 2006-11-27  Chris Toshok  <toshok@ximian.com>
20618
20619         * Hwnd.cs: only add the hwnd to the windows hash in
20620         set_WholeWindow and set_ClientWindow if whole_window/client_window
20621         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
20622
20623 2006-11-27  Mike Kestner  <mkestner@novell.com>
20624
20625         * ComboBox.cs: remove redundant OnDropDown call.  It is called
20626         from the ComboListBox.ShowWindow code. Fixes #79969.
20627
20628 2006-11-27  Chris Toshok  <toshok@ximian.com>
20629
20630         * Hwnd.cs: remove the setters for ExposePending and
20631         NCExposePending - noone uses them.
20632
20633 2006-11-27  Jackson Harper  <jackson@ximian.com>
20634
20635         * TextControl.cs: new param for ReplaceSelection which determines
20636         whether we select the new selection, or set the cursor to the end
20637         of the new selection.
20638         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
20639         pasting, select the new text.
20640         * RichTextBox.cs: Use new param for ReplaceSelection.
20641
20642 2006-11-27  Jackson Harper  <jackson@ximian.com>
20643
20644         * TextBoxBase.cs: Set the selection to the caret after the caret
20645         is moved, otherwise they get out of sync.
20646
20647 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
20648
20649         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
20650         it fixes #80015
20651
20652 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
20653
20654         * ThemeWin32Classic.cs: 
20655         - Fix toolbar drop down arrow position.
20656         - Fix drop down appearance when ToolBar.Appearance is normal,
20657         it fixes #80018.
20658         
20659 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
20660
20661         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
20662         * Control.cs: Same.
20663         * UpDownBase.cs: Same.
20664         * ButtonBase.cs: Same.
20665         * ScrollBar.cs: Same.
20666         * TrackBar.cs: Same.
20667         * PictureBox.cs: Same.
20668         * UserControl.cs: Same.
20669         * Label.cs: Same.
20670         * ListControl.cs: Same.
20671         * TextBoxBase.cs: Same.
20672         * ListView.cs: Same.
20673         * RichTextBox.cs: Same.
20674         * TreeView.cs: Same.
20675
20676 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
20677
20678         * PrintDialog.cs:
20679         - Text label for where 
20680         - Text label comment was not shown
20681
20682 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
20683
20684         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
20685
20686 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
20687
20688         * InternalWindowManager.cs: 
20689         - Handle WM_PARENTNOTIFY to activate the form
20690         if any child control is clicked.
20691         - The form is only sizable if not minimized.
20692
20693         * MdiWindowManager.cs:
20694         - Save the IconicBounds if the form is moved.
20695         - Rework SetWindowState, now the window bounds 
20696         are stored only if the old window state is Normal.
20697         
20698         * MdiClient.cs:
20699         - In SetWindowStates store the old window state if 
20700         the window is maximized and restore window state if
20701         the window looses focus.
20702         - Don't handle any scrollbar value changes if 
20703         initializing the scroll bars. Fixes #79771.
20704         - Reworked ArrangeIconicWindows. Current algorithm
20705         tests bounds agains all other minimized windows, if
20706         any intersections create new bounds (going left to 
20707         right, bottom to top) and then test again. When 
20708         successful the bounds are saved and never computed
20709         again. Fixes #79774.
20710
20711 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
20712
20713         * InternalWindowManager.cs: Added HandleTitleBarUp.
20714
20715 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
20716
20717         * NumericUpDown.cs: In .NET 1.1, user entered text is still
20718         hexadecimal in ParseUserEdit.
20719
20720         
20721 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
20722
20723         * MdiWindowManager.cs: 
20724         - Handle a click on the form's icon to show the 
20725         system menu (when maximized). Fixes #79775.
20726         - Change the existing click handler for the form's
20727         icon when not maximized to show on MouseUp.
20728         Fixes #79776.
20729
20730         * Form.cs: In OnResize only layout the mdi child's
20731         parent if it actually has a parent. Might not if
20732         the window is closing.
20733
20734
20735 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
20736
20737         * MdiClient.cs: Ignore active MDI client for text of parent, if
20738         child has no text set.
20739
20740 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
20741
20742         * ToolBar.cs: Fixed ToString to match MS.
20743
20744 2006-11-22  Andreia Gaita  <avidigal@novell.com>
20745
20746         * NumericUpDown: 
20747         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
20748         update inner values on set. Fixes #79966.
20749         - Override OnLostFocus to update value on NET 2. Fixes #79950.
20750         - Fix hexadecimal parsing.
20751         
20752         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
20753         parent. Fixes #79957
20754
20755 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20756
20757         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
20758         the actual size has to be queried, since if height /
20759         width is negative Win32 changes it to 0. 
20760         Fixes #79999 on Windows.
20761         
20762         * XplatUIX11.cs: Set height / width to 0 if negative
20763         in SetWindowPos. Fixes #79999 on Linux.
20764         
20765 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
20766
20767         * ThemeWin32Classic.cs: Fix text redenring when button is
20768         pressed.
20769
20770 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
20771
20772         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
20773         and later navigate by mouse. Fixes #79528.
20774
20775 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
20776
20777         * ToolBar.cs: Set default value for TabStop to false in
20778         constructor, it fixes remaining behavior of bug #79863.
20779
20780 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20781
20782         * MdiWindowManager.cs:
20783         * InternalWindowManager.cs:
20784         - Moved a few methods specific to Mdi from 
20785         InternalWindowManager to MdiWindowManager.
20786         Fixes #79996.
20787         
20788 2006-11-21  Chris Toshok  <toshok@ximian.com>
20789
20790         * XplatUIOSX.cs: stub out InvalidateNC.
20791
20792         * XplatUIWin32.cs: implement InvalidateNC using the call I found
20793         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
20794
20795         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
20796
20797         * XplatUIDriver.cs: add InvalidateNC abstract method.
20798
20799         * XplatUI.cs: add InvalidateNC.
20800
20801 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
20802
20803         * ToolBar.cs: Invalidate complete button area when pressed status 
20804         was changed.
20805         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
20806         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
20807         by 1 when button is pressed.
20808
20809 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
20810
20811         * ToolButton.cs: Invalidate middle of DropDown button when
20812         ToolBar theres DropDownArrows.
20813         * ThemeWin32Classic.cs: Change position of DropDown arrow and
20814         fix DropDown drawing operations.
20815
20816 2006-11-20  Chris Toshok  <toshok@ximian.com>
20817
20818         * NativeWindow.cs: fix the formatting of functions ('{' on the
20819         following line), and enable the thread exception dialog.
20820
20821         * Application.cs: remove the duplicate exception catching from
20822         here.
20823
20824 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
20825
20826         * Toolbar.cs: Triggers button click event when click on icon
20827         of dropdown ToolBarButton. Fixes #79912.
20828         
20829 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20830
20831         * Theme.cs:
20832         * ThemeWin32Classic.cs:
20833         - Added a property WindowBorderFont to enable themeing
20834           of mdi child windows' Text.
20835           
20836 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20837
20838         * InternalWindowManager.cs:
20839         * Form.cs:
20840         * MdiClient.cs:
20841         * MdiWindowManager.cs: 
20842         - If mdi child is maximized, set mdi parent's
20843           text to "Parent - [Child]". Fixes #79770.
20844         - If there is any maximized mdi child windows, only the active 
20845           window (and any new windows) is maximized, the rest are normal.
20846         - On a WindowState change only save mdi child's window bounds 
20847           if the old window state was normal. Fixes #79774.
20848         - The scroll bars are now calculated on hopefully all
20849           necessary events. Fixed #79771 / #79844->6 / #79906.
20850         - MdiClient.SizeScrollBars() now takes into account docked 
20851           controls in the parent when calculating available space.
20852         - InternalWindowManager now always repaints the entire title
20853           area. Fixes #79844->1/4/5.
20854         - Added RequestNCRecalc on mdi child windowstate changes.
20855           Fixes #79772.
20856
20857 2006-11-20  Mike Kestner  <mkestner@novell.com>
20858
20859         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
20860         in the MouseUp handler of the listbox and move the return handling
20861         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
20862
20863 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
20864
20865         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
20866
20867 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
20868
20869         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
20870           working in 1.2.x anymore. So, updated.
20871
20872 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
20873
20874         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
20875         NumberGroupSeparator of current culture instead of assuming en-US.
20876         Fixed bug #79967.
20877
20878 2006-11-17  Mike Kestner  <mkestner@novell.com>
20879
20880         * Control.cs: Add the concept of implicit bounds setting so that
20881         dock/undock round trips preserve explicitly set size/locations.
20882         Fixes #79313.
20883
20884 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
20885
20886         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
20887           can't handle those filters. (Fixes bug #79961)
20888
20889 2006-11-17  Chris Toshok  <toshok@ximian.com>
20890
20891         [ fixes the exit/crashes associated with #79835.  it's clearly
20892         suboptimal though, we need to figure out a better way to solve
20893         this. ]
20894         
20895         * PrintPreviewControl.cs: deal with the new invalid printer
20896         exceptions.
20897
20898         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
20899         and return false (so CommonDialog.ShowDialog doesn't actually show
20900         the form.)
20901
20902         * PrintDialog.cs: enable/disable the Ok button depending on
20903         whether or not the printer is valid.
20904
20905         * CommonDialog.cs (ShowDialog): only actually show the form if
20906         RunDialog returns true.
20907
20908 2006-11-17  Jackson Harper  <jackson@ximian.com>
20909
20910         * TextControl.cs: When soft splitting a line, mark it as a soft
20911         split line. Also carry over the current line break to the next
20912         line.
20913
20914 2006-11-17  Chris Toshok  <toshok@ximian.com>
20915
20916         * XplatUIX11.cs: when scrolling a window with an invalid area, we
20917         only want to shift the part of the invalid area that overlaps the
20918         area we're scrolling.  we also don't want to clear the invalid
20919         area unless the invalid area was entirely contained within the
20920         scrolling area.
20921
20922 2006-11-16  Chris Toshok  <toshok@ximian.com>
20923
20924         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
20925         also make sure to free the memory returned by XGetWindowProperty
20926         in GetText().
20927
20928         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
20929
20930 2006-11-16  Chris Toshok  <toshok@ximian.com>
20931
20932         * XplatUI.cs: add a new super secret way to get at the totally
20933         unsupported X11 backend.
20934
20935 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
20936
20937         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
20938
20939 2006-11-16  Jackson Harper  <jackson@ximian.com>
20940
20941         * TreeView.cs: Allow more explicit setting of top node position
20942         for scrollbars. Slower algo, but more accurate.
20943         - CollapseAll should maintain the current top node.
20944         * TextBoxBase.cs: When positioning the caret, use the line, pos
20945         method, since the x, y method does not grab the correct tag, and
20946         the caret height never gets set correctly. (Maybe I should just do
20947         away with the caret having its own height, and always use the
20948         carets current tag for height).
20949
20950 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
20951
20952         [Fixes 79778, 79923]
20953
20954         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
20955         Parent to the FosterParent instead.
20956
20957 2006-11-16  Jackson Harper  <jackson@ximian.com>
20958
20959         * TreeView.cs: Need to recalc the topnode when we expand or
20960         collapse. The scrolling methods can't handle this on their own,
20961         since they use differences between the last scroll position, and
20962         those difference get completely messed up since we are expanding
20963         nodes.  This problem should probably be fixed in the scrolling
20964         methods, so they can figure out exactly where they are, but this
20965         will slow things down a little.
20966         * ThemeWin32Classic.cs: Special case for groupboxes with empty
20967         strings, makes nunit-gui look a lot nicer.
20968
20969 2006-11-16  Chris Toshok  <toshok@ximian.com>
20970
20971         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
20972         the broken multithreaded event handling we have in here.  File
20973         this entry under "Why we should move to the new X11 backend".
20974
20975         Any thread can make it into UpdateMessageQueue, which gets events
20976         from the X socket - some of which could belong to hwnds being
20977         managed by a different thread.  We can also have multiple threads
20978         in UpdateMessageQueue at the same time, with each one reading from
20979         the X socket.  This leads to many problems, with the following
20980         solutions:
20981
20982         We can't use hwnd.Queue.Enqueue anywhere in here and must use
20983         EnqueueLocked.
20984
20985         The MotionNotify compression we do can't work across threads
20986         (without locking the entire queue, perhaps) since we call
20987         hwnd.Queue.Peek, so we just punt and don't compress motion events
20988         unless the owning thread is the one which got the X event.
20989
20990         ConfigureNotify is another fun one, since it modifies the hwnd's
20991         bounds and then enqueues the event.  We add a lock to Hwnd which
20992         is held when setting configure_pending to true (and enqueuing the
20993         event).
20994
20995         There is a race wrt the wake socket.  we need to make sure that
20996         only 1 thread is waiting on that socket, or else a thread could
20997         sleep waiting for data that never comes.  It's difficult (but not
20998         impossible) to make happen, because it seems to require something
20999         like the following:
21000
21001             1. Thread 1 polls on wake_receive
21002         
21003             2. poll returns saying there's data to be read on
21004                wake_receive.
21005         
21006             3. Thread 2 polls on wake_receive and immediately returns
21007                saying there's data to be read.
21008
21009             4. Thread 2 reads the wakeup byte from wake_receive
21010
21011             5. Thread 1 attempts to read the wakeup byte from
21012                wake_receive.
21013
21014             6. Thread 2 exits (due to a form closing, perhaps).
21015
21016             7. Thread 1 blocks forever.
21017         
21018         Fun, eh?
21019
21020         Fixing the Expose handling isn't done yet, and the races inherent
21021         in that piece of code are responsible for the drawing mistakes you
21022         see when generating expose events in a MT app (like NPlot).  This
21023         one is the likely to be the hardest to bandaid, and it doesn't
21024         appear to cause anything but drawing problems.  The other issues
21025         caused apps to exit or hang.
21026
21027         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
21028         called from a different thread than the one that should be calling
21029         these functions.
21030
21031         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
21032
21033 2006-11-15  Chris Toshok  <toshok@ximian.com>
21034
21035         * Application.cs: null out the context's MainForm when we exit
21036         RunLoop.  Fixes a newly checked in unit test as well as the last
21037         ODE from bug #79933.
21038
21039 2006-11-15  Chris Toshok  <toshok@ximian.com>
21040
21041         * Form.cs (set_Owner): allow a null value so we can clear the
21042         form's owner.
21043         (Dispose): set all our owned_form's Owner properties to null, and
21044         clear the owned_forms collection.
21045         (WM_CLOSE): clean up this a little bit.. still not right though.
21046
21047         * ApplicationContext.cs: OnMainFormClosed should only call
21048         ExitThreadCore if the main form isn't recreating.  Fixes unit
21049         test.
21050
21051 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
21052
21053         [Fixes 78346]
21054
21055         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
21056
21057 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
21058
21059         [Fixes 79433]
21060
21061         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
21062         keep popup window types from stealing focus from the main form
21063         on Windows.
21064
21065         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
21066
21067         * MenuAPI.cs: Set above flag to true.
21068
21069 2006-11-15  Chris Toshok  <toshok@ximian.com>
21070
21071         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
21072         the button being released is not in wParam.
21073
21074 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
21075
21076         * Form.cs: Add the released button to MouseEventArgs.Button
21077         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
21078         on Win32.
21079
21080 2006-11-15  Chris Toshok  <toshok@ximian.com>
21081
21082         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
21083         GetText().  untested because it's unused in our implementation.
21084         Control.Text always caches the text, even if
21085         ControlStyles.CacheText is not set.
21086
21087         fixes bug #79939.
21088
21089 2006-11-15  Chris Toshok  <toshok@ximian.com>
21090
21091         [ fixes #79933 ]
21092         
21093         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
21094         message.  no hiding, no disposing.
21095
21096         in the WM_CLOSE handler, hide the form if it's modal.
21097
21098 2006-11-15  Chris Toshok  <toshok@ximian.com>
21099
21100         * XplatUIX11.cs: use AddExpose instead of sending a message.
21101         fixes textbox border drawing.
21102
21103 2006-11-15  Chris Toshok  <toshok@ximian.com>
21104
21105         * PropertyGridView.cs: keep from crashing on mouse move/down when
21106         the property grid is empty.
21107
21108 2006-11-14  Jackson Harper  <jackson@ximian.com>
21109
21110         * TextControl.cs: Make PageUp and PageDown more like the MS
21111         versions.
21112         * TextBoxBase.cs: When we set the text property position the
21113         cursor at the beginning of the document.
21114
21115 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21116
21117         * Form.cs: if a mdi child's WindowState has changed
21118         before it's creation, it would display wrong control
21119         buttons.
21120         
21121 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
21122
21123         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
21124           (Fixes bug #79927)
21125
21126 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
21127
21128         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
21129         the window gets to paint its borders even if the window is
21130         getting smaller.
21131         
21132         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
21133         otherwise the old control buttons would still be painted 
21134         if the window gets bigger.
21135         
21136         * PaintEventArgs.cs: add an internal method so that the clip 
21137         rectangle can be changed.
21138         
21139 2006-11-13  Chris Toshok  <toshok@ximian.com>
21140
21141         [ fixes bug #79745 ]
21142         
21143         * NotifyIcon.cs: lots of cleanup.
21144
21145         * X11Structs.cs: add an enum for XEMBED messages.
21146
21147         * XplatUIX11.cs: reindent one of the giant switch statements, it
21148         was taking up an additional tab stop, and this file is already way
21149         too wide for my laptop's screen.
21150
21151         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
21152         we get it, resize the hwnd to the WMNormalHints max_width/height.
21153
21154 2006-11-13  Jackson Harper  <jackson@ximian.com>
21155
21156         * TextBoxBase.cs: Compute the value changes for the mouse wheel
21157         teh simple way.
21158
21159 2006-11-13  Chris Toshok  <toshok@ximian.com>
21160
21161         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
21162         #79898.  force a reference to the Region to stick around so the
21163         unmanaged object isn't collected (rendering our handle in the MSG
21164         stale).
21165
21166 2006-11-13  Chris Toshok  <toshok@ximian.com>
21167
21168         * XplatUIX11.cs: fix #79917 for window managers which support
21169
21170         using XStoreName on the raw utf8, and we need to convert to
21171         COMPOUND_TEXT if it's non-latin1.
21172
21173 2006-11-13  Chris Toshok  <toshok@ximian.com>
21174
21175         * Form.cs (set_DialogResult): we need to set closing to false if
21176         we're setting our result to None.  fixes bug #79908.
21177
21178 2006-11-13  Jackson Harper  <jackson@ximian.com>
21179
21180         * TextControl.cs: When formatting text, compute the adjusted tag
21181         lengths correctly, using FindTag for the end tag instead of trying
21182         to figure it out outselves.
21183         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
21184         the item, ItemHeight doesn't work, because trees with large
21185         imagelists use those for their height
21186         * TreeView.cs: ActualItemHeight factors in the image height
21187         - compute left edge of checkboxes correctly
21188         - when expanding/collapsing move the bottom down one pixel, so we
21189         aren't moving part of the node
21190
21191 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21192
21193         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
21194         stack in PaintEventStart so that it won't get disposed by the gc
21195         before reaching PaintEventEnd.
21196
21197 2006-11-13  Jackson Harper  <jackson@ximian.com>
21198
21199         * TextBoxBase.cs: Don't select the word if we are on a line with
21200         no text.
21201         - We don't need to position the caret on mouse up, since the mouse
21202         move handler should be doing this
21203         - When double clicking a blank line, the caret is advanced to the
21204         next line.
21205
21206 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
21207
21208         * TreeNodeCollection.cs: Avoid duplicating indexer code.
21209
21210 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
21211
21212         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
21213         Fixes part of bug #79910.
21214
21215 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
21216
21217         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
21218           (bug #79903). Some minor string updates to match ms.
21219
21220 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
21221
21222         * FileDialog.cs: Don't add an extension if the filename
21223           already ends with that extension.
21224
21225 2006-11-10  Jackson Harper  <jackson@ximian.com>
21226
21227         * TreeView.cs: Use the currently highlighted node for the
21228         BeforeSelect event.
21229         * TextBoxBase.cs: There is no need to expand selection on
21230         MouseMove.
21231         - CanUndo means 'is there any undo operations', not 'is undo
21232         allowed on this textcontrol. Fixed ClearUndo unit test.
21233
21234 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
21235
21236         * Button.cs: only perform click when button is Selectable (so as 
21237         not to activate default buttons when they're disabled)
21238         
21239         * Control.cs: Rewrite of the SelectNextControl and related 
21240         methods. HandleClick now selects next control if the current one
21241         is being disabled.
21242         
21243         * Form.cs: OnActivated selects next active control only if Load 
21244         has already occurred. If Load hasn't run, there's no point in 
21245         selecting here, Load might change the state of controls.
21246         
21247         * FocusTest.cs: Tests marked as working again for these fixes
21248
21249 2006-11-10  Chris Toshok  <toshok@ximian.com>
21250
21251         * XplatUIX11.cs: a couple of fixes.
21252
21253         - use XInternAtoms with almost all the atoms we need to register,
21254         instead of many, many calls to XInternAtom.  should help a bit on
21255         startup time, at the expense of making the code look a little
21256         worse.
21257
21258         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
21259         isn't reparented (which seems to be a clue that we're running fon
21260         compiz) and they have an Owner form.  This fixes the tool windows
21261         in paint.net when running under compiz.
21262
21263         - when setting the opacity of a window, support both the case
21264         where the window has been reparented and also when it hasn't been.
21265         Since compiz/beryl doesn't seem to reparent windows, and these are
21266         the only window managers which support translucency, I'm not sure
21267         why we need the hwnd.reparented case at all.. but leave it in.
21268         now we get translucent windows in paint.net under compiz/beryl.
21269
21270 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
21271
21272         * FileDialog.cs: Always return the value for FilterIndex that
21273           was set. Internally convert it to values that make sense.
21274
21275 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
21276         
21277         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
21278
21279 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
21280
21281         * Toolbar.cs: Change default value of DropDownArrows to true, the 
21282         signature still using false to make it compatible with MS but the 
21283         initial value is true. Fixes #79855.
21284
21285 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
21286
21287         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
21288           only available on Linux.
21289
21290 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
21291
21292         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
21293         reduce number of calls to redraw method during toolbar creation.
21294
21295 2006-11-09  Mike Kestner  <mkestner@novell.com>
21296
21297         * ListView.cs : raise SelectedIndexChanged when an item is selected
21298         programmatically via the Item.Selected property.  Gert's nice 
21299         ListViewSelectedIndexChanged test fixture now runs clean.
21300
21301 2006-11-09  Mike Kestner  <mkestner@novell.com>
21302
21303         * ListView.cs : raise SelectedIndexChanged when a selected item is
21304         removed from the item collection using Remove or RemoveAt.
21305
21306 2006-11-09  Mike Kestner  <mkestner@novell.com>
21307
21308         * ListView.cs : raise SelectedIndexChanged once per selected item
21309         for compat with MS.  Fixes #79849+.
21310
21311 2006-11-09  Chris Toshok  <toshok@ximian.com>
21312
21313         * TabControl.cs: initialize row_count to 0, and set it to 1 when
21314         we need to (if we have any tab pages).  Fixes unit test.
21315
21316 2006-11-09  Chris Toshok  <toshok@ximian.com>
21317
21318         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
21319         width is 0, not 3.  Fixes a unit test.
21320
21321 2006-11-09  Mike Kestner  <mkestner@novell.com>
21322
21323         * ListView.cs : use Implicit scrollbars so that focus isn't 
21324         stolen from the listview when they are clicked. Fixes #79850.
21325
21326 2006-11-09  Chris Toshok  <toshok@ximian.com>
21327
21328         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
21329         have a root item.  Fixes #79879.
21330
21331 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
21332
21333         * FileDialog.cs:
21334           - Fix ToString ()
21335           - An ArgumentException is now thrown if a wrong filter
21336             is applied (matches ms). The previous filter doesn't change
21337             anymore if an exception is thrown.
21338           - Changing the FileName property also affects FileNames
21339         * ColorDialog.cs: The length of the CustomColors array is always
21340           16. It doesn't matter if we use a smaller array or null to update
21341           or change the custom colors property.
21342         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
21343           for RootFolder if we get a undefined value.
21344
21345 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21346
21347         * StatusBarPanel.cs: 
21348         - Width is set to MinWidth if Width is smaller than
21349         MinWidth. Fixes #79842.
21350         - MinWidth now always overrides Width (MSDN says MinWidth
21351         is set to Width when AutoSize = None, but they do not 
21352         behave like that).
21353         - Style has now the the correct default value.
21354         
21355 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21356  
21357         * TrackBar.cs: 
21358         - The control is completely invalidated on 
21359         Got/LostFocus to draw the focus rectangle correctly.
21360         - When AutoSize then height is always 45 (width for 
21361         vertical controls).
21362         
21363         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
21364         on the mouse when moved and it doesn't move when grabbed
21365         until the mouse moves as well. Also fixed some wrong 
21366         calculations when clicking on the thumb (control thought
21367         click was outside of thumb and didn't grab it).
21368         Fixes some of the issues in #79718.
21369
21370 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
21371
21372         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
21373
21374 2006-11-08  Chris Toshok  <toshok@ximian.com>
21375
21376         * PropertyGridView.cs: only call ToggleValue if the item is not
21377         readonly.
21378
21379 2006-11-08  Jackson Harper  <jackson@ximian.com>
21380
21381         * TextBoxBase.cs: The RichTextBox and textbox have very different
21382         word selection methods.  Implement the textbox's simple word
21383         selection here, and let the RichTextBox override and provide it's
21384         own.
21385         - Don't do extra selection on mouseup
21386         * RichTextBox.cs: Use the documents word selection algorithm, I
21387         think ideally, this function will be pulled into the
21388         RichTextBox.cs code someday.
21389
21390 2006-11-08  Chris Toshok  <toshok@ximian.com>
21391
21392         * RootGridEntry.cs: new class to represent GridItemType.Root.
21393
21394         * CategoryGridEntry.cs: reformat, and add boilerplate.
21395         
21396         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
21397         returns the UI parent anyway, and we need special handling to
21398         implement the GetTarget method in the face of it.  Also, implement
21399         Select().
21400
21401         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
21402         a root grid item, and use that instead of PropertyGrid.grid_items.
21403         Also, make use of TypeConverters (and add limitted support for
21404         ICustomTypeDescriptors) when initially populating the grid.
21405         Arrays now show up more or less properly.
21406
21407 2006-11-08  Chris Toshok  <toshok@ximian.com>
21408
21409         * Application.cs: set the modal dialog to non modal after we close
21410         it.  Fixes bug #79866.
21411
21412 2006-11-08  Jackson Harper  <jackson@ximian.com>
21413
21414         * TextControl.cs: When combining lines carry over the line end
21415         style from the end line.
21416         - Invalidate the selected area when setting it, if it is visible.
21417         * TextBoxBase.cs: Only rich text box can do full line selects.
21418         - Make sure to set the cursor position when there is a click,
21419         otherwise two clicks in separate areas could cause a large chunk
21420         to be selected.
21421
21422 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21423
21424         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
21425         Fixes #79863.
21426
21427 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21428
21429         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
21430         time. Remove tooltips when ToolButton click events.  Fixes #79856.
21431
21432 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21433
21434         * MenuAPI.cs: Ignore right click for menu actions and fixes
21435         menu border when clicked.  Fixes #79846.
21436
21437 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21438
21439         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
21440         MouseState after create wParam for message, this fixes mouse button 
21441         equal none in mouse up events.
21442         
21443 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
21444
21445         * Control.cs : Focus() now calls Select to set the Container's
21446         Active Control and to give it focus. To avoid infinite recursion
21447         (because ActiveControl also calls Focus at one point), a check 
21448         is made in Focus with the help of a new internal variable
21449         is_focusing.
21450
21451 2006-11-07  Mike Kestner  <mkestner@novell.com>
21452
21453         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
21454         if there's a selection.  Fixes #79849.
21455
21456 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
21457
21458         * PropertyGrid.cs: Avoid fixed height of help description label.
21459         Fixes part of bug #79829.
21460
21461 2006-11-07  Chris Toshok  <toshok@ximian.com>
21462
21463         * XplatUIX11.cs: fix #79790 again, by using the
21464         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
21465
21466 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21467
21468         * ToolBar.cs: Fix left click checking.
21469
21470 2006-11-07  Chris Toshok  <toshok@ximian.com>
21471
21472         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
21473
21474 2006-11-07  Chris Toshok  <toshok@ximian.com>
21475
21476         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
21477         PropertyManager unit tests.
21478
21479         * PropertyManager.cs: make property_name internal.
21480
21481 2006-11-07  Chris Toshok  <toshok@ximian.com>
21482
21483         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
21484         pass a unit test.  Also, don't set image_index to anything in
21485         response to setting the ImageList property.
21486
21487 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21488
21489         * ToolBar.cs: Ignore click events when mouse button is not a
21490         left button, only accepts other button for dropdown menus.  
21491         Fixes #79854.
21492
21493 2006-11-07  Chris Toshok  <toshok@ximian.com>
21494
21495         * DataGrid.cs: make the back and parent row buttons a little less
21496         ugly.
21497
21498 2006-11-07  Jackson Harper  <jackson@ximian.com>
21499
21500         * TextBoxBase.cs: When converting to Text don't put line breaks in
21501         for soft line breaks.
21502         * TextControl.cs: There is an initial "fake" line in the document,
21503         this is now a soft break line, so that an extra line feed doesn't
21504         get added to the end of documents.
21505
21506 2006-11-07  Chris Toshok  <toshok@ximian.com>
21507
21508         [ fix bug #79778 ]
21509         
21510         * CurrencyManager.cs: if the list is readonly, don't bother
21511         checking if IBindingList.AllowNew is true.
21512
21513         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
21514         for non-DataRowView datasources..  or rather, make it not crash.
21515         (DataGridPaintRelationRow): make sure we limit the row painting to
21516         the area not covered by the row header, and make our cell width at
21517         least large enough to cover the relation area.  This allows grids
21518         that have relations but no rows to render correctly.
21519         (DataGridPaintRowContents): same type of changes here.
21520         (SetDataSource): move back to always calling
21521         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
21522         navigating back through relations.
21523         (HitTest): handle the case where we have no cells but have
21524         relations.  Right now we generate a hit in cell 0 of whatever the
21525         row is, not sure if this is strictly correct, but it works for our
21526         purposes.
21527         
21528         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
21529         bother doing anything.
21530
21531 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
21532
21533         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
21534         early version of StatusStrip.  Not responsible for eaten
21535         application or firstborn children.
21536
21537 2006-11-06  Chris Toshok  <toshok@ximian.com>
21538
21539         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
21540         call GetTabRect with a -1 index.  Fixes #79847.
21541
21542 2006-11-06  Jackson Harper  <jackson@ximian.com>
21543
21544         * TreeNodeCollection.cs: Update scrollbars after clearing.
21545
21546 2006-11-06  Chris Toshok  <toshok@ximian.com>
21547
21548         * NumericUpDown.cs: fix the ToString method for some unit test
21549         love.
21550
21551 2006-11-06  Chris Toshok  <toshok@ximian.com>
21552
21553         * PropertyGrid.cs:
21554         - set the initial SelectedGridItem if we can.
21555
21556         - Exclude non-mergable properties only if we're merging > 1
21557         object.  Merging 1 object isn't really merging, obviously.
21558
21559         - Handle PropertySort.NoSort just like Alphabetical, which is
21560         wrong of course, but at least gets things on the screen.
21561         
21562         * PropertyGridView.cs:
21563         - Add method "FindFirstItem" which finds the first property grid
21564         item, so we can select it by default.
21565
21566         - make use of GridEntry.CanResetValue.
21567
21568         - Don't call RedrawBelowItemOnExpansion here anymore, the
21569         individual GridEntry's will do that.
21570
21571         - Remove the ITypeDescriptorContextImpl internal class.
21572         
21573         * GridEntry.cs:
21574         - this class needs to implement ITypeDescriptorContext, as it's
21575         what MS's PropertyDescriptorGridEntry does, which means we can
21576         remove the ITypeDescriptorContextImpl internal class from
21577         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
21578
21579         - keep a reference to our PropertyGridView, and move the call to
21580         RedrawBelowItemOnExpansion here from PGV.  This means
21581         programmaticly setting Expanded actually does something visible.
21582
21583         - add a CanResetValue() function which takes into account our
21584         possibly multiple "selected_objects" in the merged case.  Shifting
21585         PropertyGridView to use this method fixes another unreported
21586         crasher found running the test for #79829.
21587
21588         - when Top or Bounds is updated, make sure the PropertyGridTextBox
21589         is updated to reflect this.
21590
21591         * CategoryGridEntry.cs: the ctor takes the PGV now.
21592         
21593 2006-11-06  Jackson Harper  <jackson@ximian.com>
21594
21595         * TextControl.cs: These are 1 based.
21596         * TextBoxBase.cs: When setting the selected text, don't change the
21597         selected text tags, this is done by ReplaceText, just position the
21598         cursor at the end of the new text.
21599
21600 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
21601
21602         * ListView.cs: Allow label edit only when, when LabelEdit is
21603           set to true.
21604
21605 2006-11-06  Jackson Harper  <jackson@ximian.com>
21606
21607         * TextControl.cs: If a suitable wrapping position isn't found,
21608         just wrap right in the middle of a word.
21609
21610 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
21611
21612         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
21613           bug #79820.
21614
21615 2006-11-06  Jackson Harper  <jackson@ximian.com>
21616
21617         * TreeView.cs: Can't use the VisibleCount property when setting
21618         scrollbar heights, because this doesn't take into account whether
21619         or not the horz scrollbar just came visible.
21620
21621 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
21622
21623         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
21624         activated.  Fixes #79369, #79832.
21625
21626 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
21627
21628         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
21629           had to remove support for links that point to a directory. FileInfo
21630           returns no usefull information (means, the directory they point to)
21631           for such links. Replaced some empty string ("") with String.Empty.
21632
21633 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
21634
21635         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
21636         NullReferenceException when attempting to remove node that is not in
21637         collection. Throw NullReferenceException when null is passed to 
21638         Remove. Allow first element of the collection to be removed. Fixes
21639         bug #79831.  In GetEnumerator ().Current return null if positioned 
21640         before the first element of the collection. In GetEnumerator ().Reset,
21641         position before first element of the collection.
21642
21643 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
21644
21645         * PropertyGrid.cs: To match MS, remove default title and description
21646         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
21647         buttons.
21648
21649 2006-11-04  Chris Toshok  <toshok@ximian.com>
21650
21651         * Theme.cs: add a Clamp method, just for kicks.
21652
21653         * ThemeWin32Classic.cs: clamp all color components to [0..255].
21654
21655 2006-11-04  Chris Toshok  <toshok@ximian.com>
21656
21657         * Form.cs: if the form isn't visible, Close() does nothing.
21658
21659 2006-11-03  Chris Toshok  <toshok@ximian.com>
21660
21661         * Form.cs (Close): if the form is modal, don't Dispose of it, only
21662         Hide it.
21663         (WndProc): don't Dispose after handling the WM_CLOSE message.
21664
21665         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
21666         them as such, instead of using casts from Control to Form.  Also,
21667         don't Dispose of the modal dialog when we fall out of the loop -
21668         Close() it instead.
21669
21670         fixes bug #79813.
21671
21672 2006-11-03  Chris Toshok  <toshok@ximian.com>
21673
21674         * Control.cs (Dispose): only go through the dispose thing if we're
21675         @disposing, and we haven't already been disposed.  Fixes bug
21676         #79814.
21677
21678         * Form.cs: no reason to call "base.Dispose()" here instead of
21679         "Dispose()".
21680
21681 2006-11-03  Mike Kestner  <mkestner@novell.com>
21682
21683         * ComboBox.cs : use ToString instead of casts in AddItem for
21684         sorting functionality.  Fixes #79812.
21685
21686 2006-11-03  Chris Toshok  <toshok@ximian.com>
21687
21688         * Application.cs: pave the way for actually using the thread
21689         exception dialog.  it's ifdefed out at the moment.
21690
21691 2006-11-03  Chris Toshok  <toshok@ximian.com>
21692
21693         * ThreadExceptionDialog.cs: until we get a better layout, actually
21694         hide the details textbox and label when we shouldn't see them.
21695
21696 2006-11-03  Jackson Harper  <jackson@ximian.com>
21697
21698         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
21699         multiline textboxes anymore.  This method also determines the
21700         width/height of a textboxes canvas area.
21701         - Sorta a revert of the last patch.  For multiline just position
21702         the controls, then bail.  This way the scrollbar width won't be
21703         altered.
21704
21705 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
21706
21707         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
21708         it dont need.  Fixes #79537.
21709
21710 2006-11-02  Jackson Harper  <jackson@ximian.com>
21711
21712         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
21713         send the status after firing the DndOver event.
21714
21715 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21716
21717         * TrackBar.cs: Now orientation only switches height / width if
21718         the control's handle is created (Win32 does it like this). Also 
21719         fixed a typo in ToString() for a test to pass, changed the 
21720         exception thrown in set_LargeChange and set_SmallChange to 
21721         match Win32 behaviour, and added TrackBar tests to the unit 
21722         tests.
21723
21724 2006-11-02  Chris Toshok  <toshok@ximian.com>
21725
21726         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
21727         not _NET_WM_STATE_NO_TASKBAR.
21728
21729 2006-11-02  Jackson Harper  <jackson@ximian.com>
21730
21731         * TextControl.cs: Increment count by one, since in the update view
21732         count - 1 is used.
21733
21734 2006-11-02  Jackson Harper  <jackson@ximian.com>
21735
21736         * TextBoxBase.cs: Use client rectangle not bounds for checking if
21737         the mouse is in the client rectangle (duh).
21738
21739 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21740         
21741         * TrackBar.cs: Fixed trackbar jumping around when clicking
21742         on it - the trackbar was not detecting correctly at which
21743         side of the thumb the click was done. (fixes #79718)
21744
21745 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
21746
21747         * ListBox.cs: scroll visible area when change SelectedIndex to
21748         a non visible area.  Fixes #79481.
21749
21750 2006-11-01  Jackson Harper  <jackson@ximian.com>
21751
21752         * TextControl.cs: When replacing the selection move the selection
21753         start/end/anchor to the end of the new text.
21754
21755 2006-11-01  Jackson Harper  <jackson@ximian.com>
21756
21757         * XplatUIWin32.cs: When setting the parent change the controls
21758         visibility to it's visibility flag, not to it's old parents
21759         visibility (.Visible walks the parent chain).
21760
21761 2006-11-01  Chris Toshok  <toshok@ximian.com>
21762
21763         * XplatUIX11.cs: revert the #79790 fix, as the simple.
21764         XSetTransientForHint fix breaks paint .net's tool windows.  more
21765         work needed for that one.
21766
21767 2006-11-01  Chris Toshok  <toshok@ximian.com>
21768
21769         * ScrollBar.cs: throw ArgumentException instead of Exception in
21770         LargeChange/SmallChange setters.  fixes unit tests.
21771
21772 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
21773
21774         * ContainerControl.cs: reverted rev.67183 (which was itself
21775         a reversion of rev.66853... eh).
21776         
21777         * Control.cs: Fixes Reflector hang by changing Focus() call
21778         to what it was before rev.66643 (calling Select() here sets 
21779         ActiveControl, which in some situations calls back Focus and 
21780         eventually does a stack overflow). Temp fix.    
21781         Changes to GetNextControl() to not look for children to select when
21782         parent cannot be selectable (so it looks for siblings instead)  
21783         
21784 2006-10-31  Mike Kestner  <mkestner@novell.com>
21785
21786         * CheckedListBox.cs : off by one error in returned index from
21787         ObjectCollection.Add.  Fixes #79758.
21788
21789 2006-10-31  Chris Toshok  <toshok@ximian.com>
21790
21791         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
21792         calls for the textbox/spinner, to keep from recursing to the point
21793         where we crash.  Fixes #79760.
21794
21795 2006-10-31  Chris Toshok  <toshok@ximian.com>
21796
21797         * ListControl.cs (set_SelectedValue): don't throw exceptions on
21798         null/"" value, just return.  matches ms's behavior and fixes some
21799         failing tests.
21800
21801 2006-10-31  Chris Toshok  <toshok@ximian.com>
21802
21803         * Control.cs (set_Capture): make a logic a little easier to
21804         follow.
21805
21806         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
21807         if it's being destroyed.  A necessary fix surely, but a bandaid
21808         also, to fix the stuck capture problem in bug #78413.
21809
21810 2006-10-31  Chris Toshok  <toshok@ximian.com>
21811
21812         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
21813         convention of clearing hwnd.ClientRect when we set the
21814         width/height (so it'll be recalculated by Hwnd).
21815
21816 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
21817
21818         * ContainerControl.cs: reversed Contains check from
21819         ActiveControl due to hanging problems. This fix
21820         partly regresses #79667 (button does not have
21821         initial focus), so this might be a symptom for 
21822         a larger parenting problem (set_ActiveControl
21823         is being called but the child control does
21824         not have the parent set yet?)   
21825         
21826 2006-10-31  Mike Kestner  <mkestner@novell.com>
21827
21828         * MenuAPI.cs : fix keynav when menu is click activated.
21829
21830 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
21831
21832         * ToolStrip*: Version 0.2.
21833
21834         * MenuStrip.cs: Version 0.1.
21835
21836         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
21837
21838 2006-10-30  Chris Toshok  <toshok@ximian.com>
21839
21840         [ fixes the oversized notify icon issue in bug #79745 ]
21841         
21842         * NotifyIcon.cs: scale the icon down to the size we're given by
21843         the XplatUI layer (this would be faster if we did it once instead
21844         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
21845         since it's never invoked.
21846
21847         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
21848         pixels high by default, so let's hardcode our systray icon to that
21849         size.  The SYSTEM_TRAY protocol should really have a way for
21850         client apps to query for the correct icon size.. but oh well.  A
21851         couple of patches to deal with the screwy client_window ==
21852         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
21853         instance, and also make sure we don't XSelectInput twice).
21854
21855 2006-10-30  Chris Toshok  <toshok@ximian.com>
21856
21857         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
21858         recreating forms.  Control recreation is the bane of my existence.
21859         Fix it in a way that keeps everyone happy.
21860
21861 2006-10-30  Chris Toshok  <toshok@ximian.com>
21862
21863         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
21864         just non-CHILD ones.  otherwise sometimes scrollbars end up with
21865         client_windows not being resized to the proper size (ReportBuilder
21866         shows this extremely well).
21867
21868 2006-10-30  Chris Toshok  <toshok@ximian.com>
21869
21870         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
21871         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
21872         showing up in the gnome taskbar.  Fixes bug #79790.
21873
21874 2006-10-30  Chris Toshok  <toshok@ximian.com>
21875
21876         * ApplicationContext.cs: guard against a NRE.
21877
21878         * Application.cs: null out the old MainForm for the context, so we
21879         don't try to use it again once it's disposed.  Fixes bug #79783.
21880
21881 2006-10-30  Chris Toshok  <toshok@ximian.com>
21882
21883         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
21884         BindingContext, set the data source directly, otherwise do the
21885         lazy approach - the actual ListManager will be created when we get
21886         a BindingContext. Fixes bug #79700.
21887
21888 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
21889
21890         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
21891           XplatUIX11.cs: Remove old 2 parameter SetVisible.
21892
21893         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
21894
21895 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
21896
21897         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
21898         of SetVisible that allows a window to be shown, but not activated.
21899         This is needed on Windows for MenuStrip, and can probably be used
21900         with MainMenu and ComboBox to fix the focus stealing issues on
21901         Windows.
21902
21903         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
21904
21905 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
21906
21907         * PictureBox.cs: Fix the output of the ToString method.
21908
21909 2006-10-29  Chris Toshok  <toshok@ximian.com>
21910
21911         * Control.cs (get_TopLevelControl): fix bug #79781.
21912
21913 2006-10-29  Chris Toshok  <toshok@ximian.com>
21914
21915         * ListControl.cs (set_DataSource): throw Exception here, not
21916         ArgumentException, to match MS behavior.
21917
21918 2006-10-29  Chris Toshok  <toshok@ximian.com>
21919
21920         * Form.cs: remove the try-catch's around calls to GetWindowState.
21921         We can just check the return value.
21922
21923         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
21924         Instead return -1.
21925
21926         * XplatUI.cs: Add note about additional return value for
21927         GetWindowState.
21928
21929 2006-10-29  Chris Toshok  <toshok@ximian.com>
21930
21931         * Control.cs (CreateHandle): when we create our handle, we also
21932         create the handles of our child controls.  Fixes one of the
21933         Control unit tests (CH11).
21934
21935 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
21936
21937         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
21938
21939 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
21940
21941         * ThemeClearlooks.cs: A little speedup.
21942
21943 2006-10-27  Chris Toshok  <toshok@ximian.com>
21944
21945         * Control.cs: implement Control.FromChildHandle in a way that
21946         matches the docs (and fixes the failed test.)
21947
21948 2006-10-27  Chris Toshok  <toshok@ximian.com>
21949
21950         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
21951         comments).
21952
21953         * DataGrid.cs: implement ResetForeColor such that the tests
21954         succeed.
21955         
21956 2006-10-27  Chris Toshok  <toshok@ximian.com>
21957
21958         * ToolBarButton.cs: setting text/tooltiptext to null results in it
21959         being set to "".  Fixes bug #79759.
21960
21961 2006-10-27  Jackson Harper  <jackson@ximian.com>
21962
21963         * TextControl.cs: We need to clear the entire selection area when
21964         setting the start, otherwise multiline selections are still
21965         visible.
21966
21967 2006-10-26  Chris Toshok  <toshok@ximian.com>
21968
21969         * PropertyGridView.cs: 
21970
21971         - ifdef all the code specific to the double
21972         buffer case, and provide some alternatives in the non-doublebuffer
21973         code, which makes heavy use of XplatUI.ScrollWindow to move things
21974         around without having to invalidate (and cause flicker).  There
21975         are still some drawing problems in the non-doublebuffered case, so
21976         DOUBLEBUFFER is defined by default.
21977
21978         - Fix the way dropdowns are handled.  now we explicitly watch for
21979         the events which might cause the dropdown to close, and break out
21980         of the nested event loop there.  This gets rid of all Capture
21981         code, at the expense of the Msg special casing.  Seems to work,
21982         though, and fixes bug #79743.
21983
21984 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
21985         * Control.cs: SetIsRecreating now recreates implicitly added
21986         child controls as well. Finally fixes #79629. The flag passed to 
21987         SetIsRecreating has also been removed since it wasn't used.
21988         
21989 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21990
21991         * PageSetupDialog.cs: Clean some code, fix some bits, 
21992         add some checks, and add a printer sub-dialog.
21993
21994 2006-10-26  Chris Toshok  <toshok@ximian.com>
21995
21996         * PropertyGrid.cs: make set_SelectedObject call
21997         set_SelectedObjects, and move the duplicate logic to the
21998         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
21999
22000         * PropertyGridView.cs: hide the textbox when we get a
22001         SelectedObjectsChanged event.
22002
22003         Fixes bug #79748.
22004
22005 2006-10-26  Chris Toshok  <toshok@ximian.com>
22006
22007         * PropertyGridView.cs: deal with the type converter not supporting
22008         GetStandardValues() or GetStandardValues() returning null, which
22009         is does in the default case.  Fixes #79742.
22010
22011 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
22012
22013         * CheckedListBox.cs: nunit no longer crashes when selecting 
22014         Project/Edit menu option
22015         
22016 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
22017
22018         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
22019         is no menu selected. fixes #79739
22020
22021 2006-10-25  Chris Toshok  <toshok@ximian.com>
22022
22023         * PropertyGridView.cs: factor out the splitter invalidation code
22024         into the SplitterPercent setter, and for kicks implement the
22025         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
22026         amount in either direction.
22027
22028 2006-10-25  Chris Toshok  <toshok@ximian.com>
22029
22030         * PropertyGridView.cs: do some cleanup of the brush used to draw
22031         text - read only fields should be grayed out.  not sure how to do
22032         this with the textbox, though.  but the textbox's should also be
22033         readonly now at least.  Also, hide/show the textbox when resizing
22034         the control.
22035         
22036         * CursorConverter.cs: use System.Reflection when getting the
22037         properties of Cursors, as TypeDescriptor.GetProperties isn't
22038         returning static properties.
22039
22040 2006-10-25  Chris Toshok  <toshok@ximian.com>
22041
22042         * PropertyGridView.cs: factor out the up/down handling, and reuse
22043         it for page up/down.  also add End/Home support.
22044
22045 2006-10-25  Chris Toshok  <toshok@ximian.com>
22046
22047         * PropertyGridView.cs:
22048
22049         - ensure the selected grid item is visible in the scrolled area,
22050         fixes bug #79572.
22051
22052         - fix Keys.Down handling when you're on the last item in the
22053         propertygrid.
22054
22055 2006-10-25  Mike Kestner  <mkestner@novell.com>
22056
22057         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
22058         clicks too.  Fixes #79725.
22059
22060 2006-10-24  Chris Toshok  <toshok@ximian.com>
22061
22062         * PropertyGrid.cs: use property.Converter instead of
22063         TypeDescriptor.GetConverter(property.PropertyType), so we catch
22064         TypeConverters declared on the property as well as on the
22065         PropertyType.  Fixes bug #79678.
22066
22067 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
22068
22069         * MimeIcon.cs, Mime.cs:
22070           Fallback to the default platform handler if no shared mime info
22071           stuff exists (fixes #79693).
22072
22073 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
22074         * ContainerControl.cs: Incorrect contains check in ActiveControl 
22075         from previous fix (duh).
22076
22077 2006-10-20  Chris Toshok  <toshok@ximian.com>
22078
22079         * PropertyGridView.cs: the dropdown should be MIN(number of items
22080         in list, 15).  Fixes #79551.
22081
22082 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
22083         Fixes #79384, #79394, #79652, #79667
22084         * Application.cs: 
22085         
22086         - Modal windows are now destroyed in the proper order for windows
22087         
22088         * ContainerControl.cs:
22089         
22090         - ActiveControl setter has more conditions on when to return:
22091                 - if we're reselecting the active control, but it actually
22092                 didn't have focus (window hidden or some such), it runs
22093                 - if the active control being selected doesn't actually 
22094                 exist in the container, it returns
22095         
22096         * Form.cs
22097         
22098         - The ShowDialog now gets the current form as the owner when
22099         invoking without parameters, and correctly activates the owner 
22100         when returning
22101         
22102         * MessageBox.cs
22103         
22104         - MessageBox now catches the Escape key to exit
22105
22106 2006-10-20  Chris Toshok  <toshok@ximian.com>
22107
22108         * PropertyGridView.cs: fix a number of issues (bug #78565, and
22109         most of bug #79676):
22110
22111         - you can navigate around the property grid with the arrow keys.
22112
22113         - the dropdown is sized properly when the pg has a vertical
22114         scrollbar.
22115
22116         - fix the indentation for subentries, and properly select the
22117         entire label rect.
22118
22119         - fix the gray bar's drawing (only draw it to the last element,
22120         not for the height of the control.  Also make sure we draw that
22121         last horizontal grid line.
22122
22123         - use the same mechanism the datagrid uses wrt the editing textbox
22124         when scrolling/resizing/etc.  Namely, we hide it first, do the
22125         operation, then show it again (if it's still visible).
22126         
22127         - aggressively remove a lot of unnecessary refreshes (and also
22128         calls to Invalidate(). call more limited variants, and only redraw
22129         what we need.)
22130         
22131         * PropertyGrid.cs:
22132
22133         - when we're populating the merged collection, fill in the UI
22134         parent with either the passed in item, or the category item we
22135         create.
22136
22137         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
22138
22139         * GridItem.cs: drop some fully qualified names.
22140         
22141         * GridEntry.cs: add a "UIParent", which is basically the parent
22142         treenode.
22143
22144         * GridItemCollection.cs: add an IndexOf method.
22145
22146 2006-10-20  Mike Kestner  <mkestner@novell.com>
22147
22148         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
22149         a working win32 NC invalidation mechanism, we can't invalidate
22150         menus.  [Fixes #79705]
22151
22152 2006-10-20  Mike Kestner  <mkestner@novell.com>
22153
22154         * ListBox.cs : don't update the VScrollbar if the list is empty,
22155         just hide it.  [Fixes #79692]
22156
22157 2006-10-20  Jackson Harper  <jackson@ximian.com>
22158
22159         * RichTextBox.cs: Handle some special chars better, and don't skip
22160         the entire group when we encounter a special char that we don't
22161         handle correctly.
22162
22163 2006-10-18  Chris Toshok  <toshok@ximian.com>
22164
22165         * PropertyGridView.cs: address a number of issues from bug #79676,
22166         mostly of the cosmetic variety.
22167
22168         - The highlight rectangle for indented items not extends all the
22169         way to the left.
22170
22171         - Indented items aren't indented so much.
22172
22173         - the dropdown is properly sized width-wise if the pg has a
22174         vertical scrollbar.
22175
22176 2006-10-18  Chris Toshok  <toshok@ximian.com>
22177
22178         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
22179         systray stuff is rather convoluted to begin with.
22180
22181         systray icons are a single window for some reason (that I haven't
22182         figured out yet), and for them, client_window == whole_window.
22183         Given the way the tests are structured elsewhere to determine
22184         which paints are pending (client vs. nc), that situation will
22185         always yield PAINT, not NCPAINT.  So, if we have a pending
22186         nc_expose and no pending expose, remove the hwnd from the paint
22187         queue, and also set nc_expose_pending to false, to keep us from
22188         blocking further expose's adding the hwnd to the paint queue.
22189
22190         phew.  like i said, a rather convoluted change.  Fixes the
22191         notifyicon repaint issues in bug #79645.
22192
22193 2006-10-18  Chris Toshok  <toshok@ximian.com>
22194
22195         * Form.cs: when getting the backcolor of the form, don't get
22196         base.BackColor, as this allows parents to influence the background
22197         color.  This breaks mdi forms.  Instead, if the background_color
22198         is empty, return the default.
22199
22200 2006-10-18  Chris Toshok  <toshok@ximian.com>
22201
22202         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
22203         to being private instead of internal static.
22204
22205         * Control.cs: remove all the stupid ParentWaitingOnRecreation
22206         crap, it wasn't working for more deeply nested controls anyway,
22207         and we already have the is_recreating flag - use that instead.
22208         Before calling DestroyHandle in RecreateHandle, recurse through
22209         the control tree setting it to true.  this returns the recreate
22210         code to much of its original simplicity, while now guaranteeing we
22211         actually recreate everything we're supposed to.  This change gets
22212         fyireporting actually showing mdi children.
22213
22214 2006-10-17  Chris Toshok  <toshok@ximian.com>
22215
22216         * Form.cs: remove some debug spew, and collapse some duplicate
22217         code at the end of SetClientSizeCore.
22218
22219         * XplatUIX11.cs: 
22220         - add some more debug spew here too wrt Destroy handling.
22221         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
22222         in Control's handling of WM_DESTROY.
22223         - Remove the handling of zombie window DestroyNotifies from the
22224         event loop - we don't need it.  Now the only DestroyNotifies we
22225         actually handle are ones generated by X.
22226         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
22227         match gtk's (functioning) handling of this. This keep metacity
22228         from leaving droppings in the form of wm borders with no window
22229         contents all over the place.
22230
22231         * Control.cs:
22232         - add a bunch of debug spew wrt control recreation.
22233         - fix a bug where we weren't tracking Visible properly on
22234         recreated hwnds.
22235         - fixed the WM_PAINT double buffer handling to support re-entrant
22236         calls (yes, i know it's gross, but it's happening to us).
22237
22238 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22239         * ThemeWin32Classic.cs: changed drawing of selected days
22240         to make them look better.
22241
22242 2006-10-16  Chris Toshok  <toshok@ximian.com>
22243
22244         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
22245         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
22246
22247         * XplatUIX11.cs: move away from using hwnd.client_dc and
22248         hwnd.non_client_dc and on to a stack of dc's (and in window's
22249         case, PAINTSTRUCT's), so we can deal with nested Paint calls
22250         without puking or not disposing of Graphics objects.
22251
22252         * XplatUIOSX.cs: same.
22253
22254         * XplatUIWin32.cs: same.
22255
22256 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
22257
22258         * FileDialog.cs: Don't call on_directory_changed inside
22259           OnSelectedIndexChanged (it changes the SelectedIndex too).
22260           Instead move it to OnSelectionChangeCommitted.
22261
22262 2006-10-13  Chris Toshok  <toshok@ximian.com>
22263
22264         * XplatUIX11.cs: more Destroy work.  the current code does the
22265         following things, in order:
22266
22267         1. Enumerates all handles of all controls at or below the one
22268         being destroyed, in pre-order.  As it is doing this, it marks the
22269         handles as zombie and clears all references to them.
22270         
22271         2. calls XDestroyWindow on the window passed in.
22272
22273         3. SendMessage's WM_DESTROY to all he handles in the accumulated
22274         list.
22275
22276 2006-10-13  Chris Toshok  <toshok@ximian.com>
22277
22278         * XplatUIX11.cs: set hwnd.zombie to true before calling
22279         SendMessage (WM_DESTROY).  this keeps us from marking the new
22280         window a zombie, and also keeps us from calling sendmessage at
22281         all.
22282
22283 2006-10-13  Jackson Harper  <jackson@ximian.com>
22284
22285         * TextControl.cs: Do not show the caret and selection at the same
22286         time.  Reduces ugliness by 35%.
22287
22288 2006-10-13  Chris Toshok  <toshok@ximian.com>
22289
22290         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
22291         zombie after we do the recursive call, so we actually do call
22292         SendMessage on the children controls.
22293         (GetMessage): if we find a pending paint event for a zombie hwnd,
22294         remove the hwnd from the paint queue, or else it will always be
22295         there (and we'll effectively loop infinitely)
22296
22297 2006-10-13  Mike Kestner  <mkestner@novell.com>
22298
22299         * MenuItem.cs : add Selected format under keynav too.
22300         Fixes #79528.
22301
22302 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
22303
22304         * PropertyGrid.cs: Fixed some NRE's and small difference between our
22305         implementation and that of MS.
22306
22307 2006-10-13  Chris Toshok  <toshok@ximian.com>
22308
22309         * Control.cs (OnInvalidated) only futz with the invalid_region if
22310         the control is double buffered.  this fixes the apparent hang in
22311         the ListView unit tests.  Someone needs to make the
22312         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
22313
22314 2006-10-13  Chris Toshok  <toshok@ximian.com>
22315
22316         * PropertyGridView.cs:
22317
22318         - do a little refactoring so that only one place calls
22319         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
22320         else call that.  Also make it Refresh, since there are redraw bugs
22321         otherwise (we should take a look at that...)
22322
22323         - do a little more refactoring work to share the body of code
22324         involved with the drop down.  it was duplicated in the code
22325         dealing with the listbox handling and in the code dealing with the
22326         UITypeEditors.
22327
22328         - add a Capture to the dropdown form's control once it's
22329         displayed, and add a MouseDown handler that checks to make sure
22330         the position is inside the control.  If it's not, close the
22331         dropdown.  This fixes #78190.
22332
22333         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
22334         if the value is different than the initial value.
22335         
22336 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
22337
22338         * Control.cs: see #78650
22339         - Fixed GetNextControl for several cases:
22340                 - Changed FindFlatForward to return 
22341                 correct sibling control when more than one
22342                 control has same TabIndex as the currently 
22343                 focused one.
22344                 - Changed FindFlatBackward to loop children
22345                 from last to first and apply same logic as in
22346                 FindFlatForward
22347                 - Changed FindControlForward to search for
22348                 children when control is not a container
22349                 but has children, or search for siblings if
22350                 control is a container...
22351                 - Changed FindControlBackward   to continue
22352                 searching for child controls when hitting 
22353                 Panel-like parents
22354                 
22355         - Fixed Focus method to update ActiveControl
22356         (FocusTest.FocusSetsActive failure)
22357         
22358         * TabControl.cs:
22359         - Focus rectangle now refreshes when gaining
22360         or losing focus
22361         - Removed grab for Tab key on IsInputKey that 
22362         was keeping tab navigation from working (#78650)
22363
22364 2006-10-13  Chris Toshok  <toshok@ximian.com>
22365
22366         * PropertyGridView.cs:
22367         - Rewrite SetPropertyValue to loop over SelectedGridItem's
22368         SelectedObjects.
22369
22370         - Deal with GridItem.Value == null a few places.
22371
22372         * PropertyGrid.cs: 
22373         - replace the PopulateGridItemCollection with a pair of methods
22374         which compute the intersection of all the properties in the
22375         SelectedObjects array.  Fixes #79615.
22376
22377         - Throw ArgumentException from set_SelectedObjects if there's a
22378         null in the array.
22379
22380         - Add GetTarget method which can be used to traverse up the
22381         GridItem.Parent chain.  It depends on the assumption that
22382         selected_objects for different GridEntries are always in the same
22383         order (a safe assumption).  Use this method and loop over all the
22384         selected objects in the entry when calling RemoveValueChanged and
22385         AddValueChanged.
22386         
22387         * GridEntry.cs: Make this handle multiple selected objects.
22388         .Value returns null if not all the selected objects share the same
22389         value.
22390
22391 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
22392         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
22393           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
22394           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
22395           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
22396           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
22397         add additional functionality.
22398
22399 2006-10-12  Mike Kestner  <mkestner@novell.com>
22400
22401         * ErrorProvider.cs : new ToolTipWindow ctor sig.
22402         * HelpProvider.cs : new ToolTipWindow ctor sig.
22403         * ToolTip.cs : remove ToolTip param from Window sig since it is
22404         not used.
22405         * ToolBar.cs : add tooltip support.  Fixes #79565.
22406
22407 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22408
22409         * ComboBox.cs: move the events in set_SelectedIndex to 
22410         after the call to HighlightIndex in order to avoid 
22411         possible recursion and subsequent problems with the call
22412         to HighlightIndex and include a range check in 
22413         set_HighlightIndex. Fixes #79588
22414         
22415 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22416
22417         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
22418         to ui thread's settings instead of sunday. 
22419         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
22420
22421 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22422
22423         * DateTimePicker.cs
22424         * MonthCalendar.cs
22425         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
22426         and implement missing functionality (selecting different parts 
22427         of the date and edit them individually with the keyboard).
22428         
22429 2006-10-11  Chris Toshok  <toshok@ximian.com>
22430
22431         * Control.cs (OnInvalidated): fix NRE relating to last change.
22432
22433 2006-10-11  Chris Toshok  <toshok@ximian.com>
22434
22435         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
22436         atoms in _NET_WM_STATE here if the window is maximized.  We need
22437         to do this because we're *replacing* the existing _NET_WM_STATE
22438         property, so those atoms will be lost otherwise, and any further
22439         call to GetWindowState will return Normal for a window which is
22440         actually maximized.  Fixes #79338.
22441
22442 2006-10-11  Jackson Harper  <jackson@ximian.com>
22443
22444         * TextControl.cs: Special case for setting selection end to
22445         selection start, we basically kill the anchor.
22446         - some todo comments.
22447
22448 2006-10-11  Chris Toshok  <toshok@ximian.com>
22449
22450         * Control.cs: switch to using an "invalid_region" to track which
22451         parts of the image buffer need updating.  This is more code than
22452         the simple fix from r66532.  That version just attempted to always
22453         fill the entire buffer on redraw, which turns out to be
22454         inefficient when invalidating small rectangles.  This version
22455         simply adds the invalid rectangle to the invalid region.  When we
22456         get any WM_PAINT message we see if it can be filled using the
22457         image buffer, and if it can't (if the paint event's clip rectangle
22458         is visible in the invalid region) we first fill the image buffer.
22459         So, the image buffer is still a cache, we just fill it lazily.
22460
22461         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
22462         need it any longer.
22463
22464 2006-10-11  Chris Toshok  <toshok@ximian.com>
22465
22466         * XplatUIX11.cs (SetWindowPos): we need to update both position as
22467         well as size after calling XMoveResizeWindow.  This keeps us from
22468         ignoring future SetWindowPos calls.  Fixes the disappearing
22469         DateTimePicker in the ToolBarDockExample from bug #72499.
22470
22471 2006-10-11  Chris Toshok  <toshok@ximian.com>
22472
22473         * TextBoxBase.cs: reorder things a bit when it comes to
22474         resizing-causing-recalculation.  we were recalculating the
22475         document when our position was changed, which shouldn't happen.
22476         We only care about size changes.  Clear up some more redundant
22477         recalculation calls while I'm at it.  This makes the toolbar dock
22478         example snappy when you're just dragging toolbars around (since it
22479         causes a relayout whenever you move one.)
22480
22481 2006-10-11  Chris Toshok  <toshok@ximian.com>
22482
22483         * ToolBarButton.cs (get_Rectangle): this only returns
22484         Rectangle.Empty if Visible == false, or Parent == null.
22485         Parent.Visible doesn't matter.
22486
22487 2006-10-10  Chris Toshok  <toshok@ximian.com>
22488
22489         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
22490         by .net 1.1, so switch to an internal method instead.
22491
22492 2006-10-10  Chris Toshok  <toshok@ximian.com>
22493
22494         * Control.cs (WM_PAINT): when a control is double buffered we draw
22495         initially to the ImageBuffer and then copy from there.  But when a
22496         parent control which has child controls is double buffered, the
22497         initial drawing doesn't encompass the entire ClientRectangle of
22498         the parent control, so we end up with uninitialized bits (this is
22499         easily seen by dragging the top toolbar in
22500         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
22501         manually set the ClipRectangle of the paint_event (only the one we
22502         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
22503         of the nastiness in bug #72499.
22504
22505         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
22506         which we use in Control.cs's WM_PAINT handling.
22507
22508 2006-10-10  Jackson Harper  <jackson@ximian.com>
22509
22510         * TextBoxBase.cs: Finish off the autoscrolling stuff.
22511
22512 2006-10-10  Chris Toshok  <toshok@ximian.com>
22513
22514         * Cursor.cs: Apply a slightly different patch to the one suggested
22515         in #79609.
22516
22517 2006-10-10  Jackson Harper  <jackson@ximian.com>
22518
22519         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
22520         not the parent form.
22521         * TextControl.cs: use difference in old line count vs new count to
22522         calculate how many lines were added, this takes into account soft
22523         line breaks properly.
22524
22525 2006-10-10  Chris Toshok  <toshok@ximian.com>
22526
22527         * LinkLabel.cs: don't call MeasureCharacterRanges against a
22528         rectangle located at 0,0 and the size of the text.  Use
22529         ClientRectangle instead.  This fixes rendering of non-left aligned
22530         link labels.
22531
22532 2006-10-10  Jackson Harper  <jackson@ximian.com>
22533
22534         * TextBoxBase.cs: When we set the selection start position the
22535         caret.
22536         * TextControl.cs: Need to update the caret when we decrement it to
22537         zero.
22538         - Make sure that the selection_visible flag gets reset to false if
22539         the selection isn't visible.  Before this you could get it set to
22540         visible by changing the selection start, then changing the end to
22541         equal the start.
22542
22543 2006-10-09  Jackson Harper  <jackson@ximian.com>
22544
22545         * TreeView.cs: Don't update scrollbars when we aren't visible.
22546         * TreeNodeCollection.cs: Only need to update scrollbars if being
22547         added to an expanded visible node or the root node.
22548
22549 2006-10-09  Chris Toshok  <toshok@ximian.com>
22550
22551         * XplatUIX11.cs (SendMessage): fix NRE.
22552
22553 2006-10-09  Jackson Harper  <jackson@ximian.com>
22554
22555         * TextBoxBase.cs: Implement horizontal autoscrolling.
22556         * TextControl.cs: Add a movement types that allows moving forward
22557         and backwards without wrapping.
22558
22559 2006-10-09  Mike Kestner  <mkestner@novell.com>
22560
22561         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
22562         with focus "expansion" of labels.  Fixes #79532 and then some.
22563         * ThemeWin32Classic.cs : add LineLimit to ListView label format
22564         when wrapping.
22565
22566 2006-10-09  Jackson Harper  <jackson@ximian.com>
22567
22568         * TextBoxBase.cs: Set the default max values to MaxValue since
22569         we use the scrollbar for autoscrolling and the default value is
22570         100.  If we don't do this the caret won't keep up with typing
22571         after about 18 characters.
22572         * TextControl.cs: Make sure the selection is offset by the
22573         viewport x.  This fixes selection when using auto scrolling.
22574
22575 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
22576         
22577         * Form.cs: The active control should be selected after the 
22578         OnLoad so that any child control initialization that affects
22579         the selection is done. Fixes #79406
22580
22581 2006-10-06  Chris Toshok  <toshok@ximian.com>
22582
22583         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
22584         to have no evil effects.
22585
22586         - Stop selecting StructureNotifyMask on non-toplevel windows.
22587
22588           The only way children should be resized is by using the SWF api,
22589           and we already send WM_WINDOWPOSCHANGED messages in those cases.
22590           Toplevel windows can be interacted with via the window manager,
22591           and so we keep the input mask there.
22592
22593           The other event StructureNotifyMask gives us (that we care
22594           about) is DestroyNotify.  The code is already structured such
22595           that it assumes we won't be getting a DestroyNotify event for
22596           the window we pass to XDestroyWindow (which is what
22597           StructureNotifyMask is supposed to guarantee.)  So, that code
22598           shouldn't be affected by this either.
22599
22600         - Stop selecting VisibilityChangeMask altogether.
22601
22602           We weren't doing anything with the resulting events anyway.
22603         
22604         This vastly reduces the number of X requests and events we see
22605         when resizing/laying out a large ui.
22606
22607 2006-10-06  Chris Toshok  <toshok@ximian.com>
22608
22609         * ScrollableControl.cs (DisplayRectangle): we need to take into
22610         account the DockPadding regardless of whether or not auto_scroll
22611         == true.  rework this slightly to this effect, and fix bug #79606,
22612         and part of #72499 (you can now see the drag handles and drag
22613         toolbars around).
22614
22615 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
22616
22617         * ListViewItem.cs: Collections of selected and checked items are now
22618         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
22619         we mark the collection "dirty".
22620         * ListView.cs: Marked collections readonly. Modified UpdateSelection
22621         to only clear SelectedItems when a new item is selected and MultiSelect
22622         is enabled. CheckedItems and SelectedItems now subscribe to Changed
22623         event of ListViewItemCollection, and mark its list dirty whenever
22624         that event is fire. This allows us to return selected/checked items 
22625         in the same order as they are in the Items collection. This matches
22626         the MS behavior.
22627
22628 2006-10-06  Chris Toshok  <toshok@ximian.com>
22629
22630         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
22631         right mouse clicks.  Fixes bug #79593.
22632
22633 2006-10-06  Chris Toshok  <toshok@ximian.com>
22634
22635         * Splitter.cs: doh, fix splitters that don't want to cancel the
22636         movement when you drag them.  Also, impose the limits on the
22637         values we send to the SplitterMovingEvent.  Fixes #79598.
22638
22639 2006-10-06  Jackson Harper  <jackson@ximian.com>
22640
22641         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
22642         since we use this for auto scrolling also.
22643
22644 2006-10-05  Chris Toshok  <toshok@ximian.com>
22645
22646         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
22647         beginning to think that most datagrid column types don't need this
22648         method.  Fixes bug #79392.
22649
22650 2006-10-05  Chris Toshok  <toshok@ximian.com>
22651
22652         * DataGrid.cs: move back to a more lazy scheme for creating the
22653         CurrencyManager, so we aren't updating it every time you set
22654         either DataSource or DataMember.  Also, don't call
22655         RecreateDataGridRows if the currency manager hasn't changed.
22656
22657 2006-10-05  Chris Toshok  <toshok@ximian.com>
22658
22659         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
22660         emitted, SelectedIndex should already be updated.  Fixes bug
22661         #78929.
22662
22663 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
22664
22665         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
22666           ToolStripTextBox.cs: Initial commit.
22667         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
22668
22669 2006-10-05  Jackson Harper  <jackson@ximian.com>
22670
22671         * TabControl.cs: We need to invalidate the tab control area when
22672         new ones are added (duh).
22673
22674 2006-10-03  Chris Toshok  <toshok@ximian.com>
22675
22676         * Form.cs (ProcessDialogKey): if the focused control is in this
22677         form and is a button, call its PerformClick method here.  Fixes
22678         #79534.
22679
22680 2006-10-04  Jackson Harper  <jackson@ximian.com>
22681
22682         * TabPage.cs: Ignore setting of Visible, and add an internal
22683         method for setting the controls visibility.  TabPage's Visible
22684         property is a little strange on MS, this seems to make us
22685         compatible, and fixes cases where people set all the tab pages to
22686         visible.
22687         * TabControl.cs: Use the new internal setting on tab pages
22688         visibility.
22689
22690 2006-10-03  Mike Kestner  <mkestner@novell.com>
22691
22692         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
22693
22694 2006-10-03  Mike Kestner  <mkestner@novell.com>
22695
22696         * ListView.cs : use is_visible instead of Visible to check if 
22697         scrollbars should be placed/sized.  Also some max_wrap_width
22698         love for LargeIcon view.  [Fixes #79533]
22699
22700 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
22701
22702         * TextControl.cs :
22703           Make set_TextAlign() do actually update the align. Fixed #78403.
22704
22705 2006-10-03  Chris Toshok  <toshok@ximian.com>
22706
22707         * DataGrid.cs: fix a crash when switching datasources if the
22708         vertical scrollbar is at someplace other than Value = 0.  Also,
22709         reduce the number of recalculation passes we do in SetDataSource
22710         from 2 to 1.
22711
22712 2006-10-03  Jackson Harper  <jackson@ximian.com>
22713
22714         * TextBoxBase.cs: Move the if value the same bail check up, we
22715         don't want to empty the document if it is already empty, this
22716         seems to severly mess up the caret.  TODO: I should probably fix
22717         the empty statement to update teh caret somehow.
22718
22719 2006-10-03  Chris Toshok  <toshok@ximian.com>
22720
22721         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
22722         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
22723         reflection, an internal row type, properties on said type, etc.)
22724         will work with our datagrid.  Fixes #79531.
22725
22726 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
22727
22728         * FileDialog.cs: Don't crash if a path is not accessible
22729           (System.UnauthorizedAccessException). Fixes #79569.
22730         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
22731           a ':' too. Return unknown icon for those paths/files.
22732
22733 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
22734
22735         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
22736         GetContainerControl returns null.
22737
22738 2006-10-02  Chris Toshok  <toshok@ximian.com>
22739
22740         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
22741         call to XGetWindowAttributes instead of "handle".  fixes an X
22742         error using notifyicon after the NotifyIconWindow to Form base
22743         class switch.
22744
22745 2006-10-02  Chris Toshok  <toshok@ximian.com>
22746
22747         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
22748         server grab and looping we need to do to get down to the most
22749         deeply nested child window.
22750         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
22751         QueryPointer again after the WarpPointer so we can generate a
22752         proper (fake) MotionNotify event to be enqueued in the destination
22753         window's queue.
22754         (GetCursorPos): call QueryPointer.
22755
22756         Fixes #79556.
22757
22758 2006-10-02  Jackson Harper  <jackson@ximian.com>
22759
22760         * NotifyIcon.cs: Derive the notify icon from a form, so things
22761         like FindForm work on it.
22762         - Swallow the WM_CONTEXTMENU message, since that is generated on
22763         mouse down, and context menu is a mouse up kinda guy.  I believe
22764         the correct fix here is probably to make the notify icon entirely
22765         NC area, but this seems to work fine for anyone not manipulating
22766         WndProc.
22767
22768 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
22769
22770         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
22771           ToolStripItemCollection.cs, ToolStripLabel.cs,
22772           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
22773           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
22774           Initial implementation.
22775         * TextRenderer.cs: Provide padding to MeasureText.
22776
22777 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
22778
22779         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
22780         of ButtonBaseAccessibleObject. Fix bug #79552.
22781
22782 2006-10-02  Jackson Harper  <jackson@ximian.com>
22783
22784         * MdiWindowManager.cs: When maximizing use the containers client
22785         rect, not it's bounds, so nc area is accounted correctly.
22786         - Use the parent form's size for the menu position, since the
22787         client isn't always the full form size.
22788
22789 2006-10-01  Chris Toshok  <toshok@ximian.com>
22790
22791         * ScrollableControl.cs: make sure neither right_edge or
22792         bottom_edge are < 0, since they're used as LargeChange for the
22793         horiz/vert scrollbars respectively.  Fixes #79539.
22794
22795 2006-10-01  Chris Toshok  <toshok@ximian.com>
22796
22797         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
22798         the xplatuix11 code can cause us to destroy/recreate our handle.
22799
22800         * XplatUIX11.cs
22801         (SystrayAdd):
22802         - this code can be invoked many times for the same Hwnd.  Make
22803           sure we only destroy the client window once (the first time this
22804           method is called).  This fixes bug #79544.
22805         - Remove the call to the improperly bound XSync.  why we had two
22806           bindings to this, I will never know, but this call resulted in
22807           events being discarded from the queue(!).
22808         - correct a misunderstanding of _XEMBED_INFO - the second atom is
22809           not our current state but the state we wish to be in.  So, 0 if
22810           we don't want to be mapped.  Change it to 1.
22811         (SystrayRemove): The XEMBED spec makes mention of the fact that
22812         gtk doesn't support the reparent of client windows away from the
22813         embedder.  Looking at gtksocket-x11.c seems to agree with this.
22814         The only avenue we have for removing systray icons is to destroy
22815         them.  We don't want the handle to go away for good, though, so
22816         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
22817         #79545.
22818         
22819 2006-10-01  Chris Toshok  <toshok@ximian.com>
22820
22821         * Form.cs (WndProc): inline the native_enabled variable usage into
22822         the cases in which it's used.  Fixes #79536.
22823
22824 2006-09-29  Mike Kestner  <mkestner@novell.com>
22825
22826         * ListView.cs : toggle the selection state for ctrl clicks in 
22827         multiselect mode. [Fixes #79417]
22828
22829 2006-09-29  Mike Kestner  <mkestner@novell.com>
22830
22831         * ListView.cs : kill CanMultiSelect and refactor the selection
22832         code to support multiselection in the absence of mod keys. Steal
22833         arrow/home/end keys by overriding InternalPreProcessMessage to
22834         restore regressed keynav behavior.
22835         [Fixes #79416]
22836
22837 2006-09-29  Jackson Harper  <jackson@ximian.com>
22838
22839         * MdiClient.cs: Repaint the titlebars when the active window is
22840         changed.
22841
22842 2006-09-29  Chris Toshok  <toshok@ximian.com>
22843
22844         * Application.cs: when entering a runloop with a modal, make sure
22845         the hwnd is enabled.  Fixes #79480.
22846
22847 2006-09-29  Chris Toshok  <toshok@ximian.com>
22848
22849         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
22850         when ListManager.CanAddRows == false, bump us back one.
22851
22852         * DataGridColumnStyle.cs (ParentReadOnly): remove the
22853         listmanager.CanAddRows check.  This makes ArrayLists uneditable
22854         using a datagrid, which is not right.
22855         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
22856         is an IEditable, but call property_descriptor.SetValue regardless.
22857         fixes #79435.
22858
22859 2006-09-29  Chris Toshok  <toshok@ximian.com>
22860
22861         * DataGridBoolColumn.cs: we need to test equality in the face of
22862         possible null values (as is the case with the default NullValue).
22863         This patch keeps us from crashing in that case.
22864
22865 2006-09-29  Jackson Harper  <jackson@ximian.com>
22866
22867         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
22868         here, since it will get called for every node collection in the
22869         tree. This is now done in the treeview once the sorting is
22870         finished.
22871         * TreeView.cs: Recalculate the visible order, and update the
22872         scrollbars after sorting, set the top nope to the root so that the
22873         recalc actually works.
22874
22875 2006-09-29  Chris Toshok  <toshok@ximian.com>
22876
22877         * LinkLabel.cs: more handling of the default link collection in
22878         the face of LinkArea manipulation.  The default link collection
22879         contains 1 element (start=0,length=-1).  If the user sets LinkArea
22880         to anything and the links collection is the default, clear it.
22881         Then only add the link if its nonempty.  Fixes #79518.
22882
22883 2006-09-29  Chris Toshok  <toshok@ximian.com>
22884
22885         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
22886         piece correctly when we hit a '\n'.  Fixes #79517.
22887
22888 2006-09-29  Chris Toshok  <toshok@ximian.com>
22889
22890         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
22891         change the binding of gdk_init_check to take two IntPtr's, and
22892         pass IntPtr.Zero for both of them.  Fixes #79520.
22893
22894 2006-09-29  Mike Kestner  <mkestner@novell.com>
22895
22896         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
22897         [Fixes #78779]
22898
22899 2006-09-28  Jackson Harper  <jackson@ximian.com>
22900
22901         * XplatUIX11.cs: When translating NC messages make sure we go from
22902         whole window to screen, not client window to screen.
22903         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
22904         method doesn't exist
22905         - Skip over controls that aren't forms when arranging.
22906
22907 2006-09-28  Jackson Harper  <jackson@ximian.com>
22908
22909         * XplatUIWin32.cs: Clip the rect to the parent window.
22910         * XplatUIStructs.cs: Add clipping modes struct.
22911         * InternalWindowManager.cs: New private method that factors title
22912         bar heights in when calculating the pos of an NC mouse message.
22913         - Use SendMessage to force a paint when the form's size is changed
22914         instead of painting the decorations immediately.
22915         - Don't let the NC button click messages get to DefWndProc,
22916         because they will attempt to handle windowing themself, and this
22917         messes up z-order (it will put them in front of the scrollbars).
22918         * XplatUIX11.cs: Make sure that we don't reset window managers if
22919         we already have one (ie the window is an MDI window).
22920
22921 2006-09-28  Chris Toshok  <toshok@ximian.com>
22922
22923         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
22924         menu code really needs going over.
22925
22926 2006-09-27  Chris Toshok  <toshok@ximian.com>
22927
22928         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
22929         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
22930         window is maximizable.  So, we need to make sure that even if we
22931         clear the border/wm frame of those functions, they're still
22932         available (basically, we remove the decoration without removing
22933         the function).  Half the fix for #79338.
22934
22935 2006-09-27  Chris Toshok  <toshok@ximian.com>
22936
22937         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
22938         Fixes bug #79515.
22939
22940 2006-09-27  Chris Toshok  <toshok@ximian.com>
22941
22942         * Splitter.cs: reorder things a bit so that we don't actually
22943         draw/move the splitter until after calling OnSplitterMoving.  This
22944         lets users cancel/disallow the movement by explicitly setting
22945         event.SplitX/SplitY.  Fixes #79372.
22946
22947 2006-09-27  Jackson Harper  <jackson@ximian.com>
22948
22949         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
22950         because it is most likely on a window being destroyed, and that
22951         will give us an X11 error.
22952
22953 2006-09-27  Chris Toshok  <toshok@ximian.com>
22954
22955         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
22956         the dropdown button now toggles between showing and hiding the
22957         dropdown.  Also, get rid of dropdown_form_showing and just use
22958         dropdown_form.Visible.  We still don't do a grab, but I'll leave
22959         that part to someone who has handled Capture-fu before.
22960
22961 2006-09-27  Chris Toshok  <toshok@ximian.com>
22962
22963         * DataGrid.cs: return false if alt isn't pressed when '0' is
22964         pressed.  this keeps the '0' key from being swallowed, and fixes
22965         bug #79350.
22966
22967 2006-09-27  Chris Toshok  <toshok@ximian.com>
22968
22969         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
22970         Calling Refresh (in response to a scrollbar event) screws up the
22971         scrollbar painting.  Fixes bug #78923.
22972
22973 2006-09-27  Chris Toshok  <toshok@ximian.com>
22974
22975         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
22976         then insert into hashtable" blocks threadsafe.
22977
22978 2006-09-27  Chris Toshok  <toshok@ximian.com>
22979
22980         * MessageBox.cs (CreateParams): the styles should be |'ed with our
22981         baseclass's, since otherwise the
22982         ControlBox/MinimizeBox/MaximizeBox assignments above have no
22983         effect.  This gets the close button back in messageboxes.
22984
22985 2006-09-27  Chris Toshok  <toshok@ximian.com>
22986
22987         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
22988         flag, not just != 0.  this makes flags that are actually multiple
22989         bits (like WS_CAPTION) work.  fixes bug #79508.
22990
22991 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
22992
22993         * PageSetupDialog.cs: add support for getting and settings the 
22994         paper size, source and orientation.
22995
22996 2006-09-26  Chris Toshok  <toshok@ximian.com>
22997
22998         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
22999         and caption == "", we need to remove the resize handles as well as
23000         the title bar.
23001
23002         * Control.cs (set_Text): turns out that setting Text on a form
23003         should change the WM styles on the window, since if ControlBox ==
23004         false, the only way to get a window border is to have a non-""
23005         Text property.  check winforms/forms/text.cs for an example.  so,
23006         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
23007         update both window styles and title.  This fixes a lot of dialogs
23008         (including the preferences dialog in MonoCalendar.)
23009
23010 2006-09-26  Chris Toshok  <toshok@ximian.com>
23011
23012         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
23013         control isn't a Form), call Win32ShowWindow to hide the window,
23014         but don't update the control Visible property.  When we reparent
23015         back to a parent control, call SetVisible in order for the
23016         window's visibility to be reinstated.
23017
23018         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
23019         the FosterParent.
23020
23021         * Control.cs (ControlCollection.Remove): remove that value.Hide()
23022         call for good, since it breaks MonoCalendar (and other things I'm
23023         sure.) Also, set all_controls to null *after* the owner calls,
23024         which end up regenerating it.
23025         (ChangeParent): allow new_parent to be == null, passing
23026         IntPtr.Zero down to XplatUI.
23027
23028         this fixes #79294 the right way.
23029
23030 2006-09-26  Mike Kestner  <mkestner@novell.com>
23031
23032         * GridEntry.cs : internal SetParent method.
23033         * PropertyGrid.cs : attach to property changed on the proper
23034         target if we have a hierarchical grid with subobjects. Setup
23035         GridItem.Parent for hierarchical items.
23036         * PropertyGridView.cs : Set value on the correct target for
23037         hierarchical grids. [Fixes #78903]
23038
23039 2006-09-26  Chris Toshok  <toshok@ximian.com>
23040
23041         * Control.cs (ChildNeedsRecreating): this should return true if
23042         either we're being recreated and the child is in our list, or our
23043         parent is waiting for our recreation.
23044
23045 2006-09-26  Chris Toshok  <toshok@ximian.com>
23046
23047         * Control.cs (ControlCollection.Remove): reinstate the
23048         value.Hide() call as suggested in bug #79294.
23049
23050 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
23051
23052         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
23053         coordinates (versus a relative move).
23054
23055 2006-09-26  Chris Toshok  <toshok@ximian.com>
23056
23057         * Control.cs: rework child recreation a little bit.  It turns out
23058         that we race between the DestroyNotify the WM_DESTROY message.  If
23059         the parent gets its DestroyNotify before the child gets the
23060         WM_DESTROY message, the child ends up not recreating (since the
23061         parent finishes its recreation on DestroyNotify, and the child
23062         checks ParentIsRecreating.)
23063
23064         So, instead we store off a list of all the child controls which
23065         need to be recreated when the parent control starts to recreate
23066         itself.  Then, when child controls get their WM_DESTROY message we
23067         check to see if they're in the parent's pending recreation list,
23068         and if so, we recreate.  This removes all dependency on ordering
23069         from the code and fixes the initial MonoCalendar upgrade dialog.
23070         
23071 2006-09-26  Jackson Harper  <jackson@ximian.com>
23072
23073         * TextControl.cs: Use the Line to get the length of the line,
23074         since soft line breaks can change the end line.
23075
23076 2006-09-26  Chris Toshok  <toshok@ximian.com>
23077
23078         * Control.cs (ControlCollection.AddImplicit): don't add the
23079         control again if it's already in one of our lists.  This keeps us
23080         from adding controls over and over again for comboboxes when their
23081         handle gets recreated (as the combobox adds implicit controls in
23082         OnHandleCreated).  Fixes the X11 errors in bug #79480.
23083
23084 2006-09-26  Jackson Harper  <jackson@ximian.com>
23085
23086         * TextControl.cs: When deleting characters make sure that any
23087         orphaned zero lengthed tags get deleted.
23088         - Fix ToString for zero lengthed tags.
23089
23090 2006-09-25  Jackson Harper  <jackson@ximian.com>
23091
23092         * TextControl.cs: When getting a tag at the location there can be
23093         multiple tags at the same spot, these are 0-lengthed tags that
23094         appear when extra formatting has been stuck in a location.  We
23095         need to pull out the last of these 0 lengthed tags.
23096
23097 2006-09-25  Jackson Harper  <jackson@ximian.com>
23098
23099         * TextControl.cs: Fix print out in debug method.
23100         * TextBoxBase.cs: When text is set bail if we are setting to the
23101         previous value.
23102         
23103 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
23104
23105         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
23106           It is now possible to change the selected index in a FontXXXListBox
23107           with the up and down arrow keys from the FontXXXTextBoxes.
23108           Also, send the FontXXXTextBox mouse wheel event to the corresponding
23109           FontXXXListBoxes to match ms.
23110
23111 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
23112
23113         * SystemInformation.cs: Return a clone of the theme's MenuFont because
23114         anyone can dispose it, anytime. All other properties returns enums, 
23115         structs or basic types so they don't need such tricks.
23116
23117 2006-09-22  Jackson Harper  <jackson@ximian.com>
23118
23119         * XplatUI.cs:
23120         * XplatUIWin32.cs:
23121         * Clipboard.cs:
23122         * DataFormats.cs:
23123         * XplatUIOSX.cs:
23124         * XplatUIDriver.cs: Update interface to add a primary selection
23125         flag, so the driver can use the primary selection buffer if
23126         needed.
23127         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
23128
23129         * RichTextBox.cs: We need to supply the data object to paste now
23130         (so we can choose to supply CLIPBOARD or PRIMARY).
23131         * TextBoxBase.cs: Supply data object to paste (see above).
23132         - Middle click uses the primary selection data object.
23133         
23134 2006-09-21  Chris Toshok  <toshok@ximian.com>
23135
23136         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
23137         of SetWMStyles.  It's still a rat's nest and is largely
23138         order-dependent which I dislike immensely.  This also fixes the X
23139         button disappearing from toplevel forms.
23140
23141 2006-09-21  Mike Kestner <mkestner@novell.com>
23142
23143         * ListBox.cs: move Jordi's click/dblclick raising code to the
23144         mouse up handler.
23145
23146 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
23147
23148         * ListBox.cs: Fixes 79450
23149
23150 2006-09-21  Mike Kestner <mkestner@novell.com>
23151
23152         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
23153         to deal with people updating the TreeNodeCollection after the tree
23154         is disposed.  "Fixes" 79330.
23155
23156 2006-09-20  Jackson Harper <jackson@ximian.com>
23157
23158         * TextControl.cs: Push the cursor record onto the undo stack
23159         before the delete action. This fixes 78651.
23160
23161 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
23162
23163         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
23164         CreateParams. Fixes 79329.
23165
23166 2006-09-19  Chris Toshok  <toshok@ximian.com>
23167
23168         * XplatUIX11.cs: a couple of blanket code massage passes to clean
23169         things up a bit.  First, get rid of the NetAtoms array (and the NA
23170         enum), and just embed the atoms as static fields.  Also, add a
23171         couple of functions (StyleSet and ExStyleSet) to clean up all the
23172         bitmask testing of styles.
23173
23174         * X11Structs.cs: remove the NA enum, not needed anymore.
23175         
23176 2006-09-19  Chris Toshok  <toshok@ximian.com>
23177
23178         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
23179         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
23180         added cleanup to get MessageBox titles appearing again, which were
23181         broken by my earlier fix for caption-less/ControlBox-less windows.
23182
23183 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
23184
23185         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
23186           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
23187           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
23188           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
23189           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
23190           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
23191           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
23192           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
23193           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
23194           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
23195           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
23196             Inital import.
23197         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
23198           ToolStripButton.cs: Stubs needed for above.
23199         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
23200
23201 2006-09-15  Chris Toshok  <toshok@ximian.com>
23202
23203         * XplatUIX11.cs:
23204         - make the MessageQueues hashtable Synchronized.
23205         
23206         - SendMessage: if the Hwnd is owned by a different thread, use the
23207         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
23208         thread.  Fixes bug #79201.
23209
23210 2006-09-15  Chris Toshok  <toshok@ximian.com>
23211
23212         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
23213         ControlBox == false, we disallow maximize/minimize/close.  If the
23214         form Caption is "" we also disallow move (and get rid of the Title
23215         decoration).  Unfortunately, regardless of how things are set,
23216         we're stuck with the Title and WM menu.
23217
23218 2006-09-15  Chris Toshok  <toshok@ximian.com>
23219
23220         * Application.cs: add locking around the static message_filters
23221         ArrayList, part of #79196.
23222
23223 2006-09-15  Chris Toshok  <toshok@ximian.com>
23224
23225         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
23226         Form.ControlBox == false, the window has no titlebar nor resize
23227         handles.  fixes bug #79368.
23228
23229 2006-09-15  Chris Toshok  <toshok@ximian.com>
23230
23231         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
23232         >= 0.  Fixes bug #79370.
23233
23234 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
23235         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
23236         * Control.cs:
23237             Add properties: LayoutEngine, Margin, DefaultMargin.
23238             Add method: GetPreferredSize.
23239             Move layout logic from PerformLayout to layout engines. 
23240
23241 2006-09-13  Chris Toshok  <toshok@ximian.com>
23242
23243         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
23244         fix for #79326 broke #78718, so this change addresses that.
23245
23246         - in SendWMDestroyMessages remove the call to
23247         CleanupCachedWindows, since we might be recreating the control and
23248         need to maintain the references to right Hwnd handles.  Also, set
23249         the zombie flag to true for each of the children in the hierarchy
23250         instead of calling hwnd.Dispose.  This will cause GetMessage to
23251         ignore all events for the window except for DestroyNotify.
23252
23253         - In GetMessage, ignore messages except for DestroyNotify for
23254         zombie hwnds.
23255         
23256         * Control.cs: revert the is_recreating fix from the last
23257         ChangeLog.  It's definitely "right", but it breaks switching from
23258         an MDI form to a non-MDI form.  Will need to revisit that.
23259
23260         * Hwnd.cs: add a zombie flag, which means "the
23261         client_window/whole_window handles are invalid, but we're waiting
23262         for the DestroyNotify event to come in for them".  Set the flag to
23263         false explicitly if setting WholeWindow/ClientWindow, and also
23264         when Disposing.
23265         
23266 2006-09-13  Chris Toshok  <toshok@ximian.com>
23267
23268         * XplatUIX11.cs: rework window destruction slightly.
23269
23270         - when destroying the windows associated with a control, we don't
23271         need 2 separate XDestroyWindow calls.  Just the one for the
23272         whole_window (or for client_window if whole_window is somehow
23273         IntPtr.Zero -- can this happen?) is enough.
23274
23275         - reworked SendWMDestroyMessages slightly, so we always dispose
23276         the child control hwnd's after sending the messages.
23277         
23278         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
23279         the two places it was used (one was even using hwnd.Handle and the
23280         other hwnd.client_window.  ugh), adding another call in
23281         SendWMDestroyMessages.  We need this new call because now the
23282         DestroyNotify events in the queue will be ignored for the child
23283         controls (as their hwnd's were disposed, and the window id's
23284         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
23285
23286         - this fixes bug #79326.
23287
23288 2006-09-13  Chris Toshok  <toshok@ximian.com>
23289
23290         * Control.cs: don't always set is_recreating to false at the end
23291         of RecreateHandle, since sometimes we're not done (and won't be
23292         until WndProc handles the WM_DESTROY message).  Also, set
23293         is_recreating to false in the WM_DESTROY handling code.  Part of
23294         the fix for bug #79326.
23295
23296 2006-09-13  Miguel de Icaza  <miguel@novell.com>
23297
23298         * X11DesktopColors.cs: Start the droppage of debugging messages.
23299
23300         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
23301
23302 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
23303
23304         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
23305
23306 2006-09-12  Chris Toshok  <toshok@ximian.com>
23307
23308         * DataGrid.cs (get_ListManager): if the list_manager is null, try
23309         to create it using SetDataSource.  Fixes bug #79151.
23310
23311 2006-09-11  Chris Toshok  <toshok@ximian.com>
23312
23313         * XEventQueue.cs: add a DispatchIdle property.
23314
23315         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
23316         either the queue is null, or the queue has DispatchIdle set to
23317         true.
23318         (DoEvents): set queue.DispatchIdle to false around the
23319         peek/translate/dispatch message loop in this method.  This keeps
23320         Application.Doevents from emitting idle events.  Part of the fix
23321         for #78823.
23322
23323 2006-09-11  Chris Toshok  <toshok@ximian.com>
23324
23325         * DataGrid.cs (set_DataSource): make this work for both the
23326         winforms/datagrid test and ReportBuilder.  It seems as though when
23327         we've created a ListManager (or maybe it's if we have a
23328         BindingContext?), when we set the DataSource it clears the
23329         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
23330         #79333.
23331
23332 2006-09-11  Chris Toshok  <toshok@ximian.com>
23333
23334         * XplatUIX11.cs: deal with queue being null, which happens in all
23335         the Clipboard functions.  Fixes one of the two problems mentioned
23336         in #78612.
23337
23338 2006-09-11  Chris Toshok  <toshok@ximian.com>
23339
23340         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
23341         button on various spots (including outside the menu) works closer
23342         to MS, and doesn't crash.  Fixes #79343.
23343
23344 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
23345
23346         * ListView.cs: Do not initialize item_sorter in init. To match MS,
23347         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
23348         and the internal comparer is set. When a new ListViewItemSorter is set,
23349         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
23350         was specified. No further processing is necessary if SortOrder is set
23351         to it's current value. If Sorting is modified to None, and View is
23352         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
23353         (either custom or our internal ItemComparer) to null, on 1.0 profile
23354         only set item_sorter to null if its our internal IComparer. If Sorting
23355         is modified to Ascending or Descending, then use our internal IComparer
23356         if none is set, and if the current IComparer is our internal one then:
23357         on 2.0 profile always replace it with one for new Sorting, and on 1.0
23358         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
23359         Enum.IsDefined to verify whether a valid View value is specified in
23360         its setter. Automatically sort listview items when listview is
23361         created. In Sort, do nothing if ListView is not yet created, or if
23362         no item_sorter is set (no Sorting was set, Sorting was explicitly set
23363         to None or ListViewItemSorter was set to null). Added Sort overload
23364         taking a bool to indicate whether the ListView should be redrawn when
23365         items are sorted (we use this in ListViewItemCollection to avoid double
23366         redraws). Modified our internal IComparer to take the sort order into
23367         account. In Add and AddRange methods of ListViewItemCollection, also
23368         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
23369         view), but use overload with noredraw option to avoid double redraw.
23370         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
23371         true when View is Tile, and do the same when attempting to set View to
23372         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
23373         for selected/checked indices, as it involves overhead when sorting is
23374         done while these collections are not used all that often. Instead
23375         we'll build the indices on demand. Modified IList implementation of
23376         CheckedIndexCollection to use public methods if object is int.
23377         Modified CheckedListViewItemCollection to hide checked items if
23378         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
23379         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
23380         IList implementation in SelectedIndexCollection to use public methods
23381         if object is int. Modified SelectedListViewItemCollection to hide
23382         selected items if listview is not yet created.
23383         * ListViewItem.cs: CheckedIndices list no longer needs to be
23384         maintained separately (see ListView changes). Also clone font, fixes
23385         test failure.
23386
23387 2006-09-11  Mike Kestner  <mkestner@novell.com>
23388
23389         * ComboBox.cs: if we are updating the contents of the currently
23390         selected index, refresh the control or the textbox selection.
23391         [Fixes #79066]
23392
23393 2006-09-11  Mike Kestner  <mkestner@novell.com>
23394
23395         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
23396         the 'specified' logic has been moved there.  This seems like a bug 
23397         in Control.cs, since our current SetBoundsCore completely ignores 
23398         the specified parameter.  Peter's commit seems to indicate that is 
23399         the way the MS control implementation works.  [Fixes #79325]
23400
23401 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
23402
23403         * XplatUI.cs: Set default_class_name to be composed
23404         of current domain id. This allows MWF to be loaded in multiple
23405         domains on Win32.
23406
23407 2006-09-09  Miguel de Icaza  <miguel@novell.com>
23408
23409         * X11Keyboard.cs: If we are unable to obtain the input method, do
23410         not call CreateXic to create the input context.   Should fix
23411         #78944/79276.
23412
23413 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
23414
23415         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
23416           Simplified gnome support by adding more pinvokes to get the
23417           icon for a file or mime type.
23418
23419 2006-09-08  Jackson Harper  <jackson@ximian.com>
23420
23421         * MenuAPI.cs: Deslect popup context menu items before closing the
23422         window, so that you don't see the previously selected item
23423         selected when you reopen the menu.
23424         * TextControl.cs: Update the cursor position even if we don't have
23425         focus.  This fixes typing in things like the ComboBox.  I'm not
23426         totally sure we should always set the visibility if we don't have
23427         focus, but couldn't find any corner cases where the cursor showed
23428         up when it shouldn't.
23429
23430 2006-09-08  Chris Toshok  <toshok@ximian.com>
23431
23432         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
23433         our arrays are length 256.  & 0xff before indexing.  Fixes the
23434         crash in bug #78077.
23435         
23436 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23437
23438         * ThemeWin32Classic.cs: 
23439         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
23440         is true. Handle that check box too.
23441
23442 2006-09-07  Chris Toshok  <toshok@ximian.com>
23443
23444         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
23445         79244.
23446
23447 2006-09-07  Chris Toshok  <toshok@ximian.com>
23448
23449         * Control.cs: in set_BackColor only do the work if
23450         background_color != value.
23451
23452         * XplatUIX11.cs: move the clearing of invalid areas (both client
23453         and nc) to the same block of code where we set (nc_)expose_pending
23454         to false.  That is, move it from PaintEventEnd to PaintEventStart,
23455         so things that cause invalidates from within OnPaint will trigger
23456         another call to OnPaint.  Fixes bug #79262.
23457
23458 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
23459
23460         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
23461         * FileDialog.cs: Fix typo
23462
23463 2006-09-07  Jackson Harper  <jackson@ximian.com>
23464
23465         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
23466         for tab pages if they have any.
23467
23468 2006-09-06  Mike Kestner  <mkestner@novell.com>
23469
23470         * Splitter.cs: use the "current" rect when finishing drag handle
23471         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
23472
23473 2006-09-06  Mike Kestner  <mkestner@novell.com>
23474
23475         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
23476         support offset splitters. [Fixes #79298]
23477
23478 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
23479
23480         * Mime.cs: Fixed a bug that could override the global mime type
23481           result.
23482
23483 2006-09-05  Jackson Harper  <jackson@ximian.com>
23484
23485         * TabControl.cs: Better calculation method for setting the slider
23486         pos. Prevents crashes on really wide tabs.
23487         - Draw Image on tab pages if an image list is used.
23488
23489 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23490
23491         * MonthCalendar.cs: When Font changes, the Size should be
23492         updated to fit the new font's space requirements.
23493
23494 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
23495
23496         * ListBox.cs: If the items are cleared with Items.Clear set
23497           top_index to 0.
23498
23499 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23500
23501         * MonthCalendar.cs: Handle arrow keys as input keys. Also
23502         fire DateChanged event instead of DateSelected event when
23503         the date was changed by keyboard interaction.
23504
23505 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23506
23507         * DateTimePicker.cs: Handle DateChanged for the associated
23508         month_calendar control, and set month_calendar.Font from 
23509         OnFontChanged method, as well as resize the height of the
23510         control when needed. Make PreferredHeight proportional.
23511
23512 2006-09-01  Chris Toshok  <toshok@ximian.com>
23513
23514         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
23515         properties.
23516
23517         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
23518
23519 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
23520
23521         * FileDialog.cs: Set ClientSize instead of window size, to allow space
23522           for decorations (Fixes #79219)
23523
23524 2006-09-01  Mike Kestner  <mkestner@novell.com>
23525
23526         * ComboBox.cs: first stab at sorting plus some selection handling
23527         fixes to bring us more in line with MS behavior.  Also switches back
23528         to index based selection.  Alternative patches for index-based 
23529         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
23530         and latency@gmx.de on bug 78848.  I assume they were similar to this
23531         code I've had simmering in my tree forever.
23532         [Fixes #78848]
23533
23534 2006-09-01  Chris Toshok  <toshok@ximian.com>
23535
23536         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
23537         when setting list position guard against ending up with a -1 index
23538         (the other part of the fix for #78812).  Should probably make sure
23539         we don't need the analogous fix in the ItemDeleted case.
23540
23541         * DataGrid.cs:
23542         - in SetDataSource, work around the fact that the way
23543         OnBindingContextChanged is invoked will cause us to re-enter this
23544         method.  I'll remove the hack once I investigate
23545         OnBindingContextChanged.
23546
23547         - fix the logic in set_DataSource and set_DataMember (basically
23548         what to do if the other of the two is null.)
23549         
23550         - in OnListManagerItemChanged, we need to take into account the
23551         edit row when deciding whether or not to call RecreateDataGridRows
23552         (part of the fix for #78812).
23553
23554 2006-09-01  Jackson Harper  <jackson@ximian.com>
23555
23556         * Splitter.cs: Don't do anything if there is no control to affect
23557         (prevents us from crashing in weird tet cases).
23558         * TreeView.cs: Bounding box for the mouse movement reverting
23559         focus/selection back to previously selected node.  This matches
23560         MS, and makes the tree a lot more useable.
23561         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
23562         use clipping so they are not drawn.  This fixes when the control
23563         is set to have a transparent background, or if it was over an
23564         image.
23565
23566 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
23567
23568         * MimeIcon.cs: Improved handling for reading default icons when
23569           using gnome (2.16 made it necessary). Check and read svg icons
23570           first, then 48x48 and then 32x32 icons.
23571
23572 2006-08-31  Chris Toshok  <toshok@ximian.com>
23573
23574         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
23575         visible.
23576
23577         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
23578         ProcessKeyPreview.  Fixes part of #77806.
23579
23580         * DataGrid.cs: big patch.
23581
23582         - revert the queueing up of DataSource/DataMember if inside
23583         BeginInit/EndInit calls.  That's not the way the datagrid achieves
23584         its delayed databinding.  Instead, call SetDataSource in
23585         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
23586         #78811.
23587
23588         - Also, it wasn't mentioned in #78811, but the test case exhibits
23589         behavior that was lacking in our datagrid implementation - Columns
23590         that have mapping names that don't exist in the datasource's
23591         properties aren't shown.  Yuck.  To fix this I added the bound
23592         field to the column style, and basically any calculation to figure
23593         out anything about columns uses a loop to find the bound columns.
23594         still need to investigate if I can cache an array of the bound
23595         columns or if the indices must be the same.
23596
23597         - When setting CurrentCell, we no longer abort if the cell being
23598         edited was in the add row.  This fixes the other part of #77806.
23599
23600         - The new code also fixes #78807.
23601         
23602         * ThemeWin32Classic.cs: perpetrate the same disgusting
23603         column.bound field hack, and only render bound fields.
23604
23605 2006-08-31  Chris Toshok  <toshok@ximian.com>
23606
23607         * DataGridColumnStyle.cs: add bound field.  this field is true if
23608         the datasource has a property corresponding to the mapping name.
23609
23610         * DataGridTableStyle.cs: set the bound field on the column styles
23611         depending on whether or not we have a column for that property.
23612
23613 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
23614
23615         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
23616           splitter control (fixes #79228)
23617
23618 2006-08-31  Chris Toshok  <toshok@ximian.com>
23619
23620         * DataGridColumnStyle.cs: we need to delay the assignment of
23621         property descriptor until the last possible moment due to the lazy
23622         databinding stuff in the datagrid.  Also, fix the exceptions
23623         thrown by CheckValidDataSource to match MS.
23624
23625 2006-08-31  Jackson Harper  <jackson@ximian.com>
23626
23627         * Form.cs: When activated select the active control, if there is
23628         no active control, we select the first control.
23629         * XplatUIX11.cs: If there is no focus control when we get a
23630         FocusIn event, find the toplevel form and activate it.  This
23631         occurs when you popup a window, it becomes the focus window, then
23632         you close that window, giving focus back to the main window.
23633
23634 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23635
23636         * MonthCalendar.cs: 
23637         * ThemeWin32Classic.cs: Cache Font in bold style, as well
23638         as StringFormat with Center alignments in MonthCalendar,
23639         instead of creating new ones when drawing the control. 
23640         Also, draw the month name in bold style.
23641
23642 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
23643
23644         * Control.cs:
23645           - PerformLayout(): It would seem MS performs the fill even if the 
23646             control is not visible (part of #79218 fix)
23647           - ResetBackColor(): Use the setter to reset the color, to allow
23648             overriders to catch the change.
23649         * Form.cs:
23650           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
23651           - CreateHandle(): dito (part of $79218 fix)
23652           - Don't set an icon if we have a dialog
23653         * ScrollableControl.cs:
23654           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
23655           - ScrollIntoView(): No need to scroll if control is already visible
23656             (resolves fixme and fixes #79218)
23657
23658 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23659
23660         * MonthCalendar.cs: Change proportions in SingleMonthSize
23661         to match the aspect of the original control.
23662
23663 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
23664
23665         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
23666           get updated when they get maximized.
23667
23668 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
23669
23670         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
23671
23672 2006-08-29  Chris Toshok  <toshok@ximian.com>
23673
23674         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
23675
23676 2006-08-29  Jackson Harper  <jackson@ximian.com>
23677
23678         * TreeView.cs: Need to track selected node and highlighted node,
23679         they aren't always the same thing, when the mouse is down on a
23680         node it is hilighted, but not selected yet.
23681         - Do the HideSelection stuff right
23682         - Need to focus on rbutton mouse down. And redraw selection when
23683         right click is mouse upped.
23684
23685 2006-08-29  Mike Kestner  <mkestner@novell.com>
23686
23687         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
23688         when SubItems.Count < Columns.Count.  [Fixes #79167]
23689
23690 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
23691
23692         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
23693
23694 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
23695
23696         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
23697           from X. Only send based on ConfigureNotify if we don't have the
23698           correct location in hwnd (if the window manager moved us)
23699
23700 2006-08-28  Mike Kestner  <mkestner@novell.com>
23701
23702         * ListView.cs: remove a TODO. 
23703         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
23704         [Fixes ListView part of #79166]
23705
23706 2006-08-28  Mike Kestner  <mkestner@novell.com>
23707
23708         * ListView.cs: move wheel handler to parent since it is focused
23709         instead of the item_control now.  [Fixes #79177]
23710
23711 2006-08-28  Mike Kestner  <mkestner@novell.com>
23712
23713         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
23714         when the control is focused. [Fixes #79171]
23715
23716 2006-08-28  Mike Kestner  <mkestner@novell.com>
23717
23718         * ListView.cs: size the item and header controls for empty and
23719         unscrollable views.
23720         * ThemeWin32Classic.cs: draw disabled backgrounds.
23721         [Fixes #79187]
23722
23723 2006-08-28  Chris Toshok  <toshok@ximian.com>
23724
23725         * Form.cs: remove unused "active_form" static field.
23726
23727         * Hwnd.cs: lock around accesses to static windows collection.
23728
23729         * Application.cs: lock threads in Exit ().
23730
23731 2006-08-28  Chris Toshok  <toshok@ximian.com>
23732
23733         * NativeWindow.cs: lock around accesses to window_collection.
23734         
23735 2006-08-28  Chris Toshok  <toshok@ximian.com>
23736
23737         * Control.cs: err, fix this the right way, by locking on controls
23738         when using it.  not by making it synchronized.
23739
23740 2006-08-28  Chris Toshok  <toshok@ximian.com>
23741
23742         * Control.cs: make the static "controls" field synchronized, as it
23743         gets updated from multiple threads.
23744
23745 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
23746
23747         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
23748           Prevent other threads from exiting when calling thread sets quit state.
23749         * XEventQueue.cs: Added PostQuitState property
23750
23751 2006-08-27  Chris Toshok  <toshok@ximian.com>
23752
23753         * AsyncMethodData.cs: add a slot for the window handle.
23754
23755         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
23756         window (the destination control's window, not the foster window).
23757
23758         * Control.cs (BeginInvokeInternal): store the window's handle in
23759         the AsyncMethodData.
23760         
23761
23762 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
23763
23764         * XplatUIX11.cs:
23765           - PostQuitMessage: Removed resetting S.D display handle, we might have
23766             another loop started after calling PostQuitMessage (Fixes #79119)
23767           - Created destructor to reset S.D handle
23768
23769 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
23770
23771         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
23772
23773 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23774
23775         * TextControl.cs (Insert): Update the caret position even if we don't
23776           have a handle yet, just don't call the driver in that case.
23777         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
23778           to the end of the new selection text (Fixes #79184)
23779
23780 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23781
23782         * Form.cs (Activate): Only activate if the handle is created)
23783         * Control.c:
23784           - Mark window as invisible when it's disposed
23785           - Check if window handle is created when setting window visible, 
23786             instead of relying just on the is_created variable
23787           - Check if object is disposed when creating the control (Fixes #79155)
23788
23789 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23790
23791         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
23792           when allowing layout again. Otherwise we re-generate the anchoring 
23793           distance to the border again and actually alter what the user wanted
23794           This is ugly, it'd be better if we used DisplayRectangle instead of
23795           ClientRectangle for Control.UpdateDistances, but that causes us to
23796           have other problems (initial anchoring positons would be wrong)
23797           (Fixes #78835)
23798
23799 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23800
23801         * Control.cs:
23802           - The size and location setters shouldn't go directly to 
23803             SetBoundsCore, but to SetBounds, which triggers layout on the
23804             parent, then calls SetBoundsCore. (Related to fix for #78835)
23805           - SetBounds: Moved actual location update code into this function
23806             from SetBoundsCore, to match MS. Added call to PerformLayout if
23807             we have a parent (to trigger resizing of anchored parents if the 
23808             child size has changed (see testcase for #78835) 
23809         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
23810           new control code
23811         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
23812
23813 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23814
23815         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
23816           System.Drawing when a toplevel window gets closed; there might
23817           be other toplevel windows belonging to the same app (Fixes #78052)
23818
23819 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
23820
23821         * FileDialog.cs: After reading FileDialog settings from mwf_config
23822           use Desktop prefix only if a real folder doesn't exist anymore.
23823         * FontDialog.cs: Added char sets.
23824           It is now possible to select the font, size or style with the
23825           textboxes.
23826
23827 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
23828
23829         * PrintPreviewDialog.cs: Use assembly name constants.
23830
23831 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23832
23833         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
23834           scrollbar from whacking it's buttons)
23835
23836 2006-08-24  Chris Toshok  <toshok@ximian.com>
23837
23838         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
23839         in this patch (aggregating setting Left/Top/Width/Height to
23840         setting Bounds on the scrollbars), but the crux of the fix is in
23841         Recalculate, where we scroll by the remaining scroll_position if
23842         we're hiding a scrollbar.  The 2*$5 reward in the comment is
23843         serious.
23844
23845 2006-08-24  Jackson Harper  <jackson@ximian.com>
23846
23847         * MdiClient.cs:
23848         * MdiWindowManager.cs: If the form is made a non-mdi window we
23849         need to remove the form closed event so that closing forms works
23850         correctly.
23851
23852 2006-08-24  Jackson Harper  <jackson@ximian.com>
23853
23854         * Control.cs: Make IsRecreating internal so that the driver can
23855         check it
23856         - Temporarily remove the Hide when controls are removed, its
23857         making a whole bunch of things not work because visibility isn't
23858         getting reset elsewhere correctly
23859         * Form.cs: Need to do a full handle recreation when the mdi parent
23860         is set.
23861         * XplatUIX11.cs: If we are recreating handles don't dispose the
23862         HWNDs.  What was happening is the handles were being recreated in
23863         SendWMDestroyMessages, but then flow continued on in that method
23864         and destroyed the new handles.
23865
23866 2006-08-23  Jackson Harper  <jackson@ximian.com>
23867
23868         * Form.cs: MdiClient is always at the back of the bus
23869         * Control.cs: When the order of items in the collection is changed
23870         we need to reset the all_controls array
23871         - do the same sorta setup thats done when adding a control when a
23872         control is set on the collection.
23873
23874 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23875
23876         * TextBoxBase.cs (get_Text): Return an empty array if our document
23877           is empty (fixes #79052)
23878
23879 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23880
23881         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
23882           on WM_SYSCHAR messages (fixes #79053)
23883
23884 2006-08-23  Chris Toshok  <toshok@ximian.com>
23885
23886         * DataGrid.cs: fix flickering when scrolling vertically.
23887
23888 2006-08-23  Chris Toshok  <toshok@ximian.com>
23889
23890         * DataGrid.cs (EndEdit): only invalidate the row header when we
23891         need to.
23892
23893 2006-08-23  Chris Toshok  <toshok@ximian.com>
23894
23895         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
23896         methods.  fixes the flicker when scrolling around.
23897
23898 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23899
23900         * FileDialog.cs: Making sure the control is created before we get a 
23901           chance to use it with BeginInvoke (Fixes #79096)
23902
23903 2006-08-23  Chris Toshok  <toshok@ximian.com>
23904
23905         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
23906         width to use when painting the rows.
23907
23908 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23909
23910         * TextBoxBase.cs:
23911           - Throw ArgumentException if a negative value is passed to SelectionLength
23912           - Update the selection end if start is moved. end needs to be always
23913             after start. (Fixes #79095)
23914           - Track selection length; MS keeps the selection length even if start
23915             is changed; reset on all other operations affection selection
23916
23917 2006-08-22  Jackson Harper  <jackson@ximian.com>
23918
23919         * TreeView.cs: Make sure both scrollbars get displayed and sized
23920         correctly when the other bar is visible.
23921         - Use the original clip rectangle for checking if the area between
23922         the two scrollbars is visible, not the viewport adjusted clipping
23923         rectangle.
23924
23925 2006-08-22  Jackson Harper  <jackson@ximian.com>
23926
23927         * Binding.cs: We don't use IsBinding because it requires the
23928         control to be created, which really shouldn't be necessary just to
23929         set a property on the control.
23930
23931 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23932
23933         * ComboBox.cs: Some CB.ObjectCollection methods must throw
23934         ArgumentNullReferenceException when the argument is null.
23935
23936 2006-08-21  Jackson Harper  <jackson@ximian.com>
23937
23938         * Timer.cs: Track the thread that the timer is started in (NOT
23939         CREATED), this way messages for it will only be triggered on its
23940         queue.
23941         * XEventQueue.cs: Track the timers here, this makes timers per
23942         thread, like MS.
23943         * XplatUIX11.cs: The timers are moved to the XEventQueue.
23944
23945 2006-08-19  Chris Toshok  <toshok@ximian.com>
23946
23947         * XplatUIX11.cs: after further communication with pdb, we get the
23948         best of both worlds.  SetZOrder working for un-Mapped windows, and
23949         no X errors for un-mapped windows.
23950
23951 2006-08-19  Chris Toshok  <toshok@ximian.com>
23952
23953         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
23954         as it was causing pdn toolbars to not have the correct stacking.
23955
23956 2006-08-18  Mike Kestner  <mkestner@novell.com> 
23957
23958         * ListView.cs : guard against negative ClientArea.Width in scrollbar
23959         calculation.  Not sure why control should ever be setting a negative
23960         width though.  Fixes #78931.
23961
23962 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23963
23964         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
23965         null items in ObjectCollection class.
23966         * ListBox.cs.: Likewise.
23967
23968 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
23969
23970         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
23971           as the base method in ThemeWin32Classic should work fine.
23972           Fixed bug #78607.
23973
23974 2006-08-18  Jackson Harper  <jackson@ximian.com>
23975
23976         * Binding.cs: When validating if the value entered doesn't convert
23977         properly reset to the old value.
23978         * RadioButton.cs: Don't fire click when we get focus.
23979
23980 2006-08-18  Jackson Harper  <jackson@ximian.com>
23981
23982         * FileDialog.cs: Paint the selection on the directory combobox the
23983         same way as on MS. 
23984
23985 2006-08-17  Jackson Harper  <jackson@ximian.com>
23986
23987         * ErrorProvider.cs: Don't allow the error control to be selected.
23988         * Control.cs: Don't send the SetFocus messages, the control
23989         activation will do this, and if we do it blindly here validation
23990         does not work.
23991
23992 2006-08-17  Jackson Harper  <jackson@ximian.com>
23993
23994         * Control.cs:
23995         * ContainerControl.cs: Make validation events fire in the correct
23996         order.  TODO: For some reason the first validation event is not
23997         getting fired.
23998
23999 2006-08-17  Mike Kestner  <mkestner@novell.com> 
24000
24001         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
24002
24003 2006-08-17  Mike Kestner  <mkestner@novell.com> 
24004
24005         * ComboBox.cs : implement scroll wheel support for popped-down
24006         state. Fixes #78945. 
24007
24008 2006-08-17  Jackson Harper  <jackson@ximian.com>
24009
24010         * TreeView.cs: Specify treeview actions (old patch that didn't get
24011         committed for some reason).
24012         - Don't let the mouse wheel scroll us too far.  Just want to make
24013         the bottom node visible, not scroll it all the ways to the top.
24014
24015 2006-08-17  Jackson Harper  <jackson@ximian.com>
24016
24017         * XplatUIX11.cs: Mouse wheel events go to the focused window.
24018
24019 2006-08-17  Mike Kestner  <mkestner@novell.com> 
24020
24021         * ComboBox.cs : don't do mouseover selection in simple mode.
24022
24023 2006-08-16  Jackson Harper  <jackson@ximian.com>
24024
24025         * Form.cs: Fire the closing events for all the mdi child windows
24026         when a window is closed.  If the cancel args are set to true, the
24027         main window still gets the event fired, but it doesn't not close.
24028         * MdiWindowManager.cs: Do this closing cleanup in a Closed
24029         handler, instead of when the button is clicked, so cancelling the
24030         close works correctly.
24031         * ComboBox.cs: Send the mouse down to the scrollbar.
24032
24033 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24034
24035         * ListBox.cs: When passing 'null' to SelectedItem,
24036         set SelectedIndex to -1, to unselect items. This is the
24037         observed behaviour in .Net.
24038
24039 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
24040
24041         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
24042           MS flags saying there won't be any. (fixes #78800)
24043         * Control.cs (HandleClick): Made virtual
24044
24045 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
24046
24047         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
24048           cultures. Fixed bug #78399.
24049
24050 2006-08-16  Jackson Harper  <jackson@ximian.com>
24051
24052         * Form.cs: Use the MdiClients MdiChildren property to access
24053         MdiChildren instead of creating the array from the child controls.
24054         * MdiClient.cs: Maintain a separate array of the mdi children, so
24055         that insertion order is maintained when the Z-order is changed.
24056
24057 2006-08-16  Mike Kestner  <mkestner@novell.com> 
24058
24059         * ListView.cs : add an ItemComparer and default to it for sorting.
24060         Fixes #79076, but sorting needs a complete overhaul to be compat with
24061         MS.
24062
24063 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
24064
24065         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
24066
24067 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
24068
24069         * Hwnd.cs (Mapped): Properly traverse the tree
24070
24071 2006-08-15  Chris Toshok  <toshok@ximian.com>
24072
24073         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
24074         pass manager.Current.GetType() to ParseData.  It has to be the
24075         property type.  So, hold off doing the ParseData until we're in
24076         SetPropertyValue where we know the type.  This fixes the crash in
24077         #78821 but the textbox is still empty.
24078
24079 2006-08-15  Chris Toshok  <toshok@ximian.com>
24080
24081         * DataGrid.cs:
24082         - when we're scrolling, only call Edit() again if the
24083         current cell is still unobscured. Fixes bug #78927.
24084         - when handling mousedown on a cell, ensure the cell is visible
24085         before calling Edit.
24086         - remove the properties from DataGridRow, and remove the
24087         DataGridParentRow class altogether.
24088         
24089
24090 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
24091
24092         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
24093           fire OnTextChanged by ourselves. There's no point calling base,
24094           we don't set the base value anywhere else. Fixes #78773.
24095
24096 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24097
24098         * ListBox.cs: Call CollectionChanged when modifying
24099         an item from Items indexer, to update the actual items
24100         in the list box.
24101
24102 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24103
24104         * PrintDialog.cs: Small fixes for focus and a pair of checks,
24105         to match .Net behaviour.
24106
24107 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
24108
24109         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
24110
24111 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
24112
24113         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
24114
24115 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
24116
24117         * MessageBox.cs: Prevent potential NRE exception.
24118         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
24119
24120 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
24121
24122         * MessageBox.cs: Calculate the owner of a messagebox, also make
24123           it topmost. Fixes #78753
24124
24125 2006-08-14  Chris Toshok  <toshok@ximian.com>
24126
24127         * XplatUIX11.cs: A couple of fixes so that metacity will let us
24128         programmatically move windows.  first, set the PPosition hint as
24129         well as the USPosition hint.  Second include some code from pdb
24130         that sets the window type to NORMAL when we set the transient for
24131         hint.  This is because, in the absence of a window type, metacity
24132         thinks any window with TransientFor set is a dialog, and refuses
24133         to let us move it programmatically.  fascists.
24134
24135 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
24136
24137         * XplatUIX11.cs: When setting normal hints, take into consideration
24138           an different hints previously set so we don't delete them (fixes #78866)
24139
24140 2006-08-12  Chris Toshok  <toshok@ximian.com>
24141
24142         * ToolBarButton.cs: make Layout return a boolean, if something to
24143         do with the button's layout changed.
24144
24145         * ToolBar.cs:
24146         - add another parameter to Redraw, @force, which all existing
24147           calls set to true.
24148         - make the Layout function return a boolean which is true if the
24149           layout has actually changed.  Redraw now uses this (and @force)
24150           to determine when to invalidate.  At present the only place
24151           where @force can be false is the call from OnResize, when
24152           background_image == null.  So, resizing a toolbar when the
24153           layout doesn't change results in no drawing.
24154
24155 2006-08-12  Chris Toshok  <toshok@ximian.com>
24156
24157         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
24158         the VScrollBar and HScrollbar reversed.  oops.
24159
24160         * DataGrid.cs: fix the logic that assigns sizes to the implicit
24161         scrollbars.  we were assigning them twice (once in
24162         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
24163         therefore causing two scrollbar resizes (and redraws?) to happen
24164         per grid resize.
24165
24166 2006-08-12  Chris Toshok  <toshok@ximian.com>
24167
24168         * ToolBarButton.cs: redraw the entire button if the theme tells us
24169         to.
24170
24171         * Theme.cs: add ToolBarInvalidateEntireButton.
24172
24173         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
24174         buttons, just the border.
24175
24176         * ThemeNice.cs: redraw the entire toolbar button since we need to
24177         draw the highlight image.
24178
24179         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
24180         we need to redraw the entire button (not just the border).
24181
24182 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
24183
24184         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
24185           for vertical bars. Fixes the mismatches shown by #78513
24186
24187 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
24188
24189         * FileDialog.cs: If a saved/remembered path doesn't exist
24190           anymore, fall back to "Desktop".
24191
24192 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
24193
24194         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
24195           parent. It's apparently legal to not have one
24196         * XplatUIX11.cs:
24197           - SetZOrder: Don't try to set Z-Order on an unmapped window
24198           - CreateWindow: 0,0 are legal coordinates for a window. don't move
24199             it unless the coordinates are negative
24200
24201 2006-08-10  Mike Kestner  <mkestner@novell.com>
24202
24203         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
24204         when setting to null per msdn docs.  Fixes #78854.
24205
24206 2006-08-10  Chris Toshok  <toshok@ximian.com>
24207
24208         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
24209         flickering by setting a clip rectangle on the Graphics when we
24210         need to redraw just a particular menuitem.  Also, rename "OnClick"
24211         to "OnMouseDown" to reflect what it actually is.
24212         
24213         * Form.cs: track the OnMouseDown change.
24214
24215 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
24216
24217         * CommonDialog.cs: Properly inherit the CreateParams from the form
24218           and only change what we need. Fixes #78865
24219
24220 2006-08-10  Chris Toshok  <toshok@ximian.com>
24221
24222         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
24223         flickering in flat mode (and most of the flickering in general) by
24224         only invalidating the button border (and not the entire rectangle)
24225         when the state changes.  A couple of cases still flicker:
24226         ToggleButtons, and the dropdown arrow case when the user mouse
24227         ups.
24228
24229 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
24230
24231         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
24232           for german keyboards. Numlock state shouldn't affect the behaviour
24233           of the Del key. Fixes bug #78291.
24234
24235 2006-08-10  Chris Toshok  <toshok@ximian.com>
24236
24237         * ListControl.cs: remove the items.Clear line from BindDataItems,
24238         as this is the first thing done by both subclasses in their
24239         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
24240         passed -1, refresh the list.  This gets databinding working when
24241         the datasource is set on the list before the datasource is
24242         populated (as in wf-apps/ReportBuilder.)
24243
24244         * ComboBox.cs: remove the argument to BindDataItems.  This call
24245         should really go away, and be initiated by the ListControl code.
24246
24247         * ListBox.cs: same.
24248
24249 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
24250
24251         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
24252           if no data is in the document when the control is displayed
24253
24254 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
24255
24256         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
24257           yes (fixes #78806)
24258         * TextControl.cs: 
24259           - PositionCaret: Allow positioning of caret but don't call methods 
24260             requiring a handle if the window isn't created yet
24261           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
24262           - owner_HandleCreated: Don't position the caret, just update it's 
24263             location. User might have already set a different position
24264
24265 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
24266
24267         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
24268           windows. Screws up the returned coordinates for child windows. 
24269           Fixes #78825. I'm hoping this doesn't break something, since the
24270           code was explicitly put in 8 months ago, but no bug was attached.
24271           Menus still seem to work properly.
24272
24273 2006-08-08  Chris Toshok  <toshok@ximian.com>
24274
24275         * DataGrid.cs: make BeginInit/EndInit actually do what they're
24276         supposed to do - delay data binding until the EndInit call.  Also,
24277         make the table style collection's CollectionChangeAction.Refresh
24278         work properly.
24279
24280         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
24281         (with action = Refresh) when a consituent table's MappingName is
24282         changed.
24283
24284 2006-08-08  Chris Toshok  <toshok@ximian.com>
24285
24286         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
24287         Invalidate, since changing the text can change the size of the all
24288         toolbar buttons.
24289
24290 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
24291
24292         * Form.cs (AddOwnedForm): Still need to add the form to our listif
24293           we don't have it yet
24294
24295 2006-08-08  Chris Toshok  <toshok@ximian.com>
24296
24297         * PrintControllerWithStatusDialog.cs: don't .Close() the status
24298         dialog, as this causes X errors later on, since we actually
24299         destroy the window.  Instead, .Hide() it.
24300
24301 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
24302
24303         * ComboBox.cs: Added focus reflection for popup window
24304         * XplatUIX11.cs: 
24305           - Removed transient setting for non-app windows for now, not sure it
24306             was needed
24307           - Fixed logic checking if we have captions when deciding 
24308             override_redirect, WS_CAPTION is two bits and a 0 check was not
24309             sufficient
24310           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
24311             complicated
24312         * Form.cs: 
24313           - AddOwnedForm: Don't just add the form to the list, call the property
24314             to ensure the driver is informed about the ownership as well
24315           - CreateHandle: Set the TopMost status in the driver if we have an owner
24316         * XplatUI.cs: Fixed debug statement
24317
24318 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
24319         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
24320           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
24321           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
24322           TrackBarRenderer.cs: Make constructor private.
24323         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
24324         * ProfessionalColorTable.cs: Make properties virtual.
24325
24326 2006-08-06  Duncan Mak  <duncan@novell.com>
24327
24328         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
24329         is not changing.
24330
24331 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
24332         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
24333           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
24334           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
24335           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
24336           Initial import of new 2.0 classes.
24337
24338 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
24339         * Application.cs: Add 2.0 VisualStyles properties.
24340
24341 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
24342         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
24343           XplatUIX11.cs: Create property to allow access to existing private
24344           variable "themes_enabled"
24345
24346 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24347
24348         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
24349         file size, as otherwise our class libraries fail using windows. Fixes
24350         bug #78759.
24351
24352 2006-08-04  Jackson Harper  <jackson@ximian.com>
24353
24354         * Form.cs:
24355         * XplatUIX11.cs: Move the toolwindow window manager creation into
24356         the X11 driver, this way on win32 we can let windows create/handle
24357         the toolwindows.
24358
24359 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24360
24361         * PrintDialog.cs: Remove some redundant checks, add some others,
24362         clean some code, and move the focus to the text boxes when the
24363         values are incorrect.
24364
24365 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
24366
24367         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
24368
24369 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
24370
24371         * NumericUpDown.cs: Setting the Minimum and Maximum is now
24372           handled correctly. Fixes bug #79001.
24373
24374 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24375
24376         * PrintDialog.cs: The "Copies" numeric up down must have
24377         set the Minimum property to 1; only if the value is bigger
24378         than 1, activate "Collate" check box. This is the behaviour of .Net.
24379         Also modify the Document elements only if it is not null.
24380
24381 2006-08-03  Jackson Harper  <jackson@ximian.com>
24382
24383         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
24384         length. (We have a larger array then actual node count).
24385                 
24386 2006-08-03  Jackson Harper  <jackson@ximian.com>
24387
24388         * ComboBox.cs: Don't show selection by default.
24389         - The SelectAll isn't needed here, since the focus code should do
24390         that
24391         - DDL style lists to manual selection drawing, so when they
24392         get/lose focus they have to invalidate.
24393
24394 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
24395
24396         * TextBoxBase.cs: Don't always show all selections by default.
24397
24398 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
24399         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
24400           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
24401           Fixed various typos.
24402
24403 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
24404
24405         * Control.cs: Removing the controls in a ControlCollection with
24406           Clear now hides the controls as expected. Fixes bug #78804. 
24407
24408 2006-08-03  Jackson Harper  <jackson@ximian.com>
24409
24410         * Control.cs: Revert previous focus patch, it breaks reflector.
24411
24412 2006-08-03  Jackson Harper  <jackson@ximian.com>
24413
24414         * ComboBox.cs: Cleanup selection and focus with the combobox.
24415         This also eliminates some duplicated keyboard code, since now
24416         everything is handled by the main class.
24417         - Make list selection work on mouse up instead of down, to match
24418         MS.
24419
24420 2006-08-02  Jackson Harper  <jackson@ximian.com>
24421
24422         * Control.cs: Setting focus needs to go through the whole
24423         selection mechanism.
24424
24425 2006-08-02  Chris Toshok  <toshok@ximian.com>
24426
24427         * PrintPreviewDialog.cs: change MinimumSize to use
24428         base.MinimumSize so it works.
24429
24430 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
24431
24432         * TextControl.cs:
24433           - UpdateCaret: Added sanity check in case caret isn't defined yet
24434           - Line.Delete: Now updating selection and caret markers if we're
24435             transfering a node (Properly fixes #78323)
24436           - SetSelectionEnd: Added sanity check
24437         * TextBoxBase.cs: Removed broken attempt to fix #78323
24438
24439 2006-08-01  Chris Toshok  <toshok@ximian.com>
24440
24441         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
24442         Close() call is handled in Form, not here.
24443
24444 2006-08-01  Chris Toshok  <toshok@ximian.com>
24445
24446         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
24447         layout/rendering.
24448
24449         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
24450         for sizes < 100% zoom.  The code now aggressively attempts to keep
24451         from calling document.Print (), and tries not to use the scaling
24452         g.DrawImage whenever possible (it still does if you scale to >
24453         100%, since usually that involves huge images).
24454
24455         * PrintPreviewControl.cs: hook up the close button.
24456
24457 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
24458         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
24459           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
24460           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
24461           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
24462           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
24463           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
24464           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
24465           Removed [Serializable] for 2.0 Event Handlers.
24466
24467 2006-07-31  Jackson Harper  <jackson@ximian.com>
24468
24469         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
24470         * TextControl.cs: Uncomment out the body of this method.
24471
24472 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
24473
24474         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
24475           standard cursors.
24476
24477 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
24478
24479         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
24480           that embed TextBox and need selections visible even if textbox is not
24481           focused to enforce that behaviour.
24482         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
24483           selection drawing
24484
24485 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
24486
24487         * TextControl.cs:
24488           - Added new SetSelectionStart/SetSelectionEnd overloads
24489           - Fixed viewport width assignment to be accurate
24490           - Adjusted alignment line shift calculations to allow cursor on right
24491             aligned lines to be always visible at the right border (like MS)
24492         * TextBoxBase.cs:
24493           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
24494           - TextBoxBase_SizeChanged: recalculating canvas on size changes
24495           - CalculateScrollBars: Use ViewPort size instead of window size, to
24496             properly consider space occupied by the border and scrollbars 
24497             (Fixes #78661)
24498           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
24499             calculations; no longer leaves artifacts
24500           - CaretMoved: Adjusted window scrolling to match MS and fixed several
24501             calculation bugs (Still missing right/center align calculations)
24502
24503 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
24504
24505         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
24506           use of both scroll rect and clip rect, as they do the same.
24507
24508 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
24509
24510         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
24511           in the event handler (fixes #78912)
24512
24513 2006-07-31  Chris Toshok  <toshok@ximian.com>
24514
24515         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
24516         grid.ListManager.Count, since grid.ListManager might be null.
24517         This of course begs the question "why are we drawing rows for a
24518         grid with no list manager (and therefor no rows)?"  Fixes the
24519         crash in bug #78929.
24520
24521 2006-07-31  Chris Toshok  <toshok@ximian.com>
24522
24523         * RelatedPropertyManager.cs: Don't always chain up to the parent
24524         ctor.  instead, call SetDataSource if the parent's position is !=
24525         -1.  Fixes the crash in #78822.
24526
24527 2006-07-31  Chris Toshok  <toshok@ximian.com>
24528
24529         * DataGrid.cs (get_ListManager): use field instead of property
24530         accessors for datasource and datamember.
24531         (RowsCount): make internal again.
24532         (OnMouseDown): end edits before resizing columns/rows.
24533         (OnMouseUp): restart edits after resizing columns/rows.
24534
24535 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
24536
24537         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
24538           This fixes the situation where the last set cursor is displayed
24539           whenever the mouse is over scrollbars.
24540
24541 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24542
24543         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
24544         Document properties, as well as initial values.
24545
24546 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
24547
24548         * XplatUIWin32.cs (SetBorderStyle): Setting both border
24549           and ClientEdge results in a 3-pixel border, which is
24550           wrong.
24551
24552 2006-07-28  Jackson Harper  <jackson@ximian.com>
24553
24554         * TreeNodeCollection.cs: Fix the clear method.
24555         - Fix the Shrink also
24556
24557 2006-07-27  Jackson Harper  <jackson@ximian.com>
24558
24559         * TreeView.cs: Make sure the visible order is computed when we
24560         attempt to size the scrollbars (for trees that mess with the
24561         scrolling when they shouldn't.
24562         - Make sure to give the scrollbars valid values.
24563
24564 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
24565
24566         * XplatUIX11.cs: Move motion compression code to where it
24567           has less performance impact
24568
24569 2006-07-26  Jackson Harper  <jackson@ximian.com>
24570
24571         * UpDownBase.cs: When the control is selected make the child
24572         controls non selectable, so that a click on them won't do a
24573         focus/unfocus cycle.
24574         - Don't give focus to the text box when the spinner is selected.
24575         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
24576
24577 2006-07-26  Chris Toshok  <toshok@ximian.com>
24578
24579         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
24580         satisfied with this solution.  If the bitmaps are small, we should
24581         just cache them in the PrintPreviewDialog and draw them here.
24582         Also, the layout is broken for the 2-up and 3-up cases.
24583
24584         * Theme.cs: add PrintPReviewControlPaint.
24585
24586         * PrintPreviewDialog.cs: first pass implementation.
24587
24588         * PrintPreviewControl.cs: first pass implementation.  No
24589         scrollbars yet.
24590
24591         * PrintDialog.cs: only validate fields if that particular portion
24592         of the UI is enabled.  Also, set the document's controller to a
24593         PrintControllerWithStatusDialog wrapping the document's print
24594         controller.
24595
24596         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
24597         bring up a SaveFileDialog (i hope we don't want to match the
24598         behavior of the crappy windows file entry) and set the
24599         PrinterSettings.PrintFileName accordingly.
24600
24601 2006-07-26  Jackson Harper  <jackson@ximian.com>
24602
24603         * ContainerControl.cs: Add a field that disables auto selecting
24604         the next control in a container when the container is activated.
24605         * UpDownBase.cs: Don't select the text box when the up down is
24606         selected.
24607
24608 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
24609
24610         * XEventQueue.cs: Added methods for peeking (used for compression
24611           of successive events)
24612         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
24613           mouse move events (fixes #78732)
24614
24615 2006-07-25  Jackson Harper  <jackson@ximian.com>
24616
24617         * UpDownBase.cs: Use an internal class for the textbox so that we
24618         can control focus.  the updown control should always have focus,
24619         if either the text area or the buttons are clicked.
24620         - Send the key messages to the textbox, since it never actually
24621         has focus
24622         - Activate and decativate the textbox caret.
24623
24624 2006-07-24  Jackson Harper  <jackson@ximian.com>
24625
24626         * Control.cs: Use the directed select when selecting a control,
24627         this way the container controls override will get called and the
24628         whole ActiveControl chain will get triggered.  TODO: probably need
24629         to make sure this gets done everywhere instead of the old
24630         Select(Control).
24631         * ContainerControl.cs: Implement the directed Select method to
24632         find and activate the correct child control.    
24633         
24634 2006-07-22  Mike Kestner  <mkestner@novell.com>
24635
24636         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
24637         menu handling code so that clicks without a grab work too.
24638         [Fixes #78914]
24639
24640 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
24641
24642         * FileDialog.cs: Enable the BackButton when dirstack has one element.
24643           Added some small optimizations.
24644
24645 2006-07-21  Matt Hargett  <matt@use.net>
24646
24647         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
24648
24649 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
24650
24651         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
24652           tests pass and match MS in some strange border cases.
24653
24654 2006-07-21  Chris Toshok  <toshok@ximian.com>
24655
24656         * ThemeWin32Classic.cs: handle drawing of the relation links and
24657         parent row buttons.
24658
24659         * Theme.cs: change args to DataGridPaintParentRow.
24660
24661         * DataGrid.cs: Don't use controls for the relation links and
24662         parent buttons, so we have to handle all their interactions in
24663         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
24664         when we're navigating through child tables, so we can reinstate
24665         selection, expanded state, current cell, etc.
24666
24667 2006-07-20  Chris Toshok  <toshok@ximian.com>
24668
24669         * ToolBar.cs: When we redraw a button, for whatever reason,
24670         there's no reason to redraw the entire toolbar.  Also, don't call
24671         Control.Refresh from within Redraw, as it's much heavier than
24672         Invalidate (which is really what we want).
24673
24674 2006-07-20  Chris Toshok  <toshok@ximian.com>
24675
24676         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
24677         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
24678         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
24679         traces from within a debug IBindingList datasource
24680         (in mono/winforms/datagrid) for *days*, I've finally gotten things
24681         to work in a similar fashion.
24682
24683 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24684
24685         * ListBox.cs: Don't call Sort () when setting 
24686         the Sorted property to false (avoid an unnecessary sort).
24687
24688 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24689
24690         * ListControl.cs: DataSource should throw an ArgumentException
24691         instead of a normal exception when the argument is not of the 
24692         correct type.
24693
24694 2006-07-20  Mike Kestner  <mkestner@novell.com>
24695
24696         * Control.cs: add InternalPreProcessMessage to allow us to steal
24697         key events before MWF gets its paws on them.  Adapted from a
24698         suggestion by eno.
24699         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
24700         up/down/left/right navigation. Override the new internal control
24701         method to steal the events since they never make it to WndProc.
24702         * ToolBarButton.cs: don't worry about pushed when setting hilight
24703         since the drawing code prefers pushed to hilight. Invalidate on 
24704         Hilight changes. Fixes #78547 and #78525.
24705
24706 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
24707
24708         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
24709           the canvas size. Fixes #78868
24710
24711 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
24712
24713         * Splitter.cs: Track requested split position until first layout
24714           is performed. Fixes #78871
24715
24716 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
24717
24718         * Application.cs: Removed code that forces 1.x for the version
24719           number if the version started with 0. Not sure why that code was
24720           there and I couldn't find any bugs that indicated we needed it.
24721           Fixes #78869
24722
24723 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
24724
24725         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
24726           ResetDefaults(), just write some output to the console until it's
24727           implemented. Fixes bug #78907 for now. Eliminated two warnings.
24728
24729 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
24730
24731         * PropertyGridView.cs: set StartPosition of drop down forms
24732         so they appear in correct initial spot.  Fixes #78190.
24733
24734 2006-07-19  Mike Kestner  <mkestner@novell.com>
24735
24736         * ThemeWin32Classic.cs: use parent background color when drawing
24737         flat toolbars.  Restructure the conditionals to make sure non-flat
24738         non-Divider toolbars are filled too.  Fixes #78837.
24739
24740 2006-07-19  Mike Kestner  <mkestner@novell.com>
24741
24742         * ListBox.cs: Sort on collection changes even if the handle
24743         isn't created yet.  Fixes #78813.
24744
24745 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24746
24747         * ListControl.cs: DisplayMember should never be null,
24748         and now we assign String.Empty when null is passed to it (this
24749         is the .Net way).
24750
24751 2006-07-17  Mike Kestner  <mkestner@novell.com>
24752
24753         * ListViewItem.cs: restructure Font and subitem Font handling 
24754         to hold a specific font and refer back to owner on null.
24755         Fixes #78761.
24756
24757 2006-07-17  Mike Kestner  <mkestner@novell.com>
24758
24759         * ToolBar.cs: bandaid for side-effect of previous patch which was
24760         discarding explicit heights for non-AutoSize toolbars.  Need to
24761         extend my format tester to deal with AutoSize=false. Fixes #78864.
24762
24763 2006-07-15  Jackson Harper  <jackson@ximian.com>
24764
24765         * LabelEditTextBox.cs:
24766         * TreeView.cs: Use a new LabelEdit class for node editing, this
24767         class automatically 'closes' itself when it gets the enter key or
24768         loses focus.
24769         - Use the client rectangle when setting the trees scrollbars, so
24770         border style is taken into account.
24771         
24772 2006-07-14  Jackson Harper  <jackson@ximian.com>
24773
24774         * TreeNode.cs:
24775         * TreeView.cs: Make the editing work similar to MSs, firing the
24776         events correctly and ending edits correctly.
24777
24778 2006-07-14  Mike Kestner  <mkestner@novell.com>
24779
24780         * ToolBarButton.cs:
24781         * ToolBar.cs: layout restructuring and redraw enhancements to support
24782         formatting changes gracefully, like setting TextAlign, ImageList, 
24783         ButtonSize, and Appearance.  Handles explicit button sizing quirks
24784         of the MS controls.  Things like flat toolbars ignoring button size
24785         but becoming constant sized at the largest button's size.  Normal
24786         toolbars with an image set cannot be shrunk smaller than the image,
24787         but text can be clipped/ignored.
24788         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
24789         is zero.  Seems like DrawString should be smart enough to not put
24790         anything on screen though. Also trim labels and ellipsize at the char
24791         boundary, not word.
24792         Fixes #78711 and #78483.
24793
24794 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
24795
24796         * FolderBrowserDialog.cs: Disable "New Folder" button and
24797           "New Folder" contextmenu menuitem if a folder like "My Computer"
24798           is selected.
24799
24800 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
24801
24802         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
24803         * FolderBrowserDialog.cs:
24804           - Use MWFConfig to store and read size and position settings
24805           - Added code to create a new folder (button or context menu).
24806             Use TreeView labeledit to change the name of the new folder.
24807
24808 2006-07-14  Jackson Harper  <jackson@ximian.com>
24809
24810         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
24811         when the tree is scrolled we end editing.
24812
24813 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
24814
24815         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
24816           Down arrows
24817
24818 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
24819
24820         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
24821         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
24822         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
24823         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
24824         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
24825         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
24826         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
24827         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
24828         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
24829         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
24830         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
24831         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
24832         ListViewItemSelectionChangedEventHandler.cs,
24833         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
24834         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
24835         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
24836         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
24837         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
24838         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
24839         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
24840         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
24841         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
24842         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
24843         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
24844         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
24845         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
24846         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
24847         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
24848         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
24849         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
24850         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
24851         WebBrowserNavigatingEventHandler.cs, 
24852         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
24853
24854 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
24855
24856         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
24857         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
24858         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
24859         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
24860         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
24861         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
24862         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
24863         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
24864         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
24865         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
24866         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
24867         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
24868         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
24869         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
24870         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
24871         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
24872         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
24873         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
24874         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
24875         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
24876         ListViewItemStates.cs, MaskFormat.cs: Added
24877
24878 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
24879
24880         * PropertyGridView.cs: Fix keyboard navigation of drop down.
24881         Patch from eno for bug 78558.
24882         
24883 2006-07-13  Jackson Harper  <jackson@ximian.com>
24884
24885         * TreeView.cs: When an edit is finished make sure that the
24886         selected node is visible.
24887         - When setting the top/bottom use the scrollbars is_visible, so
24888         everything will be set correctly even if the tree isn't visible
24889         yet.
24890
24891 2006-07-13  Jackson Harper  <jackson@ximian.com>
24892
24893         * ComboBox.cs: Revert the item->index part of my previous patch.
24894         * TreeView.cs: Use LostFocus instead of Leave for detecting when
24895         the edit box has lost focus (duh).
24896         - Just make the edit box not visible when we get return, that will
24897         take the focus, which will call EndEdit
24898         * TreeNode.cs When we start editing, notify the treeview.
24899
24900 2006-07-12  Jackson Harper  <jackson@ximian.com>
24901
24902         * ComboBox.cs: Clear out old items before setting the item list.
24903         This prevents databound controls from having their items added
24904         twice.
24905         - Switch the combobox to use indices whereever possible instead of
24906         using Item's.  This allows usto navigate through lists that have
24907         more then one item with the same string value (ie a, b, b, a).
24908         - Scroll the listboxes scrollbar when a non visible item is
24909         highlighted
24910         - Allow keypress to cycle through all the possible values. For
24911         example if you have b1, b2, b3 and hold down the B key all the
24912         values will be cycled through.
24913         
24914 2006-07-12  Jackson Harper  <jackson@ximian.com>
24915
24916         * TextBoxBase.cs:
24917         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
24918         this using the internal methods.
24919         * Control.cs: Add OnGotFocusInternal.  A new method that allows
24920         controls to "override" OnGotFocus and change focus behavior if
24921         needed.
24922         - Same thing for LostFocus
24923         * ComboBox.cs: Pass off focus to the text control properly.
24924
24925 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
24926
24927         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
24928         * FolderBrowserDialog.cs: Almost a complete rewrite.
24929           - Better support for Environment.Specialfolders
24930           - Added support for MWFVFS
24931           - Made setting SelectedPath work
24932
24933 2006-07-12  Jackson Harper  <jackson@ximian.com>
24934
24935         * Control.cs: Optimze getting all the controls.
24936
24937 2006-07-11  Jackson Harper  <jackson@ximian.com>
24938
24939         * ContainerControl.cs: Override SETFOCUS in the container control,
24940         so that it is not selected on mouse click.
24941
24942 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
24943
24944         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
24945           Hopefully we will have a better way once all of focus is complete.
24946
24947 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
24948
24949         * ThemeWin32Classic.cs: Commented out some debug code and fixed
24950           a compile error with csc.
24951
24952 2006-07-11  Jackson Harper  <jackson@ximian.com>
24953
24954         * Control.cs: When hiding a control only select the next control
24955         if the current control was focused.
24956         - Don't handle enter/leave when setting/killing focus, this is
24957         done by the container control.
24958         - Remove is_selected, it's not needed anymore.
24959         - Add utility methods for selecting a child control, and for
24960         firing the Enter/Leave events.
24961         * ContainerControl.cs: When a control is activated fire the
24962         enter/leave events.
24963         - Don't wrap when processing the tab key, so that focus can be
24964         moved outside of the container.
24965         - Use the correct active control
24966
24967 2006-07-11  Jackson Harper  <jackson@ximian.com>
24968
24969         * ComboBox.cs: Remove some debug code that was blinding me.
24970         * UpDownBase.cs: These controls actually aren't implicit, they are
24971         visible to the user.
24972
24973 2006-07-10  Chris Toshok  <toshok@ximian.com>
24974
24975         * DataGrid.cs: move back to the is_adding boolean field.  god i
24976         hate this is_editing/is_adding/is_changing stuff.
24977
24978 2006-07-10  Chris Toshok  <toshok@ximian.com>
24979
24980         * DataGridTableStyle.cs: just check if the property type is bool.
24981         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
24982         Don't use CanRenderType.
24983
24984         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
24985         if our text == NullText.  Remove CanRenderType.
24986
24987         * DataGridBoolColumn.cs: nuke CanRenderType.
24988
24989         * DataGrid.cs: reenable some code to end the current edit inside
24990         of set_CurrentCell.  This fixes the other 1.1.16 regression.
24991         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
24992         Also, remove the visible_row_count arg from CalcRowHeaders, since
24993         we don't need to worry about the actual height of the area.
24994
24995 2006-07-10  Chris Toshok  <toshok@ximian.com>
24996
24997         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
24998         mode, just return.
24999
25000         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
25001         the real sense of the IsInEditOrNavigateMode property (true =
25002         navigate, false = edit).  Also, update OnKeyPress to reflect this.
25003
25004         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
25005         column style exists, we still need to set its property descriptor
25006         to match up with our list manager.
25007
25008 2006-07-10  Chris Toshok  <toshok@ximian.com>
25009
25010         * ThemeWin32Classic.cs: implement the new row/header painting
25011         approach.  The parent row painting will likely go away and
25012         replaced with label controls, but the rest seems to work ok (and
25013         efficiently).
25014
25015         * Theme.cs: change the way we draw datagrid rows.  we don't draw
25016         the row headers as a block now.  Instead we draw them in the
25017         normal draw-row loop.  Add some calls for drawing parent rows and
25018         relation rows.
25019
25020         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
25021         a default table style.  Set the defaults from ThemeEngine.Current,
25022         not SystemColors.  Fix lots of misc issues with property setters.
25023
25024         * DataGrid.cs: move loads of style information out of this class
25025         as it's being duplicated with DataGridTableStyle.  keep track of a
25026         special DataGridTableStyle for the properties we used to mirror
25027         here.  Switch all the style properties to access this table style
25028         instead of instance fields of this class.  Also add a internal
25029         class to represent parent rows (more needs to be stored here, like
25030         the selection state from the parent table, as well as the
25031         expansion state.)  Also, for datasources with relations, do the
25032         right thing for collapse/expand, and add support for the
25033         navigation/parent row buttons.
25034
25035         Lastly, fix the crash in the 1.1.16 build.
25036
25037         * GridTableStylesCollection.cs: make the explicit interface
25038         implementations call the class's methods as opposed to duplicating
25039         them.
25040
25041         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
25042         0 so the text doesn't jump around when we move the cursor.
25043
25044 2006-07-10  Jackson Harper  <jackson@ximian.com>
25045
25046         * TextBoxBase.cs:
25047         * ListBox.cs: Match MS's ToString (this makes debugging focus
25048         stuff infinitely easier).
25049
25050 2006-07-10  Jackson Harper  <jackson@ximian.com>
25051
25052         * Control.cs (SelectNextControl): When checking the control's
25053         parent use this instead of ctrl.parent so that null can be passed
25054         to SelectNextControl. (I have unit tests for this).
25055         - Remove unused var.
25056
25057 2006-07-10  Chris Toshok  <toshok@ximian.com>
25058
25059         * CurrencyManager.cs: correct one regression, the removal of the
25060         finalType field.  Also, add a MonoTODO on CanAddRows, implement
25061         Refresh() correctly, and fix some event emission in
25062         ListChangedHandler.
25063
25064 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
25065
25066         * FileDialog.cs: Don't use brackets for new folders if they exist
25067           under *nix. Instead use -(number of existing folders +1).
25068
25069 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
25070
25071         * FileDialog.cs:
25072           - Fixed really nasty bug #78771
25073           - Don't block the whole GUI when reading directories with a lot of
25074             entries. Use an other thread instead and call BeginInvoke to
25075             update the ListView in MWFFileView
25076
25077 2006-07-07  Chris Toshok  <toshok@ximian.com>
25078
25079         * Control.cs (Dispose): release any Capture when disposing.
25080
25081 2006-07-07  Chris Toshok  <toshok@ximian.com>
25082
25083         * LinkLabel.cs (Select): if we chain up to the parent, set
25084         focused_index to -1 so we'll search for the first available link
25085         the next time the user tabs into us.  Also, if the direction is
25086         backward and focused_index == -1, start the search from the last
25087         element.
25088
25089 2006-07-07  Chris Toshok  <toshok@ximian.com>
25090
25091         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
25092         is beyond the end of the text, don't do anything.
25093         (CreateLinkPieces): set our ControlStyles.Selectable based on
25094         whether or not we have any links.
25095         (Link.Invalidate): use a loop instead of foreach.
25096         (Link.set_Start): null out owner.sorted_links so it'll be
25097         recreated by CreateLinkPieces.
25098
25099 2006-07-06  Chris Toshok  <toshok@ximian.com>
25100
25101         * LinkLabel.cs: revert the SetStyle change.
25102
25103 2006-07-06  Chris Toshok  <toshok@ximian.com>
25104
25105         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
25106         (OnEnableChanged): s/Refresh/Invalidate
25107         (OnGotFocus): if we have a focused index already, refocus it (so
25108         if we mouse out/in to the window it'll focus the right link).
25109         (OnKeyDown): move the tab handling out of here.
25110         (OnLostFocus): don't set focused_index to -1, so we can refocus it
25111         when we lose focus.
25112         (OnMouseDown): don't Capture here - Control handles it.  Also,
25113         focus the active link.
25114         (OnMouseUp): don't deal with Capture.
25115         (OnPaintBackgroundInternal): remove.
25116         (OnTextAlignChanged): CreateLinkPieces before calling the
25117         superclass's method.
25118         (OnTextChanged): call CreateLinkPieces before calling superclass's
25119         method.
25120         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
25121         move around.
25122         (Select): implement this, moving the selection between different
25123         links, and call parent.SelectNextControl if we don't have another
25124         link to focus in the given direction.
25125         (CreateLinkPieces): call Invalidate instead of Refresh.
25126         
25127 2006-07-06  Chris Toshok  <toshok@ximian.com>
25128
25129         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
25130         new LinkLabel internals.
25131
25132         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
25133         over pieces looking for active/focused/etc links.  also, deal with
25134         runs of text (and links) with embedded \n's in them, and use
25135         MeasureCharacterRanges instead of MeasureString to figure out the
25136         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
25137         two-step.
25138
25139 2006-07-04  Jackson Harper  <jackson@ximian.com>
25140
25141         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
25142         XKB or key auto repeat, do it manually.  Without key auto repeat,
25143         when a key is held down we get key press, key release, key press,
25144         key release, ... with auto repeat we get key press, key press, key
25145         press ..., and then a release when the key is actually released.
25146
25147 2006-07-03  Jackson Harper  <jackson@ximian.com>
25148
25149         * TabControl.cs:
25150         * ThemeWin32Classic.cs: Tabs do not obey normal background color
25151         rules, they are always control color regardless of the background
25152         color.
25153
25154 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
25155
25156         * FileDialog.cs: Added internal class MWFConfig.
25157           Removed Registry support and replaced it with support for the new
25158           MWFConfig class. See MWFConfig comments for more information.
25159
25160 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
25161
25162         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
25163           rectangle. Added some patches from eno from bug #78490 and fixed
25164           the arrow position for small up and down CPDrawScrollButtons.
25165
25166 2006-06-30  Jackson Harper  <jackson@ximian.com>
25167
25168         * InternalWindowManager.cs: Remove some debug code.
25169         * Form.cs: When an MdiParent is set to null, the window is
25170         "detatched" and becomes a normal window.
25171         * MdiClient.cs: Don't bring the new child form to the front until
25172         it is activated (setting it as active does this), this makes the
25173         previously active forms titlebar get redrawn as inactive.
25174
25175 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
25176
25177         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
25178           with later controls
25179
25180 2006-06-29  Mike Kestner  <mkestner@novell.com>
25181
25182         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
25183         arrow in keynav state.  Fixes #78682.
25184
25185 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
25186
25187         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
25188           order (fixes #78393)
25189
25190 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
25191
25192         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
25193           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
25194           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
25195           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
25196           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
25197           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
25198           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
25199           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
25200           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
25201           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
25202           enumerations (FlagsAttribute, SerializableAttribute, added/removed
25203           values)
25204
25205 2006-06-28  Mike Kestner  <mkestner@novell.com>
25206
25207         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
25208
25209 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
25210
25211         * PropertyGrid.cs,
25212           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
25213           item lines from other area (It also makes BackColor consistent and
25214           compatible with .NET). Fixed bug #78564.
25215
25216 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
25217
25218         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
25219         Patch from Eno for #78555.
25220
25221 2006-06-27  Chris Toshok  <toshok@ximian.com>
25222
25223         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
25224
25225         * DataGridColumnStyle.cs: same.
25226
25227         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
25228         
25229         * DataGridDrawingLogic.cs: nuke.
25230
25231 2006-06-27  Chris Toshok  <toshok@ximian.com>
25232
25233         * DataGridTableStyle.cs: clean up the constructors, and build the
25234         list of child relations for this table.  I have no idea if this is
25235         where we should be doing it (it probably isn't), but since we're
25236         already iterating over the properties..
25237
25238         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
25239         struct and array for keeping track of row information, similar to
25240         what's shown in a hack on
25241         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
25242
25243         * Theme.cs: be consistent about the naming of DataGrid methods,
25244         prefering ColumnWidths and RowHeights over columnsWidths and
25245         RowsHeights.
25246
25247         * ThemeWin32Classic.cs: same, and also add support for variable
25248         sized rows (and the +/- expansion icons for related rows).
25249
25250 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
25251
25252         * TextBoxBase.cs: Applied Eno's patch from #78660
25253
25254 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
25255
25256         * Form.cs (ScaleCore): We don't want to scale our form if it's
25257           state is minimized or maximized, but we still need to scale our
25258           child windows. Also, added try/finally block to ensure layout
25259           gets reset (Fixes #78697)
25260
25261 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
25262
25263         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
25264
25265 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
25266
25267         * Form.cs: Fixed c+p error and added check to resize form if minimum
25268           size is bigger than current size (Fixes #78709)
25269
25270 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
25271
25272         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
25273
25274 2006-06-26  Mike Kestner  <mkestner@novell.com>
25275
25276         * ComboBox.cs: only do Keypress handling in the combo when there  
25277         are items in the collection. Fixes #78710.
25278
25279 2006-06-26  Chris Toshok  <toshok@ximian.com>
25280
25281         * Binding.cs: make this work bi-directionally.  also, clear up
25282         other mixups between Push/Pull Data (e.g. we're supposed to pull
25283         data when validating).
25284
25285         * BindingManagerBase.cs: trim some fully qualified collection
25286         types.
25287
25288         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
25289
25290 2006-06-23  Chris Toshok  <toshok@ximian.com>
25291
25292         * PropertyManager.cs: It appears (according to the unit tests)
25293         that PropertyManager doesn't use
25294         PropertyDescriptor.AddValueChanged to track propery value changes
25295         in its datasource, but uses the same scheme as Binding, where it
25296         looks for a <Property>Changed event and binds to it.
25297
25298         Also, according to the docs, IsSuspended always returns false for
25299         a property manager with a non-null datasource.
25300
25301 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
25302
25303         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
25304           need to update the actual DialogResult. (Fixes #78613)
25305
25306 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
25307
25308         * Form.cs (ShowDialog): Release any captures before running the
25309           new message pump (fixes #78680)
25310
25311 2006-06-22  Mike Kestner  <mkestner@novell.com>
25312
25313         * ListView.cs: Layout column widths properly in details mode even 
25314         if HeaderStyle.None is set.  Fixes #78691.
25315
25316 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
25317
25318         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
25319
25320 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
25321
25322         * Control.cs (ContainsFocus): Using new driver method to get focused
25323           window, instead of trying to use internal tracking var, which can
25324           recursion issues (Fixes #78685)
25325         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
25326           XplatUIWin32.cs: Added GetFocus method to return focused window
25327
25328 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25329
25330         * ColorDialog.cs: when the mouse button is pressed inside the color
25331         matrix, don't let the cursor move out of it until the button is
25332         released, which is the behavior on windows. Changed 'colours' by
25333         'colors' to use the same word consistently.
25334
25335 2006-06-21  Chris Toshok  <toshok@ximian.com>
25336
25337         * DataGrid.cs: add in some basic navigation stuff (navigating to a
25338         child relation and back, using a stack).  Also, remove
25339         GetDataSource and the code that calls it - it's not needed.  Also,
25340         track CurrencyManager.ListName's removal.
25341
25342 2006-06-21  Chris Toshok  <toshok@ximian.com>
25343
25344         * CurrencyManager.cs: push some of the original type checking from
25345         BindingContext.CreateBindingManager to here, and remove some of
25346         the finalType stuff.  Need more tests to make sure I've got the
25347         ListName part right, and we might need more in SetDataSource.
25348
25349         * PropertyManager.cs: add a ctor that takes just the datasource,
25350         and no property name.  Make SetDataSource work with a null
25351         property_name, and make Current return the data_source if the
25352         property descriptor is null.  this makes 'string foo = "hi";
25353         BindingContext[foo].Current' return "hi" as it should.
25354
25355         * RelatedCurrencyManager.cs: make this code more generic - there's
25356         no reason the parent manager has to be CurrencyManager, and
25357         there's no reason to pass the DataRelation.  It suffices to use a
25358         BindingManagerBase and PropetyDescriptor.
25359
25360         * RelatedPropertyManager.cs: make a similar change here.
25361         
25362         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
25363         flower I knew it could be.
25364
25365 2006-06-20  Chris Toshok  <toshok@ximian.com>
25366
25367         * PropertyManager.cs: the PropertyChangedHandler is invoked when
25368         data in the source has changed and we need to update the control,
25369         so s/PullData/PushData.
25370
25371         * CurrencyManager.cs: Refresh is meant to update the control from
25372         data in the datasource.  So, s/PullData/PushData.
25373
25374         * BindingContext.cs: add more ugliness (we weren't handling the
25375         case where data_source = DataTable and data_member = column_name).
25376
25377         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
25378         from the perspective of the datasource.  PullData pulls from the
25379         control, PushData pushes to the control.
25380
25381 2006-06-20  Chris Toshok  <toshok@ximian.com>
25382
25383         * BindingContext.cs: rewrite the CreateBindingManager code to
25384         handle navigation paths more or less properly.  This could
25385         definitely stand some more work, in particular to push the
25386         recursion up to the toplevel.  But that relies on fixes in other
25387         places (System.Data comes to mind).
25388
25389         Also, move to a flat hashtable (and encode the twolevel nature of
25390         the dictionary into the hash key).  This lets us implement the
25391         IEnumerable.GetEnumerator method.
25392
25393         * RelatedCurrencyManager.cs: new class.  Update our view based on
25394         our relation and our parent CurrencyManager's position.
25395
25396         * CurrencyManager.cs: split out some logic from the ctor into
25397         SetView, so it can be called from the new RelatedCurrencyManager
25398         subclass.
25399
25400         * RelatedPropertyManager.cs: new class.  Update our datasource
25401         based on the position of our parent CurrencyManager.
25402
25403         * PropertyManager.cs: split out some logic from the ctor into
25404         SetDataSource, so it can be called from the new RelatedDataSource
25405         subclass.  Also, make the Current getter return the value
25406         of the PropertyDescriptor, not the data_source.
25407
25408         * Binding.cs: no need to duplicate the string splitting code here.
25409
25410 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
25411
25412         * Control.cs:
25413           - set_Enabled: OnEnabledChanged is not called if the inherited state 
25414             of the control is not altered, even though  we might be changing the
25415             internal state of the control (#78458)
25416           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
25417             OnEnabledChanged, to allow easy altering of any child window state
25418           - OnEnabledChanged: Added code to enable/disable driver window state
25419           - OnParentEnabledChanged: Instead of firing the event, call 
25420             OnEnabledChanged, which will fire the event and also a) set driver
25421             window state and pass the enabled state to any grandchildren (#78458)
25422
25423 2006-06-19  Jackson Harper  <jackson@ximian.com>
25424
25425         * InternalWindowManager.cs: We don't set the cursor explicitly
25426         thats done via the response to NCHITTESTs.
25427         - Don't need to adjust for titlebar heights anymore, the
25428         coordinates are coming in the correct coordinates now (see peters
25429         last patch).
25430
25431
25432 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
25433
25434         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
25435           being translated relative to whole window, instead of client window.
25436           That caused broken offsets on mouseclick (and caused gas for our
25437           InternalWindowManager)
25438
25439 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
25440
25441         * TextControl.cs:
25442           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
25443           - Undo(): Added replay of cursor move on DeleteChars action; added
25444             calling Undo() again if a recorded cursor move is invalid (to
25445             ensure that some action is performed on Undo)
25446         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
25447
25448 2006-06-16  Jackson Harper  <jackson@ximian.com>
25449
25450         * MdiClient.cs: Instead of just sizing maximized windows when
25451         there is a resize we also have to adjust the Y of minimized
25452         windows, so they stay pinned to the bottom of the mdi container.
25453         - Eliminate separate tracking of the active control, we can just
25454         get this from the controls collection.
25455         - Paint the decorations for the newly activated titlebar so we get
25456         a pretty blue bar.
25457         * InternalWindowManager.cs:
25458         * ThemeWin32Classic.cs: Minimized windows get all three buttons
25459         even if they are a tool window.
25460         
25461 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
25462
25463         * TextControl.cs (Undo): Handle non-existent cursor locations in the
25464           undo buffer, these can happen when text was deleted and the cursor
25465           was recorded first. Since we will also have a recorded cursor
25466           after the delete this is not an issue. (Fixes #78651)
25467
25468 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
25469
25470         * AccessibleObject.cs: Remove dependence on Control.is_selected;
25471           instead properly track control states internally (allows us to
25472           remove is_selected from Control)
25473
25474 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25475
25476         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
25477         whose width is not a multiple of 8.
25478
25479 2006-06-13  Jackson Harper  <jackson@ximian.com>
25480
25481         * MdiClient.cs:  Only maximize the next child if the current one
25482         is maximized.
25483
25484 2006-06-13  Chris Toshok  <toshok@ximian.com>
25485
25486         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
25487         modified.  Also, guard against grid or grid_drawing being null in
25488         Invalidate.
25489
25490         * DataGrid.cs: Reformat tons of getters/setters.  In the
25491         DataMember setter, just call SetNewDataSource instead of
25492         duplicating some of its functionality.  In SetNewDataSource, don't
25493         check ListManager for null, since the property getter creates the
25494         object if needed.
25495
25496         * DataGridTableStyle.cs: don't set TableStyle or call
25497         SetDataGridInternal on the column here, it's done in
25498         GridColumnStylesCollection.Add.
25499
25500         * GridColumnStylesCollection.cs: fix all the explicit interface
25501         implementations to just call our methods.  Nuke AddInternal() and
25502         move the body of it to Add().  Also, add a call to
25503         column.SetDataGridInternal to Add().
25504
25505         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
25506         base()+duplicate code.  Also, use the Format property instead of
25507         format to generate an Invalidate ala MS.  Lastly, create the
25508         textbox here, unconditionally.
25509         (set_Format): call Invalidate.
25510         (get_TextBox): no need to call EnsureTextBox.
25511         (Commit): remove the message box.
25512         (Edit) remove the call to EnsureTextBox.
25513         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
25514         (EnterNullValue): no need to check textbox for null.
25515         (HideEditBox): no need to check textbox for null.
25516         (SetDataGridInColumn): add the textbox to the grid's controls.
25517         (EnsureTextBox): nuke.
25518         
25519 2006-06-13  Jackson Harper  <jackson@ximian.com>
25520
25521         * MdiWindowManager.cs: Hook up to the maximized menus paint event
25522         and redraw the buttons when needed. Unhook when the window is
25523         unmaximized.
25524         * MainMenu.cs: Add an internal Paint event, the mdi window manager
25525         needs this so that it can redraw its buttons when the menu is
25526         repainted.
25527         * InternalWindowManager.cs:
25528         * Form.cs: The method order has changed for DrawMaximizedButtons,
25529         so that it can be a PaintEventHandler.
25530         
25531 2006-06-13  Jackson Harper  <jackson@ximian.com>
25532
25533         * MdiClient.cs: When we close a maximized mdi window, the next mdi
25534         window is activated and maximized, even if it wasn't before.
25535         - When  a new window is activated repaint the decorations of the
25536         old one, so that it no longer has the Active "look" (the blue
25537         titlebar).
25538         * InternalWindowManager.cs: Open up CreateButtons to base classes
25539         so they can recreate the buttons on state changes.
25540         - If a window is maximized give it all three buttons
25541         * MdiWindowManager.cs: Create the titlebar buttons when the state
25542         is changed, this is needed because a toolwindow will not have all
25543         three buttons until it is maximized.
25544
25545 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
25546
25547         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
25548           Fixed bug #78609.
25549
25550 2006-06-12  Jackson Harper  <jackson@ximian.com>
25551
25552         * KeysConverter.cs: Make sure we handle the Ctrl special case
25553         if its the only key.
25554         
25555 2006-06-12  Jackson Harper  <jackson@ximian.com>
25556
25557         * Theme.cs: Add a method to get the size of a managed window
25558         toolbar button.
25559         * InternalWindowManager.cs: Remove the ButtonSize property, this
25560         should be retrieved from the theme.
25561         * MdiWindowManager.cs: Get the button size from the theme
25562         * ThemeWin32Classic.cs: Make the method to get the managed window
25563         titlebar button size public.
25564         - Handle the different button sizes of maximized toolwindows
25565         (should match any maximized window).
25566         - Get the titlebar height from the theme, not the WM (which gets
25567         it from the theme).
25568
25569 2006-06-12  Jackson Harper  <jackson@ximian.com>
25570
25571         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
25572         event down to the mdi window manager.
25573         - Expose some extra stuff to base classes
25574         - Make sure to end the Capture on an NC Mouse up, so that we can
25575         get double clicks properly, and the sizing doens't stick.
25576         - When doing PointToClient contain it in the workable desktop
25577         area, this prevents windows from changing size when the cursor is
25578         pulled outside of the working area while sizing.
25579         * MdiWindowManager.cs: When we get a double click maximize the
25580         window.
25581         - Reset the cursor after handling mode changes.
25582
25583 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
25584
25585         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
25586           current desktop, instead of just assuming a 0, 0 origin. This
25587           is needed for our internal window manager, to know the top
25588           margin of the desktop
25589
25590 2006-06-12  Chris Toshok  <toshok@ximian.com>
25591
25592         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
25593         we need this to get rid of the selected background in the bool
25594         column.
25595         (CancelEditing): move the ConcedeFocus call to above the Abort
25596         call.  Also, set is_changing to false and invalidate the row
25597         header if we were changing before.
25598         (ProcessKeyPreviewInternal): remove, since noone outside this
25599         class calls it anymore.  Roll the code into ProcessKeyPreview.
25600         (EndEdit): remove the internal version.
25601         (InvalidateCurrentRowHeader): make private.
25602
25603         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
25604         Keys.Escape handling (and with it the last call to
25605         DataGrid.EndEdit from outside the class.)
25606
25607
25608 2006-06-12  Chris Toshok  <toshok@ximian.com>
25609
25610         * DataGridTextBox.cs (.ctor): isedit defaults to false.
25611         (OnKeyPress): set isedit to true.
25612         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
25613         already handled by the grid.
25614
25615         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
25616         right.  ugh.
25617         (set_DataSource): SetDataSource always returns true, so stop
25618         putting it in an if statement.
25619         (EndEdit): get rid of some {}'s
25620         (ProcessGridKey): return true in case Keys.Escape.
25621         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
25622         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
25623         PositionChanged, stopped connecting to CurrentChanged.
25624         (GetDataSource): simplify this a bunch.
25625         (SetDataSource): change return type from bool to void.
25626         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
25627         to this, and make sure we don't set ListManager.Position inside
25628         set_CurrentCell.
25629         (OnListManagerItemChanged): if we're passed an actual index,
25630         redraw that row.
25631
25632         * CurrencyManager.cs (set_Position): don't call PullData here.
25633
25634 2006-06-09  Jackson Harper  <jackson@ximian.com>
25635
25636         * TreeNode.cs:  Recalculate the visible order before doing the
25637         Expand/Collapse Below calls, because those calls generate an
25638         expose.
25639         - Reduce calls to the TreeView property, which is mildly expensive
25640         by using a local var.
25641         * Form.cs: Layout the MDI child windows when creating the parent
25642         form.
25643         - Don't use the internal constructor anymore
25644         * MdiClient.cs: use the parent form width/height (if available)
25645         when laying out the child windows, we do this because the
25646         mdiclient isn't docked yet when the initial layout is done.
25647         - Don't need an internal constructor anymore.
25648
25649 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25650
25651         * FileDialog.cs: handle access errors when trying to create a folder
25652         or changing to a directory. No need to initialize out parameters.
25653
25654 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25655
25656         * FileDialog.cs: Append a number when creating a new folder if the
25657           folder already exists (use parenthesis instead of square brackets)
25658
25659 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25660
25661         * FileDialog.cs:
25662           - Disabled registry support for windows and added better registry
25663             error checking for other systems (need to investigate why it
25664             works perfectly on my system)
25665           - If a folder already exist show an error MessageBox instead of
25666             trying to create an indexed name.
25667           - Fixed a non intentional typo.
25668
25669 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25670
25671         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
25672
25673 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25674
25675         * FileDialog.cs: When creating a new folder don't crash if the
25676           folder already exists.
25677
25678 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25679
25680         * FileDialog.cs: Allmost a complete rewrite.
25681           - added a "virtual" file system that handles the differences
25682             between unix and windows file systems (especially the directory
25683             structure). Moved most of the directory and file handling code
25684             into the vfs.
25685             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
25686             UnixFileSystem and FSEntry.
25687           - Recently used folder/directory, size, location and used file names
25688             (file name ComboBox) are now stored in the registry and get read
25689             before the dialog shows up (fixes part 6 of bug #78446).
25690           - Creation of new folders/directories is now possible (context menu
25691             or ToolBar). Added TextEntryDialog for this that fills in the gap
25692             until ListView.LabelEdit works.
25693           - Fixed cursor handling (bug #78527) and focus handling for
25694             PopupButtonPanel
25695           - Various "Search in" ComboBox enhancements. The content of the
25696             dropdown listbox now almost matches ms.
25697           - Changed the behaviour when the user switches to SpecialFolder
25698             Recent to show the ListView in View.Details.
25699           - Beside using the ToolBar to change the View property of the
25700             file ListView it is now possible to use the context menu too.
25701
25702 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25703
25704         * ComboBox.cs: Don't create a new ObjectCollection when an item
25705           gets inserted. Just insert the item in the existing object_items
25706           ArrayList.
25707
25708 2006-06-08  Jackson Harper  <jackson@ximian.com>
25709
25710         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
25711         that the treeview and root node checks are done also, this fixes a
25712         regression i caused in the unit tests.
25713
25714 2006-06-07  Wade Berrier <wberrier@novell.com> 
25715
25716         * RichTextBox.cs: More ISO8859-1 -> unicode
25717
25718 2006-06-07  Mike Kestner  <mkestner@novell.com>
25719
25720         * ComboBox.cs : use items to hold highlight/selection so that
25721         collection insertions don't require synchronization.
25722
25723 2006-06-07  Jackson Harper  <jackson@ximian.com>
25724
25725         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
25726         routine.  We now always keep the sized edge at the cursor instead
25727         of computing movement and adjusting rects.  There is one buglet
25728         with this method though when the cursor is moved over area that
25729         the window can not expand too (such as the toolbars on the desktop).
25730
25731 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25732
25733         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
25734         here. Fixes crash on startup in AlbumSurfer.
25735
25736 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
25737
25738         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
25739           values
25740
25741 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25742
25743         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
25744         statement to avoid calling XNextEvent which will block if another thread
25745         took the event that we were expecting. Fixes bug #78605.
25746
25747 2006-06-07  Mike Kestner  <mkestner@novell.com>
25748
25749         * ListView.cs : isolated checkbox clicking from the selection logic.
25750         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
25751
25752 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
25753
25754         * Form.cs: Check that the value passed to Form.DialogResult
25755         is a valid enum value.
25756
25757 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25758
25759         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
25760         Computer'. Clicking it in the network view goes to 'My Computer'.
25761         Added CIFS filesystem type. Display the mount point of filesystems.
25762         Avoid duplicate mount points (happens for me with CIFS);
25763
25764 2006-06-06  Jackson Harper  <jackson@ximian.com>
25765
25766         * InternalWindowManager.cs: Draw the maximized windows buttons
25767         when resizing.
25768
25769 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25770
25771         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
25772         all other dialogs. Fixes bug #78585.
25773
25774 2006-06-06  Mike Kestner  <mkestner@novell.com>
25775
25776         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
25777         Only invalidate checkbox on checkstate changes to avoid flicker.
25778         * ListBox.cs : avoid unselect/select when clicking selected item.
25779         avoid reselection flicker for already multiselected items.
25780         Fixes #78382.
25781
25782 2006-06-06  Jackson Harper  <jackson@ximian.com>
25783
25784         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
25785         the parent form so that the menu is removed if needed.
25786
25787 2006-06-06  Mike Kestner  <mkestner@novell.com>
25788
25789         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
25790         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
25791
25792 2006-06-06  Mike Kestner  <mkestner@novell.com>
25793
25794         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
25795
25796
25797 2006-06-06  Jackson Harper  <jackson@ximian.com>
25798
25799         * Control.cs: Use the property (instead of the field) to get the
25800         default cursor so it is instantiated correctly.
25801         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
25802         resizes so we need to manually repaint the window decorations here.
25803         - Set the titlebar button locations as soon as they are created,
25804         otherwise they are not set correctly on win32.
25805         
25806 2006-06-06  Chris Toshok  <toshok@ximian.com>
25807
25808         * CurrencyManager.cs (set_Position): call PullData before
25809         OnCurrentChanged.
25810         (AddNew): after calling IBindingList.AddNew, update our
25811         listposition, and call OnCurrentChanged/OnPositionChanged (without
25812         calling PullData).
25813         (OnCurrentChanged): remove the call to PullData from here.
25814         (OnItemChanged): remove the call to PushData from here.
25815         (OnPositionChanged): change the test from == null to != null to
25816         match the other methods.
25817         (ListChangedHandler): the grossest part of the patch.  Implement
25818         this such that it passes the unit tests in CurrencyManagerTest and
25819         the output more or less matches that of MS's implementation.
25820  
25821 2006-06-06  Mike Kestner  <mkestner@novell.com>
25822
25823         * ListView.cs : only update check state on single click.
25824         * ThemeWin32Classic.cs : fix focus drawing for details view without
25825         fullrowselect.  Fixes #78454.
25826         * XplatUIX11.cs : fix for double click emission.
25827
25828 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
25829
25830         * PropertyGridView.cs : Applied Atsushi's patch to fix
25831         font dialog bug  (#78197).
25832
25833 2006-06-05  Jackson Harper  <jackson@ximian.com>
25834
25835         * TreeNode.cs: Compute the next node for expanding/collapsing
25836         correctly. We now factor in nodes without a NextNode
25837         correctly. (Fixes somes cases in nunit-gui).
25838         * InternalWindowManager.cs: Set the bounds when updating the
25839         virtual position of a tool window.
25840         
25841 2006-06-05  Chris Toshok  <toshok@ximian.com>
25842
25843         * DataGrid.cs: rename cached_currencymgr to list_manager.
25844         (set_CurrentCell): move SetCurrentCell code here, and clean it up
25845         some.
25846         (CurrentRow, CurrentColumn): single accessors so we can make the
25847         cursor movement code a lot easier to understand.
25848         (CurrentRowIndex): implement this in terms of CurrentRow.
25849         (BeginEdit): clean this up a bit.
25850         (CancelEditing): sort out the is_editing/is_changing/is_adding
25851         stuff a little.
25852         (EndEdit): minor changes.
25853         (OnKeyDown): add a comment about a (most likely) unnecessary
25854         check.
25855         (OnMouseDown): cancel editing when we click on a row header.  And
25856         use the CurrentRow setter, not CurrentCell.
25857         (ProcessDialogKey): directly call ProcessGridKey.
25858         (UpdateSelectionAfterCursorMove): factor out this common block of
25859         code (it's used everywhere that we move the cursor by updating row
25860         or column).
25861         (ProcessGridKey): pretty substantial overhaul.  Use the
25862         CurrentRow/CurrentColumn properties to make the code a lot more
25863         readable.  Only use the CurrentCell property when we have to
25864         modify both row and column at once.  Tab behavior is still broken,
25865         and Delete is untested.
25866         (Select): if we have no selected rows, set selection_start to
25867         @row.
25868         (EditCurrentCell): rename EditCell this.  It was only ever invoked
25869         with CurrentCell as the arg, so drop the arg and rename it.
25870
25871         * DataGridColumnStyle.cs: clean up the constructors a little, and
25872         drop CommonConstructor().
25873
25874         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
25875         actually get notified when the user hits it.
25876         (ProcessKeyMessage): *substantially* simplify this method.
25877         There's no reason (that I can see) for the textbox to be making
25878         calls into the datagrid at all.  Remove all of them but the ones
25879         for Enter handling.  those will take some more work.
25880
25881         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
25882         calling HideEditBox.
25883         (HideEditBox): if we have an active textbox, render it invisible
25884         without causing a re-layout of the datagrid.
25885
25886 2006-06-05  Mike Kestner  <mkestner@novell.com>
25887
25888         * ListView.cs : fix NRE crasher when focuseditem is cleared by
25889         collection changes by resetting it to Items[0].  Fixes #78587.
25890
25891 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25892
25893         * MessageBox.cs: if the height of the text is larger than the icon_size,
25894         use that. Fixes bug #78575.
25895
25896 2006-06-05  Jackson Harper  <jackson@ximian.com>
25897
25898         * TreeView.cs: Fix line drawing when scrolling.  To do this each
25899         node is basically responsible for drawing its entire horizontal
25900         area.  When drawing a node it draws its parent node lines if
25901         needed.
25902         - Adjust the clip area to the viewport rectangle
25903         - Fix Left/Right key handling to match MS. (It expand/collapses
25904         and moves to parents/first child but does not move selection to
25905         sibling nodes).
25906         - Fix SetTop to work with new bound calculation code
25907         - When scrollbars are no longer needed we need to reset scrolling
25908         vars and recalculate the visible order so the redraw is correct
25909         * TreeNode.cs: We can't expand/collapse nodes with no children.
25910
25911 2006-06-03  John Luke  <john.luke@gmail.com> 
25912
25913         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
25914         so the colors work without dev packages
25915         
25916 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
25917
25918         * Control.cs 
25919           - Select: Implemented to just use activate. Seems to match MS 
25920             behaviour closest. Documented to only do actual control walking 
25921             based on it's parameters if in a container control so I moved 
25922             the code there.
25923           - Removed selection check logic from our internal Select() method
25924         * ContainerControl.cs:
25925           - Select: Moved selection logic from Control here, since MS documents
25926             that containers obey the bool arguments. No longer calling base
25927
25928 2006-06-02  Jackson Harper  <jackson@ximian.com>
25929
25930         * TreeView.cs: If the selected node isn't changed when we get
25931         focus update the previously selected node so that we see the
25932         selection box.
25933
25934 2006-06-02  Mike Kestner  <mkestner@novell.com>
25935
25936         * ComboBox.cs: restructure grab and general mouse event handling.
25937         Make the composite control raise mouse events like it was a single
25938         control for leaves/enters/motion/up/down events.  fix dropdown list
25939         coordinate mangling and refactor it into the scrollbar subclass to
25940         reduce code duplication.  Fixes #78282 #78361 and #78457.
25941
25942 2006-06-02  Mike Kestner  <mkestner@novell.com>
25943
25944         * ScrollBar.cs: remove Capture setting/clearing, as it happens
25945         automatically in the Control.WndProc.
25946
25947 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25948
25949         * FileDialog.cs: fix crash when running SharpChess, which sets the
25950         FilterIndex to 2 with only one Filter.
25951
25952 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25953
25954         * ToolBar.cs: add SizeSpecified property.
25955         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
25956         try to figure out our real size, otherwise fallback to what the
25957         container says.
25958
25959 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
25960
25961         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
25962         * Control.cs (WndProc): MS always calls the DefWndProc to pass
25963           up the event
25964
25965 2006-06-01  Mike Kestner  <mkestner@novell.com>
25966
25967         * ListView.cs: revamp the focus management in ListView.  It still
25968         causes churn of LostFocus/GotFocus emissions on clicks, but it's
25969         better than not handling focus at all.  Will revisit when pdb feels
25970         the general focus handling is solid.  Fixes #78526.
25971
25972 2006-06-01  Jackson Harper  <jackson@ximian.com>
25973
25974         * TreeView.cs: Set the default border style in the constructor.
25975         - Move painting to use OnPaintInternal instead of capturing
25976         WM_PAINT, this is the correct way of doing things
25977         - UpdateBelow shouldn't invalidate the scrollbar area
25978         - Cap the top on update below in case the node was above the top
25979         of the viewport rectangle.
25980         - ExpandBelow and Collapse below need to obey Begin/End Update.
25981         * TreeNode.cs: Make is_expanded internal so the treenode
25982         collection can change it without firing the whole event chain.
25983         * TreeNodeCollection.cs: When clearing all the child nodes make
25984         sure to recalc the visible order.
25985         - Improve algo for remove the top node
25986
25987 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
25988
25989         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
25990           SendMessage directly calling window procedures, which in turn might
25991           call SetFocus()
25992
25993 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
25994
25995         * Control.cs: Don't handle WM_SETFOCUS if the same window already
25996           has focus (works around X11 sending a FocusIn after our SetFocus)
25997         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
25998
25999 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
26000
26001         * Mime.cs: Fix for the NET_2_0 build.
26002           NameValueCollection needs StringComparer now.
26003
26004 2006-05-31  Chris Toshok  <toshok@ximian.com>
26005
26006         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
26007         return (via an out parameter) the starting X of the column.
26008         (UpdateVisibleColumn): track change to FromPixelToColumn.
26009         (HitTest): add a ColumnResize case here.
26010         (DrawResizeLine): new function, probably poorly named.
26011
26012         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
26013         only need to keep one reference.
26014         (set_ListManager): same.
26015         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
26016         Also, add support for HitTestType.ColumnResize.
26017         (OnMouseMove): add column resize behavior here, and change the
26018         cursor to the correct one as we move around the datagrid.
26019         (OnMouseUp): terminate the column resize if we're resizing.
26020         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
26021         for the current cell.
26022         (ConnectListManagerEvents): use cached_currencymgr.
26023         (DisconnectListManagerEvents): fill this in, using
26024         cached_currencymgr.
26025         (SetCurrentCell): remove cached_currencymgr_events handling.
26026         (SetDataMember): only call DisconnectListManagerEvents if
26027         cached_currencymgr is != null.
26028         (SetDataSource): same.
26029         (OnListManagerCurrentChanged): cached_currencymgr_events ->
26030         cached_currencymgr.
26031
26032 2006-05-31  Jackson Harper  <jackson@ximian.com>
26033
26034         * BindingManagerBase.cs: Remove somedebug code that creeped into
26035         SVN.
26036         * TreeNode.cs: We get the indent level dynamically right now, so
26037         don't track it as a member.
26038         * TreeNodeCollection.cs: Make sure all nodes added to the list
26039         have parents, treeviews/topnodes setup properly.
26040         - Don't attempt to track indent level.
26041
26042 2006-05-30  Jackson Harper  <jackson@ximian.com>
26043
26044         * BindingContext.cs: Create the currency manager tables here.
26045         This allows us to more easily create null tables (when bad data
26046         members are used), and more easily create related currency
26047         managers.
26048         * CurrencyManager.cs: All the table creation stuff is done by the
26049         binding context now.
26050         - Current should throw an exception if listposition is -1.
26051         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
26052         been bound yet.
26053
26054 2006-05-30  Mike Kestner  <mkestner@novell.com>
26055
26056         * ListView.cs: allow reexpansion of zero-width column headers.
26057         Fixes #78528.
26058
26059 2006-05-28  Chris Toshok  <toshok@ximian.com>
26060
26061         * CurrencyManager.cs (get_Current): after the late binding
26062         listposition = -1 fix, we need to guard against it here and return
26063         null, otherwise we raise an exception (which is swallowed
26064         elsewhere, and breaks datagrid databinding.)
26065
26066 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
26067
26068         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
26069           than WM_SYSKEY, don't throw if get something unexpected (#78507)
26070
26071 2006-05-26  Jackson Harper  <jackson@ximian.com>
26072
26073         * ControlPaint.cs:
26074         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
26075         values, it's faster and it's all we care about (we don't care if
26076         the names aren't equal).
26077         * KeyboardLayouts.cs: Eliminate some dead code.
26078         - Lazy init things
26079         * X11Keyboard.cs: Lazy init keyboard detection.
26080         - Cleanup access modifiers a little.
26081
26082 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
26083
26084         * XplatUIX11.cs: Once again, attempting to get layout just right.
26085
26086 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
26087
26088         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
26089           the sizes of each link section, that will result in sizes that
26090           match DrawString's layout (Fixes #78391)
26091
26092 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
26093
26094         * FileDialog.cs: If AddExtension property is true autocomplete the
26095           extensions in SaveFileDialog correctly. Fixes bug #78453.
26096           Set MyNetwork and MyComputer to "C:\" for windows. This should
26097           fix part 8 of bug #78446 for now.
26098
26099 2006-05-26  Chris Toshok  <toshok@ximian.com>
26100
26101         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
26102         invalidate the current row header if we need to, but presumably
26103         we'll invalidate the row corrsponding to the bounds or
26104         editingControl.
26105         (GridHScrolled): switch back to this method, as it's part of the
26106         public api.  *sigh*.
26107         (GridVScrolled): same.
26108         (OnMouseWheel): hack up something that more or less works.  Call
26109         GridHScrolled/GridVScrolled directly, instead of duplicating much
26110         of their code here.
26111         (EnsureCellVisibility): reinstate a bunch of this code, since we
26112         can't just set the scrollbar Value and expect to do all the work
26113         in the ValueChanged handler.  Also, Call Update() after scrolling
26114         in one direction so the other XplatX11.ScrollWindow call has the
26115         proper stuff in the proper places.
26116         (EditCell): set is_editing to true before calling .Edit.
26117
26118         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
26119         don't bother comparing first.
26120         (OnKeyPress): call grid.ColumnStartedEditing before calling
26121         base.OnKeyPress.  this will set is_changing and invalidate the row
26122         header if necessary.
26123         (ProcessKeyMessage): for WM_CHAR messages, call
26124         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
26125         and WM_KEYDOWN.
26126         
26127         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
26128         it's done in the DataGrid.
26129         (NextState): call grid.ColumnStartedEditing, which takes care of
26130         invalidating the row header (and setting is_changing).
26131
26132         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
26133         here.  it's done in the DataGrid.
26134
26135 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26136
26137         * Control.cs: allow changing the cursor when the mouse position is
26138         out of bounds but Capture is set.
26139         * LinkLabel.cs: handle the case when the mouse button is pressed on the
26140         linklabel but released somewhere else.
26141
26142 2006-05-25  Jackson Harper  <jackson@ximian.com>
26143
26144         * TreeView.cs: When we get focus if there is no selected node make
26145         it the top node
26146         - Remove some uneeded setup code from Draw.
26147         * TreeNodeCollection.cs: If the tree doesn't have a top node when
26148         a new node is inserted make the new node the top.
26149         * XplatUIX11.cs:
26150         * Timer.cs: Use Utc time so that no local time zone stuff needs to
26151         be used (should be faster).
26152         
26153 2006-05-25  Chris Toshok  <toshok@ximian.com>
26154
26155         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
26156         problem with the last commit.
26157
26158 2006-05-25  Chris Toshok  <toshok@ximian.com>
26159
26160         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
26161         need the invalidate call here, while scrolling right-to-left via
26162         the left arrow key (i.e. moving the editing cell while scrolling).
26163
26164         * DataGrid.cs (.ctor): remove the initialization of
26165         ctrl_pressed/shift_pressed.  We no longer track them using key
26166         up/down handlers, but by using Control.ModifierKeys.  Also, switch
26167         to using ValueChanged handlers on the scrollbars instead of
26168         Scrolled event handlers.  This simplifies a bunch of the scrolling
26169         code.
26170         (GridHValueChanged): rename from GridHScrolled, and change it to
26171         work with the new event args.
26172         (GridVValueChanged): same.
26173         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
26174         (OnMouseWheel): actually scroll the datagrid.  Don't change the
26175         selected cell.
26176         (ProcessGridKey): correct all the keyboard navigation stuff I
26177         could find.  Ctrl up/down/left/right/home/end work now.
26178         (EnsureCellVisibility): correct method name spelling.  Also,
26179         simplify this a touch by not explicitly calling the
26180         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
26181         scrollbar value.
26182         (OnKeyUpDG): no need for this method now.
26183         
26184 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26185
26186         * LinkLabel.cs: display the OverrideCursor when hovering the label.
26187         Fixes bug #78392.
26188
26189 2006-05-25  Chris Toshok  <toshok@ximian.com>
26190
26191         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
26192         r61019.
26193
26194 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
26195
26196         * Application.cs: Moved setting of is_modal and closing to before
26197           we create the control, to allow the event handlers called as a
26198           result of creation affect closing. Also removed Gonzalo's previous
26199           change to setting DialogResult, the behaviour has been moved to 
26200           Form.ShowDialog()
26201         * Form.cs: 
26202           - ShowDialog(): Removed explicit creation of the form, let RunLoop
26203             handle it instead
26204           - ShowDialog(): If no dialog result is set, we need to return Cancel
26205           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
26206             the close is cancelled
26207
26208 2006-05-25  Jackson Harper  <jackson@ximian.com>
26209
26210         * StatusBar.cs: We only need to update the sizes of the other
26211         panels when we have auto size contents.  Also we are only updating
26212         the contents of the panel, not the borders, so compensate for the
26213         border width (TODO: get this width from the theme somehow).
26214         * TreeView.cs: Scrollable is true by default
26215         - Use invalidate instead of refresh where needed
26216         - Factor the scrollable value into scrollbar updating
26217         - Update the scrollbars if the Scrollable property is altered
26218         - Update the selected node if its ImageIndex is changed
26219         - Handle null nodes in UpdateNode (mainly so we don't have to
26220         check if selected is null when updating it
26221         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
26222         are factored into the visible count
26223         - Use VisibleCount for clarity in the code
26224         - When the font is changed we need to recurse through all the
26225         nodes and invalidate their sizes
26226         
26227 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26228
26229         * Application.cs: set the DialogResult to fixed when the main form is
26230         hidden or destroyed while being modal.
26231
26232 2006-05-25  Miguel de Icaza  <miguel@novell.com>
26233
26234         * Theme.cs: Use Tangoified messagebox icons. 
26235
26236         (GetSizedResourceImage): Also cope with width = 0 and do not
26237         trigger a warning in that case (0 means "give me your icon from
26238         the resouce, no special size needed).
26239
26240 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
26241
26242         * Application.cs: Leave runloop if the the main modal form is 
26243           hidden (fixes #78484)
26244
26245 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
26246
26247         * BindingContext.cs : reject null datasource in Contains() and
26248           Item[].
26249         * CurrencyManager.cs : check data_member validity when data_source
26250           is dataset. When it is late binding, the initial position is -1.
26251
26252 2006-05-24  Jackson Harper  <jackson@ximian.com>
26253
26254         * TreeNodeCollection.cs: Dont't recalculate the visible order on
26255         inserted nodes that aren't visible.  This changes the
26256         max_visible_order which confuses scrollbar settings.
26257         - Use the enumerator to get the prev node instead of duplicating
26258         code.
26259         * TreeView.cs: Use new method for setting scrollbar values
26260         - Don't set the bounds every time the scrollbar is updated
26261         - When updating below the root node use an invalidate instead of a
26262         refresh to prevent the child controls (scrollbars) from being
26263         refreshed. (UpdateBelow still needs to be reworked anyways).
26264         - Reenable SetBottom now that visible orders are set correctly,
26265         added some debug code incase we ever get bad values there again.
26266         - Set the scrollbar max to 2 less then the max value, this
26267         compensates for the max value being one above the node count, and
26268         for scrollbars adding one extra "notch".
26269         - When drawing image nodes if there is an imagelist we draw the
26270         first image in the list if the supplied image index is out of the
26271         image list's bounds.
26272         
26273 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
26274
26275         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
26276           we receive a size change from the WM (Fixes #78503)
26277
26278 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
26279
26280         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
26281           rectangle (Fixes #78501)
26282
26283 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
26284
26285         * ButtonBase.cs: 
26286           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
26287             as a bitfield.
26288           - Fixed MouseMove to no longer switch pressed state unless the left
26289             mouse button is pressed. Atsushi provided the original patch (#78485)
26290           
26291 2006-05-24  Jackson Harper  <jackson@ximian.com>
26292
26293         * ScrollBar.cs: New internal methods that allow us to change a
26294         couple values on the scrollbar (the most common case is maximum
26295         and large change) without getting multiple invalidates.
26296
26297 2006-05-24  Chris Toshok  <toshok@ximian.com>
26298
26299         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
26300         (Edit): save off the original state in oldState, and set
26301         grid.is_editing to true.
26302         (OnKeyDown): abort editing if escape is pressed.  also, call
26303         NextState if space is pressed.
26304         (OnMouseDown): call NextState.
26305         (NextState): factor out shared code from OnKeyDown and OnMouseDown
26306         here.  Also, only invalidate the row header once (on the initial
26307         is_changing switch) to save on redraws.
26308
26309 2006-05-24  Chris Toshok  <toshok@ximian.com>
26310
26311         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
26312         if the value in the cell is different than it was before.  This
26313         keeps us from triggering a layout when we move around a datarid
26314         with a highlighted cell.
26315         (Edit): suspend layout when creating/positining the text box, and
26316         resume passing false so we don't ever actually re-layout.
26317         (ReleaseHostedControl): same.
26318         (EnsureTextBox): reformat slightly, and set WordWrap to false.
26319
26320         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
26321         control-key sequences should go to the datagrid - remove that
26322         lock.  Also, modify the conditions under which we move between
26323         cells when moving the cursor within a cell, and remove the "this"
26324         and "base" from field accesses.  We weren't even consistent, given
26325         they all were in the base class.
26326
26327 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
26328
26329         * Binding.cs : (.ctor)
26330           An obvious NRE fix for BindingTest.CtorNullTest().
26331
26332 2006-05-23  Chris Toshok  <toshok@ximian.com>
26333
26334         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
26335         them between lines.  This fixes some quirks editing cells in the
26336         datagrid.
26337
26338 2006-05-23  Jackson Harper  <jackson@ximian.com>
26339
26340         * TreeView.cs: Use begin/end update when doing expand/collapse all
26341         so that we don't get flicker on the scrollbar.
26342
26343 2006-05-23  Jackson Harper  <jackson@ximian.com>
26344
26345         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
26346         treenode calculations to be independant of the painting code. To
26347         do this nodes track a visible order which is calculated by the
26348         treeview.
26349         - Call new methods for expanding/collapsing nodes.  These methods
26350         use scrollwindow so we don't have to update everything below the
26351         node.
26352         * TreeView.cs: Refactored drawing and scrolling code.  We don't
26353         need to update nodes when drawing anymore or calculate scrollbar
26354         stuff.
26355         - Added new methods for expanding/collapsing nodes. These methods
26356         use ScrollWindow so as to not have to redraw all the nodes below.
26357         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
26358         we add/remove nodes or sort.
26359         - Handle removing the selected and the top node properly.
26360
26361 2006-05-23  Chris Toshok  <toshok@ximian.com>
26362
26363         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
26364         maybe this should actually happen in the datagrid code?
26365         (EndEdit): no need to invalidate anything, given that
26366         ReleaseHostedControl causes the datagrid to relayout, which
26367         invalidates everything anyway.
26368
26369         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
26370         in SetCurrentCell).
26371         (set_SelectionBackColor): call InvalidateSelection instead of
26372         Refresh.
26373         (set_SelectionForeColor): same.
26374         (BeginEdit): Flesh this out a bit.
26375         (CancelEditing): only do any of this if we're editing/adding.
26376         (EndEdit): same.
26377         (OnMouseDown): there's no need to cancel editing here, it's done
26378         in SetCurrentCell.
26379         (SetCurrentCell): only invalidate the current row header if it's a
26380         different row than the new one.
26381         (ShiftSelection): fix this to work like MS does.
26382         (ResetSelection): factor out the invalidation of selected_rows to
26383         InvalidateSelection.
26384         (SetDataSource): cancel any editing that's going on.
26385
26386         * DataGridColumnStyle.cs
26387         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
26388         call the non-interface version.
26389
26390         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
26391         header rectangle with the clip rectangle so we don't redraw the
26392         entire header for just a small area.  Gets rid of the last flicker
26393         when horizontally scrolling.
26394         (DataGridPaintRow): same.
26395
26396 2006-05-23  Mike Kestner  <mkestner@novell.com>
26397
26398         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
26399         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
26400         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
26401         Critical bug report.
26402
26403 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
26404
26405         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
26406           and this fixes #78493
26407
26408 2006-05-23  Miguel de Icaza  <miguel@novell.com>
26409
26410         * Theme.cs (GetSizedResourceImage): Scale images if the proper
26411         size is not found.  
26412         
26413         * FileDialog.cs: Do not change the background for the side bar as
26414         it wont work nicely with the theme, and also reduces the artifacts
26415         in rendering the icons (which I want to fix too).
26416
26417         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
26418         resources, not resgen resources. 
26419
26420         (PlatformDefaultHandler): Pull images using the new API.
26421
26422 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
26423
26424         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
26425           a reference to the hwnd and will not remove it unless there are
26426           no pending exposures (fixes #78341)
26427         * XplatUI.cs: Improved debug
26428
26429 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
26430
26431         * MenuAPI.cs : don't handle OnClick event when it was not the left
26432           button. Fixed bug #78487.
26433
26434 2006-05-23  Mike Kestner  <mkestner@novell.com>
26435
26436         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
26437         prefer submenus to the top menu for item lookup, to avoid popping down
26438         top-row items.
26439
26440 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
26441
26442         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
26443           Graphics.FillRectangle as the visual results are really bad (even
26444           on win). We now draw perfect arrows (and perfect shadows when the
26445           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
26446           Pen.DashPattern to draw the dots of each line.
26447
26448 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
26449
26450         * FileDialog.cs: Update the filename combobox when navigating through
26451           the ListView with the cursor keys. Fixes part 7 of bug #78446.
26452
26453 2006-05-22  Mike Kestner  <mkestner@novell.com>
26454
26455         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
26456         Fixes #78463.
26457
26458 2006-05-22  Mike Kestner  <mkestner@novell.com>
26459
26460         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
26461         requests. Fix a misspelled parameter and a copy paste exception error
26462         in Select.
26463
26464 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
26465
26466         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
26467           to get the same width/height (5/13) on X11 as the default font has on
26468           win32. This means that our DefaultFont emSize is smaller than the 
26469           the MS SWF equivalent (even thought the width/height stays the same)
26470
26471 2006-05-20  Jackson Harper  <jackson@ximian.com>
26472
26473         * MdiClient.cs:
26474         * MdiWindowManager.cs:
26475         * InternalWindowManager.cs: Make sure to use the border width from
26476         the theme.
26477
26478 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
26479
26480         * PrintDialog.cs: Implements printer details
26481
26482 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
26483
26484         * FileDialog.cs: Added focus handling for PopupButtonPanel.
26485           Fixes part 1 and 2 of bug #78446
26486
26487 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
26488
26489         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
26490           instead of sticking to the first ever calculated value
26491
26492 2006-05-19  Mike Kestner  <mkestner@novell.com>
26493
26494         * ComboBox.cs: fix mouse motion selection to use MousePosition and
26495         PointToClient, since Capture is set. Fixes #78344.
26496
26497 2006-05-19  Mike Kestner  <mkestner@novell.com>
26498
26499         * ListView.cs: match MS behavior in Details view where items are not
26500         drawn if Columns.Count == 0. 
26501         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
26502         Use a separate pen to draw the check, since changing the width affects
26503         the box as well.  Fixes #78454.
26504
26505 2006-05-18  Miguel de Icaza  <miguel@novell.com>
26506
26507         * ListView.cs: ArgumentOutOfRangeException, single versions of the
26508         exception should throw the name of the invalid argument.
26509
26510         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
26511         there are no files listed. 
26512
26513 2006-05-18  Jackson Harper  <jackson@ximian.com>
26514
26515         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
26516         up.
26517
26518 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
26519
26520         * Control.cs: Brought back our old UpdateZOrder method as a private
26521           function and switched our calls from UpdateZOrder to the new one.
26522           This fixes the Paint.Net canvas disappearing bug.
26523
26524 2006-05-18  Jackson Harper  <jackson@ximian.com>
26525
26526         * Theme.cs:
26527         * ThemeWin32Classic.cs:
26528         * InternalWindowManager.cs: Move the drawing into the theme,
26529         expose everything the theme should need from the window manager.
26530
26531 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
26532
26533         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
26534           from the call to NativeWindow to avoid walking up the parent chain
26535           further than needed (speeds up setting cursors and avoids setting
26536           the wrong cursor if a parent has another cursor defined)
26537         * Cursor.cs: When loading an icon as cursor, MS uses the center of
26538           the icon as hotspot, not what's contained as hotspot in the icon
26539           file. This fixes the perceived drawing offset seen with Paint.Net
26540         
26541 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
26542
26543         * XplatUIX11.cs: 
26544           - Store the calculated rectangle in Hwnd object and use it when 
26545             setting the client size
26546           - Force Toolwindows to always be type Dock, to ensure they're on top
26547
26548 2006-05-18  Mike Kestner  <mkestner@novell.com>
26549
26550         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
26551         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
26552         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
26553         Substantial refactoring to remove confusing nested classes. Coding
26554         standard and Get+Set->property refactorings.  Shift to index based
26555         highlighting in ComboListBox instead of constantly using IndexOf and
26556         Items[]. Add invalidations on resize for DropDownList to fix ugliness
26557         in FileDialog growth.  Draw borders manually since Simple mode needs
26558         to look like two independent controls.  Make listbox border
26559         conditional to DropDownStyle.  Improved OwnerDraw support.
26560
26561 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
26562
26563         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
26564         Don't set the disposed graphics to null, so we can throw the "right"
26565         exception if the graphics is reused later (added a flag to avoid 
26566         double disposing). Some behaviours are different under 2.0 and are
26567         filled under bug #78448.
26568
26569 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
26570
26571         * Control.cs: When double-buffering is enabled, we need to reset
26572           our graphics context between paint calls. Otherwise, any 
26573           transformations and other alterations on the context will 
26574           become cumulative (#77734)
26575
26576 2006-05-18  Mike Kestner  <mkestner@novell.com>
26577
26578         * ListView.cs: do focused item selection like MS on clicks. 
26579         Rework focus handling for ItemControl so LostFocus invalidates as
26580         well.
26581         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
26582         the ListView ItemControl has focus.
26583
26584 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
26585
26586         * XplatUIX11.cs: If client_window ends up being width or height zero
26587           due to border settings, move it off window inside whole_window (#78433)
26588
26589 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
26590
26591         * Mime.cs: Shrink the mime file cache correctly.
26592
26593 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
26594
26595         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
26596
26597 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
26598
26599         * XplatUIX11.cs (AddExpose): More sanity checks
26600
26601 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
26602
26603         * XplatUIX11.cs:
26604           - AddExpose: Don't add expose ranges outside the size of our
26605             window
26606           - Cast opacity values to Int32 to avoid crashes with certain
26607             values
26608           - Added disabled code paths that protect against illegal cross-
26609             thread painting (Developers.exe)
26610
26611 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
26612
26613         * ProgressBar.cs: Invalidate the control when it's resized
26614           since block size is based on control size. (#78388)
26615
26616 2006-05-16  Miguel de Icaza  <miguel@novell.com>
26617
26618         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
26619         of setting the incoming argument to the "reset" value, we set the
26620         this.datamember to string.empty (before we were invalidating the
26621         incoming data).   
26622
26623         Fixes 78420
26624
26625 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
26626
26627         * Form.cs: Only apply transparency settings after the form
26628           is created. (Fixes #77800)
26629
26630 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
26631
26632         * ApplicationContext.cs: Grab the HandleDestroyed event so
26633           we know when to fire OnMainFormClosed 
26634
26635 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
26636
26637         * Application.cs: Introduced sub-class to allow tracking of
26638           threads and centralized triggering of the event mess for
26639           ThreadExit, AppExit, etc..  (#76156)
26640
26641 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
26642
26643         * MimeIcon.cs:
26644           - Do not return a null icon index value for a mime subclass.
26645             Instead try the main mime type class too.
26646           - Seems that some newer distributions don't have a link to some
26647             gnome default icons anymore. So check the default gnome dir too.
26648           
26649
26650 2006-05-16  Jackson Harper  <jackson@ximian.com>
26651
26652         * MdiClient.cs: Don't paint the parent background image if we have
26653         our own background image.
26654
26655 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
26656
26657         * Control.cs:
26658           - PerformLayout: Do not shrink space filled by DockStyle.Fill
26659             controls, all filled controls are supposed to overlap (#78080)
26660           - UpdateZOrder is supposed to update the control's z-order in the
26661             parent's z-order chain. Fixed to behave like that
26662           - BringToFront: Removed obsolete code
26663           - SendToBack: Simplyfied
26664           - SetChildIndex: Trigger layout calculations when Z-order changes
26665             since layout is done by z-order
26666
26667 2006-05-16  Chris Toshok  <toshok@ximian.com>
26668
26669         [ fixes bug #78410 ]
26670         * DataGrid.cs (set_AlternatingBackColor): use
26671         grid_drawing.InvalidateCells instead of Refresh().
26672         (set_BackColor): call grid_drawing.InvalidateCells.
26673         (set_BackgroundColor): use Invalidate instead of Refresh.
26674
26675         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
26676         invalidate the cell area.
26677
26678 2006-05-15  Chris Toshok  <toshok@ximian.com>
26679
26680         [ fixes bug #78011 ]
26681         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
26682         on to DataGridPaintRow.
26683         (DataGridPaintRow): take a clip argument, and only draw the cells
26684         which intersect it.  same with the not_usedarea.
26685
26686         * Theme.cs (DataGridPaintRow) add @clip parameter.
26687
26688         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
26689         XplatUI.ScrollWindow.
26690         (ScrollToRow): same.
26691
26692         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
26693         with last column which was causing a gray swath to appear with the
26694         XplatUI.ScrollWindow code.
26695
26696 2006-05-15  Chris Toshok  <toshok@ximian.com>
26697
26698         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
26699         use XplatUI.ScrollWindow.
26700         (VerticalScrollEvent): use XplatUI.ScrollWindow.
26701
26702 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
26703
26704         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
26705
26706 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
26707
26708         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
26709           file since there are no equivalent X11 cursors
26710
26711 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
26712
26713         * MonthCalendar.cs : DateTimePicker should reflect selected date
26714           on mouse*up*, not mouse*down*. Fixed originally reported part of
26715           bug #76474.
26716
26717 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
26718
26719         * TabControl.cs : When argument index is equal or more than tab
26720           count, just ignore. Fixed bug #78395.
26721
26722 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
26723
26724         * Control.cs: Dispose all child controls when control is diposed (#78394)
26725
26726 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
26727
26728         * ColorDialog.cs: Finally it is possible to select the color with
26729           the text boxes
26730
26731 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
26732
26733         * PrintDialog.cs: Fix typo
26734
26735 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
26736
26737         * PrintDialog.cs: PrintDialog is not resizable
26738         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
26739           color. Made some ToolBar drawing methods protected virtual.
26740
26741 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
26742
26743         * PrintDialog.cs: Implementation of the PrintDialog
26744
26745 2006-05-12  Chris Toshok  <toshok@ximian.com>
26746
26747         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
26748         thumb, instead use MoveThumb.  This has the side effect of making
26749         most of the other thumb moving machinery use MoveThumb as well.
26750         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
26751         need to actually invalidate the rectangle where the new thumb will
26752         go.
26753         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
26754         We force an Update() after, so it's not as fast as it could be,
26755         but at least there's zero flicker and no droppings.
26756         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
26757         (UpdateThumbPos): add another argument (dirty), which says whether
26758         or not to calculate/add dirty regions which we later invalidate.
26759         For cases where we know we're going to use MoveThumb, we pass
26760         false for this.  Otherwise, pass true.
26761
26762 2006-05-12  Jackson Harper  <jackson@ximian.com>
26763
26764         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
26765         the status bar.
26766         
26767 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
26768
26769         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
26770           and GetClipRegion methods and UserClipWontExposeParent property.
26771         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
26772           overriding UserClipWontExposeParent property, setting to false, since
26773           Win32 handles the required expose messages to draw our clipped parent
26774           areas internally
26775         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
26776           PaintEventStart to set the user clip region if set.
26777         * Control.cs: 
26778           - Now internally tracking the Region for the control since we need to
26779             store it if the handle is not yet created and only set it when it
26780             becomes created. Before setting the region forced handle creation
26781           - Added code to draw the parents underneath a user-clipped region
26782         * Hwnd.cs: Added UserClip property
26783
26784 2006-05-12  Chris Toshok  <toshok@ximian.com>
26785
26786         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
26787         (set_Maximum): same.
26788         (set_Minimum): same.
26789         (set_SmallChange): same.
26790         (OnMouseUpSB): remove the call to refresh when releasing the
26791         thumb.  We shouldn't need it.
26792         
26793 2006-05-12  Miguel de Icaza  <miguel@novell.com>
26794
26795         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
26796         AutoSize set to None, we do not need to relayout everything, we
26797         just need to invalidate the current region.
26798
26799         (Draw): Do not draw the entire ClientArea, just redraw the
26800         clip area being passed.
26801
26802         * MdiClient.cs: Make MdiClient constructor with the Form argument
26803         internal. 
26804
26805 2006-05-12  Jackson Harper  <jackson@ximian.com>
26806
26807         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
26808         parents background image,  but strangely not their own.
26809         - (DrawStatusBarPanel): Take into account horizontal alignment
26810         when drawing the strings and icons.
26811
26812 2006-05-12  Mike Kestner  <mkestner@novell.com>
26813
26814         * ListBox.cs: avoid invalidations for focus when the collection is
26815         empty. 
26816
26817 2006-05-12  Chris Toshok  <toshok@ximian.com>
26818
26819         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
26820         invalidate the entire thumb area.  Call InvalidateDirty which
26821         limits the redraw to the thumb itself and surrounding pixels.
26822
26823         * XplatUIX11.cs (ScrollWindow): optimize copying.
26824         
26825 2006-05-12  Chris Toshok  <toshok@ximian.com>
26826
26827         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
26828         Figure out the positioning/layout in a single pass instead of
26829         multiple recursive invocations.  Speeds up the initial display of
26830         the data grid.  Also, make many things private that were
26831         originally public but unused outside this class.
26832
26833 2006-05-11  Jackson Harper  <jackson@ximian.com>
26834
26835         * MdiClient.cs: Improved layout code.
26836
26837 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
26838
26839         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
26840           not SelectedObject.
26841
26842 2006-05-11  Chris Toshok  <toshok@ximian.com>
26843
26844         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
26845         union of that will always be {0,0,width,height}.
26846
26847 2006-05-11  Jackson Harper  <jackson@ximian.com>
26848
26849         * Form.cs: Match MS's DefaultSize for forms (they must have
26850         changed the size in sp2).
26851
26852 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
26853
26854         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
26855
26856 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
26857
26858         * TextControl.cs : Fixed bug #78109. This incorrect position
26859           comparison caused crash on automatic line split.
26860         * TextBoxBase.cs : reduce duplicate code.
26861
26862 2006-05-10  Jackson Harper  <jackson@ximian.com>
26863
26864         * MdiClient.cs: Active form is only sent to the back when using
26865         the Next form functionality, when a form is clicked the current
26866         active shouldn't be sent to the back.
26867         - Layout the mdi windows when the container is first made visible.
26868         * Form.cs: Give the MdiClient a ref to the containing form when we
26869         create it.
26870         
26871 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
26872
26873         * LinkLabel.cs : link_font could be uninitialized, so populate one
26874           before actual use. Fixed bug #78340.
26875
26876 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
26877
26878         * XplatUIX11.cs : clipboard format native value is IntPtr.
26879           Fixed bug #78283.
26880
26881 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
26882
26883         * Control.cs: 
26884           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
26885             which is passed up the parent chain by DefWndProc
26886           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
26887             to DefWndProc (#77956)
26888         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
26889
26890 2006-05-10  Jackson Harper  <jackson@ximian.com>
26891
26892         * MdiClient.cs: We need to remove the controls from the mdi
26893         collection, when we close the window.
26894         * MdiWindowManager.cs: Special handling of closing mdi windows.
26895         * InternalWindowManager.cs: Make the close method virtual so the
26896         mdi window manager can handle it specially.
26897
26898 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
26899
26900         * DataGrid.cs:
26901           - Recalculate grid when the data source has changed
26902           - Matches styles provided by user from all data sources types
26903         * DataGridTableStyle.cs: For columns that provided by the user set the
26904         with the preferred value is there was unassigned.
26905         * CurrencyManager.cs: throw OnItemChanged event
26906
26907 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
26908
26909         * PictureBox.cs: Don't animate until handle is created. Start animation
26910           when handle is created.
26911
26912 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
26913
26914         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
26915           current codebase.
26916         * XEventQueue.cs: We don't need to provide the extra info
26917
26918 2006-05-10  Jackson Harper  <jackson@ximian.com>
26919
26920         * MdiClient.cs: If the mdi clients parent form has a background
26921         image set, we draw that background image for the mdi area's
26922         background.
26923
26924 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
26925
26926         * TextBoxBase.cs: Set IBeam cursor (#78347)
26927
26928 2006-05-10  Mike Kestner  <mkestner@novell.com>
26929
26930         * ToolBar.cs: fix some text padding issues with ButtonSize
26931         calculation. Update the default size to match MS documentation.
26932         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
26933         button size. Fixes #78296.
26934
26935 2006-05-10  Mike Kestner  <mkestner@novell.com>
26936
26937         * ListBox.cs: use is_visible for scrollbar positioning in case the
26938         control isn't on screen yet.  Fix off by one with Right vs Width
26939         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
26940         
26941 2006-05-10  Jackson Harper  <jackson@ximian.com>
26942
26943         * X11Dnd.cs: Drop to a control with another control on top of it.
26944         * ToolBar.cs: Work on a copy of the buttons list, so that it can
26945         be modified in click handlers. TODO: Look for similar problems in
26946         other controls.
26947
26948 2006-05-09  Jackson Harper  <jackson@ximian.com>
26949
26950         * Form.cs: Window managers need the old window state when setting
26951         window state now.
26952         * InternalWindowManager.cs: Allow the base mdi window manager to
26953         handle more of the MDI only stuff (like maximize buttons).
26954         * MdiWindowManager.cs: Fix some snafus in changing the window
26955         state.  Add all the menu functionality, for both popup and
26956         maximized menus.
26957         * MdiClient.cs: When a new form is selected the currently
26958         activated form is sent to the back, this matches MS.
26959         - Implement a new method to activate the next mdi child window.
26960
26961 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
26962
26963         * Control.cs: 
26964           - Added new InternalCapture method to allow controls to prevent
26965             the capture behaviour on the click handlers
26966           - Switched to use InternalCapture
26967         * ComboBox.cs:
26968           - Using InternalCapture to prevent mouse captures from being released
26969             on mouse button release (Fixes #78100)
26970         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
26971           returns Form borders if a caption is present. (Fixes #78310)
26972
26973 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
26974
26975         * TreeNode.cs: Changed serialization .ctor to not require every field
26976           to be present. (#78265)
26977         * OwnerDrawPropertyBag.cs: Added serialization .ctor
26978
26979 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
26980
26981         * MimeIcon.cs: for is faster than foreach for strings.
26982
26983 2006-05-05  Mike Kestner  <mkestner@novell.com>
26984
26985         * CheckedListBox.cs: update check handling code to not use selected.
26986         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
26987         behavior for visual feedback, motion response, shift/ctrl handling,
26988         and properly deal with all 4 selection modes. Updates to bounds
26989         handling logic.  Add scroll wheel support. [Fixes #77842]
26990
26991 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
26992
26993         * ListView.cs:
26994           - Moved adding of Implicit controls into .ctor. That way, subsequent
26995             creation of the controls will not cause them to think they are 
26996             toplevel windows (fixes #78200 header problem)
26997           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
26998           - Switched visibility setting of header control to use internal field
26999             to avoid triggering handle creation
27000           - Now checking if handle is created before causing a refresh when items
27001             are added (This makes us now match handle creation time with MS)
27002         * Splitter.cs: Removed loading of private splitter cursor, switched to
27003           Cursors version now that that is loading the right ones
27004         * Cursors.cs: Load proper splitter cursors from resources
27005         * Cursor.cs: Added second method of loading resource cursors for the 
27006           VS.Net users amongst us
27007
27008 2006-05-05  Mike Kestner  <mkestner@novell.com>
27009
27010         * ListView.cs: give header_control a minimum size based on the
27011         ListView size.
27012
27013 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
27014
27015         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
27016           window seems to do that with metacity, so set that type. (#78120)
27017
27018 2006-05-05  Mike Kestner  <mkestner@novell.com>
27019
27020         * ListViewItem.cs: fix Details mode checkbox layout bug.
27021         * ThemeWin32Classic.cs: draw a ListView column header for unused space
27022         at the end of the header, if it exists. [Fixes for #78200]
27023
27024 2006-05-04  Jackson Harper  <jackson@ximian.com>
27025
27026         * MdiClient.cs: Add a helper property to get the container form.
27027         * MdiWindowManager.cs: We have to make sure to use the menu origin
27028         when drawing the icons and buttons, this fixes maximized window
27029         icons/buttons on win32.
27030         * InternalWindowManager.cs: Reset the restore captions when a
27031         window goes from Maximized to Minimized and vice versa. Move the
27032         DrawMaximizedButtons into the MdiWindowManager source, tool
27033         windows can't be maximized. NOTE: This could use a little
27034         refactoring if time ever permits.
27035         
27036 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
27037
27038         * TextBox.cs: Add MWFCategoryAttributes
27039         * TextBoxBase.cs: Add MWFCategoryAttributes
27040         * Form.cs: Add MWFCategoryAttributes
27041
27042 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
27043
27044         * Control.cs: Add MWFCategoryAttributes
27045         * ScrollableControl.cs: Add MWFCategoryAttributes
27046
27047 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
27048
27049         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
27050           Divider is true. Fix a little glitch in PropertyToolBar
27051           drawing code
27052
27053 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
27054
27055         * Control.cs:
27056           - Dispose: Call base.Dispose, this causes the disposed event
27057             to be fired (and probably other, more important stuff)
27058           - SetVisibleCore: Set is_visible to true after creating the
27059             window so that the window still gets created invisible (if
27060             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
27061             to generate a WM_ACTIVE message
27062         * Form.cs: Call Dispose when we want to destroy the window, instead of
27063           just destroying the handle (Dispose will do that for us)
27064         * XplatUIX11.cs:
27065           - RootWindow also needs a queue, so we can properly process the
27066             property change events from RootWindow (like Activate)
27067           - Generatic synthetic WM_ACTIVE message when the active window is
27068             being destroyed
27069
27070 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
27071
27072         * LinkLabel.cs: Trigger a recalc of our label dimensions when
27073           bounds are changed
27074
27075 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
27076
27077         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
27078           for determining width and height (image might not be assigned if
27079           we're drawing an imagelist)
27080
27081 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
27082
27083         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
27084         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
27085           height from system
27086         * Theme.cs: No longer returns hardcoded menu height, instead calls
27087           new driver method
27088         * Form.cs (OnLoad): Scaling happens before triggering Load events 
27089           on MS (# 78257)
27090
27091 2006-05-01  Mike Kestner  <mkestner@novell.com>
27092
27093         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
27094
27095 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
27096
27097         * TextBoxBase.cs: Removed Fixme
27098         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
27099
27100 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
27101
27102         * XplatUIX11.cs:
27103           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
27104             the rectangle relative to the parent, considering borders. We
27105             don't really want that.
27106           - ScrollWindow: Fixed warning to be more understandable
27107         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
27108           scrollbars and scroll only the visible area
27109         * RichTextBox.cs: Removed debug output
27110
27111 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
27112
27113         * NumericUpDown.cs (Text): Just use base
27114         * UpDownBase.cs: Ensure txtView is created before using it
27115
27116 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
27117
27118         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
27119           casting to IntPtr to avoid 64bit overflow errors
27120
27121 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
27122
27123         * Control.cs:
27124           - AllowDrop: Don't force handle creation.
27125           - CreateHandle: Added call to tell driver if we're allowed to drop
27126
27127 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
27128
27129         * FileDialog.cs: Remember the last directory not only for the
27130           current instance but also for new FileDialog instances.
27131
27132 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
27133         
27134         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
27135           broke sending async messages
27136
27137 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
27138
27139         * XplatUIX11.cs:
27140           - ScrollWindow: Fixed method. We finally generate expose events again
27141             for scrolled areas. This was causing 'garbage' when scrolling
27142             textbox and other controls that used ScrollWindow
27143           - Switched from using the regular queue for paint events to the MS 
27144             model of 'generating' paint events when the queue is empty.
27145             We use the new XQueueEvent.Paint subclass to store which windows
27146             need painting.
27147           - AddExpose now takes the x/y/width/height of the exposed area
27148             and inserts the window into the paint queue if not already there
27149           - InvalidateWholeWindow: Switched to use new AddExpose method
27150           - UpdateMessageQueue: Added which queue to monitor for paint events
27151           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
27152             the unlikely case nothing above handles it. We reset the expose
27153             pending states to get them off the queue.
27154           - GetMessage: Now pulls a paint event if no other events are in the
27155             queue
27156           - Invalidate: Switched to new AddExpose method
27157           - PeekMessage: Updated to understand pending paint events
27158           - UpdateWindow: Fixed logic bug. We were only updating if the window
27159             didn't need updating. Also switched to sending WM_PAINT directly,
27160             like MS does.
27161         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
27162           and random access Remove(). The random access is needed to handle
27163           UpdateWindow() where a WM_PAINT is sent directly without accessing
27164           the queue.
27165         * ScrollBar.cs: Added Update() calls to cause immediate updates to
27166           allow for better feedback when scrolling. Scrollbars are small and
27167           the immediate update should make it 'feel' more responsive without
27168           slowing things down. ScrollBar still needs it's invaliate logic
27169           updated to not always invalidate the whole bar on certain changes.
27170
27171 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27172
27173         * Control.cs:
27174         (BackColor): if the control does not support a transparent background,
27175         return the default backcolor when the parent backcolor is transparent.
27176
27177 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
27178
27179         * Application.cs: Updated to new StartLoop/GetMessage API
27180         * RichTextBox.cs: Provide some output on RTF parsing errors
27181         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
27182           new queue_id argument to GetMessage and PeekMessage to allow faster
27183           handling of per-thread queues in drivers.
27184         * Hwnd.cs: Added Queue tracking and property
27185         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
27186         * XEventQueue.cs: Added thread trackingA
27187         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
27188         * XplatUIX11.cs:
27189           - Implemented new per-thread queue
27190           - GetMessage: Fixed return/break behaviour on several cases. We were
27191             returning stale messages in some cases, instead of just processing
27192             the next message
27193
27194 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
27195
27196         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
27197
27198 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
27199
27200         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
27201           fixed off-by-one comparisons between Width/Height and Right/Bottom.
27202
27203 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
27204
27205         * PropertyGridView.cs: Fix drop down width.
27206
27207 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
27208
27209         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
27210           a mess in DrawToolBar, so I removed one of them.
27211
27212 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
27213
27214         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
27215           needed (clip). Otherwise we get artifacts.
27216
27217 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
27218
27219         * FixedSizeTextBox.cs: Added constructor to allow specifying which
27220           dimension is fixed
27221         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
27222           and switched FixedSizeTextBox to only be fixed vertical (#78116)
27223         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
27224           if it matches the scale base font (avoids unneeded scaling)
27225
27226 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
27227
27228         * X11DesktopColors.cs: One gtk_init_check should be enough
27229
27230 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
27231
27232         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
27233           match MS behaviour
27234
27235 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
27236
27237         * TextBoxBase.cs: 
27238           - Generate OnTextChanged for Backspace even if we're only deleting
27239             the current selection
27240           - When setting the Text property, only select all text if the
27241             control does not have focus when it is being set. Otherwise
27242             just place the cursor at the beginning of the control
27243
27244 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
27245
27246         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
27247           Added a little helper to draw PropertyGrid ToolBar with a different
27248           border and a different BackColor.
27249         * PropertyGrid.cs: Some background parts didn't get painted with the
27250           correct background color. Added a class that helps us to draw the
27251           correct border for PropertyGridView and a class that helps us to
27252           draw ToolBars with a different backcolor
27253         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
27254
27255 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
27256
27257         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
27258         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
27259
27260 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
27261
27262         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
27263           into the palette entries. Also, since we're working on a copy
27264           we needed to copy the palette back onto the bitmap.
27265         * Cursor.cs: Same fix as XplatUIWin32.cs.
27266
27267 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
27268
27269         * ImageListStreamer.cs: Need to read the var (or we're off)
27270
27271 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
27272
27273         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
27274           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
27275           TextBoxBase.cs: Unused var fixes
27276         * AxHost.cs: Small 2.0 fix
27277         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
27278           as it seems that is what at least Metacity expects. This will make
27279           icons show up on 64bit platforms. We still have some 64bit size
27280           issues, though, since the startup app window size still won't match.
27281
27282 2006-04-25  Mike Kestner  <mkestner@novell.com>
27283
27284         * *.cs: cleanup newly reported exception var unused warnings.
27285
27286 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
27287
27288         * ThemeWin32Classic.cs: Button image alignment now matches exactly
27289           ms
27290
27291 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
27292
27293         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
27294           image. The image position is always the same, no matter if the
27295           button is pressed or not.
27296
27297 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
27298
27299         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
27300           selection and set the correct filename for SaveFileDialog.
27301           Patch by Emery Conrad.
27302
27303 2006-04-24  Mike Kestner  <mkestner@novell.com>
27304
27305         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
27306         check for item.X outside the ClientRect instead of item.Y. Fixes
27307         #78151.
27308
27309 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27310
27311         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
27312         trust that value blindly and do some sanity check. Fixes bug #77814.
27313
27314 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27315
27316         * ImageListStreamer.cs: save the mask as a 1bpp image.
27317
27318 2006-04-21  Mike Kestner  <mkestner@novell.com>
27319
27320         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
27321         pass Checked and Indeterminate to the Theme Engine. Improve
27322         encapsulation with ListBox.
27323         * ListBox.cs: Keep a StringFormat instead of calculating it every item
27324         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
27325         nested types.  Move all CheckState functionality to CheckedListBox.
27326         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
27327         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
27328         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
27329         single base list. Fix scrollbar sizing and placement to mirror MS.
27330         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
27331         used.
27332         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
27333         for CheckedListBox by using new DrawItemState info.  Center the
27334         checkboxes on the items. Use new StringFormat property.
27335
27336 2006-04-18  Jackson Harper  <jackson@ximian.com>
27337
27338         * Form.cs: MdiChildren don't do default locations the same way as
27339         regular forms.  This prevents a crash when trying to position the
27340         mdi windows.
27341
27342 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
27343
27344         * PropertyGridTextBox.cs: Formatting, copyright
27345         * PropertiesTab.cs: Formatting
27346         * PropertyGrid.cs: Formatting
27347         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
27348           click toggling of values
27349           
27350 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
27351
27352         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
27353         * Control.cs (.ctor): verify_thread_handle is static, don't reset
27354           every time a control is created
27355         * Application.cs: Removed obsolete EnableRTLMirroring method
27356
27357 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
27358
27359         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
27360         SelectedIndex to -1. Fixes bug #78121.
27361
27362 2006-04-17  Jackson Harper  <jackson@ximian.com>
27363
27364         * Binding.cs: Handle null values for Current and BindingContext.
27365         This occurs when binding is a little delayed.
27366         * CurrencyManager.cs: return null for Current when there are no
27367         items in the list.
27368         - Hookup to the listchanged event on the DataView and update
27369         bindings when the list is changed.  This fixes late binding of
27370         controls.
27371
27372 2006-04-17  Jackson Harper  <jackson@ximian.com>
27373
27374         * X11Dnd.cs:
27375         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
27376         Ringenbach.
27377
27378 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
27379
27380         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
27381           place
27382         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
27383           with the correct ButtonState
27384
27385 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
27386
27387         * XplatUIX11.cs: Improved distinguishing between window types to
27388           tell the WM a type closer to what the app wants (Fixes #78107)
27389
27390 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
27391
27392         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
27393           GrabHandle
27394
27395 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
27396
27397         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
27398           drawing code to reflect the size grip changes
27399
27400 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27401
27402         * ImageListStreamer.cs: fix handling of the mask that follows the main
27403         bitmap when deserializing and serialize it properly. The generated mask
27404         should better be a 1bpp image, but I'll do that later.
27405
27406 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
27407
27408         * FileDialog.cs: Show something in the DirComboBox on *nix if the
27409           path doesn't fit into some of our Current.Places
27410
27411 2006-04-13  Jackson Harper  <jackson@ximian.com>
27412
27413         * ComboBox.cs: Use borders instead of drawing our own decorations,
27414         try to obey correct rules for heights.
27415         * Theme.cs:
27416         * ThemeNice.cs:
27417         * ThemeClearLooks.cs:
27418         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
27419         this is now handled by borders.
27420         - Remove unused DrawListBoxDecorationSize method.
27421         
27422 2006-04-13  Mike Kestner  <mkestner@novell.com>
27423
27424         * MenuAPI.cs: null guarding for the disbled click check fixes crash
27425         reported by Alex.
27426
27427 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
27428
27429         * ThemeWin32Classic.cs: 
27430           - Fixed CPDrawStringDisabled
27431           - Corrected drawing of disabled menu items
27432           - Fixed drawing of disabled radio buttons (bug #78095)
27433           - Draw check in a disabled CheckBox with color ControlDark 
27434
27435 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27436
27437         * Form.cs: Use the provided width when calculating the menu size;
27438           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
27439           and ClientSize.Width won't be updated yet
27440         * Application.cs: Use Visible instead of Show() to make form visible,
27441           this way we create the handle later and menusize is considered
27442
27443 2006-04-12  Mike Kestner  <mkestner@novell.com>
27444
27445         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
27446         reporting.
27447
27448 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27449
27450         * TextBox.cs: Implemented context menu
27451
27452 2006-04-12  Mike Kestner  <mkestner@novell.com>
27453
27454         * ListView.cs: implement box selection. fixes #77838.
27455         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
27456
27457 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
27458
27459         * XplatUIX11.cs: Added setting of window type when transient window
27460           is created (metacity would move it otherwise)
27461         * X11Structs.cs: Added WINDOW_TYPE atoms
27462         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
27463           background (the control is Opaque but still wants transparent
27464           backgrounds)
27465
27466 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27467
27468         * Control.cs: Added OnPaintBackgroundInternal to allow controls
27469           that set Opaque but don't mean it (like all ButtonBase-derived
27470           controls) to still draw their background
27471         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
27472           the background
27473
27474 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
27475
27476         * Control.cs (PaintControlBackground): Set the graphics object
27477           on our PaintEvent to null to prevent it from being disposed
27478           when the PaintEvent gets disposed
27479
27480 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
27481
27482         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
27483         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
27484
27485 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27486
27487         * Control.cs: 
27488           - Added transparency check to BackColor property. Transparent
27489             backgrounds are only allowed if the control styles permit it
27490           - Added recursive painting of parent control background and
27491             foreground if a control with a transparent backcolor is drawn
27492             (Thanks to Tim Ringenback for providing his 'hack' as a base
27493              for this patch) Fixes #77985 and #78026.
27494           - Added Opaque style check before calling OnPaintBackground, no
27495             need to draw the background if the control is opaque
27496           - Removed ControlAccessibleObject owner variable (inherited from
27497             base, no need to define again)
27498           - Added some documentation links explaining the drawing events
27499             and styles
27500
27501 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
27502
27503         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
27504           that the affected control is the located at the left border of our
27505           parent (Fixes #77936)
27506
27507 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
27508
27509         * TextBoxBase.cs: When rendering disabled or readonly controls,
27510           draw the background with 'Control' instead of 'Window' color as
27511           long as the user hasn't specifically set a color
27512
27513 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
27514
27515         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
27516           since that won't be updated if the user types text (only if it's
27517           programatically set)
27518
27519 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
27520
27521         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
27522           layout changes do to app-triggered resizes will have the proper
27523           display rectangle for layout
27524
27525 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
27526
27527         * ThemeWin32Classic.cs:
27528           - Make use of the SystemBrushes and SystemPens wherever possible
27529           - Corrected some highlight colors
27530           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
27531             drawing
27532         * Theme.cs: Added Empty field to CPColor struct
27533
27534 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
27535
27536         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
27537           is displayed when calculating the display rectangle. Thanks to Mike
27538           for teaching me the err of my ways.
27539
27540 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
27541
27542         * ScrollableControl.cs:
27543           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
27544             (instead of 0,0) and we now return the real width/height instead of
27545             just the clientrectangle, adjusted for padding. The rectangle is
27546             now cached and created by the new CalculateDisplayRectangle method.
27547           - Created new CalculateDisplayRectange method, which basically does
27548             what get_DisplayRectangle() did originally, but now using the 
27549             right edge instead of DisplayRectangle to determine the size of
27550             our scrollbars
27551           - get_Canvas(): Fixed it to properly calculate canvas for 
27552             right/bottom controls which seem to be placed to the right/bottom
27553             of any controls that have a fixed location
27554           - Removed TODO that's taken care of
27555           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
27556             and SetDisplayRectLocation according to new MSDN2 docs
27557           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
27558             event when that is called, this is added for compatibility
27559           - ScrollControlIntoView(): Implemented.
27560           - Switched scrollbars to be implicit, they shouldn't be selectable
27561         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
27562           call it when the active control is set/changed
27563         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
27564         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
27565           implicit_control variable (used for native Win32 message generation)
27566         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
27567           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
27568         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
27569         * XplatUIStructs.cs: Added ScrollBarCommands enum
27570
27571 2006-04-10  Jackson Harper  <jackson@ximian.com>
27572
27573         * ButtonBase.cs:
27574         * CheckedListBox.cs:
27575         * ComboBox.cs:
27576         * DataGrid.cs:
27577         * DataGridView.cs:
27578         * Form.cs:
27579         * GroupBox.cs:
27580         * ListBox.cs:
27581         * PrintPreviewControl.cs:
27582         * ProgressBar.cs:
27583         * PropertyGrid.cs:
27584         * Splitter.cs:
27585         * StatusBar.cs:
27586         * TrackBar.cs:
27587         * UpDownBase.cs: Fixup base event overrides.
27588         
27589 2006-04-06  Mike Kestner  <mkestner@novell.com>
27590
27591         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
27592         all user-initiated value changes to min <= value <= max-thumbsz+1.
27593         (set_Value): check for vert/horiz when calculating new thumb position.
27594         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
27595         like MS does.
27596         (OnMouseMoveSB): refactor the thumb dragging code and refine
27597         invalidation logic to reduce flicker.
27598         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
27599         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
27600         (UpdateThumbPosition): small code readability cleanup
27601
27602 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
27603
27604         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
27605           different
27606
27607 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
27608
27609         * ThemeNice.cs: Use a better graphics effect when a button is pressed
27610
27611 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
27612
27613         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
27614         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
27615           This dramatically reduces the number of Pen.Dispose calls. 
27616           Where possible call ResPool methods only once instead of calling it
27617           over and over again (for example for the same color).
27618
27619 2006-04-06  Mike Kestner  <mkestner@novell.com>
27620
27621         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
27622         Also remove an unused private field on the collection. Fixes #77972.
27623
27624 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
27625
27626         * ThemeNice.cs: Added ToolBar drawing code
27627
27628 2006-04-06  Mike Kestner  <mkestner@novell.com>
27629
27630         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
27631         I'm assuming that means we need to look up the toplevel for the
27632         provided control. Fixes the crash trace in #77911 but exposes another
27633         crash in some strange reflection usage in NDocGui.
27634
27635 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
27636
27637         * ThemeNice.cs: Gave it a little silver touch and added Images
27638           method
27639         * FontDialog.cs: FontDialog is not resizable
27640         * FileDialg.cs: Added SizeGripStyle.Show
27641
27642 2006-04-05  Jackson Harper  <jackson@ximian.com>
27643
27644         * KeyboardLayouts.cs: Remove warning.
27645
27646 2006-04-05  Jackson Harper  <jackson@ximian.com>
27647
27648         * Control.cs: Enable OnPaintInternal so we can use it for drawing
27649         all of our controls instead of Paint +=.
27650         * ListBox.cs:
27651         * ListView.cs:
27652         * MenuAPI.cs:
27653         * MessageBox.cs:
27654         * NotifyIcon.cs:
27655         * ProgressBar.cs:
27656         * ScrollBar.cs:
27657         * Splitter.cs:
27658         * StatusBar.cs:
27659         * TabControl.cs:
27660         * TextBoxBase.cs:
27661         * ToolBar.cs:
27662         * TrackBar.cs:
27663         * UpDownBase.cs:
27664         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
27665         use OnPaintInternal. Remove Width/Height and Visible checks in
27666         paint handler, this is done at a higher level now.
27667         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
27668         * PaintEventArgs.cs: Add a handled flag so controls that don't
27669         want anymore painting after OnPaintInternal can make sure OnPaint
27670         isn't called.
27671
27672 2006-04-05  Mike Kestner  <mkestner@novell.com>
27673
27674         * Form.cs: fix the menu WndProc hacks to respect the native enabled
27675         state of the form, so that we don't process events when Modal dialogs
27676         are up. Fixes #77922.
27677
27678 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
27679
27680         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
27681           checking is done.
27682
27683 2006-04-05  Mike Kestner  <mkestner@novell.com>
27684
27685         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
27686
27687 2006-04-05  Mike Kestner  <mkestner@novell.com>
27688
27689         * ListView.cs (HeaderMouseMove): null guarding for the over column
27690         when setting up the drag_to_index.  Fixes #78015.
27691
27692 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
27693
27694         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
27695           in the taskbar. Transient windows seem to accomplish that.
27696
27697 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
27698
27699         * Form.cs:
27700           - Re-enabled CreateParams.X/Y code for FormStartPosition
27701           - Added code for manual placement when creating the Control
27702           - Incomplete patch to treat MDI forms differently when
27703             setting the ClientSizeCore. (Still need to figure out handling
27704             x/y coords there)
27705         * XplatUIX11.cs:
27706           - When we're explicitly setting the X/Y position of a non-Child
27707             window, let the WM know. Metacity really wants this.
27708
27709 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
27710
27711         * ThemeNice.cs: Added CPDrawButton
27712
27713 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
27714
27715         * ThemeNice.cs: Changed the color for focused buttons and activated
27716           the arrows for small scroll buttons.
27717
27718 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
27719
27720         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
27721           anymore. Changed some method modifiers to protected (virtual)
27722         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
27723           changes
27724         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
27725           Updated drawing of menus, buttons and progressbars; added
27726           CPDrawBorder3D 
27727
27728 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27729
27730         * ImageListStreamer.cs: implemented serialization/deserialization
27731         of the images.
27732
27733 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
27734
27735         * ThemeWin32Classic.cs:
27736           - Removed all the DrawFrameControl stuff; CPDrawButton,
27737             CPDrawCheckBox and CPDrawRadioButton are now handled directly
27738             inside the methods
27739           - Updated and corrected the drawing code of CPDrawButton,
27740             CPDrawCheckBox and CPDrawRadioButton to better match ms
27741           - Updated theme checkbox and radiobutton code to use the CP*
27742             methods
27743
27744 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
27745
27746         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
27747           bug is fixed
27748
27749 2006-03-31  Jackson Harper  <jackson@ximian.com>
27750
27751         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
27752         sometimes.
27753         * UpDownBase.cs: Don't CreateGraphics manually, use a
27754         Refresh. Ideally we would invalidate the correct areas here.
27755
27756 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
27757
27758         * XplatUIX11.cs: 
27759           - We now track the mapping state of windows. If a window (or 
27760             one of it's parents) is not mapped we no longer permit
27761             WM_PAINT messages to be generated since we'd otherwise get 
27762             lots of BadMatch X errors. Jackson did all the work figuring
27763             out the problem.
27764           - Destroying the caret if the window it's contained in is 
27765             destroyed. Can't use regular DestroyCaret method since it
27766             might fall into a drawing function (trying to remove the
27767             caret) and with that generate new BadMatch errors. Again,
27768             Jackson tracked this down.
27769           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
27770             make sure we send the messages to all windows. (The old code
27771             would send the WM_DESTROY to the window, and then all child
27772             windows would be 'gone' because the WM_DESTROY handle lookup
27773             would no longer find the destroyed window)
27774         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
27775         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
27776
27777 2006-03-31  Jackson Harper  <jackson@ximian.com>
27778
27779         * ScrollableControl.cs: Dont recalc if we are not visible.
27780
27781 2006-03-31  Mike Kestner  <mkestner@novell.com>
27782
27783         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
27784         the visibility branch.
27785
27786 2006-03-31  Jackson Harper  <jackson@ximian.com>
27787
27788         * ScrollBar.cs: Cap values when incrementing/decrementing.
27789
27790 2006-03-31  Mike Kestner  <mkestner@novell.com>
27791
27792         * MenuAPI.cs: setup menu.tracker for popup/context menus.
27793         * ToolTip.cs: guard against timer expirations with no active control.
27794         Not sure why it happened.
27795
27796 2006-03-31  Mike Kestner  <mkestner@novell.com>
27797
27798         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
27799         text.
27800         * ToolTip.cs: Position the tooltip based on where the cursor is at
27801         popup time, not at MouseEnter time.  Add a Down state so that we don't
27802         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
27803         positioning offset. Lookup DisplaySize at positioning time, since it
27804         can theoretically change during invocation.
27805         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
27806         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
27807
27808 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
27809
27810         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
27811           Fixes behaviour when the Text property of the box is String.Empty
27812
27813 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
27814
27815         * XplatUIX11.cs: Only send mouseleave for our client windows, not
27816           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
27817           a window)
27818
27819 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
27820
27821         * FileDialog.cs: Visual enhancement for the popup buttons in 
27822           PopupButtonPanel
27823
27824 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
27825
27826         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
27827           code
27828
27829 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
27830
27831         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
27832           highlighted menu items to match ms
27833
27834 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
27835
27836         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
27837
27838 2006-03-30  Mike Kestner  <mkestner@novell.com>
27839
27840         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
27841         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
27842         go active to account for HotLight to Selected transition.
27843         * MenuItem.cs: add internal Selected prop. Fill out the Status
27844         property by calculating it from item info. Add HotLight,
27845         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
27846
27847 2006-03-30  Mike Kestner  <mkestner@novell.com>
27848
27849         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
27850
27851 2006-03-29  Jackson Harper  <jackson@ximian.com>
27852
27853         * Form.cs: Implement TODO.
27854
27855 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
27856
27857         * PrintPreviewDialog.cs: Implemented missing methods and events; still
27858           missing proper dialog setup in the constructor
27859
27860 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
27861
27862         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
27863         * Control.cs:
27864           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
27865           - Fixed ResetBindings and removed TODO
27866           - Added check for cross-thread calls to get_Handle()
27867           - Added Marshaller attribute for set_Font to satisfy class status
27868         * FontDialog.cs: Removed TODOs that seemed implemented
27869         * UpDownBase.cs: Removed unneeded TODO and Fixme
27870         * MessageBox.cs: Implemented support for Default button and removed TODO
27871         * FileDialog.cs: Removed obsolete TODO
27872         * DomainUpDown.cs: Removed obsolete TODO
27873         * ButtonBase.cs: Removed obsolete TODO
27874         * XplatUIWin32.cs: Removed obsolete TODO
27875         * Form.cs:
27876           - Removed obsolete TODO
27877           - Calling CheckAcceptButton when the acceptbutton is changed to allow
27878             internal status updates
27879           - Making sure the active control is selected when the control is created
27880         * CurrencyManager.cs: Removed obsolete TODO
27881
27882 2006-03-29  Mike Kestner  <mkestner@novell.com>
27883
27884         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
27885         of PrintPreviewDialog and RichTextBox.
27886
27887 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
27888
27889         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
27890           DarkDark, Light and LightLight colors for a specific color
27891         * ThemeWin32Classic.cs:
27892           - Use Button drawing code to draw RadioButtons and CheckBoxes with
27893             Appearance = Button 
27894           - Make use of the new ResPool helper CPColor
27895           - Draw ProgressBar and StatusBar with correct 3D borders
27896
27897 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
27898
27899         * ColorDialog.cs: Return selected color. Fixes bug #77940.
27900
27901 2006-03-28  Mike Kestner  <mkestner@novell.com>
27902
27903         * ListView.cs: fix Icon layout to plan for scrollbar widths when
27904         calculating col/row counts.
27905
27906 2006-03-28  Mike Kestner  <mkestner@novell.com>
27907
27908         * ColumnHeader.cs:
27909         * ListView.cs:
27910         * ListViewItem.cs:
27911         * Menu.cs: 
27912         switch to explicit interface method implementation for some methods
27913         corcompare identifies as inconsistent with MS.
27914
27915 2006-03-28  Mike Kestner  <mkestner@novell.com>
27916
27917         * MainMenu.cs: 
27918         * Menu.cs:
27919         add a few missing methods from the class status output.
27920
27921 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
27922
27923         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
27924           correct.
27925
27926 2006-03-28  Mike Kestner  <mkestner@novell.com>
27927
27928         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
27929
27930 2006-03-27  Mike Kestner  <mkestner@novell.com>
27931
27932         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
27933         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
27934
27935 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
27936
27937         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
27938
27939 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27940
27941         * ThemeWin32Classic.cs:
27942           - GroupBox: Inserted a little gap between the text and the lines
27943             on the right side
27944           - Made the code in CPDrawBorder3D more readable
27945           - Corrected the drawing location of the up and down arrows in 
27946             CPDrawScrollButton
27947
27948 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27949
27950         * ControlPaint.cs: Corrected line widths in DrawBorder for
27951           ButtonBorderStyle Inset and Outset
27952
27953 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27954
27955         * ThemeWin32Classic.cs:
27956           - Rewrote the totally broken CPDrawBorder3D method. That was
27957             one of the main problems for the terrific ThemeWin32Classic
27958             look
27959           - Updated and corrected Button drawing
27960           - Correct the dimensions of the SizeGrip to match ms ones
27961           - Removed a small drawing glitch in DrawComboBoxEditDecorations
27962         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
27963           Border3DStyle.Sunken to match ms.
27964
27965 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27966
27967         * ThemeWin32Classic.cs: First small part of the "de-uglify
27968           ThemeWin32Classic" effort, SizeGrip
27969
27970 2006-03-24  Jackson Harper  <jackson@ximian.com>
27971
27972         * XplatUIX11.cs: Give a max idle time of one second, this matches
27973         MS and forces an Idle event every second when there are no other
27974         events in the queue.
27975
27976 2006-03-24  Mike Kestner  <mkestner@novell.com>
27977
27978         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
27979         * ListView.Item.cs: fix layout issues with null image lists and images
27980         smaller than checkbox size.
27981         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
27982         mode like MS does.  It's weird, but consistent.  ;-)
27983         Fixes #77890.
27984
27985 2006-03-24  Mike Kestner  <mkestner@novell.com>
27986
27987         * ListView.cs: Scroll wheel support for the item control.  Fixes
27988         #77839.
27989
27990 2006-03-23  Jackson Harper  <jackson@ximian.com>
27991
27992         * ScrollableControl.cs: Special case negative sized areas, not
27993         zero.
27994         * MonthCalendar.cs: Save the rect of the clicked date so we can
27995         use it for invalidation.
27996         - Try to cut down on the number of invalidates
27997         - Invalidate the rect the mouse is over and was over when moving
27998         the mouse, so we get the focus box following the cursor.
27999
28000 2006-03-23  Mike Kestner  <mkestner@novell.com>
28001
28002         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
28003         focus rectangle drawing. Fixes #77835.
28004
28005 2006-03-23  Mike Kestner  <mkestner@novell.com>
28006
28007         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
28008         the if and else if and reverting back to the original == check on the
28009         None conditional.
28010
28011 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
28012
28013         * FontDialog.cs: Update the example panel if the selected index of
28014           the fontListBox changes.
28015
28016 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
28017
28018         * FileDialog.cs: Make FileDialog remember which directory it was in
28019           last in the same execution.
28020
28021 2006-03-22  Mike Kestner  <mkestner@novell.com>
28022
28023         * FileDialog.cs: make the DropDownMenu on the toolbar display
28024         RadioChecks since they are mutually exclusive and that's what MS does.
28025
28026 2006-03-22  Mike Kestner  <mkestner@novell.com>
28027
28028         * Theme.cs: add Color param to CPDrawMenuGlyph.
28029         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
28030         checks and radio marks and arrows are visible on highlighted items.
28031         * ControlPaint.cs: update to use new Theme signature.
28032
28033 2006-03-22  Mike Kestner  <mkestner@novell.com>
28034
28035         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
28036         is active. Fixes #77870.
28037
28038 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
28039
28040         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
28041           to be focused/selected after startup
28042
28043 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
28044
28045         * ColorDialog.cs: 
28046           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
28047             CustomColors and ShowHelp properties
28048           - Some internal rewrites to get better results when using the
28049             ColorMatrix
28050
28051 2006-03-22  Mike Kestner  <mkestner@novell.com>
28052
28053         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
28054         HoverSelection.  Fixes #77836.
28055
28056 2006-03-22  Mike Kestner  <mkestner@novell.com>
28057
28058         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
28059         ToggleButtons.  (De)Sensitize the Back button around a stack count of
28060         1, not 0.  Update ButtonSize based on a pixel count of the win32
28061         control.  Adjust the toolbar size/location for new button size.
28062
28063 2006-03-22  Jackson Harper  <jackson@ximian.com>
28064
28065         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
28066         true.
28067         * ScrollBar.cs: When doing increments and decrements we need to
28068         set the Value property so that ValueChanged gets raised. A
28069         possible optimization here would be to make an internal SetValue
28070         that doesn't invalidate immediately.
28071         * ToolTip.cs: Tooltips get added to their container (when
28072         supplied) so they get disposed when the container is disposed.
28073         - Don't create tooltips for String.Empty. This prevents all these
28074         little 2-3 pixel windows from showing up when running nunit-gui
28075         and driving me mad.
28076         * Form.cs: Don't set topmost when setting the owner if the handles
28077         haven't been created yet.  The topmost set will happen when the
28078         handles are created.
28079
28080 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
28081
28082         * XplatUIX11.cs:
28083           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
28084           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
28085             visible (to allow them to recalculate their sizes)
28086
28087 2006-03-21  Mike Kestner  <mkestner@novell.com>
28088
28089         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
28090         methods. Removed a ton of redundant code.  Still not really happy with
28091         the border rendering, but I think that's mainly because of the
28092         ControlDarkDark being black instead of a dark grey. Depending on how 
28093         close we want to be, we might want to revisit those color choices.
28094         Among the new features added during the refactor were DropDownArrow
28095         pressed rendering, Disabled image rendering.  Proper flat appearance
28096         boundary rendering.  Removed the Divider and Wrapping dividers since I
28097         can't figure out any combination of themes and conditions to make the
28098         MS control draw a horizontal line on a toolbar despite what the
28099         Divider property docs indicate.
28100         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
28101         conditions and incorrect layout.  Updated to coding standard.
28102         * ToolBarButton.cs: refactored layout and positioning code from
28103         ToolBar to here.  Invalidate wherever possible instead of forcing
28104         redraws of the whole toolbar. 
28105         (Known remaining issues: explicit ButtonSize smaller than provided
28106         images.)
28107
28108 2006-03-21  Mike Kestner  <mkestner@novell.com>
28109
28110         * ContextMenu.cs (Show): use the position parameter instead of just
28111         showing at the MousePosition.
28112
28113 2006-03-21  Jackson Harper  <jackson@ximian.com>
28114
28115         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
28116         control handle this.
28117         * TreeNodeCollection.cs: If we are clearing the root node we need
28118         to reset top_node so calcs can still happen.
28119         * ThemeWin32Classic.cs: This is a Flags so we need to check
28120         properly.
28121         
28122 2006-03-21  Jackson Harper  <jackson@ximian.com>
28123
28124         * DataGrid.cs: Create columns when the binding context has been
28125         changed.
28126         * X11Structs.cs: Keysyms are uints.
28127         - Add size to fix build.
28128
28129 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
28130
28131         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
28132           XplatUIOSX.cs: 
28133           - Added ResetMouseHover method to allow controls to retrigger
28134             hovering if they need it more than once
28135           - Implemented MouseHoverTime and MouseHoverSize properties
28136         * Timer.cs: Start() must reset the interval
28137         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
28138           properties
28139
28140 2006-03-21  Jackson Harper  <jackson@ximian.com>
28141
28142         * X11Keyboard.cs: improved layout detection. Move the nonchar
28143         tables into this file.
28144         * KeyboardLayouts.cs: Move the tables into resource files.
28145
28146 2006-03-21  Mike Kestner  <mkestner@novell.com>
28147
28148         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
28149
28150 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
28151
28152         * Mime.cs: Various speed optimizations. Looking up mime types
28153           is now 2 times faster than before
28154
28155 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
28156
28157         * CreateParams.cs: Added internal menu field
28158         * Control.cs: 
28159           - Switched call order for UpdateBounds; now we always call
28160             the one that also takes ClientSize, and we're calculating the 
28161             client size via driver method in the others. The previous
28162             method of tracking client size by difference wasn't working
28163             for forms where even the starting client size wouldn't match
28164             the overall form size (due to borders) (Part of fix for #77729)
28165           - CreateParams(): Do not use parent.Handle unless the handle is
28166             already created. Causes havoc with Nexxia and throws off our
28167             creation of controls
28168         * XplatUIX11.cs:
28169           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
28170           - Switched handling of ConfigureNotify over to new PerformNCCalc 
28171             method (consolidates code)
28172           - Changed RequestNCRecalc to use new PerformNCCalc method
28173           - Added calls to RequestNCRecalc when menus and borders are changed
28174             to allow app to set NC size. (Part of fix for #77729) This matches
28175             when MS send a WM_NCRECALC on Win32 windows.
28176           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
28177             (Part of fix for #77729). This matches what MS does, they also
28178             send that message when the form is made visible.
28179           - XException.GetMessage: Improved usability of X errors by including
28180             a translation of the window into Hwnd and Control class
28181           - Improved debug info for window creation, reparenting and destruction
28182           - Created helper method WindowIsMapped() [Currently not used]
28183         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
28184         * Form.cs:
28185           - CreateParams: Now setting our menu on the new internal menu field
28186           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
28187             avoid calculating the same property twice
28188         * Hwnd.cs:
28189           - Improved usability of ToString() for debugging purposes
28190           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
28191             determine the height of the menu, instead of just the font. This
28192             required to also create a graphics context and to keep a bmp 
28193             around (for performance reasons)
28194
28195 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
28196
28197         * MenuAPI.cs: Added OnMouseUp method
28198         * Form.cs:
28199           - Now remembering the requested client size, avoids size errors
28200           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
28201             instead of base if the menu is active. This is required due to
28202             control now capturing and releasing on down/up and it would
28203             prematurely release our menu capture
28204
28205 2006-03-17  Jackson Harper  <jackson@ximian.com>
28206
28207         * KeyboardLayouts.cs: Add the czech layouts.
28208
28209 2006-03-16  Jackson Harper  <jackson@ximian.com>
28210
28211         * Control.cs: Use the viewport space when sizing not the controls
28212         client size, so things like ScrollableControl that effect the
28213         viewport size (when scrollbars are added) are computed correctly.
28214         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
28215         of ManagerEntrys.
28216         - Handle creating BindingManagers for null data sources.
28217         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
28218         source, otherwise when rows are added they are added to the 'fake'
28219         datasource and we will crash when trying to set the position in
28220         those rows.
28221         - Use Implicit scrollbars on the datagrid so they arent
28222         selectable.
28223         
28224 2006-03-16  Jackson Harper  <jackson@ximian.com>
28225
28226         * Binding.cs:
28227         * InternalWindowManager.cs:
28228         * MdiWindowManager.cs:
28229         * X11Keyboard.cs: I really want Mike to love me again (fix
28230         compiler warnings).
28231
28232 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
28233
28234         * DataGrid.cs:
28235           - OnMouseDown: Switch to editing mode when clicking on the cell
28236                          even if we're clicking on the cell that's currently 
28237                          selected
28238           - ProcessGridKey: Left/Right now wrap like MS.Net does
28239           - ProcessGridKey: Tab now knows to add a new row when tab is
28240                             pressed in the cell of the last column of the 
28241                             last row
28242           - ProcessGridKey: Enter now adds another row  if pressed in the last
28243                             row and selectes the new row, same column cell
28244           - ProcessGridKey: Home/End navigate columns, not rows, like 
28245                             originally implemented
28246           - Broke ProcessKeyPreview code out into an extra Internal method
28247             so it can be called from the edit code
28248         * DataGridTextBox.cs (ProcessKeyMessage):
28249           - Switched to accept Tab keypresses
28250           - Added F2 handling to allow jumping to the end of the edited cell
28251           - Added logic to allow moving caret left/right inside edited cell
28252             and making the edited cell jump when the caret hits cell borders
28253           - Tab and Enter are now passed to the datagrid after being handled
28254         * TextBoxBase.cs:
28255           - Removed capture code now that Control handles it
28256           - set_SelectionStart now ensures caret is visible
28257
28258 2006-03-16  Jackson Harper  <jackson@ximian.com>
28259
28260         * TrackBar.cs: Debackwards the increment/decrement for handling
28261         mouse clicks on the bar with vertical trackbars.
28262         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
28263         bottom to match MS.
28264
28265 2006-03-16  Mike Kestner  <mkestner@novell.com>
28266
28267         * ListView.cs: make shift/ctrl keyboard and mouse selection 
28268         consistent with the MS control. Fix a bug in
28269         SelectedListViewItemCollection.Clear that was pissing me off for the
28270         better part of a day because the collection was being altered
28271         underneath us as we walked the list.
28272
28273 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
28274
28275         * Control.cs: Not sure how we could miss this so long, but it seems
28276           that MS.Net has Capture set all the way from before calling 
28277           OnMouseDown through sending the mouse events until after
28278           OnMouseUp. This will fix DataGrid's selection being set to end
28279           at the location of the MouseUp.
28280
28281 2006-03-15  Jackson Harper  <jackson@ximian.com>
28282
28283         * BindingContext.cs: Check the binding after its added so that it
28284           can initialize the binding managers and hookup to events.
28285         * Binding.cs: Data members seem to sometimes include rows/cols in
28286           the format Row.Column we now take this into account.
28287           - Hookup to the position changed event so we can update the
28288           control when the position has changed in the data set.
28289         * CurrencyManager.cs: Take into account the row/col naming
28290           convention when creating dataset tables.
28291         * BindingContext.cs: Using a newer better way of storing
28292           datasource/datamember pairs.  Hopefully this better matches MS for
28293           looking up binding managers.
28294
28295
28296 2006-03-15  Jackson Harper  <jackson@ximian.com>
28297
28298         * BindingContext.cs: The currency manager needs the data member
28299         name, if the member is a data set we use the name to find the
28300         correct table.
28301         * CurrencyManager.cs: When creating the list prefer an IList over
28302         an IListSource.
28303         - Attempt to create a DataTable from a DataSet (TODO: might need
28304         some better error checking here, although MS doesn't seem to have much)
28305         - If we have a DataTable create a view and use it as our list.
28306
28307 2006-03-15  Mike Kestner  <mkestner@novell.com>
28308
28309         * ListView.cs: keep a matrix of the icon mode layout to facilitate
28310         keyboard navigation. Support Up/Down/Left/Right selection correctly
28311         for all 4 View modes.
28312         * ListViewItem.cs: add internal row/col fields for icon layouts.
28313
28314 2006-03-15  Jackson Harper  <jackson@ximian.com>
28315
28316         * TabControl.cs: Redraw the tabs when we resize so their newly
28317         calculated sizes are drawn on screen.
28318         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
28319         composite characters.
28320         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
28321         - filter events so that composite characters can be created
28322         patches by peter
28323         * X11Structs.cs: Add XIMProperties enum.
28324
28325 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
28326
28327         * Control.cs (BringToFront, SendToBack): Don't use window or handle
28328           unless it's created
28329
28330 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
28331
28332         * Control.cs (PerformLayout): We don't need to consider visiblity
28333           for anchoring, only for docking. This fixes 'whacky' alignment
28334           in listbox and other controls that use implicit scrollbars after
28335           the previous PerformLayout patch
28336         * ListBox.cs: Switched to use implicit scrollbars
28337           
28338 2006-03-14  Mike Kestner  <mkestner@novell.com>
28339
28340         * ToolBar.cs: 
28341         * VScrollBar.cs:
28342         - chain up the "new event" overrides to base and use
28343         OnEvent to raise them.  Part of fix for bug #76509.
28344
28345 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
28346
28347         * FileDialog.cs: Do not select an item in the parent directory
28348           on backspace
28349
28350 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
28351
28352         * Control.cs (PerformLayout): It would seem that we considered
28353           invisible windows for our layout. Not quite the right thing
28354           to do. Now we don't any longer, thereby fixing bug #76889.
28355
28356 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
28357
28358         * Control.cs (CanFocus): I goofed. A control can have focus 
28359           even though it's not selectable. Made it match MS docs.
28360
28361 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
28362
28363         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
28364           center by default (fixes #76895)
28365         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
28366           all uses of Border3DSides.All with the explicit ORd together
28367           Left|Right|Top|Bottom because I assume that nobody was aware 
28368           that All also implies a center fill. Most places I checked had
28369           a fill right above.
28370         * ProgressBarStyle.cs: Added
28371
28372 2006-03-13  Mike Kestner  <mkestner@novell.com>
28373
28374         * ListView.cs: fix breakage in drag shadow header positioning 
28375         from Peter's csc compilation fix.
28376
28377 2006-03-13  Mike Kestner  <mkestner@novell.com>
28378
28379         * ListView.cs: fix NRE produced by backspacing twice in a focused
28380         FileDialog.
28381
28382 2006-03-13  Mike Kestner  <mkestner@novell.com>
28383
28384         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
28385
28386 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
28387
28388         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
28389           be changed
28390         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
28391           the allowed size before making programmatic size changes
28392
28393 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
28394
28395         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
28396           set, metacity is broken and will still use the emty sizes in 
28397           the struct. (Fix for #77089)
28398
28399 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
28400
28401         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
28402           WindowExStyles and marked both enums as Flags
28403         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
28404           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
28405           to match WindowStyles split
28406         * XplatUIX11.cs:
28407           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
28408           - Updated to match WindowStyles split
28409         * XplatUIWin32.cs:
28410           - Fixed FosterParent creation, was using ExStyle on the Style field
28411             (This should help with Popup focus issues)
28412           - Updated to match WindowStyles split
28413
28414 2006-03-13  Jackson Harper  <jackson@ximian.com>
28415
28416         * MdiWindowManager.cs: Use the system menu height. Fixes some
28417         strange sizing issues.
28418
28419 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
28420
28421         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
28422         * TextBoxBase.cs:
28423           - Scroll to caret after inserting text (#77672)
28424           - Make scroll range one pixel higher, fixes off-by-one error (and
28425             makes underlines visible on the last line)
28426
28427 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
28428
28429         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
28430           the keyboard state from being stuck with keys in 'pressed' state when
28431           focus is switched away via keyboard
28432         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
28433           reset the keyboard if no X11 KeyUp events are expected to come
28434         * X11Structs.cs: Switched type of Visible to bool to match driver
28435
28436 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
28437
28438         * TextControl.cs:
28439           - Switched caret to be just 1 pixel wide, matches MS and looks less
28440             clunky
28441           - Moved caret display 1 pixel down from the top of the control
28442             to improve view
28443           - InsertCharAtCharet: Update the selection start if moving the caret
28444             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
28445           - No longer always creating the caret when the caret methods are
28446             called. Only the actual ShowCaret/HideCaret will do that now
28447           - Only setting caret visible if the owner control has focus
28448           - UpdateView: Added invalidation-shortcut logic for center and right 
28449             aligned text. Previously we'd update all according to the left
28450             logic which caused drawing errors. Also fixed height of invalidated
28451             areas, now properly invalidating the whole area (was off-by-one)
28452           - owner_HandleCreated: Always generate the document when the
28453             handle is created; this ensures that 
28454         * TextBoxBase.cs:
28455           - Fixed situation where caret would disappear under the right
28456             window border, also improved scrolling behaviour on left-
28457             aligned textboxes
28458           - Fixed right-aligned textboxes to have a border to the
28459             right instead of the caret being under the right border
28460         * XplatUIX11.cs:
28461           - Switched from 'nested' to simple visible/not visible tracking 
28462             for caret (part of fix for #77671)
28463           - No longer passing through translated FocusIn/FocusOut messages
28464             since we were notifying too often and the wrong windows. Instead
28465             we just notify our focussed window of receiving or loosing focus
28466         * XplatUIWin32.cs: Switched from 'nested' show/hide 
28467           counting for caret to simple visible yes/no behaviour (part of 
28468           fix for #77671)
28469
28470 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
28471
28472         * Mime.cs: Remove debug code...
28473
28474 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
28475
28476         * MimeGenerated.cs: Removed
28477         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
28478           and subclasses) from /usr/(local/)share/mime and
28479           $HOME/.local/share/mime.
28480
28481 2006-03-10  Jackson Harper  <jackson@ximian.com>
28482
28483         * MdiWindowManager.cs: Recalc the NC area when a window is
28484         maximized/restored so that the menu area is drawn on forms that
28485         don't have a menu.
28486
28487 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28488
28489         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
28490           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
28491           us to force a WM_NCCALCRESIZE message being sent. This is needed
28492           for MDI maximizing.
28493
28494 2006-03-10  Jackson Harper  <jackson@ximian.com>
28495
28496         * Form.cs: We need to use the ActiveMenu when calculating menu
28497         height.
28498         - Fix nullref when the window manager hasn't been created yet.
28499         * Control.cs: Fix nullref when we try to bring a control to the
28500         front that has no parent.
28501         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
28502         height.
28503         - Add a dummy item to the maximized menu so it always has the
28504         correct height. Otherwise when there are no menus we don't get our
28505         icon and buttons.
28506         
28507
28508 2006-03-10  Jackson Harper  <jackson@ximian.com>
28509
28510         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
28511         stuff.
28512         * Form.cs: Make the window_state internal so the window managers
28513         can track it.
28514         - When an MDI child is maximized let its window manager create the
28515         main menu (so it can add its icon).
28516         - Notify the window managers of state changes
28517         - Let the window manager paint its buttons and handle button
28518         clicks on the menu when it is maximized.
28519         * InternalWindowManager.cs: Move the prev_bounds into the mdi
28520         window manager, since tool windows don't use it, only mdi windows.
28521         - Tell the main form that we don't want it to handle NCPAINT
28522         itself to avoid extra painting.
28523         - Handle clicks on a maximized windows menu.
28524         - Handle window state changes
28525         - Handle minimize/maximize clicks correctly by setting the window state.
28526         * MdiWindowManager.cs: Add an icon menu that (the menu you get
28527         when clicking on the forms icon).
28528         - New method to create a forms maximized menu. This is its normal
28529         menu + an icon.
28530         - Handle window state changes.
28531         - Handle sizing of maximized windows.  Maximized windows are just
28532         drawn bigger then the parent visible area. All controls are still
28533         there, they are just outside the visible area (this matches windows).
28534         * MdiClient.cs: No scrollbars when a child window is maximized.
28535         - Let the children windows figure out how big they should be when
28536         sizing maximized windows.
28537         - Implement a version of ArrangeIconicWindows somewhat similar to
28538         Windows version.  There are some little differences, but I don't
28539         think any app will rely on the layout of minimized mdi windows.
28540
28541 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28542
28543         * Padding.cs: Several fixes to allow compiling with csc 2.0
28544
28545 2006-03-09  Jackson Harper  <jackson@ximian.com>
28546
28547         * Menu.cs:
28548         * MenuItem.cs: Cheap hack so we can add items to the list without
28549         the events being raised.  This allows adding mdi items during
28550         drawing. TODO: Should probably find a better time to add the items.
28551
28552 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28553
28554         * ThemeWin32Classic.cs:
28555           - CheckBox_DrawText: Added logic to not wrap if not enough space
28556             is available (Fix for bug #77727)
28557           - RadioButton_DrawText: Added logic not to wrap if not enough
28558             space is available (Fix for bug #77727). Also removed some
28559             duplicate code, DrawString always drawing the regular text
28560             before hitting the if statement.
28561
28562 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
28563
28564         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
28565
28566 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28567
28568         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
28569         * ContainerControl.cs: Partial implementation of some 2.0 scaling
28570           methods. Moved the new 2.0 properties into alphabetical order with
28571           other properties and added MonoTODO tags
28572
28573 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
28574
28575         * AutoScaleMode.cs: Added. Fix build.
28576
28577 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
28578
28579         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
28580           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
28581           and was requiring premature handle creation for calls from above
28582         * Form.cs, Control.cs: Removed handle arguments from calls to
28583           CalculateClientRect()
28584
28585 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
28586
28587         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
28588           drag_column.column_rect is MarshalByRef and can't be used that way
28589
28590 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
28591
28592         * AxHost.cs: Added deserialization constructor for 
28593           AxHost+State (fixes 77743)
28594
28595 2006-03-09  Mike Kestner  <mkestner@novell.com>
28596
28597         * ListView.cs: 
28598         - Added column drag reordering for details view.
28599         - fixed behavior when mouse is dragged off column and
28600         AllowColumnReorder is false.
28601         * ColumnHeader.cs: clone the format too in Clone.
28602         * Theme.cs: add DrawListViewHeaderDragDetails method.
28603         * ThemeWin32Classic.cs:
28604         - impl new method for drawing drag column shadows and targets.
28605         - support column offset for details mode in DrawListViewItem.
28606
28607 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
28608
28609         * TextControl.cs: Reset the char_count when the document is cleared
28610           (Fixes bug reported on mono-winforms mailing list)
28611
28612 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
28613
28614         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
28615           of calling base we simply process the key ourselves, since both
28616           DefWindowProc and the handled method would set m.Result. 
28617           (Fixes #77732)
28618
28619 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
28620
28621         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
28622           method also moves the window; instead implemented a copy of
28623           Control.ScaleCore (Part of fix for #77456)
28624         * TextBoxBase.cs: 
28625           - Created new CreateGraphicsInternal method to allow providing
28626             a graphics context when no handle is created without triggering
28627             handle creation. (Part of fix for #77456)
28628           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
28629         * TextControl.cs: 
28630           - Switched Constructor to require TextBoxBase instead of Control (to
28631             allow uncast access to CreateGraphicsInternal)
28632           - Safeguarded use of owner.Handle property. No longer accessing it
28633             unless the handle is already created.
28634           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
28635           - Now triggering a recalc when owning control becomes visible
28636         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
28637           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
28638           premature handle creation (Part of fix for #77456)
28639         * Control.cs:
28640           - We now only destroy our double-buffering buffers when the
28641             control is resized or disposed, but not when visibility
28642             changes. (The code even re-created them twice every time)
28643           - Now requiring a redraw of the buffer on visibility changes
28644             (fixes bug 77654 part 2)
28645           - Not passing OnParentVisibleChanged up unless the control
28646             is visible
28647           - CanFocus: Fixed to match MS documentation
28648           - Focus: Fixed to return actual focus state and to check if
28649             setting focus is legal before setting it
28650
28651 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
28652
28653         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
28654           when to draw focus rectangle by looking at parent focus and
28655           selected state instead. This fixes TabPages on Linux sometimes
28656           having none or multiple focus rectangles.
28657         * XplatUIX11.cs (SetFocus): 
28658           - Don't set the focus if the same window already has focus
28659           - Use SendMessage instead of PostMessage (like it's Win32
28660             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
28661             to match MS behaviour
28662         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
28663           are not selectable.
28664
28665 2006-03-07  Jackson Harper  <jackson@ximian.com>
28666
28667         * PictureBox.cs: Revert line I accidently committed last week.
28668
28669 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
28670
28671         * Control.cs: 
28672           - Added new IsRecreating and ParentIsRecreating properties to
28673             allow testing if RecreateHandle has been called on ourselves
28674             or one of our parents
28675           - WndProc(WM_DESTROY): If our control handle is being recreated
28676             we immediately need to create the handle when receiving the
28677             destroy, that way our child windows find a valid parent handle
28678             when they themselves are being recreated upon WM_DESTROY receipt
28679             (fix for bug #77654 part 1)
28680         * XplatUIX11.cs:
28681           - DestroyWindow: WM_DESTROY must be sent to our own window before
28682             notifying any child windows. MS documents that child windows
28683             are still valid when WM_DESTROY is received. (Control now relies on
28684             this behaviour)
28685           - Added some fine-grain debug options
28686
28687 2006-03-06  Jackson Harper  <jackson@ximian.com>
28688
28689         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
28690         box and base calculations off this.
28691         * MdiChildContext.cs:
28692         * MdiWindowManager.cs: Don't need to ensure scrollbars here
28693         anymore.
28694         
28695 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
28696
28697         * Splitter.cs: In situations where the affected control is added
28698           to the parent's control list after the splitter, we would not
28699           populate affected. Now we try populating it on mousedown, if
28700           it's not already set, and force it to be re-set whenever our
28701           parent changes.
28702
28703 2006-03-03  Matt Hargett  <matt@use.net>
28704
28705         * Control.cs: implement Control.Padding
28706         * Padding.cs: -Padding.All returns -1 when constructing with the
28707         implicit default ctor
28708         -Padding.ToString() matches MS.NET
28709         * ContainerControl.cs: implement
28710         ContainerControl.AutoScaleDimensions
28711         * ListControl.cs: implement ListControl.FormattingEnabled
28712         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
28713         * ButtonBase.cs:
28714         * TabPage.cs: Implement UseVisualStyleBackColor.
28715         * PictureBox.cs: Implement PictureBox.InitialImage.
28716
28717 2006-03-03  Mike Kestner  <mkestner@novell.com>
28718
28719         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
28720         event declarations to proxy to base event.
28721         * ListViewItem.cs: update to use ItemControl.
28722         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
28723         * ThemeWin32Classic.cs: update to new ListView theme API and fix
28724         column header label rendering for 0 width columns.
28725
28726 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
28727
28728         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
28729           that causes the control to be created. Fixes #77476.
28730
28731 2006-03-02  Jackson Harper  <jackson@ximian.com>
28732
28733         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
28734         expose_pending.
28735
28736 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
28737
28738         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
28739           passed in for the EventArgs (fixes #77690)
28740
28741 2006-03-01  Jackson Harper  <jackson@ximian.com>
28742
28743         * ScrollBar.cs: Refresh afterbeing resized.
28744
28745 2006-02-28  Mike Kestner  <mkestner@novell.com>
28746
28747         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
28748         Clean up a tracker compile warning.
28749         * MenuItem.cs: add internal PerformPopup method.
28750         [Fixes #77457]
28751
28752 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
28753
28754         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
28755           implicit expose) when the text is set to null
28756
28757 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
28758
28759         * RichTextBox.cs (FlushText): When newline is true, we always
28760           need to split the line, even if no text is on it and we may
28761           never eat newlines. (Fixes #77669)
28762
28763 2006-02-28  Mike Kestner  <mkestner@novell.com>
28764
28765         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
28766         and set Selected instead.
28767         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
28768         collections.
28769
28770 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
28771
28772         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
28773
28774 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
28775
28776         * FontDialog.cs:
28777           - Got rid of the panel. All controls are now directly added to
28778             the dialog form
28779           - It is now possible to set a font with the Font property
28780           - MinSize and MaxSize property do now what they should
28781           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
28782           - Searching and selecting a font with the font textbox works now,
28783             the same applies to the style and size textbox
28784           - Draw the correct 3D border in the example panel
28785           - Fixed a little mem leak (unused fonts didn't get disposed)
28786           - Many other internal updates/rewrites...
28787           - Fix typo
28788
28789 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
28790
28791         * TextControl.cs: 
28792           - InsertRTFFromStream: Added 'number of characters inserted' argument
28793           - set_SelectedRTF: Now using the number of characters to calculate
28794             the new location for the selection and cursor (x/y cannot be used
28795             due to potentially already wrapped text)
28796
28797 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
28798
28799         * TextControl.cs: Added property and implemented means to allow 
28800           disabling recalculation of a document (can be used to speed up
28801           multiple inserts and is needed to make RTF inserts predictable, see
28802           bug #77659)
28803         * RichTextBox.cs: Using the new NoRecalc property of Document to
28804           keep x/y insert locations predictable. Also makes it faster inserting
28805           large chunks of RTF
28806
28807 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
28808
28809         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
28810           it's easier for a child control to handle the other messages without
28811           having to duplicate the special functionality
28812         * TextBoxBase.cs
28813           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
28814             code to handle processing the key ourselves, in order to get 
28815             access to the result of KeyEventArgs.Handled. We now only call 
28816             ProcessKey if they key hasn't been handled already. Fixes #77526.
28817           - set_Text: If null or empty string is given, just clear the 
28818             document. Fixes part of #77526
28819
28820 2006-02-27  Jackson Harper  <jackson@ximian.com>
28821
28822         * SizeGrip.cs: Paint the background color before painting the grip
28823         so things look right.
28824         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
28825
28826 2006-02-27  Mike Kestner  <mkestner@novell.com>
28827
28828         * ListView.cs:
28829           - Restructure layout and invalidation model to remove a ton of
28830           flicker from the control and speed up performance in general.
28831           - Add manual column resize, flickers like crazy, but I already have
28832           some ideas on how I'll fix that. (#76822)
28833           - Merge the three Icon-based views into a single layout method.
28834           - Move item selection interaction logic from the item since 
28835           interaction with the collections is more appropriate to the view.
28836           - Deselection on non-item clicks.
28837         * ListViewItem.cs:
28838           - Encapsulate most of the layout. Add some internal props to trigger
28839           layout.  Move to a model where Items invalidate themselves instead
28840           of just invalidating the whole control every time something changes.
28841           - Invalidate on Text/Caption changes.
28842           - switch to an offset based layout model to avoid having to absolute
28843           position every element on item moves.
28844           - correct checkbox layout to conform to MS layout.
28845         * ThemeWin32Classic.cs:
28846           - refactor some column header drawing code.
28847           - fix string justification for column headers (#76821)
28848           - make SmallIcon labels top justified for compat with MS impl.
28849         * ThemeClearlooks.cs:
28850           - adjust to new ListViewItem internal checkbox bounds api.
28851
28852 2006-02-27  Jackson Harper  <jackson@ximian.com>
28853
28854         * Control.cs:  Change where implicit controls fall in the zorder.
28855         They are now on top of all children.
28856         - Synced AddImplicit code with Add
28857         - Removed unused enumerator.
28858         * SizeGrip.cs: Remove the TODO as its been TODONE.
28859
28860 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
28861
28862         * TextControl.cs(Insert): Combine the last lines unless the insertion
28863           string ends with \n\n, otherwise we leave one line too many (Fixes
28864           something I noticed with the testapp for #77526; the bug itself was
28865           already fixed in the previous checkin)
28866
28867 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
28868
28869         * RichTextBox.cs:
28870           - SelectionColor and SelectionFont methods no longer set absolute
28871             styles. Instead, the keep font or color respectively (This 
28872             resolves a long-standing FIXME in the code)
28873           - When flushing RTF text, the insert code now considers text trailing
28874             behind the insertion point (Fixes the bug where when replacing
28875             the selected text via SelectedRTF the remainder of the line behind 
28876             the selection would stay on the first insertion line)
28877         * TextBoxBase.cs:
28878           - AppendText now updates the selection points after inserting text
28879           - AppendText now ensures that the last tag (sometimes 0-length) of
28880             the document is used for the style information (Fixes part of 
28881             bug #77220)
28882         * TextControl.cs:
28883           - Created new FontDefiniton class to allow describing partial style
28884             changes
28885           - StreamLine() now takes a lines argument, to allow it to decide
28886             whether an encountered zero-length tag is the last in the document
28887             (which must be kept to not loose the font/color contained in it,
28888             for later appends)
28889           - Created Combine() and Split() methods for Marker structs, to 
28890             support marker updates due to reformatted documents (soft line
28891             wraps)
28892           - Implemented Document.CaretTag setter
28893           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
28894             of the last line (Not the cause, but also exposed by bug #77220)
28895           - Added LineTag argument to InsertString method, to allow callers
28896             to force a certain tag to be used (required to force use of the
28897             trailing zero-length tag of a document)
28898           - Now updating markers in Combine(), to avoid stale tag markers
28899           - Added some method descriptions to aid maintenance
28900           - Implemented new FormatText concept, allowing additive/subtractive
28901             formatting by only specifying the components that are to be 
28902             changed. This was needed for resolving the RTB.SelectedColor/
28903             RTB.SelectedFont fixmes
28904           - Added Break() support method to allow breaking up linetags (used
28905             for partial formatting)
28906           - Added GenerateTextFormat() method. It is used for partial 
28907             formatting and allows to generate a full font/color from given
28908             attributes and an existing tag.
28909
28910 2006-02-26  Jackson Harper  <jackson@ximian.com>
28911
28912         * XplatUIX11.cs:  Use the correct caption height.
28913         - Translate hittest coordinates to screen coords to match MS.
28914         * XplatUIWin32.cs: When we create MDI windows we need to reset
28915         some of the style flags, so we get a nice blank window, and can
28916         draw all the decorations ourselves.
28917         - Set a clipping rectangle on the non client paint event, the
28918         window manager drawing code needs one.
28919         * Form.cs: The window manager needs to know when the window state
28920         has been updated.
28921         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
28922         don't need to factor in border and title sizes in these
28923         methods. TODO: Remove the args and fix the call points.
28924         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
28925         properly.
28926         - Let the driver set the cursors.
28927         - Improve active window handling
28928         - Correct sizes for title bars and buttons.
28929         - Match MS drawing better
28930         * MdiWindowManager.cs: We don't need to handle border style
28931         updates specially anymore.
28932         - Check for scrollbars when windows are done moving
28933         - Handle Active properly.
28934         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
28935         correctly. I am spewing the exception though, so we don't hide the
28936         bugs.
28937         
28938 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
28939
28940         * DataGridViewRowPostPaintEventArgs.cs,
28941           DataGridViewCellPaintingEventArgs.cs,
28942           DataGridViewRowCollection.cs,
28943           DataGridViewRowPrePaintEventArgs.cs,
28944           DataGridViewCell.cs: Clear a few warnings and implement a few
28945           exceptions that should be thrown.
28946
28947 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
28948
28949         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
28950           'inheriting' our parent's (non-default) cursor. (Part of
28951            the fix for #77479)
28952
28953 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
28954
28955         * XplatUIX11.cs: Fixed cast to make csc happy
28956
28957 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
28958
28959         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
28960           it's for the client area (part of fix for #77479 and needed
28961           for MDI window cursor handling)
28962         * XplatUIX11.cs
28963           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
28964             the appropriate default cursors and also passing the message
28965             up the parent chain 
28966           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
28967             for non-client areas
28968
28969 2006-02-15  Jackson Harper  <jackson@ximian.com>
28970
28971         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
28972         is a real MDI window
28973
28974 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
28975
28976         * X11DesktopColors.cs: Instead of checking the desktop session
28977           string for "KDE" check if it starts with "KDE"
28978
28979 2006-02-10  Jackson Harper  <jackson@ximian.com>
28980
28981         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
28982         systems).
28983
28984 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
28985
28986         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
28987           errors
28988         * ColorDialog.cs:
28989           - Got rid of the panel. All controls are now directly added to
28990             the dialog form
28991           - Changed to mono coding style
28992
28993 2006-02-10  Jackson Harper  <jackson@ximian.com>
28994
28995         * InternalWindowManager.cs: We don't need the set visibility to
28996         false hack anymore now that peter has written beautiful shutdown
28997         code.
28998
28999 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
29000
29001         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
29002           where already explicitly destroyed
29003
29004 2006-02-10  Jackson Harper  <jackson@ximian.com>
29005
29006         * MdiClient.cs: Handle the case where windows are too high or to
29007         the left and we need scrollbars.
29008
29009 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
29010
29011         * MimeIcon.cs: Added some icons
29012         * FileDialog.cs:
29013           - Fixed bug #77477
29014           - Got rid of the panel. All controls are now directly added to
29015             the dialog form
29016           - Changed to mono coding style
29017           - On Linux "My Computer" and "My Network" will now show some
29018             more usefull information. A new class, MasterMount, gathers
29019             this information from /proc/mount. Updated MWFFileView to make
29020             use of this information
29021           - Fixed a bug that caused FileDialog to crash when
29022             ".recently_used" file had a zero size
29023           - FilterIndex does now what it should
29024           - Some Refactoring
29025         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
29026             FileDialog changes
29027
29028 2006-02-09  Jackson Harper  <jackson@ximian.com>
29029
29030         * ComboBox.cs: Don't touch if null.
29031
29032 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
29033
29034         * Cursor.cs: 64bit safeness fix
29035         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
29036
29037 2006-02-09  Jackson Harper  <jackson@ximian.com>
29038
29039         * Form.cs: If a form is made into an MDI form update the styles so
29040         all the props can get set correctly.
29041         - Kill the mdi_container when we dont need it anymore.
29042         * InternalWindowManager.cs: Add missing NOT
29043
29044 2006-02-08  Jackson Harper  <jackson@ximian.com>
29045
29046         * InternalWindowManager.cs: Respek clipping when drawing MDi
29047         decorations.
29048
29049 2006-02-08  Jackson Harper  <jackson@ximian.com>
29050
29051         * Hwnd.cs: Add bits to track non client expose events.
29052         * XplatUIX11.cs: Track non client expose events on the hwnd. This
29053         gives us a proper invalid rect and will allow for some nice
29054         optimizations with NC client drawing
29055         - MDI windows are children windows, so move their style handling
29056         into the child window block.
29057         * InternalWindowManager.cs: Remove a state reset that was
29058         getting invoked at the wrong time. Fixes managed windows getting
29059         into a 'stuck' captured state.
29060
29061 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
29062
29063         * TextControl.cs (Document.ctor): Now initializing 
29064           selection_anchor. Fixes #77493
29065
29066 2006-02-07  Jackson Harper  <jackson@ximian.com>
29067
29068         * TrackBar.cs: The increment/decrements were backwards.
29069
29070 2006-02-07  Mike Kestner  <mkestner@novell.com>
29071
29072         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
29073         to the instance itself.
29074
29075 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
29076
29077         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
29078           on ulongs and pointers, the size differs between 32bit and 64bit
29079           systems. 
29080
29081 2006-02-07  Mike Kestner  <mkestner@novell.com>
29082
29083         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
29084         for 64 bit platforms to work around a metacity bug. 
29085
29086 2006-02-07  Jackson Harper  <jackson@ximian.com>
29087
29088         * TrackBar.cs: Process the input keys we need, and hookup to
29089         KeyDown instead of using WndProc, so we get key messages.
29090
29091 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
29092
29093         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
29094           machine we're on. 
29095         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
29096           we need to translate the XdndVersion atoms array before sending it
29097
29098 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
29099
29100         * XplatUIX11.cs: 
29101           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
29102             number of bits for the property, not the number of bytes. The
29103             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
29104             but would not crash since it specified 8 bits instead of 4 bits)
29105           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
29106             defined as XID -> long in the C headers)
29107           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
29108             references since those are now IntPtr to begin with
29109           - Switched all Atom.XXX 'int' casts to IntPtr casts
29110           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
29111           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
29112           - Added XChangeActivePointerGrab DllImport (for X11DnD)
29113         * X11Structs.cs:
29114           - Changed 'int' type for Atoms in XEvent structures to IntPtr
29115           - Changed atom in HoverStruct to be IntPtr
29116         * X11DnD.cs:
29117           - Removed local DllImports, switched code to use those from XplatUIX11
29118           - Removed/fixed casts related to the switch of Atom to be a IntPtr
29119
29120 2006-02-06  Mike Kestner  <mkestner@novell.com>
29121
29122         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
29123         method signatures in the import region.  There may still be some
29124         lingering struct marshaling issues, as I didn't drill down into those.
29125         Yet.
29126
29127 2006-02-06  Jackson Harper  <jackson@ximian.com>
29128
29129         * ComboBox.cs: Dont manually set the top_item, this is computed
29130         when the scrollbar position is set.
29131
29132 2006-02-06  Mike Kestner  <mkestner@novell.com>
29133
29134         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
29135         startup crashes on amd64.  There's other fixes needed.  All pinvoke
29136         usage of Atom needs to be mapped to IntPtr for example.  And there are
29137         likely other int/long issues to be addressed.
29138
29139 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
29140
29141         * FileDialog.cs: One more...
29142
29143 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
29144
29145         * FileDialog.cs: Next try
29146
29147 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
29148
29149         * FileDialog.cs: First part of fix for #77464
29150
29151 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
29152
29153         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
29154           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
29155           AcceptButton border drawing.
29156
29157 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
29158
29159         * Form.cs: Moved positioning of form after auto scaling is applied,
29160           otherwise it would possibly use wrong form size.
29161
29162 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
29163
29164         * Control.cs (RecreateHandle): No need to re-create any child
29165           controls, the child windows will get destroyed automatically by
29166           the windowing system or driver, and re-created when the handle
29167           is being accessed the first time. Fixes #77456
29168         * Form.cs: No longer setting the form to closing if the handle is 
29169           being recreated. This seems like the right thing to do, don't
29170           have a bug or testcase for this, though.
29171
29172 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
29173
29174         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
29175           controls to avoid unwanted side effects
29176
29177 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
29178
29179         * Control.cs: 
29180           - ScaleCore needs to scale the bounds, not the ClientSize of the 
29181             control. Fixes #77416.
29182           - DefaultSize is 0,0 for control
29183         * TextBoxBase.cs: 
29184           - DefaultSize is 100, 20
29185           - SetBoundsCore: Now enforcing the height, no matter if the provided
29186             height is more or less than the preferred one, as long as AutoSize
29187             is on
29188         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
29189
29190 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
29191
29192         * Control.cs:
29193           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
29194             call unless both performLayout is true *and* we have a pending
29195             layout change
29196           - ResumeLayout: MS does not completely nest Suspend and Resume,
29197             they bottom out at 0, fixed our code to match that.
29198           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
29199             SetBoundsCore, we were updating even when we shouldn't. This fixes
29200             swf-anchors mis-anchoring when resizing the app fast and lots.
29201           - UpdateDistances: Now only setting the left and top distance if 
29202             we have a parent and are not suspended, this is based on
29203             a suggestion by Don Edvaldson in bug #77355.
29204           - OnVisibleChanged: Fixed logic when to create the control. We may
29205             not create the control if we have no parent or if it's not visible;
29206             switched to using Visible property instead of is_visible field 
29207             since the property also considers parent states. This fixes a bug
29208             when starting Paint.Net
29209
29210 2006-02-02  Jackson Harper  <jackson@ximian.com>
29211
29212         * Form.cs: If the forms handle hasn't been created yet don't call
29213         into xplatui to make it top most, just set the topmost flag on the
29214         form in CreateParams
29215         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
29216
29217 2006-02-01  Jackson Harper  <jackson@ximian.com>
29218
29219         * ScrollableControl.cs: Refactored the Recalculate method a
29220         little, this wasn't handling all the variants of bottom and right
29221         bars needed to be added and added/removed based on their
29222         counterparts being added/removed (which changes the drawable
29223         size). Also we special case client widths and heights of 0 and
29224         don't add the scrollbar for those.
29225
29226 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
29227
29228         * XplatUIX11.cs: 
29229           - Added method to get AbsoluteGeometry(); currently unused, but might
29230             be used in the future, if we try again to figure out toplevel
29231             coordinates with some more crappy window managers
29232           - Added FrameExtents() method to retrieve the WM set decoration size
29233           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
29234             to deal with at least KDE, FVWM and metacity (Fixes #77092)
29235         * Hwnd.cs: 
29236           - Added whacky_wm tracking var for metacity
29237           - Added logic to have default menu height if the actual menu height
29238             has not yet been calculated (part of fix for #77426)
29239         * Form.cs: Keep track whether client size has been set and re-set 
29240           it if a menu is added/removed afterwards (Fixes #77426)
29241
29242 2006-01-31  Jackson Harper  <jackson@ximian.com>
29243
29244         * Control.cs: When a new Site is set on the component attempt to
29245         pull the AmbientProperties from it.
29246
29247 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
29248
29249         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
29250           in the background of the owning form. Fixes #77332
29251
29252 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
29253
29254         * MimeIcon.cs: Fix for #77409
29255
29256 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
29257
29258         * XplatUIX11GTK.cs: Initial import
29259
29260 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
29261
29262         * FixedSizeTextBox: fixes class signature
29263
29264 2006-01-30  Jackson Harper  <jackson@ximian.com>
29265
29266         * FixedSizeTextBox.cs: New internal class that represents a
29267         textBox that will not be scaled.
29268         * TreeView.cs:
29269         * ComboBox.cs:
29270         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
29271         standard TextBox.
29272                 
29273 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
29274
29275         * XplatUIX11.cs: Retrieve default screen number instead of
29276           assuming 0. Attempted fix for #77318
29277
29278 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
29279
29280         * XplatUIWin32.cs: 
29281           - GetWindowPos: When a window is parented by FosterParent, use 
29282             the desktop instead of FosterParent as the base to get coordinates
29283           - CreateWindow: Don't make FosterParent the parent window for Popups
29284             if we don't want a taskbar entry, Popups automatically don't get one
29285         * Hwnd.cs: Need to call remove to actually remove the key from the
29286           hash table
29287
29288 2006-01-30  Mike Kestner  <mkestner@novell.com>
29289
29290         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
29291
29292 2006-01-30  Jackson Harper  <jackson@ximian.com>
29293
29294         * TreeView.cs:
29295         * TreeNode.cs: Raise events no matter how the treenode is
29296         checked. Patch by Don Edvalson.
29297
29298 2006-01-30  Jackson Harper  <jackson@ximian.com>
29299
29300         * TreeNode.cs: Signature fix.
29301
29302 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
29303
29304         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
29305
29306 2006-01-20  Mike Kestner  <mkestner@novell.com>
29307
29308         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
29309         event forwarding when menus are active.
29310         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
29311         Most of the patch is pdb's with a little rework.
29312
29313 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
29314
29315         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
29316           Removed GetMenuDC and ReleaseMenuDC methods; replaced
29317           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
29318         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
29319         * InternalWindowManager.cs: Added use of PaintEventStart/End to
29320           handling of WM_NCPAINT message, now passing the PaintEventArgs to
29321           the PaintWindowDecorations method
29322         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
29323         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
29324         * MenuAPI.cs: Made tracker window invisible
29325         * XplatUIWin32.cs:
29326           - Removed GetMenuDC and ReleaseMenuDC methods
29327           - Implemented the client=false path for PaintEventStart and
29328             PaintEventEnd
29329
29330 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
29331
29332         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
29333         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
29334           styles
29335         * Form.cs: 
29336           - MaximizeBox, MinimizeBox: Recreate the handle when setting
29337             the style
29338           - CreateParams: Reworked the styles to match MS look'n'feel,
29339             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
29340             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
29341
29342 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
29343
29344         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
29345           window is not mapped, since otherwise every form that's being 
29346           created is considered minimized, which is wrong.
29347         * Form.cs: Catching the exception and returning our internal value
29348           instead
29349
29350 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
29351
29352         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
29353           SetWindowMinMax() to have means to tell the driver about the minimum,
29354           maximum and maximized state window sizes. (Part of the fix for #76485)
29355         * Form.cs:
29356           - Implemented tracking of minimum and maximum window size, now calling
29357             new SetWindowMinMax() driver method to tell the driver (Part of the
29358             fix for #76485)
29359           - Finished handling of WM_GETMINMAXINFO method, now setting all values
29360             (Completes fix for #76485)
29361           - Calling new SetWindowMinMax driver method when the handle for a 
29362             form is created, to make sure the driver knows about it even if
29363             the values have been set before the window was created
29364           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
29365             to avoid messing up our anchoring calculations (partial fix
29366             for #77355)
29367         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
29368         * XplatUIX11.cs:
29369           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
29370           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
29371             (and presumably other freedesktop.org compliant WMs). Left the
29372             assumption unmapped=minimized, needed for SetVisible to work.
29373           - Now setting the window state when creating windows
29374           - Fixed SetVisible to consider/set the window state when mapping
29375             a Form. We cannot set the state before it's mapped, and we cannot
29376             use Form.WindowState once it's mapped (since it would ask the
29377             driver and get 'normal'. Therefore, we grab the state before
29378             mapping, map, and then set state.
29379           - Implmemented SetWindowMinMax method; Metacity does not seem to
29380             honor the ZoomHints, though.
29381         * XplatUIWin32.cs:
29382           - Removed MINMAXINFO (moved to XplatUIStructs)
29383           - Added SetWindowMinMax stub (on Win32 the only way to set that
29384             information is in response to the WM_GETMINMAXINFO message, which
29385             is handled in Form.cs)
29386           - Added logic to SetVisible to set the proper window state when a 
29387             form is made visible (fixes #75720)
29388
29389 2006-01-26  Jackson Harper  <jackson@ximian.com>
29390
29391         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
29392         same way we handle them with Invoke.
29393
29394 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
29395
29396         * Form.cs:
29397           - Added tracking of window state so CreateParams can return
29398             the appropriate style
29399           - Moved setting of WS_CAPTION style in CreateParams to allow
29400             styles without caption
29401         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
29402           control if the TextBox property is accessed. Fixes #77345
29403         * Control.cs:
29404           - get_Created: now uses is_disposed and is_created to determine
29405             return value (suggested by Jackson)
29406           - CreateHandle: No longer exits if the handle is being recreated
29407           - RecreateHandle: If the handle is not yet created call the 
29408             appropriate method to create either control or handle. If the
29409             control is already created CreateHandle will simply exit instead
29410             of just creating the handle
29411         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
29412           now SendMessage WM_DESTROY directly to the control when DestroyWindow
29413           is called.
29414         * XplatUIX11.cs: 
29415           - When DestroyWindow is called, instead of waiting for the 
29416             DestroyNotification from X11, we directly post it to the WndProc
29417             and immediately dispose the hwnd object.
29418             Same applies to DestroyChildWindows, and this obsoletes the
29419             expose_pending tracking. Contrary to Win32 behaviour we destroy our
29420             child windows before our own, to avoid X11 errors.
29421           - Removed the direct sending of WM_PAINT on UpdateWindow
29422         * XplatUIWin32.cs:
29423           - Reworked DoEvents and GetMessage to allow access to internal queue
29424             even when trying non-blocking access to the queue.  Fixes #77335. 
29425             Based on a patch suggestion by Don Edvalson. The new private
29426             GetMessage can now also be used as a backend for a PeekMessage
29427             frontend version.
29428         * XplatUI.cs: Improved debug output for CreateWindow
29429
29430 2006-01-25  Jackson Harper  <jackson@ximian.com>
29431
29432         * Help.cs: Allow param to be null. Patch by Don Edvalson.
29433
29434 2006-01-24  Jackson Harper  <jackson@ximian.com>
29435
29436         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
29437         when we have a MaxDropItems lower then the selected index.
29438
29439 2006-01-24  Jackson Harper  <jackson@ximian.com>
29440
29441         * Control.cs: Don't allow selection of non visible controls, allow
29442         selection of controls without parents.
29443
29444 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
29445
29446         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
29447         * DataGridDrawingLogic.cs: Add editing row only when is necessary
29448
29449 2006-01-23  Jackson Harper  <jackson@ximian.com>
29450
29451         * UpDownBase.cs: Make the textbox handle all the selection and
29452         tabbing. This fixes tabing to updown controls.
29453
29454 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
29455
29456         * TextBoxBase.cs: fixes exception thown the object was null
29457
29458 2006-01-23  Jackson Harper  <jackson@ximian.com>
29459
29460         * ButtonBase.cs: Just use the base CreateParams. They set
29461         visibility and enabled correctly.
29462         * ComboBox.cs:
29463         * TrackBar.cs:
29464         * MonthCalendar.cs: Lets let the base set as much of the
29465         createparams as possible so we don't have duplicate code all over
29466         the place.
29467
29468 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
29469
29470         * ThemeGtk.cs: Added TrackBar and some experimental code to
29471           get double buffering back
29472
29473 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
29474
29475         * DataGrid.cs: Allows row number set internally higher than the last
29476         when creating a new row. Restores the editing functionality.
29477
29478 2006-01-20  Mike Kestner  <mkestner@novell.com>
29479
29480         * MimeIcon.cs: delay Image creation until the icons are accessed
29481         instead of creating 190 scaled images on GnomeHandler startup.
29482
29483 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
29484
29485         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
29486           first call base before processing the event. Fixes #77279
29487
29488 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
29489
29490         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
29491           that the stride for the GDI bitmap would match the stride of
29492           a DIB or a Cursor.
29493
29494 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
29495
29496         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
29497
29498 2006-01-19  Jackson Harper  <jackson@ximian.com>
29499
29500         * ComboBox.cs: Hookup the text controls keydown event so we get
29501         those when the text control has the focus.
29502
29503 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
29504
29505         * Label.cs: Now using the base events instead of defining new ones;
29506           this allows us to just call the base properties without having to
29507           duplicate all base property logic 
29508
29509 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
29510
29511         * Label.cs: A label by default is not a tabstop (Fixes one of our
29512           failing nunit tests)
29513
29514 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
29515
29516         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
29517         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
29518
29519 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
29520
29521         * Cursor.cs: Reimplemented creating cursor bitmaps without using
29522           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
29523           This fixes #77218
29524         * XplatUIWin32.cs: 
29525           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
29526             constructor creates images that can't be saved. Part of the fix
29527             for #76103
29528           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
29529           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
29530             bug fix for handling window state in forms properly)
29531
29532 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29533
29534         * ThemeGtk.cs: Simplify ScrollBar drawing
29535
29536 2006-01-18  Jackson Harper  <jackson@ximian.com>
29537
29538         * Splitter.cs: Set the default dock style for the splitter control
29539         in the constructor.
29540
29541 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29542
29543         * ThemeGtk.cs: Corrected StateType and ShadowType for
29544           gtk_paint_box
29545
29546 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29547
29548         * Control.cs: Make use of Theme.DoubleBufferingSupported
29549         * ThemeGtk.cs:
29550           - Added drawing for flat style buttons
29551           - Added ScrollBar drawing
29552
29553 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29554
29555         * ThemeClearlooks.cs: Removed some unneeded code.
29556         * ThemeGtk.cs: First part of ThemeGtk enhancements.
29557
29558 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
29559
29560         * LinkLabel.cs: We need to update the hover drawing when
29561           leaving the control as well.
29562
29563 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
29564
29565         * DataGrid.cs: Clicking on non empty areas in the columns
29566            area was giving an exception
29567
29568 2006-01-17  Jackson Harper  <jackson@ximian.com>
29569
29570         * ThemeWin32Classic.cs:
29571         * ListView.cs: Do not draw/clip the headers when the header style
29572         is None.
29573
29574 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
29575
29576         * DataGrid.cs: Fixes 77260
29577         
29578 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
29579
29580         * DataGrid.cs: Clicking on a column on a empty grid was giving
29581           an exception
29582
29583 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
29584
29585         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
29586           or any keypress will crash the grid.
29587
29588 2006-01-17  Mike Kestner  <mkestner@novell.com>
29589
29590         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
29591         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
29592         invisible/previously-visible items.
29593         [Fixes #76909]
29594
29595 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
29596
29597         * ThemeClearlooks.cs:
29598         - Added CL_Draw_Button method; now other theme controls that are 
29599           not derived from button or do not have a button can draw buttons
29600           too
29601         - Updated ComboBox drawing
29602         - Beautified RadioButton drawing
29603         - Corrected drawing of bottom and left tabs
29604         - Beautified DateTimePicker and MonthCalendar
29605         - Added CPDrawButton and CPDrawRadioButton
29606
29607 2006-01-16  Jackson Harper  <jackson@ximian.com>
29608
29609         * ComboBox.cs: Set the initial value of the scrollbar to the
29610         current index. Reduce the numbers of refreshs and IndexOfs called.
29611
29612 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
29613
29614         * FileDialog.cs: When the file listview is focused hitting the
29615           backspace key moves the fileview to the parent directory
29616
29617 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
29618
29619         * Form.cs: 
29620           - Added RecreateHandle call when changing taskbar visibility to 
29621             trigger reparenting in Win32 driver (Fixes #75719)
29622           - If a window has minimize or maximize buttons, it cannot have
29623             a help button
29624         * XplatUIWin32.cs:
29625           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
29626             the toplevel form with FosterParent (A toolwindow not on the
29627             taskbar) (Fixes #75719)
29628           - Made FosterParent a toolwindow
29629
29630 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
29631
29632         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
29633
29634 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
29635
29636         * ToolTip.cs: If SetToolTip is called from a control and the mouse
29637           is currently over that control, make sure that tooltip_window.Text
29638           gets updated
29639
29640 2006-01-13  Mike Kestner  <mkestner@novell.com>
29641
29642         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
29643
29644 2006-01-13  Jackson Harper  <jackson@ximian.com>
29645
29646         * TreeView.cs: On MS GetNodeAt never actually factors in the X
29647         value passed.  Also redraw the selected node when we recieve
29648         focus, so tabbing between trees works correctly.
29649
29650 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
29651
29652         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
29653           ~/.gconf/%gconf-tree.xml, so use
29654           .gconf/desktop/gnome/interface/%gconf.xml
29655
29656 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
29657
29658         * TextControl.cs: Draw text in gray if control is disabled
29659
29660 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
29661
29662         * TreeView.cs: Draw the focus rectangle outside the highlight, to
29663           make sure it's always visible. Fixes #76680.
29664
29665 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
29666
29667         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
29668
29669 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
29670
29671         * PageSetupDialog.cs: Added.
29672         * PrintDialog.cs: Attributes.
29673         * PrintPreviewControl.cs: Updates.
29674         * PrintPreviewDialog.cs: Updates.
29675         
29676 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29677
29678         * Control.cs: Undid my selection check fix, since it's not needed
29679         * TextBoxBase.cs:
29680           - Now considering the presence of hscroll/vscroll when sizing
29681             vscroll/hscroll respectively. Fixed bug #77077
29682           - Added Left/Up/Down/Right to IsInputKey list to prevent
29683             ContainerControl from stealing them. This fixes what I broke
29684             with my last checkin.
29685
29686 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
29687
29688         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
29689           I finally understand how the property can be set without a setter :-)
29690
29691 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29692
29693         * Application.cs:
29694           - Switched RunLoop to use static Message.Create to create a 
29695             Message object
29696           - Added PreProcessMessage call in runloop for keyboard events; this
29697             is part of the fix for #77219, I overlooked this originally in the
29698             MSDN doc for PreProcessMessage
29699         * Control.cs:
29700           - Removed call to PreProcessMessage from handling of keyboard 
29701             messages; it's supposed to be done in the message pump
29702           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
29703             per MSDN documentation.
29704           - IsInputChar: All chars are input chars by default; removed the 
29705             parent calling chain, MS does not document that
29706           - PreProcessMessage: If IsInputChar is true, we want to return false
29707             to allow dispatching of the message
29708           - When selecting the next control, now also check that we're not
29709             selecting ourselves again and therefore return a false positive.
29710         * TextBoxBase.cs:
29711           - Tried to match return values for IsInputKey and ProcessDialogKey
29712             to what MS returns; moved processing of our special keys outside
29713             ProcessDialogKey since MS does not seem to return true on those.
29714           - Moved code that previously was in ProcessDialogKey into new private
29715             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
29716           - Reworked handling of WM_CHAR to not have to duplicate code from
29717             Control.cs anymore, instead we simply call down to base.
29718            
29719 2006-01-12  Jackson Harper  <jackson@ximian.com>
29720
29721         * ComboBox.cs: We always need to refresh the text area when
29722         EndUpdate is called. Fixes the combobox in the file dialog.
29723         * Control.cs: Don't create the creator_thread until the controls
29724         handle is created.  Also in InvokeRequired we check if the
29725         creator_thread is null. This gives the effect of InvokeRequired
29726         returning true if the controls handle is not created yet, and
29727         matches MS.
29728
29729 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29730
29731         * XplatUI.cs:
29732           - Added StartLoop() driver method. This is used to allow drivers to
29733             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
29734             loop for a particular thread
29735           - Added EndLoop() driver method. This is called once the message
29736             pump for the thread is shut down
29737           - Added SupportsTransparency method to allow the driver to indicate
29738             opacity support for windows
29739         * Form.cs:
29740           - Removed TODO attribute, completed AllowTransparency property
29741           - Added documented logic to Opacity
29742         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
29743           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
29744           versions of CompatibleTextRendering
29745         * X11Structs.cs: Added opacity atom to our atom enumeration
29746         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
29747           of a form might be set before it's reparented by the WM, and we need
29748           the opacity value without calling up to Form)
29749         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
29750           SupportsTransparency() driver methods
29751         * Application.cs: Now calling StartLoop and EndLoop driver methods
29752         * XplatUIX11.cs:
29753           - Added opacity atom registration
29754           - Added StartLoop()/EndLoop() methods. They're empty right now but
29755             will need to get implemented when we switch to a per-thread queue
29756           - Implemented SupportsTransparency() method
29757           - Implemented SetWindowTransparency() method
29758           - Added support for setting the opacity value when a window is
29759             reparented (since the opacity needs to be set on the WM frame)
29760         * XplatUIOSX.cs, XplatUIWin32.cs:
29761           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
29762
29763 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
29764
29765         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
29766
29767 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
29768
29769         * FileDialog.cs: Added ToolTip for MWFFileView
29770         * MimeIcon.cs: Rewrote GnomeHandler.
29771           - Get currently used gnome icon theme from
29772             ($HOME)/.gconf/%gconf-tree.xml
29773           - Make use of inherited icon themes
29774           - Support SVG icon themes like Tango via librsvg
29775
29776 2006-01-12  Miguel de Icaza  <miguel@novell.com>
29777
29778         Revert's Jackson's revert which broke 2.0 builds.   Fix both
29779         builds. 
29780         
29781         * Application.cs: Move the use_compatible_text_rendering outside
29782         the NET_2_0 define.  If we ever need to use the
29783         use_compatible_text_rendering on the individual controls they will
29784         access the variable from the common shared code paths.
29785
29786 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29787
29788         * XplatUI.cs:
29789           - Added more granular debug options
29790           - Added method to print both window text and id
29791           - Switched debug output to use new Window() debug method
29792           - Added IsEnabled() driver method
29793           - Added EnableWindow() driver method
29794         * Form.cs:
29795           - Removed end_modal; no longer needed, new loop handles termination
29796             via 'closing' variable
29797           - If form is modal, setting DialogResult will now initiate loop
29798             termination via 'closing' variable
29799           - Added support for is_enabled/WS_DISABLED to CreateParams
29800           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
29801             does all the work
29802           - Removed code that's now in RunLoop from ShowDialog()
29803           - Added various documented sanity checks to ShowDialog()
29804           - Added handling of WM_DESTROY message; we set 'closing' on getting
29805             the message to indicate the message pump to terminate
29806           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
29807             send by the Application.ExitThread method. (We send the message
29808             to destroy the window after all other events have been
29809             processed through the queue, instead of destroying the handle 
29810             directly)
29811           - Moved code from Close() method to WM_CLOSE handler; added logic
29812             to only send close-related events if the form is not displayed
29813             modal
29814         * Splitter.cs (..ctor): Fixed typo in resource name
29815         * Control.cs:
29816           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
29817             brush now
29818           - set_Cursor: Now only setting calling into XplatUI if the handle for
29819             the control is already created; this avoids implict handle creation
29820             or crashes if it's not created
29821           - set_Enabled: Now setting the enabled state via the new driver method
29822             instead of just tracking it
29823           - CreateParams: Added logic to set WS_DISABLED based on enabled state
29824           - CreateControl: Reordered event firing and method calls to more
29825             closely fire events in the order MS does. Now setting the
29826             enabled state in the driver when creating the control.
29827           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
29828             match MS order
29829         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
29830           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
29831         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
29832         * Hwnd.cs:
29833           - Added tracking of window enabled state (get_Enabled/set_Enabled)
29834           - Added EnabledHwnd property to easily allow a driver to find the
29835             handle of the first enabled window in the parent chain (this is
29836             used by drivers to pass up input events of disabled windows)
29837         * XplatUIDriver.cs: Added IsEnabled() method
29838         * Application.cs:
29839           - Removed crude and obsolete exiting tracking variable
29840           - Removed internal ModalRun(); replaced by RunLoop()
29841           - Implemented private CloseForms() method to allow closing all 
29842             windows owned by a particular (or all) threads
29843           - Exit() now properly closes all windows without forcing the message
29844             pump to quit
29845           - Removed obsolete InternalExit() method
29846           - Changed Run() methods to use new RunLoop() message pump
29847           - Implemented new RunLoop() method for both modal and non-modal forms
29848         * CommonDialog.cs:
29849           - get_CreateParams: Added setting of WS_DISABLED
29850           - Simplified ShowDialog(); now all the work is done in RunLoop(),
29851             invoked via Form.ShowDialog()
29852         * NativeWindow.cs: We don't remove the window from the collection when
29853           the handle is destroyed; there might still be messages for it in the
29854           queue (mainly the resulting WM_DESTROY); instead it will be removed
29855           when Control calls InvalidateHandle in the WM_DESTROY handler
29856         * XplatUIX11.cs:
29857           - CreateWindow: Added logic to handle the WS_DISABLED window style
29858           - EnableWindow: Implemented based on Hwnd.Enabled
29859           - GetMessage: Reset PostQuitState so the method can be called again
29860           - Implemented support for disabled windows (passing messages to the
29861             first enabled parent) in handling all input messages
29862           - Added optimizations for handling Expose events
29863           - Implemeted new driver method IsEnabled()
29864           - Now always resetting paint pending tracking vars when we start paint
29865           - Re-implemented UpdateWindow via just sending a WM_PAINT message
29866         * XplatUIOSX.cs: Added IsEnabled method stub
29867         * XplatUIWin32.cs: Implemented new IsEnabled() method
29868
29869 2006-01-11  Jackson Harper  <jackson@ximian.com>
29870
29871         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
29872         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
29873         variables a little.
29874         * ColorDialog.cs: Clear out the old form before adding the new
29875         panel.  
29876
29877 2006-01-11  Jackson Harper  <jackson@ximian.com>
29878
29879         * X11Dnd.cs: Make sure to add all the text formats when adding
29880         strings to the data object.
29881         * TreeNodeCollection.cs: When adding to a sorted tree we need to
29882         do some redrawing too.  Also change the UpdateNode to an
29883         UpdateBelow so the newly added node gets painted.
29884         
29885 2006-01-11  Miguel de Icaza  <miguel@novell.com>
29886
29887         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
29888         LinkLabel.cs, PropertyGrid.cs: Implement the
29889         UseCompatibleTextRendering property for 2.x
29890
29891         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
29892
29893 2006-01-11  Jackson Harper  <jackson@ximian.com>
29894
29895         * TreeView.cs: Use the property for setting the selected node so
29896         the correct events get raised.
29897         * TreeNode.cs: Update the tree when the fore/back colours of a
29898         node are set.
29899
29900 2006-01-10  Jackson Harper  <jackson@ximian.com>
29901
29902         * TreeView.cs: Allow setting SelectedNode to null.
29903
29904 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29905
29906         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
29907
29908 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29909
29910         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
29911
29912 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29913
29914         * PrintDialog.cs: Added attributes and set default property values.
29915
29916 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29917
29918         * PrintControllerWithStatusDialog.cs: 
29919         Added PrintControllerWithStatusDialog.
29920
29921 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29922
29923         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
29924         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
29925
29926 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29927
29928         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
29929
29930 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
29931
29932         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
29933         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
29934
29935 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
29936
29937         * MimeIcon.cs: Added internal class SVGUtil.
29938
29939 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
29940
29941         * FileDialog.cs: Don't crash if there are two files with the
29942           same name but different locations.
29943
29944 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
29945
29946         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
29947         dates across multiple month grids. Used to not highlight entire 
29948         month, but does now.
29949         
29950 2006-01-06  Jackson Harper  <jackson@ximian.com>
29951
29952         * MonthCalendar.cs: Removed DoEvents call to prevent a running
29953         message loop. Change timer intervals to numbers that seem more
29954         natural.
29955
29956 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
29957
29958         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
29959           object for location info since screen object is now implemented.
29960
29961 2006-01-05  Jackson Harper  <jackson@ximian.com>
29962
29963         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
29964         * AsyncMethodResult.cs: We no longer use a WeakReference for the
29965         AsyncMethodResult, this is because we ALWAYS want the
29966         ManualResetEvent to get set.
29967         * Control.cs: When disposing use an async invoke to call shutdown
29968         code, so that thigns don't block on the finalizer thread.  Also
29969         check if we even have a message loop before trying to send
29970         messages, if we don't then don't bother sending messages.
29971         - No more weak references for async methods
29972         * XplatUIDriver.cs: No more weak references for async methods.
29973
29974 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
29975
29976         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
29977           returns two FontFamily with the same name
29978
29979 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
29980
29981         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
29982           drawing disabled text. Instead using the ColorGrayText color
29983
29984 2006-01-04  Jackson Harper  <jackson@ximian.com>
29985
29986         * TreeNode.cs: redraw the node when its image index is changed.
29987
29988 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
29989
29990         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
29991           time I checked there are no others like it.
29992
29993 2006-01-04  Jackson Harper  <jackson@ximian.com>
29994
29995         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
29996         this gives the behavoir I was looking for.
29997         * Control.cs: Special case Invoking EventHandlers, this matches MS
29998         and fixes part of bug #76326.
29999
30000 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
30001
30002         * ThemeClearlooks.cs, FileDialog.cs:
30003           - Reflect the latest Theme class changes
30004           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
30005             with DateTime
30006             
30007 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
30008
30009         * Theme.cs: Cache UI resource images and resize them if needed
30010
30011 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
30012
30013         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
30014           is called. This fixes the crash in Nexxia when setting the font
30015           attributes in the chat. [However, RTF needs a look-over to make sure
30016           that all SelectionXXX methods handle the special case that selection
30017           is empty and therefore the change must be applied to all text starting
30018           at the cursor/selection start]
30019
30020 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
30021
30022         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
30023           XplatUIOSX.cs: Added SendMessage and PostMessage methods
30024         * X11Keyboard.cs: Switched to new way of calling PostMessage
30025
30026 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
30027
30028         * Theme.cs: Added theme interface for images to allow the theme to
30029           control what images are used for things like FileDialog, MessageBox
30030           icons, etc.
30031         * MessageBox.cs: Now uses the new Theme icon/image interfaces
30032
30033 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
30034
30035         * FileDialog.cs:
30036           - Removed some dead code
30037           - Opening a recently used file does work now
30038           - Small UI enhancements
30039           - Refactoring
30040
30041 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
30042
30043         * FileDialog.cs: Forgot too add __MonoCS__
30044
30045 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
30046
30047         * FileDialog.cs: We are able to read recently used files now let's
30048           go on and write them.
30049
30050 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
30051
30052         * FileDialog.cs: Breathe some life into "last open"/"recently used"
30053           button
30054         * MimeIcon.cs: Do a check for the top level media type also
30055
30056 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
30057
30058         * ThemeClearlooks.cs:
30059           - Added CPDrawStringDisabled
30060           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
30061             some chars if the text doesn't fit into text_rect
30062           - DrawListViewItem: If View = View.LargeIcon center the image;
30063             rewrote the drawing of ListViewItem.Text if View = 
30064             View.LargeIcon
30065
30066 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
30067
30068         * MimeIcon.cs: Use default KDE icon theme if there is no
30069           "48x48" directory for the current icon theme, fixes #77114
30070         * Mime.cs: Disable not working and actually not used code. 
30071         * ThemeWin32Classic.cs:
30072           - Replace "new SolidBrush" in GetControlBackBrush and
30073             GetControlForeBrush with ResPool.GetSolidBrush
30074           - Changed DrawListViewItem from private to protected virtual
30075         * FileDialog.cs:
30076           - Added form.MaximizeBox = true
30077           - Don't throw an exception if there is a broken symbolic link
30078
30079 2005-12-23  Jackson Harper  <jackson@ximian.com>
30080
30081         * TabControl.cs: Give the panels focus, keyboard navigation is
30082         fixed so this works correctly now.
30083         - We need these key events also.
30084         * ToolBar.cs: Remove some of the poor mans double buffering.
30085         
30086 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
30087
30088         * ComboBox.cs: The internal TextBox now returns the focus.
30089
30090 2005-12-23  Jackson Harper  <jackson@ximian.com>
30091
30092         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
30093
30094 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
30095
30096         * Control.cs: Removed debug code
30097         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
30098           implicit children
30099
30100 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
30101
30102         * Control.cs: When creating the control, update the Z-order after
30103           all it's children are created, too. (Fixes nexxia not showing
30104           picturebox bug)
30105
30106 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
30107
30108         * Control.cs: Do not update the anchoring distances if layout is
30109           suspended, instead do it once layout is resumed
30110
30111 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
30112
30113         * Control.cs: 
30114           - After many hours of debugging, for both Jackson and
30115             myself, it turns out that it helps to set the parent of a control
30116             if you want to actually see it onscreen. In the spirit of that
30117             discovery, we're now setting the parent of the control and
30118             it's children when the control's handle is created. This fix
30119             will make Lutz Roeder's Reflector run happily. 
30120           - now just creating the handle instead of the whole control when
30121             getting a graphics context for the control.
30122
30123 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
30124
30125         * ScrollableControl.cs: When calculating the canvas, don't consider
30126           the scrollbar widths. Instead, predict if horizontal scrollbar
30127           will affect canvas when deciding on vertical display and vice versa.
30128
30129 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
30130
30131         * RichTextBox.cs: Set default RTF font for documents that don't
30132           have a font table (Fixes #77076)
30133
30134 2005-12-22  Jackson Harper  <jackson@ximian.com>
30135
30136         * TextBoxBase.cs: It's difficult to do, but you can have an empty
30137         clipboard. This prevents a NullRef in that case.
30138         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
30139         clipboard. PRIMARY is for the currently selected text only. (We
30140         should implement PRIMARY at some point.
30141
30142 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
30143
30144         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
30145           a Unicode function with a structure that was defined in Ansi way.
30146           This fixes #76942.
30147
30148 2005-12-21  Jackson Harper  <jackson@ximian.com>
30149
30150         * StatusBar.cs: Statusbar handles its fore/back colours on it's
30151         on. Because thats how it rolls. (and this avoids it using ambient
30152         colours).
30153         * ThemeWin32Classic.cs: Use the proper back color for filling.
30154         * Menu.cs: Use the system menu bar color for drawing menu
30155         bars. Using the window back color will bring ambient colours into
30156         the picture.
30157
30158 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
30159
30160         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
30161           Bitmaps were created and not disposed.
30162
30163 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
30164
30165         * Control.cs (CreateControl): Don't do anything if the control is
30166           already created, otherwise we'd fire the OnCreated event more than
30167           once
30168
30169 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
30170
30171         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
30172           will always match. Instead return -1. Fixes #76464.
30173
30174 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
30175
30176         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
30177           neither the beginning nor the end of the line (Fixes bug #76479)
30178
30179 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
30180
30181         * Control.cs:
30182           - ControlNativeWindow.ControlFromHandle(): Now handling situation
30183             where handle is invalid
30184           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
30185             instead of slower linear search
30186         * NativeWindow.cs: Don't remove the window from the hashtable until
30187           after the driver has destroyed it (since the driver might use
30188           Control.FromHandle to lookup the control object
30189         * Hwnd.cs: Added DestroyPending property to track if a window is 
30190           already destroyed as far as the driver is concerned and only hasn't
30191           yet notified the control
30192         * XplatUIX11.cs:
30193           - Activate(): Check if the window is still valid before using the 
30194             handle
30195           - Implemented DestroyChildWindow() method to mark child windows as
30196             destroyed when a window is destroyed. This prevents situations 
30197             where we might call an X method based on queued events for a
30198             window that already has been destroyed but we haven't yet pulled
30199             the destroy method from the queue.
30200           - Added a call to the new DestroyChildWindow() method to the drivers
30201             DestroyWindow code. Also now marking the destroyed window itself
30202             as pending
30203
30204 2005-12-20  Jackson Harper  <jackson@ximian.com>
30205
30206         * StatusBar.cs:
30207         * StatusBarPanel.cs: Don't calculate panel sizes on draw
30208         anymore. Just do them when needed, also track the rects of panels
30209         so that we can optimize refreshing more in the future.
30210
30211 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
30212
30213         * ColorDialog.cs: Fixed focus drawing in small color controls
30214
30215 2005-12-19  Jackson Harper  <jackson@ximian.com>
30216
30217         * InternalWindowManager.cs:
30218         * MdiWindowManager.cs: Cleanup some coordinate system changes so
30219         moving windows works properly.
30220
30221 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
30222
30223         * Control.cs: 
30224           - Removed call to InitLayout() from SetBoundsCore(); doc says
30225             it's only called when a control is added to a container
30226           - Split InitLayout logic, moved to separate UpdateDistances() method
30227             since we need to perform those calculations more often than just
30228             when adding the control to a container. (Needed to fix #77022)
30229           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
30230           - Reduced the OnBindingContextChanged events count, don't send them
30231             unless the control is created, we still aren't totally matching
30232             MS, but I can't quite figure out some of their rules
30233
30234 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
30235
30236         * ThemeClearlooks.cs: Corrected distance between ProgressBar
30237           stripes
30238
30239 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
30240
30241         * ThemeClearlooks.cs:
30242           - Updated ProgressBar drawing
30243           - Corrected drawing of ScrollBars and scroll buttons
30244           - Some temporary fixes for minor pixel artefacts
30245
30246 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
30247
30248         * Control.cs:
30249           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
30250             cause events to be sent in the same order as MS does.
30251           - Added ChangeParent() method to trigger various OnXXXChanged events
30252             that need to be fired when a parent changes (This is a reworking
30253             of the patch from r54254, with the X11 errors fixed)
30254           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
30255             since on MS we get OnLayoutChanged events when calling Clear()
30256           - Changed Enabled property to consider parent state as well, if a
30257             parent is not enabled, the control will not be either
30258           - Changed Parent property to simply call Controls.Add() since that
30259             now does all the work required, this way we avoid code duplication
30260           - Threw in a few OnBindingsContextChanged calls to try and match
30261             when MS sends them. We seem to send a few too many, though.
30262           - Added call to CreateControl when adding the control to a parent.
30263             We were never calling CreateControl. Still needs some work, in
30264             some places we treat HandleCreated and ControlCreated as equal, 
30265             which is wrong
30266           - Removed obsolete commented out code from UpdateZOrder()
30267
30268 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
30269
30270         * ThemeClearlooks.cs: Updated TrackBar drawing.
30271
30272 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
30273
30274         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
30275
30276 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
30277
30278         * FileDialog.cs: Add the Help button and the open readonly
30279           checkbox only if needed
30280
30281 2005-12-16  Jackson Harper  <jackson@ximian.com>
30282
30283         * Control.cs: Make sure we have an active menu before trying to
30284         process commands on it. Prevents menu-less forms from crashing
30285         when Alt is pressed.
30286         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
30287         Dieter Bremes.
30288         * RichTextBox.cs: Expand statement to help out gmcs and fix the
30289         2.0 build.
30290
30291 2005-12-16  Jackson Harper  <jackson@ximian.com>
30292
30293         * InternalWindowManager.cs: Don't translate tool windows screen
30294         coordinates. This fixes windows 'bouncing' around when being moved.
30295
30296 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
30297
30298         * TextBoxBase.cs:
30299           - MaxLength now treats 2^31-1 equal to unlimited length (this is
30300             not quite MS compatible, MS uses that number only for single line
30301             and 2^32-1 for multi-line, but I figure it won't hurt keeping
30302             the limit at 2GB)
30303           - Now enforcing the MaxLength limit when entering characters
30304           - Added argument to internal Paste() method to track if it's called
30305             from programatically or via keyboard, since keyboard driven pastes
30306             need to enforce max-length
30307           - Added logic to Paste to only paste as many chars as MaxLength 
30308             allows
30309         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
30310         * TextControl.cs:
30311           - Added Length property to return number of characters in document
30312           - Added private CharCount property which only tracks actual chars
30313             in the document (no linefeeds) and fires event when CharCount
30314             changes
30315           - Added tracking of character count to all methods that alter it
30316           - Added LengthChanged event to allow applications to subscribe
30317             to any changes to the document
30318
30319 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
30320
30321         * TextBox.cs: 
30322           - Removed local password_char field (moved to TextBoxBase)
30323           - Now setting the document's password var when password is
30324             set
30325         * TextBoxBase.cs:
30326           - Added password_char field (needed here so MultiLine can
30327             access it)
30328           - Added logic to MultiLine property setter to set the document's
30329             variable when password display is allowed
30330           - Removed debug code and made some debug code conditional
30331         * TextControl.cs:
30332           - Added RecalculatePasswordLine() method to handle special password
30333             char only lines
30334           - Added PasswordChar property, also added related tracking vars
30335           - Draw() method now uses local text var for grabbing text to draw,
30336             this var is set to line.text unless we're doing password display,
30337             then it is set to the pre-generated all-password-chars line
30338           - Added calling RecalculatePasswordLine() method for password lines
30339
30340 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
30341
30342         * Hwnd.cs: 
30343           - Added Reparented property to allow tracking of Window Manager
30344             reparenting actions (which affect X/Y calculations of toplevel 
30345             windows)
30346           - Made ToString() print window handles in hex
30347         * XplatUIX11.cs:
30348           - AddConfigureNotify(): Now uses reparented state off Hwnd to
30349             determine if X/Y needs offsetting
30350           - AddConfigureNotify(): Fixed offset calculations
30351           - Now adds ReparentNotify messages into the queue
30352           - Now processes ReparentNotify messages and causes a 
30353             WM_WINDOWPOSCHANGED message to be sent upstream if a window
30354             is reparented (as most likely it's X/Y coordinates are changed
30355             due to that)
30356
30357 2005-12-14  Jackson Harper  <jackson@ximian.com>
30358
30359         * XplatUIX11.cs: Tool windows still need to respek focus.
30360
30361 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
30362
30363         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
30364           have a working release
30365
30366 2005-12-13  Jackson Harper  <jackson@ximian.com>
30367
30368         * Form.cs: Update styles after setting the border style regardless
30369         of whether or not the window is using a window manager.
30370
30371 2005-12-13  Jackson Harper  <jackson@ximian.com>
30372
30373         * Form.cs: We now hook into an internal window manager instead of just an
30374         MDI subsystem, this is so we can have properly behaving tool windows.
30375         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
30376         * InternalWindowManager.cs: New internal class that acts as a
30377         window manager for tool windows and as a base for mdi windows.
30378         * MdiWindowManager.cs: New class that acts as a window manager for
30379         mdi windows.
30380
30381 2005-12-12  Jackson Harper  <jackson@ximian.com>
30382
30383         * Control.cs: Updates so we match behavoir for for implicit
30384         controls. Fixes explosions in MDI.
30385
30386 2005-12-12  Jackson Harper  <jackson@ximian.com>
30387
30388         * Control.cs: Implement Invalidate (Region).
30389
30390 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
30391
30392         * Control.cs: 
30393           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
30394             the same events as MS does. MS fires events for each property 
30395             except, for unknown reasons, Cursor, when the control is reparented. 
30396             I can't seem to totally match add/remove since MS also fires some 
30397             VisibleChanged events, which makes no sense. Consolidated the
30398             parenting code into a separate method so it can be called from
30399             both Add and Remove. set_Parent no longer needs any special logic
30400             as it calls the parent's add method which implicitly fires
30401             all events
30402           - Removed some obsolete code and debug output
30403           - Enabled state is inherited from parents, if this is enabled
30404
30405 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
30406
30407         * Form.cs: Removed commented out code
30408
30409 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
30410
30411         * Control.cs:
30412           - Added internal version of Invoke, with additional argument 
30413             indicating if we're calling it from a Dispose() handler. That
30414             way we can avoid BeginInvoke throwing an exception if we're
30415             calling for an already destroyed window.
30416           - Added a dispose argument to BeginInvokeInternal, and made the
30417             check if a valid window handle chain exists conditional on
30418             it not being a dispose call
30419           - Removed code in DestroyHandle to destroy our children. Since we
30420             now handle the WM_DESTROY message we will catch all our children
30421             being destroyed.
30422           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
30423         * Form.cs:
30424           - Added a field to track the application context of the form.
30425           - No need to set closing variable as response to WM_CLOSE, instead
30426             we destroy the window. We also call PostQuitMessage if the form
30427             has an application context (which makes it the main app form,
30428             which, when closed terminates the app)
30429         * XplatUI.cs:
30430           - Dropped Exit() method, it's naming was confusing
30431           - Added PostQuitMessage() which causes GetMessage to return false
30432             once the message queue is empty
30433         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
30434           PostQuitMessage()
30435         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
30436           no longer a valid XplatUI method, but left it in since it's used
30437           internally. Added empty PostQuitMessage() method.
30438         * MenuAPI.cs: Replaced call to Exit() with call to
30439           PostQuitMessage, even though this is probably no longer needed.
30440         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
30441         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
30442         * Application.cs:
30443           - Replaced call to XplatUI.Exit() with PostQuitMessage()
30444           - Removed old debug code that would call XplatUI for exception
30445             display, enabled standard exception handling (Still not enabled
30446             though, until NativeWindow's ExternalExceptionHandler define
30447             is removed
30448         * NativeWindow.cs:
30449           - Added internal method to allow control to update NativeWindow
30450             after a window has been destroyed
30451           - Added handling of already destroyed windows when calling i
30452             DestroyWindow
30453           - Added removal of handle from list on ReleaseHandle
30454         * XplatUIX11.cs:
30455           - Dropped GetMessageResult var and related code
30456           - Added PostQuitState to field to track if PostQuitMessage has been
30457             called
30458           - Dropped Exit() method
30459           - Added PostQuitMessage() method
30460           - GetMessage now will return false if PostQuitState is set and no
30461             more messages are in the queue.
30462           - Expose handler will no longer generate WM_PAINT messages if we are
30463             in PostQuitState since it's very likely any windows have already
30464             been destroyed, and since Hwnd won't get updated until we have
30465             processed the DestroyNotify we'd be causing X errors.
30466         
30467 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30468
30469         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
30470           Thanks to Mike for pointing out the err of my ways.
30471
30472 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30473
30474         * Control.cs(PreProcessMessage): Moved menu handling back, but
30475           after all other key handling, to match MS (who handles Menu in
30476           DefWndProc)
30477         * Menu.cs (WndProc): Removed my brainfart
30478
30479 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30480
30481         * Control.cs(PreProcessMessage): Removed special menu handling 
30482         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
30483
30484 2005-12-07  Mike Kestner  <mkestner@novell.com>
30485
30486         * Control.cs : special case SYSKEYUP so that we can adjust keynav
30487         state according in tracker.
30488         * Menu.cs : promote tracker field to base class and provide a tracker
30489         lookup capability.  Add/Remove shortcuts dynamically if the top menu
30490         has a tracker. Unparent items that are removed from the collection.
30491         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
30492         * Theme*.cs: add always_show_hotkeys field to support configurability
30493         of mnemonic display.  win32 doesn't show mnemonics until Alt is
30494         pressed.
30495
30496 2005-12-07  Jackson Harper  <jackson@ximian.com>
30497
30498         * MdiChildContext.cs: Use Control.ResetCursor.
30499         * Control.cs: ResetCursor needs to set the property so that the
30500         correct XplatUI call gets made.
30501
30502 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30503
30504         * Control.cs: More fixes to make our key events match MS. We
30505           were not setting the modifier state on KeyData, and we were
30506           not generating any events when Alt was pressed with a key
30507           since handling of WM_SYSxxx was missing for the OnKey methods.
30508
30509 2005-12-07  Jackson Harper  <jackson@ximian.com>
30510
30511         * MdiChildContext.cs: reenable the sizing code.
30512         - When the mouse leaves a window reset its cursor.
30513
30514 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
30515
30516         * ThemeClearlooks.cs: Reflect latest Hwnd changes
30517
30518 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30519
30520         * Hwnd.cs: Now using the theme 3d bordersize to calculate
30521           widths of Fixed3D borders
30522
30523 2005-12-07  Jackson Harper  <jackson@ximian.com>
30524
30525         * MdiClient.cs: Fix warnings. Earn Mike's love.
30526
30527 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
30528
30529         * ThemeClearlooks.cs:
30530           - Adjusted mouse over button color
30531           - Added first parts of CheckBox drawing
30532           - Added correct color for selected text background
30533           - Fixed ComboBox drawing
30534           - Added CPDrawBorder3D and CPDrawBorder
30535
30536 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
30537
30538         * XplatUIX11.cs: Added call to XBell for AudibleAlert
30539
30540 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
30541
30542         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
30543           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
30544           alert users via sound. We could add an enum arg with different
30545           types of alerts in the future
30546
30547 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
30548
30549         * Control.cs: Fix behaviour problems pointed out by Mike
30550
30551 2005-12-05  Mike Kestner  <mkestner@novell.com>
30552
30553         * StatusBarPanel.cs: add Invalidate method and hook it into all the
30554         prop setters.  Calls parent.Refresh for now, but could be maybe be
30555         optimized with an internal method on StatusBar at some point.
30556         [Fixes #76513]
30557
30558 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
30559
30560         * RichTextBox.cs: Implemented get_SelectionColor
30561
30562 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
30563
30564         * ThemeClearlooks.cs:
30565           - Removed dead code
30566           - Draw black button border only if button is Form.AcceptButton
30567           - Draw correct button color for pressed RadioButton if the mouse 
30568             has entered the button
30569           - Updated ProgressBar drawing!
30570           - Updated CPDrawSizeGrip drawing
30571           - Updated StatusBarPanel drawing
30572
30573 2005-12-05  Mike Kestner  <mkestner@novell.com>
30574
30575         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
30576         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
30577
30578 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
30579
30580         * ThemeClearlooks.cs: Initial check-in, activate with
30581           export MONO_THEME=clearlooks
30582         * ThemeEngine.cs: Added ThemeClearlooks
30583
30584 2005-12-03  Mike Kestner  <mkestner@novell.com>
30585
30586         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
30587         [Fixes #76897]
30588
30589 2005-12-02  Jackson Harper  <jackson@ximian.com>
30590
30591         * Form.cs: If the child form has no menu the default main menu is
30592         used as the active menu.
30593
30594 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
30595
30596         * ListBox.cs: Check if any items exist before trying to resolve 
30597           coordinates into items
30598
30599 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
30600
30601         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
30602           as the second color for the background hatch
30603
30604 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
30605
30606         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
30607         * RichTextBox.cs: FormatText position arguments are 1-based, now making
30608           sure that what we pass to FormatText is always 1-based. Fixes #76885
30609
30610 2005-11-29  Miguel de Icaza  <miguel@novell.com>
30611
30612         * NumericUpDown.cs (EndInit): When we are done initializing,
30613         reflect any updates on the UI.
30614
30615 2005-12-02  Jackson Harper  <jackson@ximian.com>
30616
30617         * ImplicitHScrollBar.cs:
30618         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
30619         their container controls.
30620         * TreeView.cs: Use the new implicit scrollbars.
30621
30622 2005-12-02  Jackson Harper  <jackson@ximian.com>
30623
30624         * TreeView.cs: Make top_node internal so the TreeNodeCollections
30625         can play with it.
30626         * TreeNodeCollection.cs: If we remove the topnode we need to
30627         update topnode to the next node in line.
30628         - When clearing nodes go through the same process as removing
30629         them, so they get depareneted and checked if they are top node.
30630
30631 2005-12-01  Jackson Harper  <jackson@ximian.com>
30632
30633         * TreeView.cs: When imagelists are used the image area is
30634         selectable as well as the text.
30635         - If there are no selected nodes select the first one.
30636         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
30637         so don't do it more then we need to.
30638
30639 2005-12-01  Jackson Harper  <jackson@ximian.com>
30640
30641         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
30642         that arrows can be scaled.
30643
30644 2005-12-01  Jackson Harper  <jackson@ximian.com>
30645
30646         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
30647         fail. Patch by Dieter Bremes
30648
30649 2005-11-30  Jackson Harper  <jackson@ximian.com>
30650
30651         * Form.cs: Property is 2.0 only
30652         * PrintDialog.cs: Signature fix.
30653
30654 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
30655
30656         * TextControl.cs: 
30657           - No longer artificially moves text 2 pixels down (now that we have
30658             borders this is no longer needed)
30659           - Added calcs for left, hanging and right indent
30660
30661 2005-11-23  Mike Kestner  <mkestner@novell.com>
30662
30663         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
30664
30665 2005-11-30  Jackson Harper  <jackson@ximian.com>
30666
30667         * MdiChildContext.cs: Set the cloned menus forms, as these don't
30668         get cloned as part of CloneMenu ().
30669         * Menu.cs: Make sure the parent of the items get set correctly
30670         when they are added.  And the owners are notified of the changes.
30671         * Form.cs: Create an ActiveMenu property, so that when MDI is used
30672         we can change the menu being displayed/handled by the form without
30673         changing the menu assosciated with the form.
30674         - Don't let Mdi children draw/handle menus.
30675         
30676 2005-11-30  Jackson Harper  <jackson@ximian.com>
30677
30678         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
30679         a MenuChanged event. Just to make the API a little more
30680         consistent.
30681         * MainMenu.cs:
30682         * MenuItem.cs: Use the new OnMenuChanged
30683         * MdiChildContext.cs: Handle menu merging.
30684         * Form.cs: Implement MergedMenu.
30685         
30686 2005-11-30  Jackson Harper  <jackson@ximian.com>
30687
30688         * Menu.cs: We were misusing Add. Add goes behind the specified
30689         index according to the docs, and does not replace the specified
30690         index. So I added an Insert method.
30691
30692 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
30693
30694         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
30695           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
30696           is for Jackson
30697         * RichTextBox.cs: Added calls to base for DnD events
30698
30699 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
30700
30701         * TextControl.cs:
30702           - Fixed drag-selection related crash; style fixes
30703           - Implemented undo class
30704             o Implemented method to capture document state for specified
30705               range in document tree
30706             o Implemented method to restore captured document state
30707             o Implemented cursor tracking
30708             o Implemented basic undo stack
30709           - Added undo cursor tracking to methods altering cursor location
30710           - Added undo tracking to selection deletion (still missing
30711             other text-altering hookups)
30712         * RichTextBox.cs:
30713           - Added SelectionLength property
30714           - Implemented CanPaste()
30715           - Implemented Paste()
30716           - Added missing protected methods
30717           - Fixed RTF->Document conversion; now uses font index 0 and color 
30718             index 0 as the default font for the parsed text
30719           - Fixed RTF<->Document font size translation
30720           - Fixed RTF generation, now properly handles cross-tag boundaries
30721             for single line selection
30722           - No longer always appends blank line to generated RTF
30723           - Removed TODOs
30724           - Added missing attributes
30725           - Hooked up undo-related methods
30726         * TextBoxBase.cs:
30727           - Implemented Copy()
30728           - Implemented Paste()
30729           - Implemented Cut()
30730           - Fixed caret mis-behaviour on backspace across line-boundaries
30731
30732 2005-11-29  Jackson Harper  <jackson@ximian.com>
30733
30734         * MdiClient.cs: Add a method for activating mdi children. Very
30735         basic right now. I imagine someday it might need more girth.
30736         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
30737         children windows names are added to the menu item.
30738         * ThemeWin32Classic.cs: Draw the arrow if the item is an
30739         mdilist. This happens regardless of whether or not there are any
30740         mdi windows to see in the list, and according to my tests happens
30741         before the items are even added. Also happens if there isn't even
30742         an mdi client to get windows from.
30743
30744 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
30745
30746         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
30747         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
30748
30749 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
30750
30751         * DataGridTableStyle.cs:
30752           - Create always the styles for the missing columns even if they are
30753             provided by the user (not default table style)
30754         * DataGrid.cs:
30755           - Fixes bug 76770
30756           - Fixes SetDataBinding (always re-attach source)
30757           - Fixes SetNewDataSource (only clear styles if they are not for 
30758             this source)
30759          -  Expands OnTableStylesCollectionChanged to handle style refresh 
30760             and remove properly
30761
30762 2005-11-29  Jackson Harper  <jackson@ximian.com>
30763
30764         * FileDialog.cs: Implement missing bits, remove some dead
30765         code.
30766         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
30767         creation of the panel so that the options set on the dialog are
30768         seen when the panel is created.
30769         * TreeView.cs: raise a click when items are clicked.
30770         
30771 2005-11-29  Jackson Harper  <jackson@ximian.com>
30772
30773         * MdiClient.cs: Pass some signature methods through to base.
30774
30775 2005-11-28  Jackson Harper  <jackson@ximian.com>
30776
30777         * ListView.cs: Raise the click event when items are clicked.
30778
30779 2005-11-28  Jackson Harper  <jackson@ximian.com>
30780
30781         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
30782         a nullref.
30783
30784 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
30785
30786         * ThemeNice.cs: - Removed 1 pixel bitmaps
30787           - Use SmoothingMode.AntiAlias where it makes sense
30788             (ScrollButton arrow for example)
30789           - Enhanced Button focus drawing
30790           - Fixed ComboBox drawing (no artefacts anymore, focus
30791             rectangle is back again, reduced size of ComboButton, etc.)
30792           - Fixed RadioButton focus drawing for Appearence.Button
30793           - Slight ScrollButton redesign
30794           - Some LinearGradientBrush size fixes
30795           - GroupBoxes have now rounded edges
30796           - Fixed StatusBar drawing
30797
30798 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
30799
30800         * ThemeNice.cs: - Remove dead code
30801           - use correct background colors for menus, etc.
30802           - Fake pixel drawing with 1 pixel bitmaps
30803
30804 2005-11-24  Jackson Harper  <jackson@ximian.com>
30805
30806         * MdiClient.cs: Size the scrollbars when resizing the window.
30807         - Resize the maximized windows when the client is resized
30808         * Form.cs: Make the child context available
30809         
30810 2005-11-23  Jackson Harper  <jackson@ximian.com>
30811
30812         * MdiChildContext.cs: Don't size windows if they are maximized.
30813
30814 2005-11-23  Mike Kestner  <mkestner@novell.com>
30815
30816         * ContextMenu.cs: use MenuTracker.
30817         * Control.cs: remove menu handle usage.
30818         * Form.cs: remove menu handle usage.
30819         * Hwnd.cs: remove menu handle usage.
30820         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
30821         motion and clicks to the new Tracker handlers.
30822         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
30823         and handle usage.
30824         * MenuAPI.cs: refactored to combine popup and menubar event handling.
30825         Killed the MENU and MENUITEM data types and associated collections
30826         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
30827         MenuTracker class that exposes the leftovers from the old MenuAPI
30828         static methods. Restructured Capture handling so that only one grab is
30829         done for the entire menu hierarchy instead of handing off grabs to
30830         submenus. Tracker now has an invisible control to Capture when active.
30831         * MenuItem.cs: add sizing accessors, kill Create
30832         and handle usage.
30833         * Theme.cs: remove menu handle and MENU(ITEM) usage.
30834         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
30835         MENU(ITEM). remove menu handle usage, use Menu directly.
30836         * XplatUIDriver.cs: remove menu handle usage.
30837         * XplatUIOSX.cs: remove menu handle usage.
30838         * XplatUIWin32.cs: remove menu handle usage.
30839         * XplatUIX11.cs: remove menu handle usage.
30840
30841 2005-11-22  Jackson Harper  <jackson@ximian.com>
30842
30843         * Hwnd.cs: Don't compute the menu size for
30844         DefaultClientRectangle.
30845         - Reenable menu sizes being computed for GetClienRectangle.
30846         * Form.cs: Remove comment of trechery
30847         
30848 2005-11-22  Jackson Harper  <jackson@ximian.com>
30849
30850         * Hwnd.cs: The adjustments for the menu bar are made when it is
30851         attached to the form.
30852
30853 2005-11-19  Jackson Harper  <jackson@ximian.com>
30854
30855         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
30856         (just like on windows).
30857
30858 2005-11-19  Jackson Harper  <jackson@ximian.com>
30859
30860         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
30861         use real buttons anymore because they are in non client area. The
30862         one TODO here is that I need to somehow invalidate a section of
30863         the non client area.
30864
30865 2005-11-18  Jackson Harper  <jackson@ximian.com>
30866
30867         * Control.cs: Put the enum check back in now that MDI doesnt have
30868         to use this to set border styles.
30869         * Form.cs: Only set mdi child windows borders if the handle has
30870         been created.
30871         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
30872         this directly on to the driver.
30873         - Get the move start position before adjusting for the titlebar
30874         height, this fixes the windows "skipping" when they are first
30875         moved.
30876
30877 2005-11-18  Jackson Harper  <jackson@ximian.com>
30878
30879         * XplatUIX11.cs: Just compute the mdi borders separately as they
30880         don't totally match up with normal form borders.
30881
30882 2005-11-18  Jackson Harper  <jackson@ximian.com>
30883
30884         * Control.cs: Set WS_ styles for borders, so that the driver does
30885         not have to retrieve the control instance to figure out what kind
30886         of borders it should have.
30887         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
30888         driver can know its an mdi child easily.
30889         * XplatUIX11.cs: Get the border styles and whether the window is
30890         MDI from the Styles and ExStyles params instead of having to get a
30891         control. This prevents a chicken and egg problem.       
30892
30893 2005-11-18  Jackson Harper  <jackson@ximian.com>
30894
30895         * MdiClient.cs: Fix typo so scrollbars show up correctly.
30896
30897 2005-11-18  Jackson Harper  <jackson@ximian.com>
30898
30899         * MdiClient.cs: Calculate when to add and remove scrollbars
30900         correctly.
30901         * MdiChildContext.cs: Adjust the y position to take the titlebar
30902         into account.
30903         - No height for FormBorderStyle.None
30904
30905 2005-11-18  Jackson Harper  <jackson@ximian.com>
30906
30907         * Control.cs: Allow non enum values to be used for
30908         InternalBorderStyle.  MDI does this to set a special border style.
30909         - New utility methods for converting points to/from client coords
30910         - Add the newly created control to the Controls collection before
30911         updating its style. This way UpdateStyle can walk the control
30912         heirarchy to find the control if needed.
30913         so I don't need to create a new Point object all the time.
30914         * Form.cs: Let MDI windows handle their border styles.
30915         - Set styles on MDI windows so the correct title style is derived.
30916         * MdiChildContext.cs: Move all the painting and window handling
30917         into the non client area.
30918         - Use correct sizing and put correct buttons on frames based on
30919         the FormBorderStyle.
30920         - Notify the mdi client about scrolling
30921         - Need to handle the buttons ourselves now, because they are all
30922         in non client areas and we can't add controls there.
30923         * MdiClient.cs: Halfway to scrolling, this implementation is
30924         somewhat broken though, we need to check to make sure other
30925         windows aren't causing scrolling before removing the bars. Also
30926         the bars need to be drawn on top, maybe I can switch implicit
30927         controls to be on top.
30928         * Hwnd.cs: caption_height and tool_caption_height are now
30929         properties of an hwnd, this way they can be set by the driver
30930         based on the type of window they are.  In X11 the window manager
30931         handles the decorations so caption_height is zero unless its an
30932         MDI window.
30933         - Add 3 pixel borders for MDI windows (0xFFFF).
30934         - Get rid of some code duplication, have DefaultClientRectanle
30935         just call GetClientRectangle.
30936         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
30937         Hwnd now.
30938         - Set border styles differently for mdi windows.
30939         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
30940         Hwnd now.
30941         
30942 2005-11-15  Mike Kestner  <mkestner@novell.com>
30943
30944         * Menu.cs: when adding an item to the collection, if item is already 
30945         parented, remove it from the parent.
30946
30947 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
30948
30949         * X11DesktopColors.cs: Added KDE support
30950
30951 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
30952
30953         * XplatUIWin32.cs: 
30954           - Clipboard methods now can translate Rtf format
30955           - No longer removes clipboard contents whenever a new format is added
30956             to allow placing multiple formats on the clipboard
30957         * Clipboard.cs: Clipboard now supports getting a IDataObject and
30958           will place all formats contained in it onto the clipboard. Also
30959           now cleans the clipboard before placing a new object onto it
30960         * RichTextBox.cs:
30961           - Implemented set_Rtf
30962           - Implemented set_SelectedRtf
30963           - Created InsertRTFFromStream() method to allow single code base
30964             for all properties and methods that insert RTF into document
30965           - Removed debug output
30966         * TextControl.cs:
30967           - Fixed Delete(int) to fix up line numbers
30968           - Fixed ReplaceSelection to combine start and end line
30969           - Fixed serious DeleteChars bug that would leave the document tree
30970             broken
30971           - Improved DumpTree with several logic checks to detect broken
30972             document trees
30973           - Removed debug lines
30974           - Fixed Caret.WordForward/WordBack moving code, now always also 
30975             updates caret.tag (fixes crash when word-selecting across tag
30976             boundaries via keyboard)
30977           - Added Insert() method for inserting multiline text into documents
30978           - Fixed DeleteChars() calculation errors that would cause a broken
30979             tag chain with multiple tag lines
30980           - DeleteChars() no longer crashes on multi-tag lines if not all tags
30981           - Split() no longer moves caret if split is at caret location
30982           - ReplaceSelection() now updates the cursor and re-displays it
30983           - ReplaceSelection() now uses new Insert() method to avoid code
30984             duplication
30985           - FormatText() can now handle formatting partial lines
30986         * TextBoxBase.cs:
30987           - Append now uses new TextControl.Insert() method (this avoids 
30988             duplicate code)
30989           - Implemented Ctrl-X (Cut) (
30990           - Implemented Ctrl-C (Copy)
30991           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
30992             regeneration when pasting text; roundtripping Copy&Paste within
30993             edit control still fails due to some calculation bugs in GenerateRTF)
30994           - The Delete key will now remove the current selection if it is visible
30995         * TextBox.cs: Removed debug lines
30996         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
30997           driver to be initialized and can't therefore be done via a static ctor)
30998
30999 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
31000
31001         * TextControl.cs: Added backend code for finding char arrays and strings
31002         * TextBoxBase.cs:
31003           - Added mouse wheel scroll support
31004           - Added support for VScroll and HScroll events
31005         * RichTextBox.cs:
31006           - Implemented all seven Find() variants
31007           - Implemented GetCharFromPosition()
31008           - Implemented GetCharIndexFromPosition()
31009           - Implemented GetLineFromIndex()
31010           - Implemented GetPositionFromCharIndex();
31011           - Implemented SaveFile for PlainText and UnicodeText
31012           - Fixed set_Font, now setting a new font applies that font to
31013             the whole document
31014           - Implemented generic Document to RTF converter
31015           - Implemented SaveFile for RichText format (still missing unicode
31016             conversion for non-ansi chars)
31017           - Implemented get_Rtf
31018           - Implemented get_SelectedRtf
31019
31020 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
31021
31022         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
31023           to allow any captures to be released before triggering OnClick. This
31024           way a click handler may capture the mouse without interference.
31025         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
31026           This way we send them even though X may not allow a grab (if the window
31027           isn't visible, for example)
31028
31029 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
31030
31031         * DataGridViewRowEventArgs.cs: DataGridView implementation
31032         * DataGridViewElement.cs: DataGridView implementation
31033         * DataGridViewComboBoxCell.cs: DataGridView implementation
31034         * DataGridViewDataErrorContexts.cs: DataGridView implementation
31035         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
31036         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
31037         * ImageLayout.cs: DataGridView implementation
31038         * DataGridViewComboBoxColumn.cs: DataGridView implementation
31039         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
31040         * DataGridViewSelectionMode.cs: DataGridView implementation
31041         * IDataGridViewEditingControl.cs: DataGridView implementation
31042         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
31043         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
31044         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
31045         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
31046         * DataGridViewColumnSortMode.cs: DataGridView implementation
31047         * DataGridView.cs: DataGridView implementation
31048         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
31049         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
31050         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
31051         * Padding.cs: DataGridView implementation
31052         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
31053         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
31054         * DataGridViewRowEventHandler.cs: DataGridView implementation
31055         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
31056         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
31057         * DataGridViewButtonCell.cs: DataGridView implementation
31058         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
31059         * DataGridViewEditMode.cs: DataGridView implementation
31060         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
31061         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
31062         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
31063         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
31064         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
31065         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
31066         * DataGridViewCellEventHandler.cs: DataGridView implementation
31067         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
31068         * DataGridViewCellStyleConverter.cs: DataGridView implementation
31069         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
31070         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
31071         * DataGridViewColumnEventArgs.cs: DataGridView implementation
31072         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
31073         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
31074         * QuestionEventArgs.cs: DataGridView implementation
31075         * IDataGridViewEditingCell.cs: DataGridView implementation
31076         * DataGridViewTriState.cs: DataGridView implementation
31077         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
31078         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
31079         * DataGridViewColumnCollection.cs: DataGridView implementation
31080         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
31081         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
31082         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
31083         * DataGridViewColumn.cs: DataGridView implementation
31084         * DataGridViewCellBorderStyle.cs: DataGridView implementation
31085         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
31086         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
31087         * DataGridViewRow.cs: DataGridView implementation
31088         * DataGridViewImageCellLayout.cs: DataGridView implementation
31089         * DataGridViewImageCell.cs: DataGridView implementation
31090         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
31091         * DataGridViewCheckBoxCell.cs: DataGridView implementation
31092         * DataGridViewHeaderCell.cs: DataGridView implementation
31093         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
31094         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
31095         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
31096         * DataGridViewTextBoxColumn.cs: DataGridView implementation
31097         * QuestionEventHandler.cs: DataGridView implementation
31098         * DataGridViewCellStyleScopes.cs: DataGridView implementation
31099         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
31100         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
31101         * DataGridViewCell.cs: DataGridView implementation
31102         * DataGridViewCellEventArgs.cs: DataGridView implementation
31103         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
31104         * DataGridViewCellStyle.cs: DataGridView implementation
31105         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
31106         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
31107         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
31108         * TextFormatFlags.cs: DataGridView implementation
31109         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
31110         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
31111         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
31112         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
31113         * DataGridViewButtonColumn.cs: DataGridView implementation
31114         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
31115         * HandledMouseEventArgs.cs: DataGridView implementation
31116         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
31117         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
31118         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
31119         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
31120         * DataGridViewRowCollection.cs: DataGridView implementation
31121         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
31122         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
31123         * DataGridViewHitTestType.cs: DataGridView implementation
31124         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
31125         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
31126         * DataGridViewColumnEventHandler.cs: DataGridView implementation
31127         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
31128         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
31129         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
31130         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
31131         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
31132         * DataGridViewContentAlignment.cs: DataGridView implementation
31133         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
31134         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
31135         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
31136         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
31137         * DataGridViewPaintParts.cs: DataGridView implementation
31138         * DataGridViewCellCollection.cs: DataGridView implementation
31139         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
31140         * DataGridViewImageColumn.cs: DataGridView implementation
31141         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
31142         * DataGridViewElementStates.cs: DataGridView implementation
31143         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
31144         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
31145         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
31146         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
31147         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
31148         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
31149         * DataGridViewRowHeaderCell.cs: DataGridView implementation
31150         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
31151         * DataGridViewTextBoxCell.cs: DataGridView implementation
31152         * DataGridViewBand.cs: DataGridView implementation
31153         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
31154         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
31155         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
31156         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
31157         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
31158         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
31159         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
31160         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
31161         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
31162         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
31163         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
31164
31165 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
31166
31167         * ThemeWin32Classic.cs: 
31168           - Draw the outside focus rectangle around buttons
31169           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
31170             doesn't use end caps for every dash of a line anymore. This
31171             workaround ignores the forecolor.
31172
31173 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
31174
31175         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
31176           endian safe.
31177
31178 2005-11-07  Jackson Harper  <jackson@ximian.com>
31179
31180         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
31181
31182 2005-11-07  Jackson Harper  <jackson@ximian.com>
31183
31184         * ScrollableControl.cs: Calculate the maximum and change vars
31185         (more) correctly so that scrollbars appear as a sensible size.
31186
31187 2005-11-04  Jackson Harper  <jackson@ximian.com>
31188
31189         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
31190         collection.
31191         * TreeView.cs: When the tree is sorted null out the top_node so
31192         that it is recalculated.
31193         - Use dotted lines instead of dashed lines to match MS better.
31194
31195 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
31196
31197         * ListView.cs: 
31198           - Implements key search for items. Useful when browsing files with FileDialog
31199           - When changing view mode or when clear the items reset scrollbar positions
31200
31201 2005-11-04  Jackson Harper  <jackson@ximian.com>
31202
31203         * CurrencyManager.cs: Implement the MetaDataChanged event, the
31204         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
31205         as to what the method may do as there is no real way of creating a
31206         derived CurrencyManager and calling the method. 
31207
31208 2005-11-03  Jackson Harper  <jackson@ximian.com>
31209
31210         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
31211         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
31212         method which seems to just be used internally to refresh the tabs.
31213
31214 2005-11-03  Jackson Harper  <jackson@ximian.com>
31215
31216         * TabControl.cs: Implement the remove method. Fix some broken
31217         comments.
31218
31219 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
31220
31221         * DateTimePicker.cs:
31222           - Added missing DateTimePickerAccessibleObject class
31223           - Added missing events
31224           - Added OnFontChanged method
31225         * Form.cs: Added missing attributes
31226         * TreeView.cs: Added missing attributes
31227
31228 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
31229
31230         * GridItemCollection.cs: Fix signatures
31231
31232 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
31233
31234         * XplatUI.cs: Updated build rev/date
31235         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
31236           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
31237         * Application.cs: Trigger context-specific ExitThread events
31238
31239 2005-11-03  Jackson Harper  <jackson@ximian.com>
31240
31241         * Menu.cs:
31242         * MainMenu.cs:
31243         * GridTableStylesCollection.cs:
31244         * Timer.cs:
31245         * TabPage.cs:
31246         * HelpProvider.cs:
31247         * StatusBar.cs:
31248         * MonthCalendar.cs: Signature fixes
31249
31250 2005-11-03  Jackson Harper  <jackson@ximian.com>
31251
31252         * TreeNodeCollection.cs: Remove should not be virtual.
31253         * TreeView.cs: Implement the last of the missing methods.
31254
31255 2005-11-03  Jackson Harper  <jackson@ximian.com>
31256
31257         * TreeNodeConverter.cs: Implement to get off my class-status back.
31258
31259 2005-11-03  Jackson Harper  <jackson@ximian.com>
31260
31261         * TreeView.cs: Hookup the bits for drag and drop.
31262         * TreeNode.cs: Don't cache the tree_view or index anymore, now
31263         that nodes can be moved from tree to tree easily this just causes
31264         all sorts of problems.
31265         * TreeNodeCollection: Don't need to give treenodes an index and
31266         treeview anymore when they are added, these are computed on the
31267         fly. Also make sure to remove a node before its added.
31268
31269 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
31270
31271         * TextControl.cs:
31272           - Added CaretSelection enum
31273           - Added comparison methods to Marker struct, makes selection code
31274             more readable
31275           - Added SelectionStart and SelectionEnd as 'moveable' location for
31276             the CaretDirection enum and handler
31277           - Added selection_prev variable to track optimized invalidation for
31278             word and line selection
31279           - Added SelectionVisible property (returns true if there is a valid 
31280             selection)
31281           - Switched CaretHasFocus to only display the caret if there is no
31282             visible selection
31283           - Avoiding StringBuilder.ToString to retrieve a single char, instead
31284             using the direct character index; should be much faster
31285           - Added various conditional debug statements
31286           - Fixed invalidation calculation for selection ranges
31287           - Added ExpandSelection() method to support word and line selection
31288           - Switched SetSelectionToCaret to use new Marker compare overloads
31289           - Added central IsWordSeparator() method to determine word 
31290             separators/whitespace and FindWordSeparator() to streamline common
31291             usage of IsWordSeparator()
31292         * TextBoxBase.cs:
31293           - Removed unneeded grabbed variable, it was just mirroring
31294             Control.Capture
31295           - No longer firing OnTextChanged event when Text setter is called,
31296             since the base will fire the event for us
31297           - Added handling of Ctrl-Up/Down selection
31298           - Added handling of Shift-Cursorkey selection
31299           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
31300             words
31301           - Added handling of Shift and Ctrl-Shift-Home/End selection
31302           - Removed some debug output
31303           - Added handling for single/double/tripple-click to place caret/
31304             select word/select line respectively (Fixes bug #76031)
31305           - Added support for drag expansion of word/line selection
31306         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
31307           current selection
31308
31309 2005-11-02  Jackson Harper  <jackson@ximian.com>
31310
31311         * X11Dnd.cs: If the drag is going to and from a MWF window just
31312         copy the data instead of sending it out through the X Selection
31313         mechanism.
31314
31315 2005-11-02  Jackson Harper  <jackson@ximian.com>
31316
31317         * X11Dnd.cs:
31318         * XplatUIX11.cs: When in a drag we don't want motion notify
31319         messages to get passed on to the other controls. This prevents
31320         mouse move messages from showing up in the drag source.
31321
31322 2005-11-02  Jackson Harper  <jackson@ximian.com>
31323
31324         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
31325         the correct button is release to end a drag.
31326         * XplatUIX11.cs: Make the button state internal so the drag system
31327         can access it.  Dragging needs to know about all button releases,
31328         not just left button.
31329
31330 2005-11-02  Miguel de Icaza  <miguel@novell.com>
31331
31332         * Form.cs (Icon): If the icon is null, reset the icon to the
31333         default value. 
31334
31335         * Cursor.cs: When writing the AND-mask bitmap do not include the
31336         number of colors, but hardcode those to two (black and white),
31337         fixes the loading of color cursors (Paint Dot Net).
31338
31339         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
31340         turn off autoscaling.
31341
31342         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
31343
31344 2005-11-02  Jackson Harper  <jackson@ximian.com>
31345
31346         * X11Dnd.cs: Make sure to send a status message if the pointer
31347         enters a control that can not accept a drop, otherwise the cursor
31348         isn't updated correctly. Also tried to compress the lines of code
31349         a bit.
31350
31351 2005-11-02  Jackson Harper  <jackson@ximian.com>
31352
31353         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
31354         set actions correctly.  This isn't perfect as XDND and win32 have
31355         some differences on how you allow actions. I'll clear this up by
31356         adding a path for drag from MWF to MWF windows.
31357         * XplatUIX11.cs: Hook into the dnd system.
31358
31359 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
31360
31361         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
31362         previously shown but they are no longer need it. Very obvious when 
31363         browsing files with FileDialog.
31364
31365 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
31366
31367         * Control.cs: We always need to call OnPaintBackground. We pretty much
31368           ignore AllPaintingInWmPaint and always do the painting there, whether 
31369           it's set or not, since we always ignore the WM_ERASEBKGND message 
31370           (which we don't generate on X11). This fixes #76616.
31371         * Panel.cs: Removed unneeded background painting. This happens properly
31372           in Control.cs already
31373
31374 2005-10-31  Mike Kestner  <mkestner@novell.com>
31375
31376         * Menu.cs: Add items to collection before setting their index.
31377         * MenuItem.cs : add range checking with ArgumentException like MS.
31378         [Fixes #76510]
31379
31380 2005-10-31  Jackson Harper  <jackson@ximian.com>
31381
31382         * ListBox.cs: Invalidate if the area is visible at all not just
31383         contained in the visible rect. Fixes unselection of semi visible
31384         items.
31385
31386 2005-10-31  Jackson Harper  <jackson@ximian.com>
31387
31388         * Control.cs: Consistently name the dnd methods. Make them
31389         internal so we can override them to match some MS behavoir
31390         internally.
31391         * Win32DnD.cs: Use the new consistent names.
31392
31393 2005-10-31  Jackson Harper  <jackson@ximian.com>
31394
31395         * TreeView.cs: Don't draw the selected node when we lose focus.
31396
31397 2005-10-31  Jackson Harper  <jackson@ximian.com>
31398
31399         * X11Dnd.cs: We still need to reset the state even though a full
31400         reset isn't being done, otherwise status's still get sent all over
31401         the place.
31402
31403 2005-10-31  Jackson Harper  <jackson@ximian.com>
31404
31405         * Control.cs: Make the dnd_aware flag internal so the dnd
31406         subsystem can check it. Catch exceptions thrown in dnd handlers to
31407         match MS behavoir.
31408         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
31409         * X11Dnd.cs: Handle null data in the converters. Set the XDND
31410         version when sending a XdndEnter. Use the control/hwnd dnd_aware
31411         flags to reduce the number of dnd enters/status's sent.
31412
31413 2005-10-31  Jackson Harper  <jackson@ximian.com>
31414
31415         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
31416
31417 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
31418
31419         * PictureBox.cs: Fixes 76512
31420
31421 2005-10-28  Jackson Harper  <jackson@ximian.com>
31422
31423         * X11Dnd.cs: Early implementation to support winforms being a drag
31424         source for data on X11. Also restructured the converters so they
31425         can go both ways now.
31426         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
31427         
31428 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
31429
31430         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
31431           clipboard requests
31432
31433 2005-10-27  Jackson Harper  <jackson@ximian.com>
31434
31435         * TreeNode.cs: Implement serialization so my DnD examples will work.
31436
31437 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
31438
31439         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
31440           TreeView.cs: Don't dispose objects that are not owned.
31441           
31442 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
31443
31444         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
31445           should retrieve the current cursor and report that, but XplatUI
31446           doesn't (yet) have an interface for that (and I'm not sure I even
31447           can, on X11)
31448         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
31449           until any message loop processing is done (and the WM_SETCURSOR
31450           replaces the cursor to the proper one)
31451         * XplatUIX11.cs: 
31452           - Fixed override behaviour, we can't set the cursor globally on X11, 
31453             just for our windows.
31454           - Invalidating the System.Drawing X11 display handle when we are
31455             shutting down
31456         * Control.cs: Fix to make csc happy
31457
31458 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
31459
31460         * TextBoxBase.cs: 
31461           - get_Text: Add last line (without trailing newline) to returned
31462             value (Fixes 76212)
31463           - get_TextLength: Count last line in returned length
31464           - ToString: Call Text property instead of duplicating code
31465
31466 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
31467
31468         * ImageList.cs: Dispose ImageAttributes objects.
31469
31470 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
31471
31472         * ImageList.cs: Use attribute constructors with less arguments where
31473           possible.
31474
31475 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
31476
31477         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
31478           Use typeof instead of strings when assembly is referenced. Added
31479           some more comments.
31480
31481 2005-10-21  Jackson Harper  <jackson@ximian.com>
31482
31483         * ListView.cs: Raise a double click event. Also tried to somewhat
31484         fix when the selectedindexchanged event is raised. Its still
31485         broken though.
31486
31487 2005-10-21  Jackson Harper  <jackson@ximian.com>
31488
31489         * TreeView.cs: New method to invalidate the plus minus area of a
31490         node without invalidating the whole node (maybe this can be used
31491         in some more places).
31492         * TreeNodeCollection.cs: When adding to an empty node we need to
31493         invalidate its plus minus area so the little block shows up.
31494         
31495 2005-10-21  Jackson Harper  <jackson@ximian.com>
31496
31497         * TreeView.cs: Make sure that when we invalidate a node the bounds
31498         are big enough to cover the selected box and the focus
31499         rectangle. Use a different colour for the lines connecting nodes
31500         so they show up with all themes.
31501
31502 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
31503
31504         * NativeWindow.cs: Don't call anything that could call into the driver,
31505           we might be on a different thread.
31506
31507 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
31508
31509         * Control.cs(Dispose): Since Dispose might run on a different thread,
31510           make sure that we call methods that could call into the driver via
31511           invoke, to avoid thread issues
31512
31513 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
31514
31515         * XplatUI.cs: Removed finalizer
31516         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
31517           not allowing to be called on the finalizer thread.
31518
31519 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
31520
31521         * ImageList.cs:
31522           - Reverted r51889 and r51891.
31523           - Added ImageListItem class that stores unmodified image items and image
31524             properties required to create list images until handle is created.
31525           - Added AddItem and moved image creation logic to AddItemInternal.
31526           - Added CreateHandle method that creates images based on unmodified items.
31527           - Added DestroyHandle that changes state to store unmodified items.
31528           - Add and AddStrip methods no more create handle.
31529           - ReduceColorDepth has no return value.
31530           - Dispose destroys handle.
31531           - Modified other methods to reflect the above changes.
31532           - Implemented key support.
31533           - Added profile 2.0 members and attributes.
31534           - Added private Reset and ShouldSerialize methods that provide the same
31535             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
31536             them as they are private.
31537           - Added some more comments about implementation details.
31538
31539 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
31540
31541         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
31542
31543 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
31544
31545         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
31546
31547 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
31548
31549         * DataGridDrawingLogic.cs: Fixes column hit calcultation
31550         * DataGridColumnStyle.cs: Remove debug message
31551
31552 2005-10-20  Jackson Harper  <jackson@ximian.com>
31553
31554         * TreeView.cs: We can always get input keys regardless of whether
31555         or not editing is enabled. They are used for navigation.
31556
31557 2005-10-20  Jackson Harper  <jackson@ximian.com>
31558
31559         * TreeNode.cs: Use the viewport rect for determining if a node
31560         needs to be moved for visibility. Don't use Begin/End edit. This
31561         calls a full refresh when its done.
31562         * TreeView.cs: New SetBottom works correctly.  Make the viewport
31563         rect property internal so the treenodes can see it. When clicking
31564         on a node we need to ensure that its visible because it might just
31565         be partly visible when clicked.
31566
31567 2005-10-20  Jackson Harper  <jackson@ximian.com>
31568
31569         * TreeNodeCollection.cs: Remove debug code.
31570
31571 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
31572
31573         * Datagrid.cs: Implements column sorting in Datagrid
31574         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
31575
31576 2005-10-20  Jackson Harper  <jackson@ximian.com>
31577
31578         * TreeNodeCollection.cs: Remove items properly. Update the correct
31579         area after removing them.
31580
31581 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
31582
31583         * Datagrid.cs: Should not call base.OnPaintBackground
31584
31585 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
31586
31587         * XplatUIX11.cs (GetMessage):
31588           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
31589             window instead of client window
31590           - Now properly calculates NC_xBUTTONUP message coordinates
31591           - ScreenToMenu now properly calculates it's coordinates of whole 
31592             window, since menus are in the whole window, not in the client
31593             window
31594           - Added WholeToScreen coordinate translation method
31595
31596 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
31597
31598         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
31599           want to return a message, loop back to the beginning of the function
31600           and grab the next real message to process instead.
31601
31602 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
31603
31604         * Splitter.cs: Properly set limits if no filler control is used
31605
31606 2005-10-19  Jackson Harper  <jackson@ximian.com>
31607
31608         * ColorDialog.cs: Don't show the help button if it is not enabled
31609         instead of disabling it (this is what MS does). Don't create the
31610         panel until the dialog is run, otherwise the vars (such as
31611         ShowHelp) are not set yet.
31612
31613 2005-10-19  Jackson Harper  <jackson@ximian.com>
31614
31615         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
31616         are reduced when adding nodes.
31617         * TreeNode.cs:
31618         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
31619         tree.
31620         
31621 2005-10-19  Jackson Harper  <jackson@ximian.com>
31622
31623         * FolderBrowserDialog.cs: End editing our treeview so the window
31624         actually gets refreshed.
31625
31626 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
31627
31628         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
31629           Obsoleted handling of WM_ERASEBKGND, now always draws our background
31630           inside of WM_PAINT
31631
31632 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
31633
31634         * MenuAPI.cs: Returns after Hidding window
31635         * XplatUIX11.cs: Added TODO found while debugging menu issues
31636
31637 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
31638
31639         * XplatUIX11.cs: Do not re-map the whole window when it's size
31640           becomes non-zero unless it's supposed to be actually visible
31641
31642 2005-10-18  Jackson Harper  <jackson@ximian.com>
31643
31644         * TreeView.cs: We don't need to keep a count anymore.
31645         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
31646         use the Grow method.
31647
31648 2005-10-18  Jackson Harper  <jackson@ximian.com>
31649
31650         * TreeNodeCollection.cs: Insert is not supported on arrays, so
31651         implement it manually here.
31652
31653 2005-10-18  Jackson Harper  <jackson@ximian.com>
31654
31655         * ImageList.cs: Dont kill the list when the colour depth is
31656         changed, just change the colour depth of all the images.
31657         - Same goes for setting the image size. Just resize them all
31658         instead of killing the list softly.
31659
31660 2005-10-18  Jackson Harper  <jackson@ximian.com>
31661
31662         * Control.cs: Don't invalidate empty rectangles.
31663
31664 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
31665
31666         * ListViewItem.cs:
31667           - Adds checked item to the Checked/Item lists (where empty before)
31668           - Do not add items to the Selected lists if they are already present
31669         * ListView.cs:
31670           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
31671           - When deleting items make sure that we delete them for the Selected
31672           and Checked list also.
31673
31674 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
31675
31676         * Label.cs: Dispose objects no longer used
31677         * ThemeWin32Classic.cs: Dispose objects no longer used
31678
31679 2005-10-18  Jackson Harper  <jackson@ximian.com>
31680
31681         * TabControl.cs: Don't refresh the whole control when the tabs are
31682         scrolled, we just need to refresh the tab area.
31683
31684 2005-10-17  Jackson Harper  <jackson@ximian.com>
31685
31686         * XplatUIX11.cs: Compress code a little bit. Only calculate the
31687         after handle when we need it.
31688
31689 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
31690
31691         * Control.cs: When the parent size changes, recalculate anchor 
31692           positions. Partial fix for #76462
31693
31694 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
31695
31696         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
31697           drawn. Fixes #76462
31698
31699 2005-10-17  Jackson Harper  <jackson@ximian.com>
31700
31701         * MonthCalendar.cs: Don't create the numeric up down until our
31702         handle is created. Otherwise our handle is created in the
31703         constructor and we don't know if we are a WS_CHILD or WS_POPUP
31704         yet.
31705
31706 2005-10-17  Jackson Harper  <jackson@ximian.com>
31707
31708         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
31709         correctly.
31710
31711 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
31712         * TreeNode.cs : small logical fix (was using local var instead of field)
31713         
31714 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
31715
31716         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
31717
31718 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
31719
31720         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
31721
31722 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
31723
31724         * Control.cs: 
31725           - Re-implemented anchoring code. My first version was really broken.
31726             This fixes bug #76033. Unlike the previous implementation we will
31727             no longer have round errors since all numbers are calculated from
31728             scratch every time. Removed various anchor-related obsolete vars.
31729           - InitLayout no longer causes layout event firing and layout to be 
31730             performed
31731
31732 2005-10-16  Jackson Harper  <jackson@ximian.com>
31733
31734         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
31735         which was broken).
31736
31737 2005-10-16  Jackson Harper  <jackson@ximian.com>
31738
31739         * TabControl.cs: Remove debug code.
31740
31741 2005-10-16  Jackson Harper  <jackson@ximian.com>
31742
31743         * XEventQueue.cs: Increase the default queue size (very simple
31744         apps needed to grow the queue).
31745         * Hwnd.cs: No finalizer so we don't need to suppress
31746         finalization. Compute the invalid area manually so a new rectangle
31747         does not newto be created.
31748         * ScrollableControl.cs: Don't set any params (otherwise visibility
31749         isn't set correctly).
31750         * MdiChildContext.cs: New constructor takes the mdi parent so it
31751         doesn't have to be computed and avoids a crash on windows. Draw
31752         the window icon properly, and allow the text to be seen.
31753         * Form.cs: Use new MdiChildContext constructor. Make sure the
31754         child context isn't null in wndproc.
31755         * TabControl.cs: Don't set focus, this is muddling keyboard
31756         behavoir. Expand the tab rows when a window size increase will
31757         allow extra tabs to be seen. Don't allow tabs smaller than the
31758         width of a window to be scrolled out of view.
31759         * TreeNode.cs:
31760         * TreeView.cs: Use measure string to calculate a nodes width, the
31761         width is cached and only updated when the text or the font is
31762         changed. Don't check for expand/collapse clicks on the first level
31763         nodes if root lines are disabled.
31764         
31765 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
31766
31767         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
31768
31769 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
31770
31771         * DataGridBoolColumn.cs: fixes warning
31772
31773 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
31774
31775         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
31776         to match more to match more precisely the MS Net behavior
31777
31778 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
31779
31780         * Hwnd.cs: Added field to track if window is mapped
31781         * XplatUIX11.cs: 
31782           - Unmap windows if they become 0-size, re-map when 
31783             they are >0 again; fixes #76035
31784           - Re-set our error handler after initializing X11Desktop
31785             to override any error handlers Gtk or whatever was called
31786             may have set.
31787
31788 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
31789
31790         * CheckedListBox.cs: Removed unused vars
31791         * ListView.cs: Fixed signatures
31792         * RichTextBox.cs: Removed unused vars
31793         * TextBoxBase.cs: Removed unused vars
31794         * XplatUIWin32.cs: Removed unused vars
31795         * XplatUIX11.cs: Removed unused vars
31796         * XplatUI.cs: Updated version and date to latest published
31797
31798 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
31799
31800         * Cursor.cs: Added private .ctor to work around a bug in
31801           resourceset (Thanks to Geoff Norton for the help on this)
31802         * SplitterEventArgs.cs: Made fields accessible so we don't
31803           waste boatloads of objects and can reuse the same one
31804           in Splitter
31805         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
31806           any captions and borders when generating screen coordinates
31807         * Splitter.cs: Reimplemented control, now fully complete, uses
31808           rubberband drawing, supports and obeys all properties, has
31809           proper cursors
31810
31811 2005-10-13  Miguel de Icaza  <miguel@novell.com>
31812
31813         * Form.cs (Form): Setup default values for autoscale and
31814         autoscale_base_size;  Make these instance variables, not static
31815         variables. 
31816
31817         (OnLoad): on the first load, adjust the size of the form.
31818
31819 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
31820
31821         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
31822           width argument to DrawReversibleRectangle()
31823         * XplatUIWin32.cs, XplatUIX11.cs: 
31824           - Implemented width for DrawReversibleRectangle()
31825           - Added logic to DrawReversibleRectangle that recognizes a zero
31826             width or height and only draws a line in that situation
31827         
31828 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
31829
31830         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
31831         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
31832         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
31833           method (it uses our FosterParent window to get a graphics context)
31834
31835 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
31836
31837         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
31838           and SetWindowBackground methods
31839         * Control.cs:
31840           - Setting proper ControlStyles
31841           - We no longer call XplatUI.SetWindowBackground and XplatUI.
31842             EraseWindowBackground, instead we draw the window background
31843             ourselves in PaintControlBackground. This behaviour is
31844             required to match MS, where, when OnPaintBackground is not
31845             called, the background is not drawn.
31846           - Removed unneeded Refresh() in set_Text
31847         * Hwnd.cs: Dropped the ErasePending support. No longer needed
31848         * XplatUIX11.cs:
31849           - Created DeriveStyles method to translate from CreateParams to
31850             FormBorderStyle and TitleStyle, also handles BorderStyle (which
31851             matches FormBorderStyle enum values)
31852           - Consolidated SetHwndStyles and CalculateWindowRect border/title
31853             style calculations into single DeriveStyles method
31854           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
31855             from redrawing the whole window on any resize or expose.
31856           - Fixed CreateWindow usage of SetWindowValuemask. Before not
31857             all styles were applied to our whole/client window appropriately
31858           - Removed EraseWindowBackground() and SetWindowBackground() methods
31859           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
31860             no longer clear/redraw the background through X
31861           - Removed handling of erase_pending bit, we have no use for it (or
31862             so it seems)
31863         * XplatUIOSX.cs:
31864           - Removed generation and handling of WM_ERASEBKGND message
31865           - Removed EraseWindowBackground() and SetWindowBackground() methods
31866           - Removed handling of hwnd.ErasePending flag
31867         * XplatUIWin32.cs:
31868           - Removed EraseWindowBackground() and SetWindowBackground() methods
31869           - We no longer call EraseWindowBackground on PaintEventStart, we 
31870             ignore the fErase flag, erasing is handled in Control in the
31871             background handler
31872         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
31873           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
31874           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
31875           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
31876           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
31877           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
31878           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
31879
31880 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
31881
31882         * PropertyGrids.cs: Get sub properties
31883         * PropertyGridView.cs: Fix drawing code
31884
31885 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31886
31887         * ListBox.cs: Fixes 76383
31888
31889 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31890
31891         * DataGridTextBoxColumn.cs: Sets location and size before attachment
31892         * ThemeWin32Classic.cs: Fixes border drawing and calculations
31893         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
31894
31895
31896 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31897
31898         * ComboBox.cs: Fixes border drawing
31899
31900 2005-10-10  Miguel de Icaza  <miguel@novell.com>
31901
31902         * MimeIcon.cs: Ignore errors if the file can not be read.
31903
31904 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31905
31906         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
31907          - Fixed border calculations
31908          - Fixed horizontal scrolling in single column listboxes
31909          - Fixed drawing issues
31910
31911 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
31912
31913         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
31914           FormBorderStyle enum
31915         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
31916           code to determine FormBorderStyles from CreateParams
31917         * Form.cs:
31918           - Fixed bug where we'd set the wrong window styles if we were
31919             not creating an MDI window
31920           - Added call to XplatUI.SetBorderStyle when form borders are set
31921         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
31922         * Hwnd.cs:
31923           - Removed obsolete edge style
31924           - Switched from BorderStyle to FormBorderStyle
31925         
31926 2005-10-10  Jackson Harper  <jackson@ximian.com>
31927
31928         * Form.cs: Use the property to get the window handle instead of
31929         accessing it directly. Prevents a null reference exception.
31930
31931 2005-10-10  Jackson Harper  <jackson@ximian.com>
31932
31933         * TreeView.cs: Don't adjust the rect given to DrawString now that
31934         our libgdiplus draws correctly.
31935
31936 2005-10-08  Jackson Harper  <jackson@ximian.com>
31937
31938         * TreeView.cs: Don't try to find the clicked on node if there are
31939         no nodes in the tree.
31940
31941 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
31942
31943         * RichTextBox.cs:
31944
31945           restore
31946
31947 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
31948
31949         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
31950           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
31951           ErrorProvider.cs:
31952           Use ResPool for brushes and dispose System.Drawing objects that
31953           are not used anymore.
31954
31955 2005-10-07  Jackson Harper  <jackson@ximian.com>
31956
31957         * MdiChildContext.cs: Use the new borders instead of drawing them
31958         ourselves.
31959
31960 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
31961
31962         * Calling UpdateBounds after changing the window's BorderStyle 
31963         since the style can change the ClientSize
31964
31965 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31966
31967         * Control.cs: Made PaintControlBackground virtual
31968         * Panel.cs: Overriding PaintControlBackground instead of using paint
31969           event; paint event method was interfering with 'real' users of the
31970           event.
31971
31972 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
31973
31974         * ThemeWin32Classic.cs: remove border drawing since it is handled
31975         by the base control class now and was causing double border drawing.
31976
31977 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31978
31979         * Panel.cs: Redraw our background on paint. Not a pretty solution,
31980           but it does seem to match MS behaviour. This fixes bug #75324
31981
31982 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31983
31984         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
31985           somewhat hackish looking
31986
31987 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
31988
31989         * TextBoxBase.cs:
31990           - We now accept Enter even if AcceptEnter is false, if the containing
31991             form does not have an AcceptButton configured (fixes bug #76355)
31992           - Calculations are now fixed to no longer use Width/Height, but
31993             ClientSize.Width/Height, since we now support borders (this was
31994             a result of fixing borders and therefore bug #76166)
31995           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
31996             true (fixes bug #76354)
31997         
31998 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31999
32000         * Control.cs: 
32001           - Defaulting BorderStyle and setting it in XplatUI when our window 
32002             is created
32003           - Added enum check to InternalBorderStyle setter
32004         * XplatUIX11.cs: 
32005           - Added drawing of window borders
32006           - Now properly calculates WM decorations offset for toplevel 
32007             windows (fixes bug #74763)
32008         * XplatUIWin32.cs: 
32009           - Implemented BorderStyles for windows (we're letting win32 draw 
32010             the border for us)
32011           - Fixed the signature for SetWindowLong
32012         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
32013           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
32014           setting borders
32015         * UpDownBase.cs: Remove drawing of borders, this is handled by
32016           the driver, outside the client area
32017         * ListView.cs: Removed bogus border calculations. The control should
32018           be oblivious to borders, since those are not part of the client
32019           area. 
32020         * X11DesktopColors.cs: Commented out (currently) unneeded variables
32021         * ThemeWin32Classic.cs: Removed border calculations from ListView 
32022           drawing code
32023
32024 2005-10-06  Jackson Harper  <jackson@ximian.com>
32025
32026         * MdiChildContext.cs: Clear out the old virtual position remove
32027         all the unneeded calls to CreateGraphics.
32028
32029 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
32030
32031         * TextControl.cs: Use proper color for highlighted text; fixes #76350
32032
32033 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
32034
32035         * Form.cs: 
32036           - Added loading and setting of our new default icon
32037           - Only set icon if window is already created
32038
32039 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
32040
32041         * Label.cs:
32042           - Do not explicitly set the foreground and background colors, to
32043             allow inheriting from parents (fixes #76302)
32044           - Use Control's InternalBorderStyle property to deal with borders
32045
32046 2005-10-06  Jackson Harper  <jackson@ximian.com>
32047
32048         * MdiChildContext.cs: Use the new xplatui function to draw a
32049         reversible rect.
32050
32051 2005-10-06  Jackson Harper  <jackson@ximian.com>
32052
32053         * Form.cs: Add the parent before creating the child context cause
32054         we need the parent when setting up the child.
32055
32056 2005-10-06  Jackson Harper  <jackson@ximian.com>
32057
32058         * FolderBrowserDialog.cs: redo the tree population code so a
32059         second thread isn't used. Should be a lot faster and more stable
32060         now.
32061
32062 2005-10-05  Jackson Harper  <jackson@ximian.com>
32063
32064         * TreeView.cs: There are no expand/collapse boxes if the node has
32065         no children.
32066
32067 2005-10-05  Jackson Harper  <jackson@ximian.com>
32068
32069         * X11DesktopColors.cs: Get menu colours for the gtk theme.
32070
32071 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
32072
32073         * FileDialog.cs: Fix InitialDirectory
32074
32075 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
32076
32077         * ComboBox.cs:
32078                 - Fixes changing between styles
32079                 - Fixes simple mode
32080                 - Fixes last item crashing when navigating with keyboard
32081
32082 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
32083
32084         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
32085
32086 2005-10-05  Jackson Harper  <jackson@ximian.com>
32087
32088         * TreeView.cs: If updating the root node do a full refresh.
32089         * TreeNode.cs: The root node should be expanded by default. Also
32090         added a utility prop to tell if we are the root node.
32091         * TreeNodeCollection.cs: Only refresh if the node we are being
32092         added to is expanded. Also added a comment on a potential
32093         optimization.
32094         
32095 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
32096
32097         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
32098           in dispose method. Fixes #76330
32099
32100 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
32101
32102         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
32103
32104                 - Implements vertical and horizontal scrolling using XplatUI
32105                 - Fixes keyboard navagation
32106                 - Fixes EnsureVisible
32107                 - Drawing fixes
32108                 - Handles and draws focus properly
32109
32110
32111 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
32112
32113         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
32114           Create handle. NET_2_0: Destroy handle when value is null.
32115
32116 2005-10-03  Jackson Harper  <jackson@ximian.com>
32117
32118         * ScrollBar.cs: My last scrollbar patch was broken. This is a
32119         revert and a new patch to prevent the thumb from refreshing so
32120         much.
32121
32122 2005-10-02  Jackson Harper  <jackson@ximian.com>
32123
32124         * ScrollBar.cs: Don't update position if it hasn't actually
32125         changed. This occurs when you hold down the increment/decrement
32126         buttons and the thumb gets to the max/min.
32127
32128 2005-10-01  Jackson Harper  <jackson@ximian.com>
32129
32130         * Form.cs:
32131         * MdiChildContext.cs:
32132         * MdiClient.cs: Implement ActiveMdiChild in Form.
32133
32134 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
32135
32136         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
32137
32138 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
32139
32140         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
32141           be found
32142
32143 2005-09-30  Jackson Harper  <jackson@ximian.com>
32144
32145         * ListBox.cs: Don't do a full refresh unless some data has
32146         actually changed.
32147
32148 2005-09-30  Jackson Harper  <jackson@ximian.com>
32149
32150         * TreeView.cs: Make sure that the checkboxes size is factored in
32151         even when not visible.
32152
32153 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
32154
32155         * FileDialog.cs: Fix Jordi's build break
32156
32157 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
32158
32159         * FileDialog.cs: 
32160                 - Use standard the Windows colours for the combobox as espected
32161                 - Dispose objects that use resouces when no longer need them
32162
32163 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
32164
32165         * X11DesktopColors.cs: Initial incomplete implementation
32166         * XplatUIX11.cs: Added call to initialize X11DesktopColors
32167
32168 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
32169
32170         * Theme.cs: 
32171           - Switched Theme color names to match the names defined in 
32172             System.Drawing.KnownColors. Life's hard enough, no need to make 
32173             it harder.
32174           - Added setters to all theme color properties so themes can set
32175             their color schemes. The setters also propagate the color changes
32176             to System.Drawing.KnownColors via reflection
32177         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
32178           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
32179           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
32180           use the new, more logical theme color names
32181         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
32182           post-NT colors
32183         * ThemeWin32Classic.cs:
32184           - Removed code to set the old classic Windows colors. Instead it
32185             now relies on the colors returned by System.Drawing.KnownColors
32186             which will be either modern static colors (Unix) or colors
32187             read from the user's configuration (Win32)
32188           - Updated to use the new, more logical theme color names
32189           - Switched DataGrid drawing code to use only Theme colors instead of
32190             a mix of System.Drawing.KnownColors and Theme colors
32191           - DrawFrameControl(): Removed code that fills the button area, the
32192             fill would overwrite any previous fill done by a control. This
32193             fixes bug #75338 
32194           - Added DrawReversibleRectangle() stub
32195         * ScrollableControl.cs: Set visible state to false when scrollbars
32196           are removed (pdn fix)
32197         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
32198           DrawReversibleRectangle() method to allow drawing primitive 
32199           'rubber bands'
32200         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
32201
32202 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32203
32204         * ImageList.cs: Add(Icon): Create handle.
32205
32206 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
32207
32208         * ListView.cs:
32209         * ThemeWin32Classic.cs:
32210                 - Fixes detail mode
32211                 - Sets clippings
32212                 - Issues with drawing
32213
32214 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32215
32216         * ImageList.cs: Moved RecreateHandle back to ImageList as event
32217           source has to be the ImageList.
32218
32219 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32220
32221         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
32222
32223 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32224
32225         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
32226
32227 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32228
32229         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
32230
32231 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
32232         * GridItem.cs: Fixed TODOs
32233         * GridItemCollection.cs: Added ICollection interface
32234
32235 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32236
32237         * ImageList.cs: Resize icons when needed.
32238
32239 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
32240
32241         * ListViewItem.cs
32242                 - Fixes GetBounds and returns on screen rects
32243         * ListView.cs:
32244                 - Fixes vertical and horzintal scrolling of items
32245         * ThemeWin32Classic.cs:
32246                 - Fixes drawing
32247                 
32248 2005-09-29  Raja R Harinath  <harinath@gmail.com>
32249
32250         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
32251
32252 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
32253
32254         * ImageList.cs: Added comments about handle creation. Moved Handle,
32255           HandleCreated and OnRecreateHandle implementations to ImageCollection.
32256           Handle is created in Add methods.
32257
32258 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
32259          
32260         * DataGridDrawingLogic.cs: 
32261                 - Takes rows into account on Colum calculations
32262                 - Returns the column when clickig
32263         * DataGrid.cs:
32264                 - Fixes default HitTestInfo values
32265                 - Fixes HitTestInfo.ToString
32266                 - Fixes ResetBackColor          
32267         
32268 2005-09-28  Jackson Harper  <jackson@ximian.com>
32269
32270         * MdiChildContext.cs: Obey rules for fixed sized windows (no
32271         sizing or cursor changes). Also added some temp code to draw the
32272         titlebars text (Makes dev a little easier).
32273
32274 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
32275
32276         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
32277
32278 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
32279          
32280         * ListBox.cs: Fixes bug 76253
32281
32282 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
32283
32284         * ImageList.cs: Added comments about the current implementation. Added
32285           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
32286           Format32bppArgb to preserve transparency and can use Graphics.FromImage
32287           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
32288           with Bitmap.LockBits for better performance. Revised the whole file to
32289           match MS.NET behaviour and provide better performance. Non-public
32290           interface members are calling public members even when they throw
32291           NotSupportedException for better maintainability. Moved ColorDepth,
32292           ImageSize, ImageStream and TransparentColor implementations to
32293           ImageCollection for better performance as these properties are not used
32294           by ImageList.
32295         * ImageListStreamer.cs: Added a new internal constructor that takes an
32296           ImageList.ImageCollection and serializes Images based on
32297           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
32298           match ImageList property name.
32299
32300 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
32301
32302         * ListBox.cs: Fixes IndexFromPoint for last item
32303
32304 2005-09-27  Jackson Harper  <jackson@ximian.com>
32305
32306         * Form.cs: Set the position of new mdi children correctly.
32307
32308 2005-09-27  Jackson Harper  <jackson@ximian.com>
32309
32310         * MdiClient.cs: New mdi children need to be added to the back of
32311         the controls collection so the zorder is set correctly. Also add a
32312         count of all the child windows that have been created.
32313
32314 2005-09-27  Jackson Harper  <jackson@ximian.com>
32315
32316         * Form.cs (CreateParams): Setup MDI forms correctly.
32317
32318 2005-09-27  Jackson Harper  <jackson@ximian.com>
32319
32320         * MdiChildContext.cs:
32321         * MonthCalendar.cs:
32322         * UpDownBase.cs:
32323         * ListBox.cs:
32324         * ListView.cs:
32325         * TextBoxBase.cs:
32326         * TreeView.cs:
32327         * ScrollableControl.cs:
32328         * ComboBox.cs: Add implicit controls using the new implict control
32329         functionality in ControlCollection. Also try to block multiple
32330         control add in a suspend/resume layout to save some cycles.
32331         
32332 2005-09-27  Jackson Harper  <jackson@ximian.com>
32333
32334         * Control.cs: Add functionality to the controls collection to add
32335         'implicit controls' these are controls that are created by the
32336         containing control but should not be exposed to the user. Such as
32337         scrollbars in the treeview.
32338         * Form.cs: The list var of the ControlsCollection is no longer
32339         available because of the potential of implicit controls getting
32340         ignored by someone accessing the list directly.
32341
32342 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
32343
32344         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
32345           loose it's parent. (Fixed bug introduced in r49103 when we added
32346           setting the child parent to null on Remove)
32347
32348 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
32349
32350         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
32351         * Splitter.cs: Added missing attributes for BorderStyle property.
32352         * TextBoxBase.cs: Marked Calculate* methods internal.
32353         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
32354         MS.NET.
32355
32356 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
32357          
32358         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
32359
32360 2005-09-25  Jackson Harper  <jackson@ximian.com>
32361
32362         * TreeView.cs: Update the node bounds correctly regardless of
32363         whether the node is visible.
32364
32365 2005-09-25  Jackson Harper  <jackson@ximian.com>
32366
32367         * ImageList.cs: Don't dispose the image after it is added to the
32368         image list. Only reformat images that need to be resized.
32369
32370 2005-09-25  Jackson Harper  <jackson@ximian.com>
32371
32372         * ImageList.cs: Don't set the format when changing the image.
32373
32374 2005-09-25  Jackson Harper  <jackson@ximian.com>
32375
32376         * TreeView.cs: We can't just assume the node has a font. Use the
32377         treeviews font if no node font is available.
32378
32379 2005-09-25  Jackson Harper  <jackson@ximian.com>
32380
32381         * TreeView.cs: Allow the scrollbars to be reset with negative
32382         values.
32383         - Don't add scrollbars to negative sized windows.
32384
32385 2005-09-23  Jackson Harper  <jackson@ximian.com>
32386
32387         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
32388         old Mono.Posix. Also remove some stray code that shouldn't have
32389         been committed.
32390
32391 2005-09-23  Jackson Harper  <jackson@ximian.com>
32392
32393         * TreeView.cs: Attempt at proper sizing of the horizontal
32394         scrollbar. Also don't resize the scrollbars unless they are
32395         visible.
32396
32397 2005-09-23  Jackson Harper  <jackson@ximian.com>
32398
32399         * TreeView.cs: We don't need to expand the invalid area when the
32400         selection changes, as this is all drawn in the node's bounding
32401         box. The area needs to be expanded (previous typo was contracting
32402         it) when the focus rect moves.
32403
32404 2005-09-23  Jackson Harper  <jackson@ximian.com>
32405
32406         * TreeView.cs: Display the selection box under the correct
32407         circumstances. We were rendering white text with no selection box
32408         before.
32409
32410 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
32411
32412         * TextControl.cs(Split): Now updates selection start/end if it points 
32413           into a line that's being split. Fixes a FIXME and bug #75258
32414
32415 2005-09-23  Jackson Harper  <jackson@ximian.com>
32416
32417         * Binding.cs:
32418         * ListControl.cs: Don't use the path when retrieving binding
32419         managers from the binding context. My bat sense tells me that the
32420         path is only used on insertion.
32421
32422 2005-09-22  Jackson Harper  <jackson@ximian.com>
32423
32424         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
32425
32426 2005-09-22  Jackson Harper  <jackson@ximian.com>
32427
32428         * Splitter.cs: There are special cursors used for splitting.
32429         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
32430
32431 2005-09-22  Jackson Harper  <jackson@ximian.com>
32432
32433         * Splitter.cs: Change the cursor appropriately when the splitter
32434         is moused over, so the user actually knows there is a splitter
32435         there.
32436
32437 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
32438
32439        * Label.cs : Fix ToString method to give same output as MS.NET
32440
32441 2005-09-22  Jackson Harper  <jackson@ximian.com>
32442
32443         * TreeView.cs: Create the scrollbars when the handle is created
32444         and add them right away, just make them invisble. Also account for
32445         the window being shrunk vertically to the point that the vert
32446         scrollbar needs to be added.
32447         - Remove some 0.5 adjustments to get around anti aliasing issues.
32448         
32449 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
32450          
32451         * MainMenu.cs: Fixes default value
32452         * MenuItem.cs: Fixes default value
32453
32454 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
32455
32456         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
32457
32458 2005-09-21  Jackson Harper  <jackson@ximian.com>
32459
32460         * Control.cs: Don't try to set the border style on the window if
32461         it hasn't been created. When the window is created the border
32462         style will be used.
32463
32464 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
32465
32466         * Control.cs (Update): Don't call XplatUI if we don't have a
32467           window handle yet
32468
32469 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
32470
32471         * ContainerControl.cs: Instead of throwing an exception, print
32472           a one-time warning about Validate not being implemented
32473         * XplatUIWin32.cs: Removed debug output
32474
32475 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
32476
32477         * Control.cs: Only set XplatUI background if we expect the windowing
32478           system to handle the background. This stops controls that draw their
32479           own background from flickering
32480
32481         * XplatUIX11.cs: Support custom visuals and colormaps for window 
32482           creation. This allows, amongst other things, using MWF X11 windows 
32483           with OpenGL.
32484
32485 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
32486
32487         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
32488           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
32489           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
32490           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
32491           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
32492           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
32493           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
32494           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
32495           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
32496           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
32497           GridColumnStylesCollection.cs, 
32498           IDataGridColumnStyleEditingNotificationService.cs,
32499           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
32500           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
32501           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
32502           TreeNodeCollection.cs, AmbientProperties.cs, 
32503           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
32504           DataObject.cs, ErrorProvider.cs, Splitter.cs,
32505           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
32506           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
32507           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
32508           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
32509           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
32510           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
32511           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
32512           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
32513           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
32514           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
32515           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
32516           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
32517           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
32518           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
32519           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
32520           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
32521           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
32522           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
32523           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
32524           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
32525           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
32526           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
32527           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
32528           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
32529           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
32530           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
32531           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
32532           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
32533           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
32534           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
32535           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
32536           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
32537           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
32538           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
32539           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
32540
32541 2005-09-21  Jackson Harper  <jackson@ximian.com>
32542
32543         * TreeNode.cs: Call Before/After Expand not Collapse when
32544         expanding.
32545
32546 2005-09-20  Jackson Harper  <jackson@ximian.com>
32547         
32548         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
32549
32550 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
32551          
32552         * ListViewItem.cs:
32553                 - Fixes bug 76120
32554                 - Fixes proper storing of subitems
32555                 - Fixes not updated items
32556
32557 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
32558
32559         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
32560           things if our window handle isn't created yet. Also disabled 
32561           debug for TextBoxBase
32562
32563 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
32564
32565         * MenuAPI.cs: Remove filtering of events to allow menu usage
32566
32567 2005-09-20  Miguel de Icaza  <miguel@novell.com>
32568
32569         * Cursor.cs: Allow null to be passed to Cursor.Current.
32570
32571 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
32572
32573         * ThemeWin32Classic.cs:
32574           - Change some private methods/fields to protected virtual so that 
32575             they can be accessed and overriden in derived classes
32576           - First refactoring of some methods. Derived themes now don't 
32577             need to duplicate the complete code from ThemeWin32Classic
32578         * ThemeNice.cs:
32579           - Added nice StatusBar
32580           - Derive from ThemeWin32Classic and not Theme
32581           - Removed duplicate ThemeWin32Classic code
32582
32583 2005-09-20  Miguel de Icaza  <miguel@novell.com>
32584
32585         * Control.cs (ControlCollection.Add): If the value null is passed
32586         the control is ignored. 
32587
32588         Optimize this loop.
32589
32590 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
32591
32592         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
32593           PostQuitMessage state.
32594         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
32595
32596 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
32597
32598         * Application.cs: Our constructor will never get called, move 
32599           initialization to fields; fixes bug #75933
32600
32601 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
32602
32603         * FileDialog.cs :
32604                 - Allow files to be selected properly using file name
32605                 combo box.
32606                 - Add ability to change diretory (absolute / relative)
32607                 using file name combo box.
32608
32609 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
32610          
32611         * ListBox.cs: 
32612                 - Fixes Multicolumn listboxes item wrong calculations
32613                 - Allows to click when only one item is in the listbox
32614                 - Fixes crash when no items using keyboard navigation
32615
32616 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
32617
32618         * ComboBox.cs: Reverted almost everything from the latest patch which
32619           broke ComboBox
32620
32621 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
32622         
32623         * ToolTip.cs:
32624                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
32625         * ComboBox.cs:
32626                 - When DropDownStyle is Simple, it does not show scrollbar 
32627                 to the last item of the list.
32628                 - When DropDownStyle is Simple, it crashed when the list was 
32629                 scrolled down with the down cursor key.
32630                 - Fixed a bug that when DropDownStyle is DropDownList, the 
32631                 selected item was not shown.
32632                 - The position of the selected item was not preserved when 
32633                 the next dropdown happened.
32634         * ThemeWin32Classic.cs:
32635                 - Items were wrapped at the right end.
32636         * CheckedListBox.cs:
32637                 - Fixed Add method
32638         * ListBox.cs:
32639                 - Items should be fully shown.
32640                 - When resizing and vertical scrollbar disappeared, the item 
32641                 of index 0 should be on the top of the list.
32642                 - GetItemRectangle should consider the size of ver. scrollbar
32643         * StatusBar.cs:
32644                 - SizingGrip area should not be allocated when it is not 
32645                 displayed.
32646                 - Now it reflects MinWidth of the containing panel and 
32647                 fixed a crash that happens when its width becomes so small.
32648
32649 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
32650
32651         * CheckedListBox.cs: Fixes bug 76028
32652         * ListBox.cs: Fixes bug 76028
32653
32654 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
32655
32656         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
32657         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
32658
32659 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
32660
32661         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
32662
32663 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
32664
32665         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
32666
32667 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
32668
32669         * IRootGridEntry.cs: Added
32670         * PropertyGridCommands.cs: Added
32671         * PropertiesTab.cs: Added missing methods and property
32672         * PropertyGridView.cs: Made class internal
32673         * PropertyGridTextBox.cs: Made class internal
32674
32675 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
32676
32677         * MimeIcon.cs: Try to check some other environment variables
32678           if "DESKTOP_SESSION" returns "default"
32679
32680 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
32681
32682         * ThemeNice.cs: Corrected background colors (e.g. menus)
32683         * ColorDialog.cs: Use correct background colors for controls
32684
32685 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
32686
32687         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
32688
32689 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
32690
32691         * RichTextBox.cs: Added initial implementation
32692         * lang.cs: Removed. Was accidentally checked in long time ago
32693         * TODO: Removed. Contents were obsolete
32694
32695 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
32696                                                                                 
32697         * PropertiesTab.cs : Added
32698
32699 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
32700                                                                                 
32701         * PropertyGrid.cs : Update
32702         * PropertyGridView.cs : Update
32703         * System.Windows.Forms.resx : Added images and strings
32704
32705 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
32706
32707         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
32708  
32709 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
32710
32711         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
32712           a busy loop right after the Ungrab the X11 display is otherwise 
32713           blocked
32714
32715 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
32716
32717         * ThemeWin32Classic.cs: Optimise the use of clipping
32718
32719 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
32720
32721         * DataGrid.cs: fixes recursion bug
32722
32723 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
32724
32725         * ThemeNice.cs: 
32726           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
32727           - Cleanup
32728
32729 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
32730
32731         * ThemeNice.cs: Draw nice ProgressBars
32732
32733 2005-09-01  Miguel de Icaza  <miguel@novell.com>
32734
32735         * VScrollBar.cs: Another buglet found by Aaron's tool. 
32736
32737         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
32738         bug finder.
32739
32740 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
32741
32742         * ThemeNice.cs:
32743           - Added nicer menu drawing
32744           - Updated DrawTab
32745           - some refactoring
32746
32747 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
32748
32749         * CreateParams.cs (ToString): Made output match MS
32750         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
32751             handle is already created (to avoid forcing window creation)
32752         * XplatUIX11.cs: Set window text to caption after creating window,
32753           in case Text was set before window was created
32754         * Form.cs: Use this.Text instead of a static string as caption
32755
32756 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
32757
32758         * NotifyIcon.cs: Don't set the window to visible; this screws
32759           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
32760           OnPaint without a bitmap)
32761         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
32762           happen very often anyway; we could add the check to the WM_PAINT 
32763           event generation code
32764
32765 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
32766
32767         * NotifyIcon.cs: Fill the icon area with a background color, to 
32768           avoid 'residue' when transparent icons are drawn
32769         * XplatUIX11.cs:
32770           - Handle whole_window == client_window when destroying windows
32771           - SystrayAdd(): Set client_window to whole_window value to
32772             get mouse and other events passed to NotifyIcon
32773
32774 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
32775
32776         * Form.cs: Set proper default for Opacity property
32777         * NotifyIcon.cs:
32778           - ShowSystray(): Don't bother creating telling the OS
32779             about the systray item if no icon is provided
32780           - Now handles WM_NCPAINT message to deal with whole/client window
32781             split
32782           - Create window as visible to not get caught by Expose optimization
32783         * Hwnd.cs: Removed debug message
32784         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
32785           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
32786             PaintEventStart/End to use new client argument
32787         * TextBoxBase.cs:
32788           - Commented out debug messages
32789           - Switched PaintEventStart/End to use new client argument
32790         * XplatUI.cs: Added client window bool to PaintEventStart()/
32791           PaintEventEnd() calls, to support drawing in non-client areas
32792         * XplatUIDriver.cs: 
32793           - Added client window bool to PaintEventStart()/PaintEventEnd() 
32794             calls, to support drawing in non-client areas
32795           - Added conditional compile to allow using MWF BeginInvoke 
32796             on MS runtime
32797         * XplatUIX11.cs:
32798           - Added some conditional debug output
32799           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
32800             whole/client window split
32801           - Implemented handling of client argument to PaintEventStart()/End()
32802         * Control.cs:
32803           - Throw exception if BeginInvoke() is called and the window handle
32804             or one of the window's parent handles is not created
32805           - Added conditional compile to allow using MWF BeginInvoke on
32806             MS runtime
32807           - get_Parent(): Only sets parent if handle is created. This avoids
32808             forcing window handle creation when parent is set.
32809           - Now fires Layout and Parent changed events in proper order
32810           - Switched to use Handle instead of window.Handle for Z-Order setting,
32811             the get_Parent() patch above causes us to possibly get null for 'window'
32812           - Implemented handling of client argument to PaintEventStart()/End()
32813           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
32814             default handling)
32815           - Now sends a Refresh() to all child windows when Refresh() is called
32816
32817 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
32818
32819         * Form.cs: Added (non-functional) Opacity property
32820         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
32821
32822 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
32823         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
32824           use export MONO_THEME=nice to activate it.
32825           Currently supported controls:
32826           - Button
32827           - ComboBox
32828           - ScrollBar
32829           - TabControl (TabAlignment.Top only, other will follow)
32830         * ThemeEngine.cs: Add theme nice
32831         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
32832           if enabled
32833
32834 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
32835
32836         * Splitter.cs: Resize docked control and its neighbor.
32837
32838 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
32839         -- Making Windows with Menus layout correctly --
32840         * Form.cs : The first leg of the fix
32841                 Menu setter - adjust Client Size as needed to make space for the menu
32842                 SetClientSizeCore - doesn't call base version to be able to pass the 
32843                         menu handle to XplatUI.CalculateWindowRect
32844         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
32845         * XplatUIX11.cs: The critical second leg of the fix
32846                 GetWindowPos needs to use a recalculated client_rect
32847                 so that resizing the window doesn't break layout of child controls. 
32848                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
32849                 Lots of \t\n killed
32850
32851 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
32852
32853         * Label.cs: Now properly recalculates width and height on Font and Text
32854           changes if AutoSize is set
32855
32856 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
32857         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
32858
32859 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
32860
32861         * ImageList.cs: Makes ToString method compatible with MS
32862
32863 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
32864
32865         * MenuAPI.cs: fixes bug 75716
32866
32867 2005-08-11 Umadevi S <sumadevi@novell.com>
32868         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
32869
32870 2005-08-11 Umadevi S <sumadevi@novell.com>
32871         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
32872
32873 2005-08-10  Umadevi S <sumadevi@novell.com>
32874         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
32875
32876 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
32877
32878         * Menu.cs: fixes bug 75700
32879         * MenuAPI.cs: fixes navigation issues
32880
32881 2005-08-09  Umadevi S <sumadevi@novell.com>
32882         * CheckedListBox.cs - simple fix for GetItemChecked.
32883
32884 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
32885
32886         * ComboBox.cs: Serveral fixes
32887         * ListBox.cs: Serveral fixes
32888
32889 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
32890
32891         * ComboBox.cs: Fixes FindString methods and GetItemHeight
32892         * ListBox.cs: Fixes FindString methods
32893
32894 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
32895
32896         * DataGrid.cs: fixes bugs exposed by new tests
32897
32898 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
32899
32900         * Mime.cs: Compile Mono assembly references only if compiling
32901           with Mono (Allows to build with VS.Net again)
32902
32903 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
32904
32905         * Control.cs (PaintControlBackground): Draw background image
32906         corrrectly.
32907         (CheckForIllegalCrossThreadCalls): Stubbed.
32908         
32909         * Form.cs (OnCreateControl): Center when should be centered.
32910         
32911         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
32912
32913 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
32914
32915         * Binding.cs: Binding to properties should be case unsensitive
32916
32917 2005-07-18 vlindos@nucleusys.com
32918
32919         * DataGrid.cs: fixes setmember order
32920
32921 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
32922
32923         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
32924         * FileDialog.cs: FileDialog is now resizable and uses the new
32925           MimeIconEngine
32926
32927 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
32928
32929         * DataGridTextBoxColumn.cs: default value
32930         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
32931         * GridTableStylesCollection.cs: fixes checking MappingName
32932         * DataGridDrawingLogic.cs: fixes drawing logic issues
32933         * DataSourceHelper.cs: rewritten to make compatible with more data sources
32934         * DataGrid.cs: fixes    
32935
32936 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
32937
32938         * MimeGenerated.cs: Use case sensitive comparer for
32939           NameValueCollections
32940
32941 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
32942
32943         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
32944         * ThemeWin32Classic.cs: bug fixes, code refactoring
32945         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
32946         * DataGrid.cs: bug fixes, code refactoring
32947         * DataGridTextBox.cs: bug fixes, code refactoring
32948         * DataGridColumnStyle.cs:  bug fixes, code refactoring
32949         * Theme.cs:  bug fixes, code refactoring
32950
32951 2005-07-01  Peter Bartok  <pbartok@novell.com> 
32952
32953         * TextControl.cs: Quick fix for the reported crash on ColorDialog
32954           and other text box usage
32955
32956 2005-07-01  Jackson Harper  <jackson@ximian.com>
32957
32958         * TabControl.cs: Make sure the bottom of the tab covers the pages
32959         border.
32960
32961 2005-06-30  Peter Bartok  <pbartok@novell.com> 
32962
32963         * Form.cs (ShowDialog): Assign owner of the dialog
32964         * TextBoxBase.cs: Always refresh caret size when deleting, caret
32965           might have been moved to a tag with different height
32966
32967 2005-06-30  Jackson Harper  <jackson@ximian.com>
32968
32969         * Form.cs: Don't create an infinite loop when setting focus
32970         * MenuItem.cs: Don't dirty the parents if we don't have any
32971
32972 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
32973
32974         * LibSupport.cs: Rename
32975
32976 2005-06-29  Peter Bartok  <pbartok@novell.com>
32977
32978         * TextBoxBase.cs: Re-align caret after deleting a character
32979         * TextControl.cs:
32980           - DeleteChars(): Ensure that tag covers the provided position
32981           - StreamLine(): Drop reference for dropped tag
32982
32983 2005-06-29  Peter Bartok  <pbartok@novell.com> 
32984
32985         * TextControl.cs: 
32986           - Selections now work properly, anchoring at the initial location
32987             and properly extending in either direction (SetSelectionToCaret(),
32988             SetSelectionStart() and SetSelectionEnd())
32989           - No longer redraws the whole control on selection change, now
32990             calculates delta between previous and new selection and only
32991             invalidates/redraws that area
32992           - Fixed FindPos() math off-by-one errors
32993           - Changed DeleteChars() to verify the provided tag covers the
32994             provided position, selections may have a tag that doesn't cover
32995             the position if the selection is at a tag border
32996           - Fixed off-by-one errors in DeleteChars()
32997           - Added missing streamlining check in DeleteChars() to remove
32998             zero-length tags
32999           - Implemented Invalidate() method, now properly calculates exposures
33000             between two given lines/positions
33001           - Implemented SetSelection()
33002           - Obsoleted and removed FixupSelection()
33003           - Improved RecalculateDocument() logic, removing code duplication
33004
33005 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
33006
33007         * LibSupport.cs: changes to match different input/output arguments.
33008
33009 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
33010
33011         * LibSupport.cs: added libsupport.so init routine.
33012
33013 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
33014         
33015         * ControlBindingsCollection.cs
33016                 - Throws an exception on null datasource when adding
33017                 - Checks for duplicated bindings when adding
33018
33019 2005-06-28  Jackson Harper  <jackson@ximian.com>
33020
33021         * TreeView.cs (OnKeyDown): Support left and right properly
33022         (navigates as well as expanding and collapsing.
33023         - Add support for Multiply, this expands all the selected nodes
33024         children.
33025         - Fix some tabbing.
33026
33027 2005-06-28  Jackson Harper  <jackson@ximian.com>
33028
33029         * TreeView.cs: Implement keyboard navigation, currently supports,
33030         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
33031         support for toggling checkboxes with the space bar.
33032
33033 2005-06-28  Jackson Harper  <jackson@ximian.com>
33034
33035         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
33036         tree.
33037
33038 2005-06-28  Jackson Harper  <jackson@ximian.com>
33039
33040         * TreeView.cs: Add missing event.
33041
33042 2005-06-27  Peter Bartok  <pbartok@novell.com> 
33043
33044         * TextControl.cs:
33045           - Made line ending size configurable (now allows for counting 
33046             lineendings as \n or \r\n)
33047           - Added margin to viewport to keep caret visible on right side
33048           - Fixed translation routines for line/pos to documentpos to consider
33049             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
33050           - Fixed some line-endings to be unix style
33051           - Fixed Document.FormatText to perform it's calculations 1-based
33052           - Added descriptions for a few methods that might otherwise get 
33053             used wrong
33054           - Added NOTE section with some basic conventions to remember at 
33055             the top of the file
33056           - Major fixup for RichTextBox selection drawing:
33057             * Fixed crashes when multiple tags on a single line were selected
33058             * fixed selection box drawing not overlaying text
33059             * fixed bogus offset calculation for tags not starting at index 1
33060             * Switched behaviour from using multiple Substrings of a 
33061               StringBuilder.ToString() to using multiple 
33062               StringBuilder.ToString(start, length) statements, hoping this is
33063               faster (kept original version commented out in the code, in case
33064               original version was faster)
33065         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
33066           alignment != Left
33067         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
33068           call it as well
33069
33070 2005-06-27  Jackson Harper  <jackson@ximian.com>
33071
33072         * TabControl.cs: Move to the left and right with the arrow
33073         keys. These keys don't cycle beyond first and last like
33074         tab. Refresh all the tabs when scrolling them to the left or
33075         right.
33076
33077 2005-06-27  Jackson Harper  <jackson@ximian.com>
33078
33079         * TabControl.cs:
33080           - ToString: Added method
33081           - CreateParams: Remove TODO and comment
33082           - OnKeyDown: Cycle through bounds properly.
33083           - SelectedIndex: Scroll to the right or left if we need to
33084           display the newly selected tab.
33085
33086 2005-06-23  Jackson Harper  <jackson@ximian.com>
33087
33088         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
33089         set.
33090
33091 2005-06-23  Jackson Harper  <jackson@ximian.com>
33092
33093         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
33094         CTRL-SHIFT-TAB, and HOME, END are there any others?
33095
33096 2005-06-23  Jackson Harper  <jackson@ximian.com>
33097
33098         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
33099
33100 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
33101         
33102         * DataGridTextBoxColumn.cs: fixes and enhancements
33103         * ThemeWin32Classic.cs: fixes and enhancements
33104         * DataGridBoolColumn.cs:  fixes and enhancements
33105         * DataGridDrawingLogic.cs:  fixes and enhancements
33106         * CurrencyManager.cs: fixes and enhancements
33107         * DataGrid.cs: fixes and enhancements
33108         * DataGridColumnStyle.cs:  fixes and enhancements
33109
33110 2005-06-22  Jackson Harper  <jackson@ximian.com>
33111
33112         * TabControl.cs: Add some missing methods that just call into the
33113         base. Make the TabPageCollection's IList interface behave in the
33114         same manner as the MS implementation.
33115
33116 2005-06-22  Peter Bartok  <pbartok@novell.com> 
33117
33118         * TextControl.cs: Added sanity check
33119         * TextBoxBase.cs: 
33120           - Fixed wrapping behaviour, don't set wrap on single line controls
33121             (this fixes the breakage of colordialog introduced in an earlier
33122              checkin)
33123           - Added rudimentary support for autoscrolling right-aligned controls
33124             (still needs fixing, also, center alignment scroll is missing)
33125
33126 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
33127         
33128         * ScrollBar.cs: Fixes thumbpos on Maximum values
33129
33130 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
33131         
33132         * PropertyGridView.cs: Pass context information to UITypeEditors 
33133
33134 2005-06-21  Peter Bartok  <pbartok@novell.com> 
33135
33136         * TextBoxBase.cs:
33137           - Now calling PositionCaret with absolute space coordinates
33138           - Enabled vertical scrolling
33139           - Better tracking of scrollbar changes, tied into WidthChange
33140             event
33141           - Improved cursor tracking
33142           - Removed debug output
33143         * TextControl.cs:
33144           - PositionCaret coordinates are now works in absolute space, not 
33145             the canvas
33146           - Improved tracking of document size
33147           - Added events for width and height changes
33148
33149 2005-06-21  Peter Bartok  <pbartok@novell.com>
33150
33151         * Form.cs: Set focus to active control when form is activated
33152         * TextControl.cs: 
33153           - Added word-wrap functionality to RecalculateLine() 
33154           - Added some short function descriptions for VS.Net to aid in
33155             writing dependent controls
33156           - Added Caret property, returning the current coords of the caret
33157           - Added ViewPortWidth and ViewPortHeight properties
33158           - Added Wrap property
33159           - Added CaretMoved event
33160           - Removed some old debug code
33161           - Split() can now create soft splits
33162           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
33163           - Added method to format existing text
33164           - Fixed size/alignment calculations to use viewport
33165           - RecalculateDocument now can handle changing line-numbers while
33166             calculating lines
33167
33168         * TextBox.cs:
33169           - Added some wrap logic, we don't wrap if alignment is not left
33170           - Added casts for scrollbar var, base class switched types to
33171             also support RichTextBoxA
33172           - Implemented handling of scrollbar visibility flags
33173
33174         * TextBoxBase.cs:
33175           - Switched scrollbars type to RichTextBoxScrollBars to support
33176             RichTextBox
33177           - Added tracking of canvas width/height
33178           - Switched scrollbars to be not selectable (to keep focus on text)
33179           - Added central CalculateDocument() method to handle all redraw
33180             requirements
33181           - Added ReadOnly support
33182           - Added WordWrap support
33183           - Fixed handling of Enter key (we now treat it as a DialogKey)
33184           - Fixed caret positioning when h or v scroll is not zero
33185           - Fixed placing/generation of vertical scrollbar
33186           - Added CalculateScrollBars() method to allow updating scrollbar
33187             limits and visibility
33188           - Fixed handling of horizontal scroll
33189           - Added handling of vertical scroll
33190           - Implemented auto-'jump' when caret moves to close to a left or
33191             right border and there is text to be scrolled into view (currently
33192             there's the potential for a stack overflow, until a bug in
33193             scrollbar is fixed)
33194
33195 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
33196         
33197         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
33198
33199 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
33200
33201         * Mime.cs:
33202         - added inodes.
33203         - return application/x-zerosize for files with size zero
33204           (if no extension pattern matches).
33205         - check matches collection for strings too.
33206         - return only the first mime type if the name value
33207           collection has more than one mime type.
33208
33209 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
33210         
33211         * PropertyGrid.cs: Cleaned up some TODOs
33212         * PropertyGridView.cs: Added support for UITypeEditors
33213
33214 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
33215         
33216         * DataGrid.cs: clears cached value
33217
33218 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
33219
33220         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
33221         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
33222         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
33223         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
33224         
33225 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
33226
33227         * ThemeWin32Classic.cs: fixes colour
33228
33229 2005-06-15  Peter Bartok  <pbartok@novell.com>
33230
33231         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
33232         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
33233         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
33234         * Control.cs: Added some MWFCategory and MWFDescription attributes
33235         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
33236
33237 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
33238
33239         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
33240         usage
33241
33242 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
33243
33244         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
33245         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
33246         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
33247         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
33248         * DataGrid.cs: default datagrid settings for Default Styles, fixes
33249         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
33250
33251 2005-06-13  Jackson Harper  <jackson@ximian.com>
33252
33253         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
33254         isn't printed when the user enables dropping. (X11 does accept
33255         drops).
33256         
33257 2005-06-13  Jackson Harper  <jackson@ximian.com>
33258
33259         * TreeView.cs: Remove some TODOS.
33260
33261 2005-06-13  Jackson Harper  <jackson@ximian.com>
33262
33263         * Form.cs: Hook into the mdi framework.
33264         * MdiClient.cs: Use the base control collections add method so
33265         parents get setup correctly. Set the default back colour and dock
33266         style.
33267         * MdiChildContext.cs: New class, this bad actor handles an
33268         instance of an MDI window. Right now there is only basic
33269         support. You can drag, close, and resize windows. Minimize and
33270         Maximize are partially implemented.
33271
33272 2005-06-13  Jackson Harper  <jackson@ximian.com>
33273
33274         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
33275         freaky when both vals are negative. NOTE: There are probably other
33276         places in XplatUIX11 that this needs to be done.
33277
33278 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
33279
33280         * DataGrid.cs: implement missing methods, move KeyboardNavigation
33281         * DataGridColumnStyle.cs: fixes signature
33282
33283 2005-06-12  Jackson Harper  <jackson@ximian.com>
33284
33285         * XplatUIX11.cs: Use sizing cursors similar to the ones on
33286         windows.
33287
33288 2005-06-11  Jackson Harper  <jackson@ximian.com>
33289
33290         * StatusBarPanel.cs: Signature cleanups. Implement
33291         BeginInit/EndInit.
33292
33293 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
33294
33295         * DataGridTextBoxColumn.cs: Honors aligment
33296         * GridColumnStylesCollection.cs: Contains is case unsensitive
33297         * GridTableStylesCollection.cs: several fixes
33298         * DataGridTableStyle.cs: default column creation
33299         * DataGridDrawingLogic.cs: fixes
33300         * CurrencyManager.cs: ListName property
33301         * DataGrid.cs: multiple styles support
33302         * DataGridColumnStyle.cs: fixes
33303         
33304
33305 2005-06-10  Peter Bartok  <pbartok@novell.com>
33306
33307         * Control.cs(Select): Moved SetFocus call to avoid potential
33308           loops if controls change the active control when getting focus
33309         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
33310           the up/down buttons
33311
33312 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
33313
33314         * ImageListConverter.cs: Implemented
33315
33316 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
33317
33318         * MonthCalendar.cs: Wired in NumericUpDown control for year
33319
33320 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
33321
33322         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
33323           DoubleClick events, since they are not meant to be fired.
33324
33325 2005-06-09  Peter Bartok  <pbartok@novell.com>
33326
33327         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
33328           Jonathan's standalone controls into MWF, implemented missing
33329           events, attributes and methods; added xxxAccessible classes
33330         * AccessibleObject.cs: Made fields internal so other classes
33331           can change them if needed
33332
33333 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
33334
33335         * UpDownBase.cs: Complete implementation
33336         * NumericUpDown.cs: Complete implementation
33337         * DomainUpDown.cs: Complete implementation
33338
33339 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
33340
33341         * DataGridTextBoxColumn.cs: drawing fixes
33342         * DataGridCell.cs: fixes ToString method to match MSNet
33343         * DataGridTableStyle.cs: fixes
33344         * DataGridBoolColumn.cs: fixes, drawing
33345         * DataGridDrawingLogic.cs: fixes, new methods
33346         * DataGridTextBox.cs: Keyboard and fixes
33347         * DataGrid.cs:
33348                 - Keyboard navigation
33349                 - Scrolling fixes
33350                 - Row selection (single, multiple, deletion, etc)
33351                 - Lots of fixes
33352         
33353 2005-06-07  Jackson Harper  <jackson@ximian.com>
33354
33355         * ThemeWin32Classic.cs: Clear the background area when drawing
33356         buttons.
33357
33358 2005-06-06  Peter Bartok  <pbartok@novell.com>
33359
33360         * ImageListStreamer.cs: Fixed signature for GetData
33361         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
33362         * ComboBox.cs:
33363           - Added missing ChildAccessibleObject class
33364           - Added missing OnXXXFocus overrides, switched to using those
33365             instead of the event handler
33366         * Control.cs:
33367           - Added Parent property for ControlAccessibleObject
33368           - Fixed signatures
33369           - Fixed attributes
33370           - Added ResetBindings()
33371         * ListBindingConverter.cs: Implemented some methods
33372         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
33373         * ImageList.cs: Implemented basic handle scheme, removed TODOs
33374         * ContainerControl.cs: Fixed signature, now subscribing to the
33375           ControlRemoved event instead of overriding the handler, LAMESPEC
33376         * CurrencyManager.cs: Added missing attribute
33377         * MonthCalendar.cs: Added missing properties
33378
33379 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
33380
33381         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
33382         
33383 2005-06-06  Gaurav Vaish and Ankit Jain
33384
33385         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
33386         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
33387         
33388 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
33389
33390         * Control.cs: fixes CreateParams Width / Height.
33391
33392 2005-06-05  Peter Bartok  <pbartok@novell.com>
33393
33394         * Win32DnD.cs: Removed compilation warnings
33395
33396 2005-06-05  Peter Bartok  <pbartok@novell.com>
33397
33398         * Control.cs (CreateParams): Since we don't know if one of the
33399           properties we use is overridden, lets make sure if we fail accessing
33400           we continue with a backup plan
33401
33402 2005-06-05  Peter Bartok  <pbartok@novell.com>
33403
33404         * Win32DnD.cs:
33405           - Removed debug output
33406           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
33407             struct
33408           - Plugged resource leak
33409         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
33410           MS size
33411
33412 2005-06-05  Peter Bartok  <pbartok@novell.com>
33413
33414         * XplatUIWin32.cs: Removed DnD code
33415         * Win32DnD.cs: Implemented drop source and drop target functionality
33416
33417 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
33418
33419         * UpDownBase.cs: remove duplicate addition of event, enable some code
33420         that was commented out.
33421         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
33422         Validate input when a key is pressed. It works fine now for every
33423         combination of Hexadecimal. Only missing some drawing love when sharing
33424         space with other controls.
33425
33426 2005-06-04  Peter Bartok  <pbartok@novell.com>
33427
33428         * Control.cs:
33429           - We need to pass a window for DragDrop, so enable callback events
33430           - Added DnD callback events when being a DragSource
33431         * XplatUI.cs (StartDrag): Added window handle argument
33432         * XplatUIDriver.cs (StartDrag): Added window handle argument
33433         * QueryContinueDragEventArgs: Made fields internally accessible so
33434           drivers can set them
33435         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
33436           can set them
33437
33438 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
33439
33440         * DataGridTextBoxColumn.cs: column text editing
33441         * DataGridTableStyle.cs: Respect columns styles created by the user
33442         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
33443         * DataGridBoolColumn.cs: bool column editing
33444         * DataGrid.cs: fixes to scrolling, properties, etc
33445         * DataGridTextBox.cs: handle keyboard
33446         * DataGridColumnStyle.cs: fixes
33447
33448 2005-06-02  Jackson Harper  <jackson@ximian.com>
33449
33450         * ImageListStreamer.cs: Somewhat broken implementation of
33451         GetObjectData. The RLE needs some work to match MS properly.
33452
33453 2005-06-02  Jackson Harper  <jackson@ximian.com>
33454
33455         * X11Dnd.cs: Attempting to keep at least one file in MWF
33456         monostyled.
33457
33458 2005-06-02  Peter Bartok  <pbartok@novell.com>
33459
33460         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
33461           that way
33462
33463 2005-06-02  Peter Bartok  <pbartok@novell.com>
33464
33465         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
33466         * XplatUI.cs: Added DoDragDrop() method
33467         * XplatUIDriver.cs: Added DoDragDrop() method
33468
33469 2005-06-02  Jackson Harper  <jackson@ximian.com>
33470
33471         * Splitter.cs: Implement BorderStyle.
33472
33473 2005-06-02  Jackson Harper  <jackson@ximian.com>
33474
33475         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
33476         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
33477         X11 using XDND.
33478
33479 2005-06-02  Peter Bartok  <pbartok@novell.com>
33480
33481         * DataObject.cs:
33482           - Added Data setter
33483           - Fixed broken insertion code for SetData, now also
33484             overwrites any existing entry of the same format name
33485         * Hwnd.cs: Added list of pointers that automatically gets
33486           freed when the window is disposed
33487         * XplatUI.cs: Call driver initialization method when loading
33488           a driver
33489         * Control.cs:
33490           - OnDragLeave takes EventArgs, not DragEventArgs
33491           - Added setting of WS_EX_ACCEPTFILES style when dropping is
33492             supported
33493           - Forces style update when drop state changes
33494         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
33495           not perfect since we cannot (yet) call the IDataObject.GetData()
33496           method, we keep getting 0x80004005 error, dunno why)
33497
33498 2005-06-02  Peter Bartok  <pbartok@novell.com>
33499
33500         * DragEventArgs.cs: Make fields internal so we can cache the
33501           object and re-set the fields from XplatUI
33502
33503 2005-06-02  Jackson Harper  <jackson@ximian.com>
33504
33505         * Control.cs: Add some internal methods so the DnD subsystem can
33506         raise DnD events. Also call into the driver when AllowDrop is set.
33507         * XplatUI.cs:
33508         * XplatUIDriver.cs: New method for setting whether or not a window
33509         is allowed to accept drag and drop messages.
33510                 
33511 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
33512         
33513         * ScrollBar.cs: Make sure that values sent in Scroll events
33514         are always between Maximum and Minimum.
33515
33516 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
33517
33518         * Menu.cs: Call MenuChanged when menuitem visibility has been
33519         changed.
33520         * MenuItem.cs: Rebuild menu when item is (not) visible.
33521         * MainMenu.cs: MainMenu has special MenuChanged.
33522         * Theme.cs: Caption and FrameBorderSize are not fixed.
33523         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
33524         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
33525         * XplatUIX11.cs,
33526         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
33527         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
33528
33529 2005-05-30  Jackson Harper  <jackson@ximian.com>
33530
33531         * DataFormat.cs: We can't statically initialize this stuff because
33532         it calls into the xplatui and could create a loop. So we lazy init
33533         it.
33534
33535 2005-05-28  Jackson Harper  <jackson@ximian.com>
33536
33537         * Control.cs: Proper implementation of Product(Name/Version).
33538
33539 2005-05-27  Jackson Harper  <jackson@ximian.com>
33540
33541         * DataObject.cs: Dont crash if no data is found.
33542
33543 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
33544         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
33545                 as per status page, guessing it should be set to true
33546
33547 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
33548
33549         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
33550         * DataGridTableStyle.cs: set proper formatting text, def header text
33551         * ThemeWin32Classic.cs: new themable paramaters
33552         * DataGridBoolColumn.cs: paint check box, get data, fixes
33553         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
33554         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
33555         * DataGridColumnStyle.cs: fixes
33556         * Theme.cs: new themable paramaters
33557                 
33558 2005-05-26  Peter Bartok  <pbartok@novell.com>
33559
33560         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
33561
33562 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
33563         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
33564
33565 2005-05-24  Peter Bartok  <pbartok@novell.com>
33566
33567         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
33568           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
33569           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
33570           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
33571           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
33572           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
33573           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
33574           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
33575           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
33576           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
33577           missing attributes, etc
33578         * DataGridPreferredColumnWidthTypeConverter.cs: Added
33579
33580 2005-05-24  Peter Bartok  <pbartok@novell.com>
33581
33582         * Help.cs: Added, implemented trivial functions, throws up MessageBox
33583           when user tries to get help
33584         * DataObject.cs, DataFormats.cs, LinkArea.cs,
33585           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
33586           to suppress warnings
33587         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
33588           avoid unreachable code warning
33589
33590 2005-05-20  Peter Bartok  <pbartok@novell.com>
33591
33592         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
33593
33594 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
33595
33596         * DataGridTextBoxColumn.cs: Basic painting methods
33597         * DataGridTableStyle.cs: Set table style in the column
33598         * ThemeWin32Classic.cs: Use Theme for colors
33599         * DataGridDrawingLogic.cs: Implement more drawing
33600         * DataGrid.cs: drawing, theming, enhacements, fixes
33601         * DataGridColumnStyle.cs: fixes, drawing
33602         * Theme.cs: theming for Datagrid
33603
33604 2005-05-20  Peter Bartok  <pbartok@novell.com>
33605
33606         * Cursor.cs: Implemented GetObjectData() method
33607
33608 2005-05-20  Peter Bartok  <pbartok@novell.com>
33609
33610         * Cursors.cs: Added setting of cursor name
33611         * Cursor.cs:
33612           - Implemented constructors
33613           - Implemented Draw and DrawStretched
33614           - Implemented Current property
33615           - Implemented == and != operators
33616           - Implemented Dispose()
33617           - Implemented ToString
33618           - Added missing attributes
33619         * XplatUIX11.cs:
33620           - Added missing reset for OverrideCursor when DoEvents is called
33621           - Fixed creation of cursor, logic was wrong
33622         * XplatUIWin32.cs:
33623           - Added missing reset for OverrideCursor when DoEvents is called
33624           - Fixed creation of cursor, bit arrays were swapped
33625         * Clipboard.cs: Removed obsolete MonoTODO attribute
33626
33627 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
33628
33629         * ComboBox.cs: fixes OnSelectedItemChanged
33630         * ControlBindingsCollection.cs: fixes item range check
33631
33632 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
33633
33634         * UpDownBase.cs:
33635                 - Calc preferred height properly
33636                 - Implement missing properties
33637                 
33638         * NumericUpDown.cs: Implement missing events
33639
33640 2005-05-19  Jackson Harper  <jackson@ximian.com>
33641
33642         * TabControl.cs: New method that resizes the tab pages before
33643         redrawing them. This as needed as the control is double buffered
33644         and sizing will not be recalculated unless ResizeTabPages is
33645         called.
33646         * TabPage.cs: Set base.Text instead of Text in the constructor so
33647         that UpdateOwner does not get called. Use the new Redraw method of
33648         TabControl instead of Refresh so the sizing is recalculated.
33649         * ThemeWin32Classic.cs: Draw the text for button tabs.
33650
33651 2005-05-19  Jackson Harper  <jackson@ximian.com>
33652
33653         * Control.cs: Paint control background images. Fix typo where
33654         PaintControlBackground was not getting called correctly.
33655
33656 2005-05-19  Peter Bartok  <pbartok@novell.com>
33657
33658         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
33659           I can investigate, apparently I broke FileDialog
33660
33661 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
33662
33663         * AxHost.cs: Some simple properties.
33664         * Control.cs: window must be accessible after ctor.
33665         * Form.cs: Added TransparencyKey property.
33666         * TextBoxBase.cs: Implemented Clear. Text property can be null.
33667         * XplatUIWin32.cs: SetBorderStyle implemented.
33668
33669 2005-05-18  Peter Bartok  <pbartok@novell.com>
33670
33671         * DataObject.cs: Entries are not global but particular to the
33672           DataObject, now it behaves that way
33673         * XplatUIWin32.cs: Implemented Clipboard methods
33674         * Clipboard.cs: Implemented
33675         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
33676         * XplatUIOSX.cs: Updated to final clipboard prototypes
33677         * XplatUIX11.cs: Implemented Clipboard methods
33678         * XplatUIDriver.cs: Updated to final clipboard prototypes
33679         * XplatUIStructs.cs:
33680           - Added BITMAPINFOHEADER struct
33681           - Added ClipboardFormats enum
33682         * X11Structs.cs:
33683           - Added ClipboardStruct
33684           - Added Atom enum items for clipboard types
33685           - Fixed atom types for Selection event structures
33686         * DataFormats.cs:
33687           - Added internal properties and methods for drivers to enumerate
33688             all known formats
33689           - Switched initialization method to allow drivers to assign their
33690             own IDs even for the MS predefined clipboard IDs
33691         * XplatUI.cs: Updated to final clipboard interface
33692
33693 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
33694         * PropertyGridView.cs: Fixed compiler warnings.
33695
33696 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
33697         * PropertyGrid.cs: Added some event calls
33698         * PropertyGridView.cs: Change drawing code to use double buffering
33699         * PropertyGridTextBox.cs: Changed Text property name
33700         * GridItem.cs: Added Bounds property.
33701         * GridEntry.cs: Added Bounds property.
33702
33703 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
33704
33705         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
33706         since GetType() may not return the correct type if the object is
33707         a remoting proxy.
33708
33709 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
33710
33711         * TreeNodeCollection.cs: fixes get/set item ranges
33712         
33713 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
33714
33715         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
33716                 
33717 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
33718
33719         * ComboBox.cs: Fix item range comparation
33720         * ListView.cs: Fix item range comparation
33721
33722 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
33723
33724         * FontDialog.cs:
33725           - Clear example panel when OnPaint is called
33726           - Better solution for displaying the example panel text
33727           - Select default indexes in the ListBoxes
33728
33729 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
33730
33731         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
33732
33733 2005-05-11  Peter Bartok  <pbartok@novell.com>
33734
33735         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
33736         * SelectionRangeConverter.cs: Implemented
33737         * PropertyGrid.cs: Fixed attribute value
33738         * Control.cs:
33739           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
33740           - Added Sebastien Pouliot's CAS Stack Propagation fixes
33741         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
33742           that's common to all drivers. First methods to go there are
33743           Sebastien Pouliot's CAS Stack Propagation helper methods
33744         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
33745           Sebastien Pouliot for CAS Stack Propagation
33746
33747 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
33748
33749         * OSXStructs.cs:
33750           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
33751
33752 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
33753
33754         * DataGridTextBoxColumn.cs: fixed some members
33755         * GridColumnStylesCollection.cs: indexed column is case insensitive
33756         * DataGridTableStyle.cs: fixes
33757         * ThemeWin32Classic.cs: add new theme parameter
33758         * Theme.cs: add new theme parameter
33759         * DataGridDrawingLogic.cs: Datagrid's drawing logic
33760         * DataGrid.cs: fixes, new internal properties, etc.
33761         * DataGridColumnStyle.cs: allows to set grid value
33762         *
33763
33764 2005-05-10  Peter Bartok  <pbartok@novell.com>
33765
33766         * AccessibleObject.cs:
33767           - Removed MonoTODO attribute on help, method is correct
33768           - Fixed Bounds property
33769         * AxHost.cs: Moved MonoTODO
33770         * ButtonBase.cs: Now setting AccessibleObject properties
33771         * RadioButton.cs: Setting proper AccessibleObject role
33772         * CheckBox.cs: Setting proper AccessibleObject role
33773         * ControlBindingsCollection.cs: Added properties, methods and attributes
33774         * DataFormats.cs: Fixed awkward internal API, and changed to enable
33775           userdefined DataFormats.Format items as well
33776         * ListControl.cs: Removed data_member from the public eye
33777         * OpenFileDialog.cs:
33778           - Made class sealed
33779           - Added missing attributes
33780         * SaveFileDialog.cs: Added missing attributes
33781         * ImageListStreamer.cs: Fixed code that caused warnings
33782         * LinkLabel.cs: Removed unreachable code
33783         * TreeView.cs: Fixed code that caused warnings
33784         * PropertyGridView.cs: Fixed code that caused warnings
33785         * GridColumnStylesCollection.cs: Added missing attributes
33786         * GridTableStylesCollection: Added missing attribute
33787         * PropertyManager: Added .ctor
33788         * SecurityIDType: Added
33789         * DataObject.cs: Implemented class
33790         * LinkArea.cs: Added missing attribute
33791
33792 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
33793
33794         * RadioButton.cs: call base method to allow to fire OnClick event
33795         * UpDownBase.cs: OnMouseUp call base method
33796         * CheckedListBox.cs: call base method before returning
33797         * TrackBar.cs: call base method before returning
33798         
33799
33800 2005-05-10  Peter Bartok  <pbartok@novell.com>
33801
33802         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
33803           for messages
33804
33805 2005-05-10  Peter Bartok  <pbartok@novell.com>
33806
33807         * DataFormats.cs: Implemented
33808         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
33809           XplatUIX11.cs: Added Clipboard APIs
33810         * XplatUIWin32.cs: Implemented Clipboard APIs
33811         * FolderBrowserDialog.cs: Added missing event, attributes
33812
33813 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
33814
33815         * CheckBox.cs: call base method to allow to fire OnClick event
33816
33817 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
33818
33819         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
33820
33821 2005-05-06  Peter Bartok  <pbartok@novell.com>
33822
33823         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
33824         * Screen.cs: Implemented
33825         * HelpNavigator.cs: Added
33826         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
33827           property
33828         * HelpProvider.cs: Implemented all we can do until we have a CHM
33829           help library (which means that "What's This" does work now)
33830
33831 2005-05-06  Jackson Harper  <jackson@ximian.com>
33832
33833         * XplatUIX11.cs: Fix waking up the main loop.
33834                 
33835 2005-05-05  Peter Bartok  <pbartok@novell.com>
33836
33837         * XplatUI.cs: Updated revision
33838         * Form.cs: Removed enless loop
33839         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
33840         * Label.cs (OnPaint): Added call to base.OnPaint()
33841         * ToolTip.cs: Made ToolTipWindow reusable for other controls
33842         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
33843         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
33844         * AxHost.cs: Added
33845         * ButtonBase.cs: Moved base.OnPaint() call to end of method
33846         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
33847           to ToolTip.ToolTipWindow for drawing and size methods; this allows
33848           reuse of ToolTipWindow by other controls
33849         * SizeGrip.cs: Moved base.OnPaint() call to end of method
33850         * XplatUIX11.cs: Now clipping drawing area (experimental)
33851         * PictureBox.cs: Moved base.OnPaint() call to end of method
33852         * Theme.cs: Fixed ToolTip abstracts to match new format
33853         * ErrorProvider.cs: Implemented
33854
33855 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
33856
33857         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
33858         * LinkLabel.cs:
33859                 - Adds cursors
33860                 - Handles focus
33861                 - Implements LinkBehavior
33862                 - Fixes many issues
33863
33864 2005-05-03  Jackson Harper  <jackson@ximian.com>
33865
33866         * ListView.cs: Calculate the scrollbar positioning on resize and
33867         paint, so they get put in the correct place.
33868
33869 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
33870
33871         * ColorDialogs.cs: The small color panels are now handled by
33872           SmallColorControl. This fixes drawing of the focus rectangle
33873           and adds a 3D border.
33874
33875 2005-05-03  Peter Bartok  <pbartok@novell.com>
33876
33877         * Control.cs: Modified version of Jonathan Chamber's fix for
33878           double-buffering
33879
33880 2005-05-03  Jackson Harper  <jackson@ximian.com>
33881
33882         * ListView.cs: Remove redraw variable. Control now handles whether
33883         or not a redraw needs to be done, and will only raise the paint
33884         event if redrawing is needed.
33885
33886 2005-05-03  Jackson Harper  <jackson@ximian.com>
33887
33888         * Splitter.cs: No decorations for the splitter form. Cache the
33889         hatch brush.
33890
33891 2005-05-03  Jackson Harper  <jackson@ximian.com>
33892
33893         * TreeView.cs: Use dashed lines to connect nodes. Use the
33894         ControlPaint method for drawing the focus rect instead of doing
33895         that in treeview.
33896
33897 2005-05-02  Peter Bartok  <pbartok@novell.com>
33898
33899         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
33900
33901 2005-04-29  Jackson Harper  <jackson@ximian.com>
33902
33903         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
33904         entire image buffer. Just clear the clipping rectangle.
33905
33906 2005-04-29  Jackson Harper  <jackson@ximian.com>
33907
33908         * ThemeWin32Classic.cs: Don't draw list view items that are
33909         outside the clipping rectangle.
33910
33911 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
33912
33913         * ListBox.cs: added horizontal item scroll
33914
33915 2005-04-29  Jackson Harper  <jackson@ximian.com>
33916
33917         * ThemeWin32Classic.cs: Remove some old debug code that was
33918         causing flicker with the new double buffering code.
33919
33920 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
33921
33922         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
33923         behave like combobox and comboboxlist (still not sure if this is
33924         correct though).
33925
33926 2005-04-28  Jackson Harper  <jackson@ximian.com>
33927
33928         * ThemeWin32Classic.cs: Don't fill the middle of progress
33929         bars. This fills areas outside of the clip bounds that don't need
33930         to be filled.
33931
33932 2005-04-28  Jackson Harper  <jackson@ximian.com>
33933
33934         * Control.cs: Don't expose functionality to touch the image buffers.
33935         * ProgressBar.cs:
33936         * ListView.cs: We do not need to (and no longer can) manipulate
33937         the image buffers directly. All of this is handled by Control.
33938
33939 2005-04-28  Peter Bartok  <pbartok@novell.com>
33940
33941         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
33942           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
33943           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
33944
33945 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
33946
33947         * Combobox:
33948                 - Adjust control's height for non-simple comboboxes (bug fix)
33949                 - Remove dead code
33950         * MenuAPI.cs: remove unused var
33951         * ScrollBar.cs: remove unsed var
33952                  
33953         * ListBox.cs: unselect items when clearing
33954
33955 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
33956
33957         * ListControl.cs: honors OnPositionChanged and default Selected Item
33958         * ListBox.cs: unselect items when clearing
33959
33960 2005-04-27  Jackson Harper  <jackson@ximian.com>
33961
33962         * X11Keyboard.cs: Initialize a default keyboard and give a warning
33963         if a "correct" keyboard is not found. This will make us not crash,
33964         but might give some users bad keyboard layouts...seems to be the
33965         same thing rewind does.
33966
33967 2005-04-27  Jackson Harper  <jackson@ximian.com>
33968
33969         * BindingManagerBase.cs: Attach the current/position changed
33970         handlers to their respective events.
33971
33972 2005-04-27  Jackson Harper  <jackson@ximian.com>
33973
33974         * Control.cs: Make sure that the first WM_PAINT does a full draw,
33975         not just a blit.
33976         * ThemeWin32Classic.cs: Don't fill the background for picture
33977         boxes. This could overright user drawing.
33978         * ComboBox.cs: Just fill the clipping rect not the entire client
33979         rect when drawing the background. This prevents pieces of the
33980         image buffer from getting overwritten and is theoretically faster.
33981
33982 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
33983
33984         * ComboBox.cs: Databinding support fixes, fire missing events
33985         * ListControl.cs: implement missing methods and properties, fixes
33986         * ThemeWin32Classic.cs: Databiding support on Drawing
33987         * CheckedListBox.cs: Databinding support fixes, fire missing events
33988         * ListBox.cs: Databinding support fixes, fire missing events
33989         
33990 2005-04-25  Peter Bartok  <pbartok@novell.com>
33991
33992         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
33993
33994 2005-04-25  Jackson Harper  <jackson@ximian.com>
33995
33996         * TreeView.cs: Use the horizontal scrollbars height not width when
33997         determining how much of the client area is available.
33998
33999 2005-04-25  Jackson Harper  <jackson@ximian.com>
34000
34001         * Control.cs: Double buffering is handled differently now. As per
34002         the spec, the extra buffer is created in the WM_PAINT message and
34003         passed down to the control's drawing code.
34004         * GroupBox.cs:
34005         * Label.cs:
34006         * CheckBox.cs:
34007         * ProgressBar.cs:
34008         * RadioButton.cs:
34009         * ColorDialog.cs:
34010         * ComboBox.cs:
34011         * PropertyGridView.cs:
34012         * UpDownBase.cs:
34013         * MessageBox.cs:
34014         * MenuAPI.cs:
34015         * ListView.cs:
34016         * ButtonBase.cs:
34017         * SizeGrip.cs:
34018         * ScrollBar.cs:
34019         * ListBox.cs:
34020         * TrackBar.cs:
34021         * ToolBar.cs:
34022         * PictureBox.cs:
34023         * DateTimePicker.cs:
34024         * StatusBar.cs:
34025         * TreeView.cs: Update to new double buffering system.
34026         * MonthCalendar.cs: Uncomment block, as Capture is now
34027         working. Update to new double buffering
34028         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
34029         * PaintEventArgs.cs: New internal method allows us to set the
34030         graphics object. This is used for double buffering.
34031         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
34032         rectangle. The internal paint_area var has been removed from
34033         StatusBar. The clipping rect should be used instead.
34034         * Theme.cs: Give the PictureBox drawing method a clipping rect.
34035         * TabPage.cs: The RefreshTabs method was removed, so just call the
34036         tab controls Refresh method now.
34037         * TabControl.cs: Update to new double buffering. Make sure the
34038         handle is created before sizing the tab pages, otherwise we will
34039         get stuck in a loop.
34040
34041 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
34042
34043         * LinkLabel.cs: Fix typo, bug #74719; patch
34044           from Borja Sanchez Zamorano
34045
34046 2005-04-22  Jackson Harper  <jackson@ximian.com>
34047
34048         * TreeNode.cs: Implement Handle stuff.
34049         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
34050
34051 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
34052
34053         * DataGridTextBoxColumn.cs: call base constructors, fixes
34054         * GridColumnStylesCollection.cs: missing events, methods, and functionality
34055         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
34056         * DataGridTableStyle.cs: implements create default column styles
34057         * DataGridBoolColumn.cs: which types can handle
34058         * DataGrid.cs: missing methods, fixes, new functionality
34059         * DataGridColumnStyle.cs: fixes
34060
34061 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
34062         * FolderBrowserDialog.cs:
34063         - Use a thread to fill the TreeView
34064         - Adjusted some sizes
34065
34066 2005-04-19  Peter Bartok  <pbartok@novell.com>
34067
34068         * LinkLabel.cs: (Re-)create the pieces when setting the Text
34069           property. Fixes #74360.
34070
34071 2005-04-19  Jackson Harper  <jackson@ximian.com>
34072
34073         * XEventQueue.cs: Lock when getting the lockqueue size.
34074         * PictureBox.cs: Call base OnPaint
34075         
34076 2005-04-19  Peter Bartok  <pbartok@novell.com>
34077
34078         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
34079           messages were no longer being processed (this broke BeginInvoke)
34080
34081           
34082 2005-04-18  Jackson Harper  <jackson@ximian.com>
34083
34084         * TreeView.cs: buglet that caused node images to get drawn
34085         regardless of whether or not they were in the clipping rectangle.
34086
34087 2005-04-18  Jackson Harper  <jackson@ximian.com>
34088
34089         * CurrencyManager.cs: There are four rules for GetItemProperties:
34090         - If the type is an array use the element type of the array
34091         - If the type is a typed list, use the type
34092         - If the list contains an Item property that is not an object, use
34093         that property
34094         - use the first element of the list if there are any elements in
34095         the list.
34096         
34097 2005-04-17  Jackson Harper  <jackson@ximian.oom>
34098
34099         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
34100         click. This handles offsets for scrolling properly and reduces
34101         memory. Also fixed GetNode to not offset now that TopNode works
34102         properly.
34103         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
34104         
34105 2005-04-17  Jackson Harper  <jackson@ximian.com>
34106
34107         * CursorConverter.cs: Initial implementation.
34108
34109 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
34110
34111         * ListControl.cs: work towards complex data binding support on ListControl
34112         * CurrencyManager.cs: work towards complex data binding support on ListControl
34113         * ListBox.cs: work towards complex data binding support on ListControl
34114
34115
34116 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
34117
34118         * GridTableStylesCollection.cs: fixes name and constructor
34119         * DataGridTableStyle.cs: fixes
34120         * DataGridBoolColumn.cs: fixes names and constructors
34121         * DataGrid.cs: define methods and properties. Some init implementations
34122         * DataGridCell.cs: define methods and properties. Some init implementations
34123         * GridTablesFactory.cs: Define methods and properties
34124
34125 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
34126
34127         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
34128         graphics port changes.  We still want the coordinates in global screen
34129         coordinates.
34130
34131 2005-04-14  Jackson Harper  <jackson@ximian.com>
34132
34133         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
34134         check plus minus or checkbox clicks unless those features are enabled.
34135
34136 2005-04-14  Jackson Harper  <jackson@ximian.com>
34137
34138         * TreeView.cs: Add methods for setting the top and bottom visible
34139         nodes. TreeNode::EnsureVisible uses these methods.
34140         * TreeNode.cs: Implement EnsureVisible
34141
34142 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
34143
34144         * Form.cs: Pospone menu assignation if the window has not been created yet
34145         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
34146         size and position
34147
34148 2005-04-12  Jackson Harper  <jackson@ximian.com>
34149
34150         * TreeView.cs: Set the TopNode properly when scrolling
34151         occurs. This has the added benifit of reducing the amount of
34152         walking that needs to be done when drawing. Also removed an old
34153         misleading TODO.
34154         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
34155         
34156 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
34157
34158         * Timer.cs: fixes interval setting when the timer is already enabled
34159         
34160 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
34161
34162         * FolderBrowserDialog.cs: First approach
34163
34164 2005-04-09  Peter Bartok  <pbartok@novell.com>
34165
34166         * FolderBrowserDialog: Added
34167
34168 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
34169
34170         * LinkLabel.cs: move drawing code into the theme
34171         * ThemeWin32Classic.cs: drawing code and painting background bugfix
34172         * Theme.cs: define DrawLinkLabel method
34173
34174 2005-04-05  Jackson Harper  <jackson@ximian.com>
34175
34176         * BindingContext.cs: Use weak references so these bad actors don't
34177         stay alive longer then they need to.
34178
34179 2005-04-05  Jackson Harper  <jackson@ximian.com>
34180
34181         * ListControl.cs: Basic implementation of complex databinding.
34182         * ComboBox.cs:
34183         * ListBox.cs: Add calls to ListControl databinding methods.
34184
34185 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
34186
34187         * FileDialog.cs:
34188           - Don't change PopupButtonState to Normal when the
34189             PopupButton gets pressed several times.
34190           - Renamed ButtonPanel to PopupButtonPanel
34191
34192 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
34193
34194         * ColorDialog.cs: Use cached objects instead of creating them
34195         * LinkLabel.cs: Use cached objects instead of creating them
34196         * Splitter.cs: Use cached objects instead of creating them
34197         * FontDialog.cs: Use cached objects instead of creating them
34198         * PropertyGridView.cs: Use cached objects instead of creating them
34199         * MessageBox.cs: Use cached objects instead of creating them
34200         * FileDialog.cs: Use cached objects instead of creating them
34201         * ThemeWin32Classic.cs: Use cached objects instead of creating them
34202         * TreeView.cs: Use cached objects instead of creating them
34203         
34204 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
34205
34206         * Control.cs: use Equals to compare the font since no == op
34207         * ScrollBar.cs: use Equals to compare the font since no == op
34208
34209 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
34210
34211         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
34212
34213 2005-04-01  Jackson Harper  <jackson@ximian.com>
34214
34215         * Binding.cs: Implement IsBinding.
34216         * BindingManagerBase.cs:
34217         * PropertyManager.cs:
34218         * CurrencyManager.cs: Add IsSuspended property.
34219
34220 2005-04-01  Jackson Harper  <jackson@ximian.com>
34221
34222         * Binding.cs: Had some IsAssignableFrom calls backwards.
34223
34224 2005-04-01  Jackson Harper  <jackson@ximian.com>
34225
34226         * Binding.cs: Handle null data members when pulling data.
34227         * PropertyManager.cs: Handle the data member being a property that
34228         does not exist.
34229
34230 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
34231
34232         * DataGridTextBoxColumn.cs: fixes signature
34233         * DataGrid.cs: calls right constructor
34234
34235 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
34236
34237         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
34238         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
34239         * GridTableStylesCollection.cs: implements GridTableStylesCollection
34240         * DataGridTableStyle.cs: implements DataGridTableStyle
34241         * DataGridBoolColumn.cs: implements DataGridBoolColumn
34242         * DataGridTextBox.cs: implements DataGridTextBox
34243         * DataGridColumnStyle.cs: implements DataGridColumnStyle
34244
34245 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
34246
34247         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
34248
34249 2005-03-29  Peter Bartok  <pbartok@novell.com>
34250
34251         * Application.cs:
34252           - Properly implemented CompanyName property
34253           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
34254             returns a path that includes CompanyName, ProductName and
34255             Version (fixes bug #70330)
34256
34257 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
34258
34259         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
34260           fixes bug #72588.
34261
34262 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
34263
34264         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
34265         
34266           - Added ReadOnly CheckBox
34267           - Further refactoring: moved some code from Open-/SaveFileDialog
34268             to FileDialog
34269
34270 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
34271
34272         * OpenFileDialog.cs: Fixed CheckFileExists
34273         * FileDialog.cs:
34274           Moved FileView and DirComboBox outside FileDialog class.
34275           They can now be used outside FileDialog
34276
34277 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
34278
34279         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
34280         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
34281
34282 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
34283
34284         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
34285           - Added missing CreatePrompt property in SaveDialog
34286           - Overall SaveDialog handling should be better now
34287           - Added non standard ShowHiddenFiles property
34288           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
34289           - Added InitialDirectory and RestoreDirectory support
34290
34291 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
34292
34293         * FileDialog.cs: Made dirComboBox usable
34294
34295 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
34296
34297         * FileDialog.cs: Added Filter support (case sensitiv)
34298
34299 2005-03-24  Jackson Harper  <jackson@ximian.com>
34300
34301         * TabControl.cs: Need a couple more pixels for the lines.
34302
34303 2005-03-23  Jackson Harper  <jackson@ximian.com>
34304
34305         * TabControl.cs: Give the tab page focus when it is selected.
34306
34307 2005-03-23  Jackson Harper  <jackson@ximian.com>
34308
34309         * TabControl.cs: Account for the drawing of tabs borders when
34310         invalidating. If the slider was clicked dont do click detection on
34311         the tabs.
34312
34313 2005-03-23  Jackson Harper  <jackson@ximian.com>
34314
34315         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
34316
34317 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
34318
34319         * CategoryGridEntry.cs: Added
34320         * GridItem.cs: Added helper properties
34321         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
34322         * GridEntry.cs: Updated code for collection
34323         * PropertyGrid.cs: Cleaned up some formatting
34324         * PropertyGridView.cs: Added drop down functionality for enums.
34325         * GridItemCollection.cs: Added enumerator logic
34326         * PropertyGridEntry.cs: Added
34327
34328 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
34329
34330         * FileDialog.cs:
34331           - Removed unnecessary commented code
34332           - Fixed handling for entering the filename manually in the combobox
34333
34334 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
34335
34336         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
34337
34338 2005-03-18  Peter Bartok  <pbartok@novell.com>
34339
34340         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
34341           them being touching the border
34342
34343 2005-03-18  Peter Bartok  <pbartok@novell.com>
34344
34345         * TextControl.cs: Quick hack to center text better
34346
34347 2005-03-18  Peter Bartok  <pbartok@novell.com>
34348
34349         * ControlPaint.cs:
34350           - Don't throw NotImplemented exceptions, just print a notice once
34351             instead (requested by Miguel). This makes running existing SWF
34352             apps a bit easier
34353         * Control.cs:
34354           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
34355           - Added context menu trigger on right click
34356         * Panel.cs: Trigger invalidate on resize
34357         * StatusBar.cs:
34358           - Removed old double-buffer drawing
34359           - Added ResizeRedraw style to force proper update of statusbar
34360         * ListView.cs:
34361           - Removed debug output
34362         * ThemeWin32Classic.cs:
34363           - Fixed drawing of status bar, now draws Text property if there
34364             are no defined panels
34365
34366 2005-03-18  Jackson Harper  <jackson@ximian.com>
34367
34368         * ImageList.cs: When the image stream is set pull all the images
34369         from it.
34370         * ImageListStreamer.cs: Implement reading image list streams.
34371
34372 2005-03-18  Peter Bartok  <pbartok@novell.com>
34373
34374         * ThemeWin32Classic.cs (DrawPictureBox):
34375           - Fixed calculations for centered drawing
34376           - Fixed drawing for normal mode, not scaling the image on normal
34377
34378 2005-03-18  Peter Bartok  <pbartok@novell.com>
34379
34380         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
34381           textbox
34382         * FileDialog.cs:
34383           - Made Open/Save button the accept button for FileDialog
34384           - Tied the cancel button to the IButtonControl cancel button
34385           - Save/Open now properly builds the pathname
34386           - Now handles user-entered text
34387           - Preventing crash on right-click if no item is selected
34388           - Fixed Text property, now uses contents of textbox
34389           - Fixed SelectedText property, now just returns the text part that
34390             is selected in the text box
34391
34392 2005-03-18  Jackson Harper  <jackson@ximian.com>
34393
34394         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
34395         rect, make sure to de-adjust the interior rect after drawing the
34396         tab text.
34397
34398 2005-03-18  Peter Bartok  <pbartok@novell.com>
34399
34400         * MenuAPI.cs: Remove menu *before* executing selected action to
34401           prevent the menu from 'hanging around'
34402           
34403 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
34404
34405         * XplatUIOSX.cs: Implemented WorkingArea property
34406
34407 2005-03-17  Peter Bartok  <pbartok@novell.com>
34408
34409         * XplatUIX11.cs: Fixed menu coord calculations
34410         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
34411           for calculating offsets
34412
34413 2005-03-17  Peter Bartok  <pbartok@novell.com>
34414
34415         * Hwnd.cs: Do not consider menu presence for default client
34416           rectangle location/size
34417         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
34418           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
34419           translation functions
34420         * FileDialog.cs: Fixed (what I presume is a) typo
34421
34422 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
34423
34424         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
34425           X access (avoids X-Async errors)
34426
34427 2005-03-16  Jackson Harper  <jackson@ximian.com>
34428
34429         * TabControl.cs: Raise the SelectedIndexChanged event.
34430
34431 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
34432
34433         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
34434           - Removed vertical ToolBar and replaced it with a custom panel
34435             (desktop and home button already work)
34436           - Added Help button (some controls get resized or relocated then)
34437           - Draw correct text depending on Open or Save.
34438           - Fixed some typos...
34439
34440 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
34441
34442         * ScrollBar.cs:
34443           - Only change Maximum and Minimum when need it (bug fix)
34444
34445 2005-03-15  Peter Bartok  <pbartok@novell.com>
34446
34447         * Form.cs: Use Handle for icon, to trigger creation if
34448           the window does not yet exist
34449         * Control.cs:
34450           - CanSelect: Slight performance improvement
34451           - Focus(): Preventing possible recursion
34452           - Invalidate(): Removed ControlStyle based clear flag setting
34453           - WM_PAINT: fixed logic for calling OnPaintBackground
34454           - WM_ERASEBKGND: Fixed logic, added call to new driver method
34455             EraseWindowBackground if the control doesn't paint background
34456         * XplatUIWin32.cs:
34457           - Moved EraseWindowBackground() method to internal methods
34458           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
34459             is sent via SendMessage on BeginPaint call on Win32
34460         * XplatUIX11.cs:
34461           - Added EraseWindowBackground() method
34462           - No longer sends WM_ERASEBKGND on .Expose, but on call to
34463             PaintEventStart, which more closely matches Win32 behaviour
34464           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
34465           - Fixed SetFocus() to properly deal with client and whole windows
34466         * Hwnd.cs: Added ErasePending property
34467         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
34468         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
34469
34470 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
34471
34472         * XplatUIOSX.cs:
34473           - Fix hard loop when timers exist.
34474           - Fix bugs with middle and right click for 3 button mice.
34475
34476 2005-03-11  Peter Bartok  <pbartok@novell.com>
34477
34478         * XplatUIX11.cs:
34479           - get_WorkingArea: Need to call X directly, GetWindowPos only
34480             returns cached data now
34481           - Added sanity check to GetWindowPos hwnd usage
34482
34483 2005-03-11  Jackson Harper  <jackson@ximian.com>
34484
34485         * BindingManagerBase.cs: This method isn't used anymore as
34486         PullData now updates the data in the control.
34487
34488 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
34489
34490         * Form.cs: fixes menu drawing on X11
34491         * MenuAPI.cs:  fixes menu drawing on X11
34492
34493 2005-03-11  Peter Bartok  <pbartok@novell.com>
34494
34495         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
34496           from Jonathan Gilbert; should fix bug #73606
34497         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
34498           in Screen coordinates. Thanks, Jordi.
34499         * Form.cs: Added missing attribute
34500
34501 2005-03-11  Peter Bartok  <pbartok@novell.com>
34502
34503         * Form.cs:
34504           - Rudimentary Mdi support
34505           - Removed outdated FormParent code
34506           - Implemented lots of missing properties and methods, still missing
34507             transparency support
34508           - Added missing attributes
34509           - Implemented support for MaximumBounds
34510           - Added firing of various events
34511         * XplatUI.cs: Added SetIcon() method
34512         * XplatUIDriver.cs: Added SetIcon() abstract
34513         * XplatUIOSX.cs: Stubbed out SetIcon() method
34514         * XplatUIX11.cs:
34515           - Implemented SetIcon() support
34516           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
34517           - Switched to unix line endings
34518         * XplatUIWin32.cs:
34519           - Made POINT internal so for can access it as part of MINMAX
34520           - Implemented SetIcon() support
34521           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
34522             native Mdi support again, might have to go managed)
34523         * Control.cs: Now fires the StyleChanged event
34524         * MdiClient.cs: Added; still mostly empty
34525
34526 2005-03-10  Peter Bartok  <pbartok@novell.com>
34527
34528         * SaveFileDialog.cs: Added emtpy file
34529
34530 2005-03-08  Peter Bartok  <pbartok@novell.com>
34531
34532         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
34533           in turn triggers OnCreateContro) when creating a handle for the
34534           first time.
34535         * TextControl.cs: Fixed endless loop in certain cases when
34536           replacing the current selection
34537
34538 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
34539
34540         * ScrollBar.cs:
34541           - Honors NewValue changes in Scroll events allowing apps to change it
34542           - Adds First and Last Scroll events
34543           - Fixes Thumb events
34544
34545 2005-03-07  Peter Bartok  <pbartok@novell.com>
34546
34547         * Hwnd.cs: Added DefaultClientRectangle property
34548         * XplatUI.cs: Now using the X11 driver Where() method, which provides
34549           more detailed debug information
34550         * XplatUIX11.cs:
34551           - Fixed size-change feedback loop, where we would pull an old size
34552             off the queue and mistakenly change our window's size to an
34553             earlier value
34554           - Now compressing ConfigureNotify events, to reduce looping and
34555             redraw issues
34556         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
34557           is called
34558
34559 2005-03-07  Jackson Harper  <jackson@ximian.com>
34560
34561         * Binding.cs: Push data pushes from data -> property. Check if the
34562         property is readonly when attempting to set it.
34563
34564 2005-03-07  Jackson Harper  <jackson@ximian.com>
34565
34566         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
34567         instead of IsSubclassOf. Pulling data now sets the value on the
34568         control.
34569         * PropertyManager.cs:
34570         * CurrencyManager.cs: Just need to pull data when updating now,
34571         because PullData will set the value on the control.
34572
34573 2005-03-04  Jackson Harper  <jackson@ximian.com>
34574
34575         * Binding.cs: Implement data type parsing and converting on pulled
34576         data. TODO: Are there more ways the data can be converted?
34577
34578 2005-03-04  Jackson Harper  <jackson@ximian.com>
34579
34580         * Binding.cs: Support <Property>IsNull checks. Also bind to the
34581         controls Validating method so we can repull the data when the
34582         control loses focus.
34583
34584 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
34585
34586         * ColumnHeader.cs:
34587           - Fixes null string format
34588           
34589         * ListView.cs:
34590           - Adds enum type checks
34591           - Fixes redrawing and recalc need after changing some properties
34592           - Fixes on focus_item set after the event
34593           - Fixes adding columns after the control has been created
34594           
34595         * ThemeWin32Classic.cs:
34596           - Fixes CheckBox focus rectangle
34597           - Fixes ColumnHeader drawing
34598
34599
34600 2005-03-03  Jackson Harper  <jackson@ximian.com>
34601
34602         * Binding.cs: Bind to <Property>Changed events so we can detect
34603         when properties are changed and update the data.
34604
34605 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
34606
34607         * ImageList.cs:
34608           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
34609           - Fixes ImageList constructor with ImageList container
34610           - Fixes image scaling (wrong parameters at DrawImage)
34611
34612 2005-02-02  Jackson Harper  <jackson@ximian.com>
34613
34614         * Binding.cs: Make property searches case-insensitive. Eliminate
34615         some duplicated code.
34616
34617 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
34618
34619         * ComboBox.cs:
34620                 - Handle focus event
34621                 - Fix scrollbar events
34622                 - Discard highlighted item if remove it
34623                 - Fixes SelectedItem with strings
34624
34625 2005-03-01  Peter Bartok  <pbartok@novell.com>
34626
34627         * Control.cs:
34628           - Fixed Visible property, now follows (once again) parent chain
34629             to return false if any control in the chain is visible=false
34630           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
34631           - Fixed several places where is_visible instead of Visible was used
34632           - Implemented FIXME related to focus selection when setting focused
34633             control to be invisible
34634
34635         * XplatUIWin32.cs: Now using proper method to find out if window is
34636           visible. Thanks to Jordi for pointing it out
34637
34638 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
34639
34640         * ComboBox.cs: show/hide scrollbar instead of creating it
34641
34642 2005-02-27  Jackson Harper  <jackson@ximian.com>
34643
34644         * CurrencyManager.cs: Add PositionChanged stuff.
34645
34646 2005-02-27  Peter Bartok  <pbartok@novell.com>
34647
34648         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
34649         * XplatUIOSX.cs: Added GetMenuOrigin() stub
34650         * XplatUIWin32.cs: Implemented GetMenuOrigin()
34651         * XplatUIX11.cs:
34652           - Implemented GetMenuDC()
34653           - Implemented GetMenuOrigin()
34654           - Implemented ReleaseMenuDC()
34655           - Implemented generation of WM_NCPAINT message
34656           - Implemented generation and handling of WM_NCCALCSIZE message
34657         * Form.cs: Added debug helper message for Jordi's menu work
34658         * Hwnd.cs:
34659           - Modified ClientRect property; added setter, fixed getter to handle
34660             setting of ClientRect
34661           - Added MenuOrigin property
34662
34663 2005-02-26  Peter Bartok  <pbartok@novell.com>
34664
34665         * XplatUIX11.cs:
34666           - Destroys the caret if a window that's being destroyed contains it
34667           - Ignores expose events coming from the X11 queue for windows that
34668             already are destroyed
34669           - Now uses the proper variable for handling DestroyNotify, before we
34670             marked the wrong window as destroyed
34671           - Improved/added some debug output
34672
34673 2005-02-26  Peter Bartok  <pbartok@novell.com>
34674
34675         * X11Keyboard.cs: Fixes to work on 64bit systems
34676
34677 2005-02-26  Peter Bartok  <pbartok@novell.com>
34678
34679         * Control.cs:
34680           - Now calling OnHandleDestroyed from DestroyHandle()
34681             instead of Dispose()
34682           - Removed bogus call to controls.Remove() from DestroyHandle()
34683
34684 2005-02-26  Peter Bartok  <pbartok@novell.com>
34685
34686         * Control.cs: Properly destroy child windows when our handle is
34687           destroyed
34688
34689 2005-02-25  Peter Bartok  <pbartok@novell.com>
34690
34691         * XplatUI.cs:
34692           - Added 'DriverDebug' define to allow tracing XplatUI API calls
34693           - Alphabetized Static Methods and Subclasses
34694
34695         * XplatUIX11.cs:
34696           - Added XException class to allow custom handling of X11 exceptions
34697           - Created custom X11 error handler, tied into XException class
34698           - Added support for MONO_XEXCEPTIONS env var to allow the user
34699             to either throw an exception on X errors or continue running
34700             after displaying the error
34701           - Added handling of DestroyNotify message
34702           - Added handler for CreateNotify message (still disabled)
34703           - Improved (tried to at least) Where method to provide file and lineno
34704         * X11Structs.cs:
34705           - Added XErrorHandler delegate
34706           - Added XRequest enumeration (to suppor translation of errors)
34707
34708 2005-02-25  Jackson Harper  <jackson@ximian.com>
34709
34710         * PropertyManager.cs: Implement editing features
34711         * CurrencyManager.cs:
34712         * Binding.cs: First attempt at UpdateIsBinding
34713         * BindingManagerBase.cs: Call UpdateIsBinding before
34714         pushing/pulling data.
34715
34716 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
34717
34718         * MenuAPI.cs: Respect disabled items
34719         * ThemeWin32Classic.cs
34720                 - Caches ImageAttributes creation for DrawImageDisabled
34721                 - Fixes vertical menu line drawing
34722                 - Draws disabled arrows in disable menu items
34723
34724 2005-02-24  Peter Bartok  <pbartok@novell.com>
34725
34726         * Hwnd.cs:
34727           - Added UserData property to allow associating arbitrary objects
34728             with the handle
34729           - Fixed leak; now removing Hwnd references from static windows array
34730         * XplatUIWin32.cs:
34731           - Fixed Graphics leak in PaintEventEnd
34732           - Removed usage of HandleData, switched over to Hwnd class
34733         * HandleData.cs: Removed, obsoleted by Hwnd.cs
34734
34735 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
34736
34737         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
34738         * ScrollBar.cs: Fixes bug
34739         * TrackBar.cs: removes death code, clipping, mimize refreshes,
34740          keyboard navigation enhancements
34741
34742 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
34743
34744         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
34745         * GroupBox.cs: Add control styles
34746         * Label.cs: Add control styles
34747         * UpDownBase.cs: Add control styles
34748         * ListBox.cs: Add control styles
34749         * XplatUIWin32.cs: Fixes wrong parameter order
34750
34751
34752 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
34753
34754         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
34755
34756 2005-02-23  Jackson Harper  <jackson@ximian.com>
34757
34758         * PropertyManager.cs: Implement property binding. This doesn't
34759         seem to work yet though as (I think) there are some bugs in
34760         System.ComponentModel.PropertyDescriptor.
34761         * BindingContext.cs: Use new PropertyManager constructor.
34762
34763 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
34764
34765         * ProgressBar.cs: use clip region in ProgressBar
34766         * ThemeWin32Classic.cs: use clip region in ProgressBar
34767
34768 2004-02-22  Jackson Harper  <jackson@ximian.com>
34769
34770         * BindingsCollection.cs: Remove some debug code.
34771
34772 2005-02-22  Jackson Harper  <jackson@ximian.com>
34773
34774         * BindingContext.cs:
34775         * ControlBindingsCollection.cs:
34776         * CurrencyManager.cs:
34777         * Binding.cs:
34778         * BindingManagerBase.cs: Initial implementation
34779         * BindingsCollection.cs: Add an internal contains method that the
34780         BindingManagerBase uses to ensure bindings aren't added twice to
34781         the collection.
34782         * PropertyManager.cs: Stubbed out.
34783         * Control.cs:
34784         * ContainerControl.cs: Hook up databinding
34785         
34786 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
34787
34788         * XplatUIOSX.cs:
34789           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
34790           Fixed Invalidate/Update chain.
34791           Fixed tons of other minor bugs (this is almost a complete rewrite).
34792
34793 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
34794
34795         * ComboBox.cs: do subcontrol creation when the control is created
34796
34797 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
34798
34799         * Label.cs: fixes image drawing (image and imagelist)
34800         * ThemeWin32Classic.cs: cache brushes
34801         
34802 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
34803
34804         * Form.cs: Move menu drawing code to Theme class
34805         * ComboBox.cs: Move ComboBox drawing code to Theme class
34806         * MenuItem.cs: Move menu drawing code to Theme class
34807         * MenuAPI.cs: Move menu drawing code to Theme class
34808         * ThemeWin32Classic.cs: New methods
34809         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
34810         * ListBox.cs: Move Listbox drawing code to Theme class
34811         * Theme.cs: New methods
34812
34813 2005-02-20  Peter Bartok  <pbartok@novell.com>
34814
34815         * Control.cs:
34816           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
34817             only process mnemonics on those)
34818           - Fixed event sequence for key handling; first calling
34819             ProcessKeyEventArgs now
34820         * TextBoxBase.cs:
34821           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
34822             for processing non-character keys
34823           - Fixed WM_CHAR to generate proper event sequence before processing
34824         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
34825           generation
34826
34827 2005-02-19  Peter Bartok  <pbartok@novell.com>
34828
34829         * UserControl.cs: Added TextChanged event; added attributes
34830         * SizeGrip.cs: Implemented resizing and optional display of grip
34831         * Form.cs: Fixed attribute
34832         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
34833           Changed meaning of ScrollWindow bool argument; instead of the
34834           clear attribute (which will be true usually anyway), it gives the
34835           option of moving child controls as well.
34836         * XplatUIX11.cs:
34837           - Changed to match new ScrollWindow argument
34838           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
34839             now handles the implicit parent window a WM puts around us
34840         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
34841           to work)
34842         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
34843         * TreeView.cs: Adjusted to new ScrollWindow arguments
34844
34845 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
34846
34847         * Form.cs: Menu integration with non-client area
34848         * MenuItem.cs: Menu integration with non-client area
34849         * MenuAPI.cs: Menu integration with non-client area
34850
34851 2005-02-18  Peter Bartok  <pbartok@novell.com>
34852
34853         * MethodInvoker.cs: Added
34854         * MdiLayout.cs: Added
34855         * SendKeys.cs: Started implementation
34856         * ErrorIconAlignment.cs: Added
34857
34858 2005-02-18  Peter Bartok  <pbartok@novell.com>
34859
34860         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
34861         * Form.cs: Added handling for Menu-related Non-client messages
34862
34863 2005-02-17  Peter Bartok  <pbartok@novell.com>
34864
34865         * UpDownBase.cs: Fixed typo, compilation errors
34866         * DomainUpDown.cs: Fixed attribute value
34867
34868 2005-02-16  Miguel de Icaza  <miguel@novell.com>
34869
34870         * UpDownBase.cs: Attach entry events.
34871         Propagate events.
34872         Add ForeColor property, Focused, InterceptArrowKeys (interception
34873         does not work yet).
34874
34875 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
34876
34877         * Form.cs:
34878                 - Redraw non client are on Setmenu
34879                 - Calc proper menu starting point
34880
34881 2005-02-17  Peter Bartok  <pbartok@novell.com>
34882
34883         * Application.cs: Fixed message_filter check
34884
34885 2005-02-17  Peter Bartok  <pbartok@novell.com>
34886
34887         * Application.cs: Now calls registered message filters
34888         * DockStyle.cs: Fixed attribute
34889         * Form.cs: Fixed attribute
34890         * Menu.cs: Fixed attribute
34891         * ToolTip.cs: Fixed attribute
34892         * TreeNode.cs: Added missing attributes and arranged in regions
34893         * PropertyGrid.cs: Fixed signatures
34894         * TreeNodeCollection.cs: Added attributes
34895         * Splitter.cs: Added missing attributes; arranged into regions
34896         * TabPage.cs: Added missing attributes; arranged into regions
34897         * TextBoxBase.cs: Added missing attributes
34898         * TextBox.cs: Added missing attributes
34899         * ArrangeDirection.cs: Added missing attributes
34900         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
34901         * ToolBarButton.cs: Fixed attributes
34902         * AnchorStyles.cs: Fixed attribute
34903         * TrackBar.cs: Fixed attributes
34904         * TabControl.cs: Added missing attributes and arranged into regions
34905         * ToolBar.cs: Fixed attribute
34906         * StatusBar.cs: Fixed signature, organized into regions and added
34907           attributes
34908         * StatusBarPanel.cs: Fixed attributes
34909         * ContentsResizedEventArgs.cs: Implemented
34910         * ContentsResizedEventHandler.cs: Implemented
34911         * DateBoldEventArgs.cs: Implemented
34912         * DateBoldEventHandler.cs: Implemented
34913         * UpDownEventArgs.cs: Implemented
34914         * UpDownEventHandler.cs: Implemented
34915         
34916 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
34917
34918         * Form.cs: first Menu NC refactoring
34919         * MenuAPI.cs: first Menu NC refactoring
34920         
34921 2005-02-16  Peter Bartok  <pbartok@novell.com>
34922
34923         * ImeMode.cs: Added missing attributes
34924         * Menu.cs: Fixed attribute
34925         * GroupBox.cs: Fixed attribute
34926         * Label.cs: Fixed attribute
34927         * ColorDialog.cs (RunDialog): Removed TODO attribute
34928         * ComboBox.cs: Fixed attributes
34929         * ListControl.cs: Added missing attributes
34930         * PropertyGrid.cs: Fixed attributes
34931         * Control.cs: Fixed attributes
34932         * ListViewItem.cs: Added TypeConverter attribute
34933         * NotifyIcon.cs: Fixed attributes
34934         * ListView.cs: Fixed attributes
34935         * ButtonBase.cs: Fixed attribute
34936         * ImageList.cs: Added missing attributes
34937         * ContainerControl.cs: Fixed signature
34938         * CheckedListBox.cs: Fixed attribute; added missing attributes
34939         * Panel.cs: Fixed attributes
34940         * PropertyTabChangedEventArgs.cs: Added missing attribute
34941         * PropertyValueChangedEventArgs.cs: Added missing attribute
34942         * Binding.cs: Fixed attribute
34943         * ListViewItemConverter: Implemented ListViewSubItemConverter class
34944         * ListBox.cs: Fixed attribute; added missing attributes;
34945         * ScrollableControl.cs: Added missing attributes
34946         * PictureBox.cs: Added missing attributes; implemented missing property
34947         * DateTimePicker.cs: Added missing attributes
34948         * Theme.cs (ToolWindowCaptionHeight): Fixed type
34949         * MonthCalendar.cs: Fixed attributes
34950         * StatusBarPanel.cs: Added missing attributes
34951         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
34952
34953 2005-02-16  Peter Bartok  <pbartok@novell.com>
34954
34955         * TextBoxBase.cs: The previous method to enforce height yet remember
34956           the requested high was less than ideal, this is an attempt to do
34957           it better.
34958         * Control.cs: Added comment about possible problem
34959         * Copyright: Updated format
34960         * GridItemType.cs: Fixed swapped values
34961
34962 2005-02-15  Jackson Harper  <jackson@ximian.com>
34963
34964         * BaseCollection.cs: Use property so we never access an
34965         uninitialized list. Also initialize the list in the property.
34966
34967 2005-02-15  Peter Bartok  <pbartok@novell.com>
34968
34969         * GroupBox.cs (ProcessMnemonic): Implemented
34970         * Label.cs (ProcessMnemonic): Implemented
34971         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
34972           hotkeys
34973
34974 2005-02-15  Peter Bartok  <pbartok@novell.com>
34975
34976         * RadioButton.cs (ProcessMnemonic): Implemented
34977         * CheckBox.cs (ProcessMnemonic): Implemented
34978         * Control.cs:
34979           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
34980             handling
34981           - Added internal method to allow calling ProcessMnemonic from other
34982             controls
34983         * ContainerControl.cs:
34984           - Started support for handling validation chain handling
34985           - Implemented ProcessMnemonic support
34986           - Added Select() call to Active, to make sure the active control
34987             receives focus
34988         * Form.cs: Setting toplevel flag for Forms (this was lost in the
34989           FormParent rewrite)
34990         * ThemeWin32Classic.cs:
34991           - DrawCheckBox(): Fixed stringformat to show hotkeys
34992           - DrawRadioButton(): Fixed stringformat to show hotkeys
34993         * CommonDialog.cs: Removed WndProc override, not needed
34994
34995 2005-02-14  Peter Bartok  <pbartok@novell.com>
34996
34997         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
34998           missed those in the rewrite
34999
35000 2005-02-14  Miguel de Icaza  <miguel@novell.com>
35001
35002         * NumericUpDown.cs (Increment, ToString): Add.
35003         (DecimalPlaces): implement.
35004         
35005         Add attributes.
35006         
35007         * UpDownBase.cs: Add the designer attributes.
35008
35009 2005-02-13  Peter Bartok  <pbartok@novell.com>
35010
35011         * Panel.cs: Removed border_style, now in Control
35012         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
35013           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
35014
35015 2005-02-13  Peter Bartok  <pbartok@novell.com>
35016
35017         * MouseButtons.cs: Added missing attributes
35018         * XplatUIStructs.cs: Added enumeration for title styles
35019         * LeftRightAlignment.cs: Added missing attributes
35020         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
35021           it compatible with Graphics.FromHwnd()
35022         * SelectedGridItemChangedEventArgs.cs: Fixed property type
35023         * Keys.cs: Added missing attributes
35024         * SelectionRange.cs: Added missing attributes
35025         * SelectionRangeConverter.cs: Added
35026         * XplatUI.cs:
35027           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
35028             ReleaseMenuDC methods
35029           - Renamed ReleaseWindow to UngrabWindow
35030           - Added proper startup notice to allow version identification
35031         * Form.cs:
35032           - Added missing attributes
35033           - Removed FormParent concept
35034         * Label.cs: Removed border_style field, now in Control
35035         * RadioButton.cs: Now properly selects RadioButton when focus is
35036           received
35037         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
35038         * Control.cs:
35039           - Added missing attributes
35040           - Added borderstyle handling
35041           - Removed FormParent concept support
35042           - Fixed calls to XplatUI to match changed APIs
35043           - Fixed bug that would case us to use disposed Graphics objects
35044           - Removed unneeded internal methods
35045           - PerformLayout(): Fixed to handle DockStyle.Fill properly
35046           - SelectNextControl(): Fixed to properly check common parents
35047         * TextBoxBase.cs: Removed border_style field (now in Control)
35048         * MessageBox.cs:
35049           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
35050             fixed calculations for form size
35051           - Added support for localized strings and icons
35052           - Improved form size calculations, added border
35053         * ListView.cs: Removed border_style field (now in Control)
35054         * X11Structs.cs: Moved several structs from X11 driver here
35055         * X11Keyboard.cs: Changed debug message
35056         * Application.cs: Removed FormParent concept support
35057         * CommonDialog.cs:
35058           - Resetting end_modal flag
35059           - Removed FormParent concept support
35060         * NativeWindow.cs: Removed FormParent concept support
35061         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
35062           Client area and Non-Client whole window to allow support for WM_NC
35063           messages
35064         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
35065           prevent using it until it supports Hwnd as per Geoff Norton's request
35066         * ToolBar.cs: Fixed drawing, was not doing proper drawing
35067         * PictureBox.cs: Removed border_style field, now in Control
35068         * XplatUIWin32.cs: Added new driver methods
35069
35070 2005-02-12  Peter Bartok  <pbartok@novell.com>
35071
35072         * OpacityConverter.cs: Implemented
35073         * Hwnd.cs: Internal class to support drivers that need to emulate
35074           client area/non-client area window behaviour
35075
35076 2005-02-11  Peter Bartok  <pbartok@novell.com>
35077
35078         * KeysConverter.cs: Implemented
35079
35080 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
35081
35082         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
35083         * LinkLabel: Added missing attributes
35084         * MainMenu.cs: fixes ToString
35085         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
35086         * ListBox.cs: fixes event position
35087         * TrackBar.cs: adds missing attributes and events
35088         
35089 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
35090
35091         * MenuItem.cs: Use SystemInformation and bug fixes
35092         * MenuAPI.cs: Use SystemInformation and bug fixes
35093
35094 2005-02-09  Jackson Harper  <jackson@ximian.com>
35095
35096         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
35097         their keystate otherwise things like VK_MENU get stuck "on".
35098
35099 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
35100
35101         * ListBox.cs: Fixes AddRange bug
35102         
35103 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
35104
35105         * ProgressBar.cs
35106                 - Add missing attributes
35107                 - Add missing method
35108                 
35109         * CheckedListBox.cs: Added missing attributes
35110                 - Add missing attributes
35111                 - Remove extra method
35112         
35113         * ComboBox.cs: Added missing attributes
35114         * VScrollBar.cs: Added missing attributes
35115         * ScrollBar.cs:  Added missing attributes
35116         * ListBox.cs: Fixes signature, add missing consts
35117         * LinkArea.cs:   Added missing attributes
35118         
35119
35120 2005-02-08  Peter Bartok  <pbartok@novell.com>
35121
35122         * Menu.cs: Added missing attributes
35123         * MainMenu.cs: Added missing attributes
35124         * GroupBox.cs: Added missing attributes
35125         * Label.cs: Added missing attributes
35126         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
35127         * ColorDialog.cs:
35128           - Added Instance and Options properties
35129           - Added missing attributes
35130         * Cursor.cs: Made Serializable
35131         * NotifyIcon: Added missing attributes
35132         * MenuItem.cs: Added missing attributes
35133         * TextBoxBase.cs: Implemented AppendText() and Select() methods
35134         * Panel.cs: Added Missing attributes
35135         * MonthCalendar.cs: Fixed CreateParams
35136
35137 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
35138         
35139         * LinkLabel.cs:
35140                 - Fixes signature
35141                 - Fixes issues with links
35142                 - Adds the class attributes
35143
35144 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
35145         
35146         * ComboBox.cs:
35147                 - Fixes button when no items available in dropdown
35148                 - Fixes repainting problems
35149                 - Adds the class attributes
35150                 
35151 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
35152
35153         * XplatUIOSX.cs: Detect the menu bar and title bar height from
35154         the current theme.  Cache these on startup.
35155
35156 2005-02-07  Jackson Harper  <jackson@ximian.com>
35157
35158         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
35159         the scrollbar buttons when they are depressed.
35160
35161 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
35162
35163         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
35164         Get the display size from the main displayid.  We currently dont
35165         support multiple display configurations.
35166
35167 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
35168
35169         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
35170
35171 2005-02-07  Miguel de Icaza  <miguel@novell.com>
35172
35173         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
35174
35175 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
35176
35177         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
35178
35179 2005-02-04  Jackson Harper  <jackson@ximian.com>
35180
35181         * ThemeWin32Classic.cs: Respect the clipping rect when
35182         drawing. Only fill the intersection of clips and rects so there
35183         isn't a lot of large fills.
35184         * ScrollBar.cs: Pass the correct clipping rect to the theme
35185         engine. Remove some debug code.
35186
35187 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
35188         
35189         * DateTimePicker.cs:
35190                 - Fixed crash on DateTime.Parse, use Constructor instead
35191
35192 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
35193         
35194         * MenuItem.cs:
35195         * MenuAPI.cs:
35196                 - Owner draw support (MeasureItem and DrawItem)
35197
35198 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
35199         
35200         *  Menu.cs:
35201                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
35202                 - Fixes MenuItems.Add range
35203         * MenuItem.cs:
35204                 - MergeMenu and Clone and CloneMenu functions
35205
35206 2005-02-03  Jackson Harper  <jackson@ximian.com>
35207
35208         * ScrollBar.cs: Make abstract
35209         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
35210         is abstract.
35211
35212 2005-02-03  Jackson Harper  <jackson@ximian.com>
35213
35214         * ScrollBar.cs: First part of my scrollbar fixups. This removes
35215         all the unneeded refreshes and uses invalidates with properly
35216         computed rects.
35217
35218 2005-02-03  Peter Bartok  <pbartok@novell.com>
35219
35220         * ComponentModel.cs: Added
35221         * IDataGridEditingService.cs: Added
35222         * Timer.cs: Added missing attributes
35223         * ToolTip.cs: Added missing attributes
35224
35225 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
35226
35227         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
35228
35229 2005-02-03  Peter Bartok  <pbartok@novell.com>
35230
35231         * ListBox.cs: Added missing attributes
35232
35233 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
35234         
35235         * ListBox.cs:
35236                 - Fixes font height after font change
35237                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
35238                 
35239 2005-02-02  Peter Bartok  <pbartok@novell.com>
35240
35241         * HandleData.cs: Introduced static methods to allow class
35242           to be more self-contained and track it's own HandleData objects
35243         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
35244           HandleData to use new static methods
35245
35246 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
35247
35248         * Combobox.cs:
35249                 - Fixes default size and PreferredHeight
35250                 - Missing events
35251                 - ObjectCollection.Insert implementation
35252                 
35253         * ListControl.cs
35254                 - Fixes signature
35255         * ListBox.cs:
35256                 - Several fixes
35257                 - ObjectCollection.Insert implementation
35258                 - No selection after clean
35259                 - Small fixes
35260
35261 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
35262
35263         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
35264
35265 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
35266
35267         * Combobox.cs:
35268                 - Caches ItemHeight calculation for OwnerDrawVariable
35269                 - Handles dropdown properly
35270                 - Fixes several minor bugs
35271
35272 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
35273
35274         * ListBox.cs:
35275                 - Fixes 71946 and 71950
35276                 - Fixes changing Multicolumn on the fly
35277                 - Fixes keyboard navigation on Multicolumn listboxes
35278
35279 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
35280         
35281         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
35282         crash reporter log.
35283
35284 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
35285
35286         * XplatUIOSX.cs: Allow applications to actually exit.
35287
35288 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
35289
35290         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
35291         their parent at creation time rather than lazily later.  Fixes a major
35292         regression we were experiencing.
35293
35294 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
35295
35296         * ThemeWin32Classic.cs: more date time picker painting fixes
35297         * DateTimePicker.cs: more monthcalendar drop down fixes
35298         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
35299
35300 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
35301
35302         * ScrollBar.cs:
35303                 - When moving the thumb going outside the control should stop the moving
35304                 - Adds the firing of missing events
35305                 - Fixes no button show if Size is not specified
35306                 - End / Home keys for keyboard navigation
35307
35308 2005-01-30  Peter Bartok  <pbartok@novell.com>
35309
35310         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
35311           sanity check to prevent theoretical loop
35312         * XplatUIWin32.cs (SetVisible): Removed debug output
35313         * XplatUIX11.cs (SystrayChange): Added sanity check
35314         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
35315         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
35316           behaviour, valid until the X11 client window rewrite is done
35317         * TextBox.cs (ctor): Setting proper default foreground and background
35318           colors
35319
35320 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
35321
35322         * Theme: Added DrawDateTimePicker to interface
35323         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
35324         * DateTimePicker.cs: Created (still needs keys and painting code)
35325         * DateTimePickerFormat.cs: added
35326         * MonthCalendar.cs: fixed CreateParams for popup window mode
35327           
35328 2005-01-29  Peter Bartok  <pbartok@novell.com>
35329
35330         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
35331           this should also the calculations for ligher/darker
35332         * Theme.cs: Fixed defaults for ScrollBar widths/heights
35333
35334 2005-01-29  Peter Bartok  <pbartok@novell.com>
35335
35336         * ArrangeDirection.cs: Added
35337         * ArrangeStartingPositon.cs: Added
35338         * SystemInformation.cs: Implemented
35339         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
35340           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
35341           used by SystemInformation class
35342         * X11Strucs.cs: Added XSizeHints structure
35343         * MenuAPI.cs:
35344           - Fixed CreateParams to make sure the menu window is always visible
35345           - TrackPopupMenu: Added check to make sure we don't draw the
35346             menu offscreen
35347
35348 2005-01-29  Peter Bartok  <pbartok@novell.com>
35349
35350         * HandleData.cs: Added method for altering invalid area
35351         * TextBoxBase.cs: Implemented TextLength
35352
35353 2005-01-28  Peter Bartok  <pbartok@novell.com>
35354
35355         * XplatUIX11.cs: Improvement over last patch, not sending
35356           the WM_PAINT directly anymore, instead we scroll any pending
35357           exposed areas and let the system pick out the WM_PAINT later
35358
35359 2005-01-28  Peter Bartok  <pbartok@novell.com>
35360
35361         * SWF.csproj: Deleted, no longer used. Instead,
35362           Managed.Windows.Forms/SWF.csproj should be used
35363         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
35364           directly, to avoid a potential race condition with the next
35365           scroll
35366
35367 2005-01-28  Peter Bartok  <pbartok@novell.com>
35368
35369         * XplatUI.cs: Made class internal
35370
35371 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
35372
35373         * CheckedListBox.cs:
35374                 - Draw focus
35375                 - Fixed Drawing
35376                 - Missing methods and events
35377
35378 2005-01-27  Peter Bartok  <pbartok@novell.com>
35379
35380         * Application.cs (Run): Don't use form if we don't have one
35381
35382 2005-01-27  Peter Bartok  <pbartok@novell.com>
35383
35384         * TextBoxBase.cs (get_Lines): Fixed index off by one error
35385
35386 2005-01-27  Peter Bartok  <pbartok@novell.com>
35387
35388         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
35389         * GridItem.cs: Added; Patch by Jonathan S. Chambers
35390         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
35391         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
35392         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
35393         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
35394         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35395         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
35396         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35397         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35398         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35399         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
35400
35401 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
35402
35403         * Combobox.cs:
35404                 - Draw focus on Simple Combobox
35405                 - Fixes drawing issues
35406                 - fixes 71834
35407
35408 2005-01-27  Peter Bartok  <pbartok@novell.com>
35409
35410         * Form.cs:
35411           - Place window in default location, instead of hardcoded 0/0
35412           - Send initial LocationChanged event
35413         * Control.cs:
35414           - UpdateBounds after creation to find out where the WM placed us
35415           - Make sure that if the ParentForm changes location the Form
35416             is notified
35417         * XplatUIX11.cs: XGetGeometry will not return the coords relative
35418             to the root, but to whatever the WM placed around us.
35419             Translate to root coordinates before returning toplevel
35420             coordinates
35421         * XplatUIWin32.cs: Removed debug output
35422         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
35423           flag to GetWindowPos, to allow translation of coordinates on X11
35424
35425 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
35426
35427         * ListBox.cs: connect LostFocus Event
35428
35429 2005-01-27  Peter Bartok  <pbartok@novell.com>
35430
35431         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
35432           XplatUIX11.cs: Extended the Systray API
35433         * Form.cs: Removed debug output
35434         * Application.cs: Fixed focus assignment, always need to call
35435           XplatUI.Activate() since Form.Activate() has rules that may
35436           prevent activation
35437         * NotifyIcon.cs: Should be complete now
35438         * ToolTip.cs: Worked around possible timer bug
35439
35440 2005-01-27  Jackson Harper  <jackson@ximian.com>
35441
35442         * TabControl.cs:
35443         - Only invalidate the effected tabs when the
35444         selected index changes. This reduces drawing and gets rid of some
35445         flicker.
35446         - Only refresh if the tabs need to be shifted, otherwise only
35447         invalidate the slider button.
35448         - On windows the tabs are not filled to right if the slider is
35449         visible.
35450         
35451 2005-01-27  Jackson Harper  <jackson@ximian.com>
35452
35453         * TabControl.cs: Only refresh on mouseup if we are showing the
35454         slider. Also only invalidate the button whose state has changed.
35455
35456 2005-01-26  Peter Bartok  <pbartok@novell.com>
35457
35458         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
35459         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
35460           and SystrayRemove() methods
35461         * XplatUIOSX.cs: Stubbed Systray methods
35462         * XplatUIX11.cs:
35463           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
35464             methods
35465           - Fixed broken XChangeProperty calls (marshalling messed up things)
35466         * X11Structs.cs: Added enums and structs required for Size hinting
35467         * NotifyIcon.cs: Added & implemented
35468
35469 2005-01-26  Jackson Harper  <jackson@ximian.com>
35470
35471         * TabControl.cs: Space vertically layed out tabs properly.
35472
35473 2005-01-26  Peter Bartok  <pbartok@novell.com>
35474
35475         * Form.cs (CreateClientParams): Always set the location to 0,0
35476           since we're a child window.
35477
35478         * Control.cs (SetVisibleCore): Always explicitly setting the location
35479           of a toplevel window, apparently X11 doesn't like to move windows
35480           while they're not mapped.
35481
35482 2005-01-26  Jackson Harper  <jackson@ximian.com>
35483
35484         * TabControl.cs: Implement FillToRight size mode with vertically
35485         rendered tabs.
35486
35487 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
35488
35489         * ControlPaint.cs, ThemeWin32Classic.cs
35490                 - Fixes DrawFocusRectangle
35491
35492 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
35493
35494         * MenuAPI.cs:
35495                 - MenuBar tracking only starts when item is first clicked
35496                 - Fixes menu hidding for multiple subitems
35497                 - Unselect item in MenuBar when item Executed
35498                 - Fixes bug 71495
35499
35500 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
35501
35502         * ListControl.cs:
35503                 - IsInputKey for ListBox
35504         * ListBox.cs:
35505                 - Focus item
35506                 - Shift and Control item selection
35507                 - Implement SelectionMode.MultiExtended
35508                 - Fixes RightToLeft
35509         * ComboBox.cs:
35510                 - IsInputKey implemented
35511                 - Do not generate OnTextChangedEdit on internal txt changes
35512                 
35513 2005-01-23  Peter Bartok  <pbartok@novell.com>
35514
35515         * AccessibleObject.cs: Partially implemented Select()
35516         * MonthCalendar.cs: Added missing attributes and events
35517         * Form.cs: Fixed CreateParams behaviour, now controls derived from
35518           form can properly override CreateParams.
35519         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
35520           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
35521           Control performs Invalidate & Update
35522         * NativeWindow (CreateHandle): Added special handling for Form
35523           and Form.FormParent classes to allow overriding of From.CreateParams
35524         * Control.cs:
35525           - ControlNativeWindow: Renamed 'control' variable to more intuitive
35526             name 'owner'
35527           - ControlNativeWindow: Added Owner property
35528           - Removed usage of Refresh() on property changes, changed into
35529             Invalidate(), we need to wait until the queue is processed for
35530             updates, direct calls might cause problems if not all vars for
35531             Paint are initialized
35532           - Added call to UpdateStyles() when creating the window, to set any
35533             styles that CreateWindow might have ignored.
35534           - Added support for Form CreateParent overrides to UpdateStyles()
35535         * MessageBox.cs: Removed no longer needed FormParent override stuff,
35536           CreateParams are now properly overridable
35537         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
35538           CreateParams are now properly overridable
35539
35540 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
35541
35542         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
35543         OnTextBoxChanged.
35544
35545         Capture LostFocus and OnTextBoxChanged.  The later introduces a
35546         recursive invocation that I have not figured out yet.
35547
35548         Reset the timer when not using (it was accumulating).
35549
35550
35551         (OnTextBoxChanged): Set UserEdit to true here to track whether the
35552         user has made changes that require validation.
35553
35554         Reset changing to avoid loops.
35555
35556 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
35557
35558         * NumericUpDown.cs: Display value at startup.
35559
35560         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
35561         ValidateEditText.
35562
35563         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
35564         filled in.  Added some basic parsing of text.
35565
35566         Still missing the OnXXX method overrides, and figuring out the
35567         events that must be emitted.
35568
35569         * UpDownBase.cs: Handle UserEdit on the Text property.
35570         
35571 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
35572
35573         * ComboBox.cs:
35574           - Fixes IntegralHeight
35575           - ToString method
35576
35577 2005-01-21  Jackson Harper  <jackson@ximian.com>
35578
35579         * TabControl.cs: Set the SelectedIndex property when SelectedTab
35580         is set so that the page visibility is updated and the tabs are
35581         sized correctly.
35582
35583 2005-01-21  Jackson Harper  <jackson@ximian.com>
35584
35585         * TabControl.cs: Use cliping rectangle for blitting. Give the
35586         theme the clipping rect so we can do clipping while
35587         drawing. Remove some debug code.
35588
35589 2005-01-21  Jackson Harper  <jackson@ximian.com>
35590
35591         * TabPage.cs: Add a new method so tab pages can force the tab
35592         control to recalculate the tab page sizes.
35593         * TabControl.cs: UpdateOwner needs to make the tab control recalc
35594         sizes.
35595
35596 2005-01-20  Jackson Harper  <jackson@ximian.com>
35597
35598         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
35599
35600 2005-01-20  Jackson Harper  <jackson@ximian.com>
35601
35602         * TreeView.cs: Set the bounds for nodes properly. They were
35603         getting screwed up when checkboxes were not enabled, but images
35604         were.
35605
35606 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
35607
35608         * ListBox.cs:
35609                 - Owner draw support
35610                 - Fixes
35611                 
35612 2005-01-20  Jackson Harper  <jackson@ximian.com>
35613
35614         * XplatUIStructs.cs: More misc keys
35615         * X11Keyboard.cs: Ignore some control keys.
35616
35617 2005-01-20  Jackson Harper  <jackson@ximian.com>
35618
35619         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
35620         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
35621
35622 2005-01-19  Peter Bartok  <pbartok@novell.com>
35623
35624         * Control.cs: Un-selecting the control when it is loosing focus
35625
35626 2005-01-19  Jackson Harper  <jackson@ximian.com>
35627
35628         * TreeView.cs: Hook up to the text controls leave event so we can
35629         end editing when the users clicks outside the text box.
35630         
35631 2005-01-19  Jackson Harper  <jackson@ximian.com>
35632
35633         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
35634         get set in the conversion array.
35635
35636 2005-01-19  Peter Bartok  <pbartok@novell.com>
35637
35638         * Application.cs (ModalRun): Added a call to CreateControl to ensure
35639           focus is properly set
35640         * Button.cs:
35641           - Added missing attributes
35642           - removed styles, those are already set in the base class
35643         * ButtonBase.cs:
35644           - Added missing attributes
35645           - Added clip window styles
35646         * CheckBox.cs: Added missing attributes
35647         * CommonDialog.cs:
35648           - FormParentWindow.CreateParams: Added required clip styles
35649         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
35650           also filters modifier keys
35651         * MessageBox.cs:
35652           - Added assignment of Accept and Cancel button to enable Enter
35653             and Esc keys in MessageBox dialogs
35654           - FormParentWindow.CreateParams: Added required clip styles
35655         * RadioButton.cs: Added missing attributes
35656         * TextControl.cs: No longer draws selection if control does not
35657           have focus
35658         * TextBoxBase.cs:
35659           - Now draws simple rectangle around test area to make it obvious
35660             there's a control. This is a hack until we properly support borders
35661           - A few simple fixes to support selections better, now erases selected
35662             text when typing, and resets selection when using movement keys
35663
35664 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
35665
35666         * UpDownBase.cs: Added some new properties.
35667
35668         * DomainUpDown.cs: Implement a lot to get my test working.
35669
35670 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35671
35672         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
35673
35674 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35675
35676         * OSXStructs (WindowAttributes): Fixed csc complaints
35677
35678 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35679
35680         * XplayUIOSX.cs:
35681           OSXStructs.cs: Initial refactor to move enums and consts into
35682           OSXStructs and use them in the driver for greater readability.
35683
35684 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35685
35686         * XplatUIOSX.cs: Initial support for Standard Cursors.
35687         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
35688
35689 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
35690
35691         * ComboBox.cs: ability to change style when the ctrl is already
35692         created, missing methods and events, bug fixes, signature fixes
35693
35694 2005-01-19  Peter Bartok  <pbartok@novell.com>
35695
35696         * Cursors.cs (ctor): Added ctor to fix signature
35697
35698 2005-01-18  Peter Bartok  <pbartok@novell.com>
35699
35700         * Button.cs: Implemented DoubleClick event
35701         * ButtonBase.cs:
35702           - Fixed keyboard handling to behave like MS, where the press of
35703             Spacebar is equivalent to a mousedown, and the key release is
35704             equivalent to mouseup. Now a spacebar push will give the same
35705             visual feedback like a mouse click.
35706           - Added missing attributes
35707           - Added ImeModeChanged event
35708           - Added support for generating DoubleClick event for derived classes
35709         * CheckBox.cs:
35710           - Implemented DoubleClick event
35711           - Added missing attributes
35712         * CommonDialog.cs: Added missing attribute
35713         * ContextMenu.cs: Added missing attributes
35714         * RadioButton.cs:
35715           - AutoChecked buttons do not allow to be unselected when clicked
35716             (otherwise we might end up with no selected buttons in a group)
35717           - Added missing attributes
35718           - Implemented DoubleClickEvent
35719         * ThreadExceptionDialog.cs: Enabled TextBox code
35720
35721 2005-01-18  Peter Bartok  <pbartok@novell.com>
35722
35723         * Form.cs: Removed debug output
35724         * Button.cs: Added support for DoubleClick method
35725
35726 2005-01-18  Peter Bartok  <pbartok@novell.com>
35727
35728         * Form.cs:
35729           - Added method to parent window that allows triggering size
35730             calculations when a menu is added/removed
35731           - set_Menu: Cleaned up mess from early days of Form and Control,
35732             now properly triggers a recalc when a menu is added/removed
35733           - Added case to select form itself as focused form if no child
35734             controls exist
35735           - Added PerformLayout call when showing dialog, to ensure properly
35736             placed controls
35737         * Control.cs:
35738           - Select(): Made internal so Form can access it
35739           - Focus(): Only call Xplat layer if required (avoids loop), and sets
35740             status
35741         * Application.cs (Run): Removed hack and calls PerformLayout instead
35742           to trigger calculation when Form becomes visible
35743
35744 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
35745
35746         * ComboBox.cs: fixes for ownerdraw
35747
35748 2005-01-18  Peter Bartok  <pbartok@novell.com>
35749
35750         * TextControl.cs:
35751           - Sentinel is no longer static, each Document gets it's own, this
35752             avoids locking or alternatively overwrite problems when more
35753             than one text control is used simultaneously.
35754           - Switched to use Hilight and HilightText brushes for text selection
35755
35756         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
35757
35758 2005-01-18  Peter Bartok  <pbartok@novell.com>
35759
35760         * Control.cs:
35761           - Hooked up the following events:
35762                 o ControlAdded
35763                 o ControlRemoved
35764                 o HandleDestroyed
35765                 o ImeModeChanged
35766                 o ParentChanged
35767                 o TabStopChanged
35768                 o Invalidated
35769                 o SystemColorsChanged
35770                 o ParentFontChanged
35771                 o Move
35772           - Removed debug output
35773           - Added a call to the current theme's ResetDefaults when a color change
35774             is detected
35775         * Form.cs: Now setting the proper ImeMode
35776         * Theme.cs: Defined a method to force recreation of cached resources
35777           and rereading of system defaults (ResetDefaults())
35778         * ThemeWin32Classic.cs: Added ResetDefaults() stub
35779
35780 2005-01-17  Peter Bartok  <pbartok@novell.com>
35781
35782         * Control.cs: Added missing attributes
35783
35784 2005-01-17  Jackson Harper  <jackson@ximian.com>
35785
35786         * TreeNode.cs: Implement editing. Add missing properties selected
35787         and visible.
35788         * TreeView.cs: Implement node editing. Also some fixes to use
35789         Invalidate (invalid area) instead of Refresh when selecting.
35790
35791 2005-01-17  Peter Bartok  <pbartok@novell.com>
35792
35793         * Control.cs:
35794           - Implemented InvokeGotFocus() method
35795           - Implemented InvokeLostFocus() method
35796           - Implemented InvokePaint() method
35797           - Implemented InvokePaintBackground() method
35798           - Implemented InvokeClick() method
35799           - Implemented FindForm() method
35800           - Implemented RectangleToClient() method
35801           - Implemented ClientToRectangle() method
35802           - Implemented ResetBackColor() method
35803           - Implemented ResetCursor() method
35804           - Implemented ResetFont() method
35805           - Implemented ResteForeColor() method
35806           - Implemented ResetImeMode() method
35807           - Implemented ResetLeftToRight() method
35808           - Implemented ResetText() method
35809           - Implemented Scale() methods
35810           - Implemented ScaleCore() method
35811           - Implemented Update() method
35812           - Removed unused variables
35813           - Stubbed AccessibilityNotifyClients and
35814             ControlAccessibleObject.NotifyClients() methods (dunno what to do
35815             with those yet)
35816           - Now setting proper default for RightToLeft property
35817           - Fixed bug in SetClientSizeCore that would cause windows to get
35818             really big
35819           - Now sending Click/DoubleClick events
35820           - Now selecting controls when left mouse button is clicked on
35821             selectable control
35822         * AccessibleEvents.cs: Added
35823         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
35824         * XplatUIOSX.cs: Stubbed UpdateWindow() method
35825         * XplatUIWin32.cs: Implemented UpdateWindow() method
35826         * XplatUIX11.cs: Implemented UpdateWindow() method
35827         * Form.cs: Removed stray semicolon causing CS0162 warning
35828         * ThemeWin32Classic.cs: Fixed unused variable warnings
35829         * ScrollableControl.cs: Now calls base method for ScaleCore
35830         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
35831           style to avoid interference with internal click handler (which is
35832           different than standard Control click handling)
35833         * RadioButton.cs:
35834           - Now unchecks all sibling radio buttons when control is
35835             selected (Fixes #68756)
35836           - Removed internal tabstop variable, using the one inherited from
35837             Control
35838
35839 2005-01-17  Jackson Harper  <jackson@ximian.com>
35840
35841         * NavigateEventArgs.cs: Fix base type.
35842         * LinkLabel.cs: Sig fix
35843         
35844 2005-01-17  Jackson Harper  <jackson@ximian.com>
35845
35846         * TreeView.cs: Only invalidate the effected nodes bounds when
35847         selecting nodes.
35848
35849 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
35850
35851         * XplatUIWin32.cs: fixes Win32 marshaling
35852         * XplatUIX11.cs: fixes method signature
35853
35854 2005-01-17  Peter Bartok  <pbartok@novell.com>
35855
35856         * XplatUIX11.cs: Clean up resources when we no longer need them
35857
35858 2005-01-17  Peter Bartok  <pbartok@novell.com>
35859
35860         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
35861           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
35862           and DestroyCursor() methods.
35863         * Cursor.cs: Partially implemented, now supports standard cursors;
35864           still contains some debug code
35865         * Cursors.cs: Implemented class
35866         * Control.cs:
35867           - WndProc(): Added handling of WM_SETCURSOR message, setting the
35868             appropriate cursor
35869           - Implemented Cursor property
35870           - Replaced break; with return; more straightforwar and possibly
35871             faster
35872           - Now properly setting the result for WM_HELP
35873         * X11Structs.cs: Added CursorFontShape enum
35874         * XplatUIStructs.cs:
35875           - Added StdCursor enum (to support DefineStdCursor() method)
35876           - Added HitTest enum (to support sending WM_SETCURSOR message)
35877         * XplatUIX11.cs:
35878           - Now sends the WM_SETCURSOR message
35879           - Implemented new cursor methods
35880         * XplatUIOSX.cs: Stubbed new cursor methods
35881         * XplatUIWin32.cs:
35882           - Implemented new cursor methods
35883           - Added GetSystemMetrics function and associated enumeration
35884
35885 2005-01-15  Peter Bartok  <pbartok@novell.com>
35886
35887         * Control.cs:
35888           - WndProc(): Now handles EnableNotifyMessage
35889           - SelectNextControl(): Fixed bug where if no child or sibling
35890             controls exist we looped endlessly
35891
35892 2005-01-14  Jackson Harper  <jackson@ximian.com>
35893
35894         * TreeView.cs: Recalculate the tab pages when a new one is added
35895         so that the proper bounding rects are created.
35896
35897 2005-01-14  Jackson Harper  <jackson@ximian.com>
35898
35899         * TreeView.cs: Draw a gray box instead of a grip in the lower
35900         right hand corner when there are both horizontal and vertical
35901         scroll bars.
35902
35903 2005-01-14  Jackson Harper  <jackson@ximian.com>
35904
35905         * Control.cs: When erasing backgrounds use FromHwnd instead of
35906         FromHdc when there is a NULL wparam. This occurs on the X driver.
35907         * XplatUIX11.cs: Set the wparam to NULL.
35908
35909 2005-01-13  Jackson Harper  <jackson@ximian.com>
35910
35911         * PictureBox.cs: Implement missing methods (except ToString, need
35912         to test that on windows) and events. When visibility is changed we
35913         need to redraw the image because the buffers are killed. When size
35914         is changed refresh if the sizemode needs it.
35915
35916 2005-01-13  Peter Bartok  <pbartok@novell.com>
35917
35918         * Control.cs (SelectNextControl): Was using wrong method to select
35919           a control
35920
35921 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
35922
35923         * ComboBox.cs: fixes dropstyle
35924
35925 2005-01-13  Peter Bartok  <pbartok@novell.com>
35926
35927         * Form.cs:
35928           - Implemented Select() override
35929           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
35930           - Now sets keyboard focus on startup
35931         * Control.cs (SelectNextControl): Now properly handles directed=true
35932         * TextBoxBase.cs:
35933           - WndProc: Now passes tab key on to base if AcceptTabChar=false
35934           - Added (really bad) focus rectangle (mostly for testing)
35935         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
35936           to enforce redraw on focus changes
35937         * ContainerControl.cs:
35938           - Fixed detection of Shift-Tab key presses
35939           - Fixed traversal with arrow keys
35940         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
35941           gonna keep this or if it's complete yet
35942         
35943 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
35944
35945         * ComboBox.cs: missing properties, fixes
35946
35947 2005-01-13  Peter Bartok  <pbartok@novell.com>
35948
35949         * Panel.cs (ctor): Setting Selectable window style to off
35950         * Splitter.cs (ctor): Setting Selectable window style to off
35951         * GroupBox.cs (ctor): Setting Selectable window style to off
35952         * Label.cs (ctor): Setting Selectable window style to off
35953
35954 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
35955
35956         * UpDownBase.cs (InitTimer): If the timer has been already
35957         created, enable it.
35958
35959         Use a TextBox instead of a Label.
35960
35961 2005-01-12  Jackson Harper  <jackson@ximian.com>
35962
35963         * TreeView.cs: Refresh the tree after sorting the nodes. Always
35964         draw the connecting node lines (when ShowLines is true).
35965         * TreeNode.cs: The nodes index can now be updated. This is used
35966         when a node collection is sorted.
35967         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
35968         insert or an existing unsorted node collection can be sorted.
35969         
35970 2005-01-12  Peter Bartok  <pbartok@novell.com>
35971
35972         * ContainerControl.cs: Implemented ProcessDialogKeys()
35973
35974 2005-01-12  Peter Bartok  <pbartok@novell.com>
35975
35976         * Control.cs:
35977           - Implemented SelectNextControl() method
35978           - Several focus related bug fixes
35979           - Fixed Docking calculations to match MS documentation and
35980             behaviour
35981
35982 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
35983
35984         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
35985         bug fixes
35986
35987 2005-01-12  Peter Bartok  <pbartok@novell.com>
35988
35989         * Control.cs:
35990           - Fixed broken Contains() method
35991           - Implemented GetNextControl() method. Finally. This is the pre-
35992             requisite for focus handling.
35993
35994 2005-01-12  Peter Bartok  <pbartok@novell.com>
35995
35996         * OSXStrucs.cs: Added
35997
35998 2005-01-12  Peter Bartok  <pbartok@novell.com>
35999
36000         * XplatUIWin32.cs:
36001           - Removed PeekMessageFlags
36002           - Implemented SetWindowStyle() method
36003         * XplatUIStructs.cs: Added PeekMessageFlags
36004         * X11Structs: Added missing border_width field to XWindowChanges struct
36005         * XplatUIX11.cs:
36006           - PeekMessage: Now throws exception if flags which are not yet
36007             supported are passed
36008           - Implemented SetWindowStyle() method
36009           - Fixed SetZOrder to handle AfterHwnd properly
36010         * XplatUI.cs: Added SetWindowStyle() method
36011         * XplatUIDriver.cs: Added SetWindowStyle() abstract
36012         * Control.cs:
36013           - Implemented UpdateStyles() method
36014           - Implemented UpdateZOrder() method
36015         * XplatUIOSX.cs: Added SetWindowStyle() stub
36016
36017 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
36018
36019         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
36020         button mouse).
36021
36022
36023 2005-01-11  Jackson Harper  <jackson@ximian.com>
36024
36025         * TreeView.cs: Still need to draw lines to siblings even if out of
36026         the current node is out of the clip.
36027
36028 2005-01-11  Jackson Harper  <jackson@ximian.com>
36029
36030         * TreeView.cs: When setting the hbar/vbar/grip position use
36031         SetBounds so that perform layout is only called once. Also suspend
36032         and resume layout so layout is only done once for all controls.
36033         - Removed some debug fluff
36034         * SizeGrip.cs: Call base implmentation in overriding methods.
36035         - When visibility is changed the drawing buffers are killed so we
36036         need to redraw.
36037
36038 2005-01-11  Jackson Harper  <jackson@ximian.com>
36039
36040         * TreeView.cs: Calculate the open node count while drawing. This
36041         saves us an entire tree traversal for every paint operation. Use
36042         a member var for the open node count so less vars are passed around.
36043
36044 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
36045
36046         * MonthCalendar.cs:
36047         - fixed selection to use mousemove, not mouse polling on timer
36048         * ThemeWin32Classic.cs
36049         - removed redundant unused variable "no_more_content"
36050         
36051 2005-01-11  Peter Bartok  <pbartok@novell.com>
36052
36053         * XplatUIX11.cs (DoEvents): Needs to return when no more events
36054           are pending, so it now calls PeekMessage instead of GetMessage;
36055           implemented a incomplete version of PeekMessage
36056         
36057 2005-01-11  Peter Bartok  <pbartok@novell.com>
36058
36059         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
36060           I18n issues
36061         * TextBoxBase.cs: Added sending of TextChanged event
36062
36063 2005-01-10  Jackson Harper  <jackson@ximian.com>
36064
36065         * TreeView.cs: Try not to draw outside the clipping rectangle on
36066         each node element.
36067
36068 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
36069
36070         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
36071
36072 2005-01-10  Jackson Harper  <jackson@ximian.com>
36073
36074         * TreeView.cs:
36075         - Implement fast scrolling. Now only the newly
36076         exposed nodes are drawn and the old image is moved using the
36077         XplatUI::ScrollWindow method.
36078         - Factor in height of nodes when calculating whether or not the
36079         node is in the clipping rect.
36080
36081 2005-01-10  Jackson Harper  <jackson@ximian.com>
36082
36083         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
36084
36085 2005-01-10  Peter Bartok  <pbartok@novell.com>
36086
36087         * Application.cs: Added temporary hack to resolve all our resize
36088           required issues on startup. This will get fixed properly at
36089           some point in the future
36090
36091 2005-01-10  Jackson Harper  <jackson@ximian.com>
36092
36093         * SizeGrip.cs: New internal class that is used as a sizing
36094         grip control...hence the name.
36095
36096 2005-01-10  Peter Bartok  <pbartok@novell.com>
36097
36098         * Control.cs: Implemented proper TabIndex handling, now assigning
36099           a tabindex when a control is added to a container
36100         * GroupBox.cs (ctor): Now sets the Container style bit, required
36101           for Control.GetNextControl()
36102
36103 2005-01-09  Jackson Harper  <jackson@ximian.com>
36104
36105         * TextBoxBase.cs: Clear window when scrolling (fixes build).
36106
36107 2005-01-09  Peter Bartok <pbartok@novell.com>
36108
36109         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
36110           XplatUIX11.cs: Added ability to control ScrollWindow expose and
36111           an overload for ScrollWindow to allow only scrolling a rectangle
36112
36113 2005-01-09  Peter Bartok <pbartok@novell.com>
36114
36115         * Form.cs:
36116           - Implemented SetDesktopBounds method
36117           - Implemented SetDesktopLocation method
36118
36119 2005-01-08  Jackson Harper  <jackson@ximian.com>
36120
36121         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
36122         the node count has changed, this removes to VScroll::Refresh calls
36123         when drawing.
36124
36125 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
36126
36127         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
36128
36129 2005-01-07  Jackson Harper  <jackson@ximian.com>
36130
36131         * TreeNode.cs: Just update the single node when it is
36132         checked. Don't refresh after toggling, the Expand/Collapse already
36133         handles this.
36134         * TreeView.cs: Respect clipping a little more when drawing. Try
36135         not to redraw things that don't need to be redrawn. Just hide the
36136         scrollbars when they are no longer needed instead of removing
36137         them, so they don't have to be created again and again.
36138         
36139 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
36140
36141         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
36142         coordinates to window space to place the caret properly, FIXED.
36143         Implement GetWindowState & SetWindowState
36144
36145 2005-01-06  Peter Bartok <pbartok@novell.com>
36146
36147         * Form.cs:
36148           - Implemented ClientSize property
36149           - Implemented DesktopBounds property
36150           - Implemented DesktopLocation property
36151           - Implemented IsRestrictedWindow property
36152           - Implemented Size property
36153           - Implemented TopLevel property
36154           - Implemented FormWindowState property
36155         * Control.cs:
36156           - Implemented GetTopLevel() method
36157           - Implemented SetTopLevel() method
36158         * X11Structs.cs (Atom):
36159           - Added AnyPropertyType definition
36160           - Added MapState definiton and updated XWindowAttribute struct
36161         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
36162         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
36163         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
36164         * XplatUIWin32.cs:
36165           - Implemented GetWindowState() and SetWindowState() methods
36166           - Fixed Win32GetWindowLong return type
36167         * XplatUIX11.cs:
36168           - Introduced central function for sending NET_WM messages
36169           - Implemented GetWindowState() and SetWindowState() methods
36170         * TextBoxBase.cs (set_Lines):
36171           - Now uses Foreground color for text added via Text property (Duh!)
36172           - Added code to remember programmatically requested size (fixes
36173             behaviour when Multiline is set after Size)
36174           - Added AutoSize logic
36175
36176 2005-01-06  Jackson Harper  <jackson@ximian.com>
36177
36178         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
36179
36180 2005-01-06  Jackson Harper  <jackson@ximian.com>
36181
36182         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
36183         set to less then 0.
36184
36185 2005-01-06  Jackson Harper  <jackson@ximian.com>
36186
36187         * ScrollableControl.cs: Lazy init the scrollbars.
36188         
36189 2005-01-06  Jackson Harper  <jackson@ximian.com>
36190
36191         * Theme.cs: Speed up getting pens and solid brushes, by using
36192         their ARGB as a hash instead of tostring and not calling Contains.
36193
36194 2005-01-06  Peter Bartok <pbartok@novell.com>
36195
36196         * Form.cs:
36197           - Implemented OnActivated and OnDeactivate event trigger
36198           - Implemented Activate() method
36199           - Fixed ShowDialog() to activate the form that was active before
36200             the dialog was shown
36201         * XplatUIX11.cs:
36202           - Added global active_window var that tracks the currently active
36203             X11 window
36204           - Now always grabs Property changes from the root window to always
36205             catch changes on the active window property
36206           - Added code to PropertyNotify handler to send Active/Inactive
36207             messages when state changes. This puts X11 and Win32 en par on
36208             WM_ACTIVATE notifications (except for double notifications when
36209             the user clicks away from our modal window to another one of our
36210             windows)
36211
36212 2005-01-05  Jackson Harper  <jackson@ximian.com>
36213
36214         * ImageList.cs: Implment ctor
36215
36216 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
36217
36218         * XplatUIOSX.cs: Implement Activate/SetTopmost
36219
36220 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
36221
36222         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
36223
36224 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
36225
36226         * XplatUIOSX.cs: Implement GetActive/SetFocus.
36227
36228 2005-01-05  Peter Bartok <pbartok@novell.com>
36229
36230         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
36231           XplatUIOSX.cs: Added GetActive method to return the currently
36232           active window for the application (or null, if none is active)
36233         * Form.cs:
36234           - Implemented ActiveForm
36235           - Commented out owner assignment for modal dialogs (causes problems
36236             on Win32, since the owner will be disabled)
36237           - Reworked some Active/Focus handling (still incomplete)
36238         * CommonDialog.cs: Commented out owner assignment for modal dialogs
36239           (causes problems on Win32, since the owner will be disabled)
36240         * IWin32Window: Added ComVisible attribute
36241
36242 2005-01-05  Peter Bartok <pbartok@novell.com>
36243
36244         * ToolTip.cs (WndProc): Enable setting focus now that we have the
36245           required XplatUI functions.
36246
36247 2005-01-05  Peter Bartok <pbartok@novell.com>
36248
36249         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
36250           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
36251           to implement focus and activation handling; still incomplete and
36252           with debug output
36253
36254 2005-01-04  Peter Bartok <pbartok@novell.com>
36255
36256         * TextBoxBase.cs: Changed access level for Document property to
36257           match switch to internal for TextControl
36258
36259 2005-01-04  Peter Bartok <pbartok@novell.com>
36260
36261         * AccessibleObject: Added ComVisible attribute
36262
36263 2005-01-04  Jackson Harper  <jackson@ximian.com>
36264
36265         * X11Keyboard.cs: Remove unneeded var.
36266
36267 2005-01-04  Jackson Harper  <jackson@ximian.com>
36268
36269         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
36270         but PAINT.
36271         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
36272         ClientMessage. This makes apps exit cleanly (more often).
36273         
36274 2005-01-04  Jackson Harper  <jackson@ximian.com>
36275
36276         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
36277         handling focus, return correct colors and fonts,
36278         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
36279         handle selection, horizontal scrolling, and mouse interaction.
36280
36281 2005-01-04  Peter Bartok <pbartok@novell.com>
36282
36283         * ICommandExecutor.cs: Added
36284         * IDataGridColumnStyleEditingNotificationService.cs: Added
36285         * IFeatureSupport.cs: Added
36286         * IFileReaderService.cs: Added
36287         * IDataObject.cs: Added ComVisible attribute
36288         * AmbientProperties.cs: Added
36289         * BaseCollection.cs: Added missing attributes
36290         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
36291         * BaseCollection.cs: Added missing attributes
36292         * Binding.cs: Added TypeConverter attribute
36293         * BindingContext.cs: Added DefaultEvent attribute
36294         * BindingsCollection.cs: Added DefaultEvent attribute
36295         * Button.cs: Added DefaultValue attribute
36296         * DragEventArgs.cs: Added ComVisible attribute
36297         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
36298         * KeyEventArgs.cs: Added ComVisible attribute
36299         * KeyPressEventArgs.cs: Added ComVisible attribute
36300         * MouseEventArgs.cs: Added ComVisible attribute
36301         * NavigateEventArgs.cs: Added
36302         * NavigateEventHandler.cs: Added
36303         * FeatureSupport.cs: Added
36304         * OSFeature.cs: Added
36305         * Theme.cs: Added abstract Version property to support OSFeature
36306         * ThemeWin32Classic.cs: Added Version property to
36307           support OSFeature.Themes
36308         * ProgressBar.cs: Removed OnPaintBackground override, not required since
36309           the proper styles to avoid background drawing are set, also doesn't
36310           match MS signature
36311         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
36312         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
36313         * ScrollEventArgs.cs: Added ComVisible attribute
36314         * SplitterEventArgs.cs: Added ComVisible attribute
36315         * AccessibleSelection.cs: Added Flags attribute
36316         * Appearance.cs: Added ComVisible attribute
36317         * Border3DSide.cs: Added ComVisible attribute
36318         * Border3DStyle.cs: Added ComVisible attribute
36319         * BorderStyle.cs: Added ComVisible attribute
36320         * DragAction.cs: Added ComVisible attribute
36321         * ErrorBlinkStyle.cs: Added
36322         * ScrollEventType.cs: Added ComVisible attribute
36323         * AnchorStyles.cs: Added Editor attribute
36324         * DockStyle.cs: Added Editor attribute
36325         * HorizontalAlignment.cs: Added ComVisible attribute
36326         * HelpEventArgs.cs: Added ComVisible attribute
36327         * PaintEventArgs.cs: Added IDisposable
36328
36329 2005-01-04  Peter Bartok <pbartok@novell.com>
36330
36331         * TextControl.cs: Switched Line, LineTag and Document classes to
36332           internal
36333
36334 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
36335
36336         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
36337         Simple mode, fixes, IntegralHeight, etc.
36338
36339 2005-01-04  Peter Bartok <pbartok@novell.com>
36340
36341         * TextBoxBase.cs: Using proper font variable now
36342
36343 2005-01-04  Peter Bartok <pbartok@novell.com>
36344
36345         * Form.cs (ShowDialog): Set parent to owner, if provided
36346         * GroupBox.cs: Removed unused vars
36347         * TextControl.cs:
36348           - Added GetHashCode() for Document and LineTag classes
36349           - Removed unused variables
36350           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
36351             to allow translation between continuous char position and line/pos
36352         * CheckBox.cs: Removed vars that are provided by base class
36353         * RadioButton.cs: Removed vars that are provided by base class, added
36354           new keyword where required
36355         * LinkLabel.cs: Added new keyword where required
36356         * Control.cs (WndProc): Removed unused variable
36357         * TextBoxBase.cs:
36358           - Finished SelectionLength property
36359           - Implemented SelectionStart property
36360           - Implemented Text property
36361           - Removed unused vars
36362         * MessageBox.cs: Added new keyword where required
36363         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
36364           WndProc signature
36365         * MenuAPI.cs: Added new keyword where required
36366         * ButtonBase.cs: Removed vars that are provided by base class, added
36367           new keyword where required
36368         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
36369           argument to double, to allow compiling with csc 2.0 (Atsushi ran
36370           into this)
36371         * Application.cs (Run): Now triggers the ThreadExit event
36372         * CommonDialog.cs: Added new keyword where required; now properly sets
36373           parent (owner) for dialog
36374         * XplatUIX11.cs: Commented out unused vars
36375         * StatusBar.cs: Fixed signature for Text property
36376         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
36377
36378 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
36379
36380         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
36381         TrackBar.cs, MonthCalendar.cs: remove unused vars
36382
36383 2005-01-03  Jackson Harper  <jackson@ximian.com>
36384
36385         * ThemeWin32Classic.cs:
36386         * X11Keyboard.cs: Remove unused vars.
36387
36388 2005-01-03  Peter Bartok  <pbartok@novell.com>
36389
36390         * TextBox.cs:
36391           - set_Text: Tied into TextControl
36392           - set_TextAlignment: Tied into TextControl
36393         * TextControl.cs:
36394           - Added alignment properties and implemented alignment handling
36395             and drawing (still has a bug, not generating proper expose events)
36396           - Added new Line() constructor to allow passing the line alignment
36397           - Fixed selection setting, properly handling end<start now
36398           - Added aligment considerations to RecalculateDocument()
36399         * TextBoxBase.cs:
36400           - Now properly enforces control height for single line controls
36401           - Added support for CharacterCasing
36402           - Added IsInputKey override
36403           - Fixed Keys.Enter logic
36404           - Added SetBoundsCore override
36405           - Fixed mouse selection handling
36406
36407 2005-01-03  Jackson Harper  <jackson@ximian.com>
36408
36409         * TreeView.cs:
36410           - Collapse and uncheck all nodes when CheckBoxes is disabled.
36411           - Checkboxes are always aligned to the bottom of the node,
36412           regardless of item height.
36413           - Use the node bounds to draw the text so we can center it when
36414           the item height is greater then the font height.
36415           - Node::Bounds are only the text part of the node.
36416         * TreeNode.cs: New method to combine collapsing and unchecking all
36417           nodes recursively.
36418
36419 2005-01-02  Jackson Harper  <jackson@ximian.com>
36420
36421         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
36422         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
36423         tree when a check is changed. TODO: Only refresh the checked node.
36424
36425 2004-12-30  Jackson Harper  <jackson@ximian.com>
36426
36427         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
36428         * TreeNode.cs: When collapsing make sure to never collapse the
36429         root node.
36430
36431 2004-12-29  Jackson Harper  <jackson@ximian.com>
36432
36433         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
36434         
36435 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
36436
36437         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
36438
36439 2004-12-28  Peter Bartok  <pbartok@novell.com>
36440
36441         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
36442           not yet assigned
36443
36444 2004-12-28  Peter Bartok  <pbartok@novell.com>
36445
36446         * Control.cs (WndProc): Added WM_HELP handler, now generates
36447           HelpRequested event
36448         * Form.cs: Added HelpButton property and required support code
36449         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
36450
36451 2004-12-28  Peter Bartok  <pbartok@novell.com>
36452
36453         * CommonDialog.cs:
36454           - Made DialogForm.owner variable internal
36455           - Added check to ensure owner form is set before setting
36456             owner properties in CreateParams
36457
36458 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
36459
36460         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
36461           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
36462           GetCursorPos.  Fix major visibility issues.  Rework the windowing
36463           system to support borderless/titleless windows (implements menus).
36464           Fix GetWindowPos.  Implement initial background color support for
36465           views.
36466
36467 2004-12-28  Peter Bartok  <pbartok@novell.com>
36468
36469         * Form.cs (get_CreateParams): Make sure we have an owner before using
36470           the owner variable. Implement proper default if no owner exists
36471
36472 2004-12-28  Peter Bartok  <pbartok@novell.com>
36473
36474         * In preparation for making Managed.Windows.Forms the default build target
36475           for System.Windows.Forms, the following stubbed files were added.
36476           Dialogs are currently being implemented by contributors and are only
36477           short-term place holders.
36478         * ColorDialog.cs: Initial check-in (minmal stub)
36479         * DataGrid.cs: Initial check-in (minimal stub)
36480         * DataGridLineStyle.cs: Initial check-in (minimal stub)
36481         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
36482         * DataGridTableStyle.cs: Initial check-in (minimal stub)
36483         * FontDialog.cs: Initial check-in (minimal stub)
36484         * FileDialog.cs: Initial check-in (minimal stub)
36485         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
36486         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
36487         * OpenFileDialog: Initial check-in (minimal stub)
36488         * IComponentEditorPageSite.cs: Initial check-in
36489         * Splitter.cs: Initial check-in (for Jackson)
36490         * SplitterEventArgs.cs: Initial check-in (for Jackson)
36491         * SplitterEventHandler.cs: Initial check-in (for Jackson)
36492         * TextBox.cs: Initial check-in; still needs some wiring to
36493           TextControl backend
36494         * Form.cs: Implemented ControlBox property
36495         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
36496         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
36497         * TextControl.cs: Added selection functionality; added todo header
36498         * TextBoxBase.cs:
36499           - Implemented Lines property
36500           - Implemented TextHeight property
36501           - Implemented SelectedText property
36502           - Implemented SelectionLength property
36503           - Implemented SelectAll method
36504           - Implemented ToString method
36505           - Removed and cleaned up some debug code
36506           - Implemented (still buggy) mouse text selection
36507
36508 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
36509
36510         * ComboBox.cs: Complete DropDownList implementation, fixes.
36511
36512 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
36513
36514         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
36515         * ComboBoxStyle.cs: ComboBoxStyle enum
36516         * ComboBox.cs: Initial work on ComboBox control
36517
36518 2004-12-21  Peter Bartok  <pbartok@novell.com>
36519
36520         * Control.cs (ctor, CreateParams): Moved setting of is_visible
36521           forward so that anything that creates a window gets the default,
36522           also no longer uses Visible property in CreateParams to avoid
36523           walking up the parent chain and possibly get the wrong visible
36524           status. Fixed IsVisible to no longer walk up to the parent.
36525
36526 2004-12-21  Peter Bartok  <pbartok@novell.com>
36527
36528         * Form.cs (ShowDialog): Unset modality for the proper window
36529  
36530 2004-12-20  Peter Bartok  <pbartok@novell.com>
36531
36532         * CommonDialog.cs: Initial check-in
36533
36534 2004-12-20  Peter Bartok  <pbartok@novell.com>
36535
36536         * Control.cs (Visible): Now uses the parent window instead of the
36537           client area window for the property
36538
36539         * Form.cs
36540           - ShowDialog(): Now uses the proper window for modality
36541           - The default visibility state for the form parent is now false. This
36542             will prevent the user from seeing all the changes to the form and
36543             its controls before the application hits Application.Run()
36544           - Removed some stale commented out code
36545
36546         * NativeWindow.cs:
36547           - Added FindWindow() method to have a method to check for existence
36548             of a window handle
36549           - Added ability to override default exception handling (for example
36550             when debugging with VS.Net; to do this the ExternalExceptionHandler
36551             define must be set
36552           - Removed some useless debug output
36553
36554         * XplatUIX11.cs:
36555           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
36556             not working as expected
36557           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
36558             property to allow switching back to the modal window if focus is
36559             given to another one of our windows (Application Modal)
36560           - Now only sets override_redirect if we create a window
36561             without WS_CAPTION
36562           - Moved EventMask selection before mapping of newly created window
36563             so we can catch the map event as well
36564           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
36565           - Added various Atom related DllImports
36566           - Implemented Exit() method
36567           - .ctor() : No longer shows window if WS_VISIBLE is not defined
36568             in the CreateParams
36569
36570         * MessageBox.cs: Now properly deals with the FormParent window by
36571           providing an override the FormParent CreateParams property to
36572           set as POPUP instead of OVERLAPPED window.
36573
36574 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
36575
36576         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
36577         Minor code cleanup.
36578
36579 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
36580         
36581         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
36582
36583 2004-12-18  Peter Bartok  <pbartok@novell.com>
36584
36585         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
36586           implementing SetModal() method
36587
36588 2004-12-18  Peter Bartok  <pbartok@novell.com>
36589
36590         * X11Structs.cs (XGCValues): Fixed type of function element
36591         * XplatUI.cs: Added ScrollWindow() method
36592         * XplatUIDriver.cs: Added ScrollWindow() abstract
36593         * XplatUIWin32.cs: Implemented ScrollWindow() method
36594         * XplatUIX11.cs: Implemented ScrollWindow() method
36595         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
36596
36597 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
36598
36599         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
36600         Some more keyboard support (INCOMPLETE)
36601
36602 2004-12-17  Peter Bartok  <pbartok@novell.com>
36603
36604         * TextControl.cs:
36605         - Added color attribute to line tags.
36606         - Added color argument to all functions dealing with tags
36607         - Added color argument support to various functions
36608         - Fixed miss-calculation of baseline/shift in certain circumstances
36609
36610         * TextBoxBase.cs: Added new color option to test code
36611
36612 2004-12-17  Jackson Harper  <jackson@ximian.com>
36613
36614         * TreeNode.cs:
36615         * MonthCalendar.cs: Signature fixes
36616
36617 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
36618
36619         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
36620         keyboard event moved it.  Create a new graphics context for each paint resolves this
36621
36622 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
36623
36624         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
36625         Make caret exist and go blink blink.  Initial keyboard support.
36626         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
36627         works.
36628
36629 2004-12-17  Jackson Harper  <jackson@ximian.com>
36630
36631         * XplatUIStructs.cs: Updated set of virtual keycodes.
36632         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
36633
36634 2004-12-17  Jackson Harper  <jackson@ximian.com>
36635
36636         * XplatUIX11.cs: Prune old keyboard code.
36637
36638 2004-12-17  Jackson Harper  <jackson@ximian.com>
36639
36640         * XplatUIX11.cs: When generating mouse wparams get the modifier
36641         keys from the ModifierKeys property.
36642
36643 2004-12-17  Jackson Harper  <jackson@ximian.com>
36644
36645         * X11Keyboard.cs: Send up/down input when generating
36646         messages. Remove some unused vars.
36647
36648 2004-12-17  Jackson Harper  <jackson@ximian.com>
36649
36650         * TabControl.cs:
36651         * TreeView.cs: get rid of warnings.
36652
36653 2004-12-17  Jackson Harper  <jackson@ximian.com>
36654
36655         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
36656
36657 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
36658
36659         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
36660           CheckedListBox.cs: Implementation
36661
36662 2004-12-17  Peter Bartok  <pbartok@novell.com>
36663
36664         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
36665
36666 2004-12-16  Peter Bartok  <pbartok@novell.com>
36667
36668         * TextControl.cs:
36669           - InsertCharAtCaret(): Fixed start pos fixup
36670           - CaretLine_get: No longer derives the line from the tag, the tag
36671             could be stale if lines in the document have been added or deleted
36672           - RebalanceAfterDelete(): Fixed bug in balancing code
36673           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
36674           - Line.Streamline(): Now can also elminate leading empty tags
36675           - DumpTree(): Added a few more tests and prevented exception on
36676             uninitialized data
36677           - Added Debug section for Combining lines
36678           - Delete(): Now copies all remaining properties of a line
36679           
36680         * TextBoxBase.cs:
36681           - Left mousebutton now sets the caret (and middle button still acts
36682             as formatting tester, which must go away soon)
36683           - Added Debug section for Deleting/Combining lines
36684           - Fixed calculations for UpdateView after Combining lines
36685
36686 2004-12-16  Peter Bartok  <pbartok@novell.com>
36687
36688         * TextControl.cs: Now properly aligns text on a baseline, using the
36689           new XplatUI.GetFontMetrics() method. Simplified several calculations
36690         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
36691           defined
36692
36693 2004-12-16  Peter Bartok  <pbartok@novell.com>
36694
36695         * XplatUI.cs: Added GetFontMetrics() method
36696         * XplatUIDriver.cs: Added GetFontMetrics() abstract
36697         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
36698           into libgdiplus, our private GetFontMetrics function
36699         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
36700         * XplatUIWin32.cs: Implemented GetFontMetrics() method
36701
36702 2004-12-16  Jackson Harper  <jackson@ximain.com>
36703
36704         * XplatUIStruct.cs: Add enum for dead keys
36705         * X11Keyboard.cs: Map and unmap dead keys.
36706
36707 2004-12-16  Jackson Harper  <jackson@ximian.com>
36708
36709         * X11Keyboard.cs: Detect and use the num lock mask.
36710
36711 2004-12-16  Peter Bartok  <pbartok@novell.com>
36712
36713         * Control.cs (CreateGraphics): Added check to make sure the
36714           handle of the window exists before calling Graphics.FromHwnd()
36715
36716 2004-12-16  Peter Bartok  <pbartok@novell.com>
36717
36718         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
36719           contains a lot of code that's not supposed to be there for the
36720           real thing, but required for developing/testing the textbox
36721           backend.
36722
36723 2004-12-16  Peter Bartok  <pbartok@novell.com>
36724
36725         * TextControl.cs:
36726         - Fixed Streamline method
36727         - Added FindTag method to Line
36728         - Added DumpTree method for debugging
36729         - Added DecrementLines() method for deleting lines
36730         - Fixed UpdateView to update the cursor to end-of-line on single-line
36731           updates
36732         - Added PositionCaret() method
36733         - Fixed MoveCaret(LineDown) to move into the last line, too
36734         - Added InsertChar overload
36735         - Fixed InsertChar tag offset calculations
36736         - Added DeleteChar() method
36737         - Added Combine() method for folding lines
36738         - Fixed Delete() method, no longer allocates wasted Line object and
36739           now copies all properties when swapping nodes
36740         - Delete() method now updates document line counter
36741
36742 2004-12-15  Jackson Harper  <jackson@ximian.com>
36743
36744         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
36745         * X11Keyboard.cs: Expose the currently selected modifier keys
36746         through a property.
36747
36748 2004-12-15  Peter Bartok  <pbartok@novell.com>
36749
36750         * TextControl.cs: Initial check-in. Still incomplete
36751
36752 2004-12-15  Jackson Harper  <jackson@ximian.com>
36753
36754         * TreeNode.cs:
36755         * TreeView.cs: Fix build on csc (second time today ;-))
36756
36757 2004-12-15  Jackson Harper  <jackson@ximian.com>
36758
36759         * TreeView.cs: Store the treenodes plus/minus box bounds when it
36760         is calculated and use this for click testing.
36761         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
36762
36763 2004-12-15  Jackson Harper  <jackson@ximian.com>
36764
36765         * TreeView.cs: Pass the nodes image index to the image list when
36766         drawing that image.
36767
36768 2004-12-15  Jackson Harper  <jackson@ximian.com>
36769
36770         * X11Keyboard.cs: Set messages hwnd.
36771         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
36772         post_message calls.
36773
36774 2004-12-15  Jackson Harper  <jackson@ximian.com>
36775
36776         * X11Keyboard.cs: Fix to compile with csc.
36777         
36778 2004-12-15  Jackson Harper  <jackson@ximian.com>
36779
36780         * X11Structs.cs: Add key mask values
36781         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
36782         * X11Keyboard.cs: New file - Extrapolates and interpolates key
36783         down/up foo into WM_CHAR foo
36784         * KeyboardLayouts.cs: Common keyboard layouts
36785         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
36786         post messages into the main queue.
36787
36788 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
36789
36790         * Button.cs: implement ProcessMnemonic
36791         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
36792           brushes everytime
36793         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
36794         * ButtonBase.cs: Show HotkeyPrefix (not the &)
36795
36796 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
36797         
36798         * MonthCalendar.cs: Implemented click-hold for next/previous month
36799           and date selection
36800           
36801 2004-12-11  Peter Bartok  <pbartok@novell.com>
36802
36803         * X11Structs.cs:
36804           - Added XKeyboardState (moved from XplatUIX11.cs)
36805           - Added XCreateGC related enums and structures
36806           - Added GXFunction for XSetFunction
36807
36808         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
36809
36810         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
36811           CaretVisible() calls
36812
36813         * ToolTip.cs: Added code to prevent stealing focus from app windows
36814
36815         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
36816           DestroyCaret, SetCaretPos and CaretVisible)
36817
36818         * XplatUIX11.cs:
36819           - Added implementation for caret functions
36820           - Moved hover variables into a struct, to make it a bit easier
36821             on the eyes and to debug
36822           - Removed XKeyboardState (moved to XplatUIX11.cs)
36823           - Moved Keyboard properties into the properties region
36824
36825         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
36826           call to get a graphics context for our control
36827
36828         * XplatUIOSX.cs: Added empty overrides for the new caret functions
36829
36830         * TreeView.cs: Fixed bug. No matter what color was set it would always
36831           return SystemColors.Window
36832
36833         * XplatUIWin32.cs: Implemented caret overrides
36834
36835 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
36836
36837         * ListBox.cs: fire events, implement missing methods and properties,
36838         sorting.
36839
36840 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
36841
36842         * MonthCalendar.cs: invalidation bug fixing
36843         * ThemeWin32Classic.cs: paint fixing
36844
36845 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
36846
36847         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
36848         prepare the CGContextRef there now.
36849
36850 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
36851
36852         * MonthCalendar.cs:
36853           - optimisationL only invalidate areas that have changed
36854         * ThemeWin32Classic.cs:
36855           - only paint parts that intersect with clip_area
36856
36857 2004-12-09  Peter Bartok  <pbartok@novell.com>
36858
36859         * Application.cs: Undid changes from r37004 which cause problems
36860         on X11
36861
36862 2004-12-09  Ravindra  <rkumar@novell.com>
36863
36864         * ToolBar.cs: Added support for displaying ContextMenu
36865         attached to a button on ToolBar.
36866         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
36867         property.
36868
36869 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
36870
36871         * Label.cs: autosize works in text change and removes unnecessary
36872         invalidate
36873
36874 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
36875
36876         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
36877         remove warnings
36878
36879 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
36880
36881         * XplatUIOSX.cs: Added mouse move/click/grab support
36882         Remove some debugging WriteLines not needed anymore.
36883         Add window resizing/positioning.
36884         Fix visibility on reparenting.
36885
36886 2004-12-08  Peter Bartok  <pbartok@novell.com>
36887
36888         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
36889
36890 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
36891
36892         * XplatUIOSX.cs: Initial checkin
36893         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
36894
36895 2004-12-03  Ravindra <rkumar@novell.com>
36896
36897         * ListView.cs: Added some keybindings and fixed scrolling.
36898         ScrollBars listen to ValueChanged event instead of Scroll
36899         Event. This would let us take care of all changes being
36900         done in the scrollbars' values programmatically or manually.
36901         * ListView.cs (CanMultiselect): Added a check for shift key.
36902         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
36903         * ListViewItem.cs (Clone): Fixed. We need to make a copy
36904         of ListViewSubItemCollection as well.
36905
36906 2004-12-06  Peter Bartok <pbartok@novell.com>
36907
36908         * Control.cs (Parent): Added check and exception to prevent
36909         circular parenting
36910
36911 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
36912
36913         * ListBox.cs: implemented clipping, selection single and multiple,
36914         bug fixing
36915
36916 2004-12-03  Ravindra <rkumar@novell.com>
36917
36918         * ListView.cs (ListView_KeyDown):
36919         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
36920         when CTRL key is pressed.
36921         * ListViewItem.cs (Selected): Fixed setting the property.
36922
36923 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
36924
36925         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
36926
36927         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
36928         MinimizeBox, ShowInTaskbar, TopMost properties.
36929
36930         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
36931         will be implemented).
36932
36933 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
36934
36935         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
36936
36937         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
36938         tests.
36939         
36940         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
36941         
36942         * TreeView.cs: BackColor is Colors.Window.
36943
36944 2004-12-01  Jackson Harper  <jackson@ximian.com>
36945
36946         * TreeView.cs: When resizing the tree if the user is making it
36947         smaller we don't get expose events, so we need to handle adding
36948         the horizontal scrollbar in the size changed handler as well as
36949         the expose handler.
36950
36951 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
36952
36953         * DrawItemState.cs: fixes wrong enum values
36954
36955 2004-12-01  Jackson Harper  <jackson@ximian.com>
36956
36957         * TreeView.cs: Resize the hbar as well as the vbar on resize.
36958
36959 2004-12-01  Jackson Harper  <jackson@ximian.com>
36960
36961         * NodeLabelEditEventArgs.cs:
36962         * NodeLabelEditEventHandler.cs:
36963         * OpenTreeNodeEnumerator.cs:
36964         * TreeNode.cs:
36965         * TreeNodeCollection.cs:
36966         * TreeView.cs:
36967         * TreeViewAction.cs:
36968         * TreeViewCancelEventArgs.cs:
36969         * TreeViewCancelEventHandler.cs:
36970         * TreeViewEventArgs.cs:
36971         * TreeViewEventHandler.cs: Initial implementation.
36972
36973 2004-12-01  Ravindra <rkumar@novell.com>
36974
36975         * ListView.cs (CalculateListView): Fixed scrolling related
36976         calculations. Also, removed some debug statements from other
36977         places.
36978         * ListViewItem.cs: Changed access to 'selected' instance variable
36979         from private to internal.
36980         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
36981
36982 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
36983
36984         * ThemeWin32Classic.cs: remove cache of brush and pens for
36985         specific controls and use the global system, fixes scrollbutton
36986         bugs (for small sizes, disabled, etc)
36987         
36988         * ScrollBar.cs: does not show the thumb for very small controls
36989         (as MS) and allow smaller buttons that the regular size
36990
36991 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
36992
36993         * UpDownBase.cs: Add abstract methods for the interface.
36994         Add new virtual methods (need to be hooked up to TextEntry when it
36995         exists).
36996         Add override methods for most features.
36997         Computes the size, forces the height of the text entry.
36998
36999         * NumericUpDown.cs: Put here the current testing code.
37000
37001         * Set eol-style property on all files that do not have mixed line
37002         endings, to minimize the future problems.  There are still a few
37003         files with mixed endings, and someone should choose whether they
37004         want to move it or not.
37005
37006 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
37007
37008         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
37009         System.Colors
37010         
37011 2004-11-30  Ravindra <rkumar@novell.com>
37012
37013         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
37014         drawing and replaced use of SystemColors by theme colors.
37015         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
37016         * ListView.cs (ListViewItemCollection.Add): Throw exception when
37017         same ListViewItem is being added more than once.
37018
37019 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
37020
37021         * MonthCalendar.cs:
37022           - ControlStyles love to make the control not flicker
37023           
37024 2004-11-30  Peter Bartok  <pbartok@novell.com>
37025
37026         * CharacterCasing.cs: Added
37027
37028 2004-11-29  Peter Bartok  <pbartok@novell.com>
37029
37030         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
37031           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
37032           I am removing these files as they conflict with already completed
37033           work. While it is fantastic to get contributions to MWF, I
37034           respectfully ask that everyone please coordinate their contributions
37035           through mono-winforms-list or #mono-winforms at this time. We're
37036           explicitly avoiding stubbing and don't want controls that don't have
37037           their basic functionality implemented in svn. Please also see
37038           http://www.mono-project.com/contributing/winforms.html
37039
37040
37041 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
37042
37043         * Application.cs (ModalRun): Don't hang after exit.
37044
37045         * Theme.cs: New TreeViewDefaultSize property.
37046
37047         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
37048         with less hardcoded SystemColors constant.
37049         Implemented TreeViewDefaultSize.
37050
37051         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
37052         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
37053
37054
37055 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
37056
37057         * MonthCalendar.cs:
37058           - Fix NextMonthDate and PrevMonthDate click moving calendar
37059
37060 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
37061
37062         * MonthCalendar.cs:
37063           - Fix usage of ScrollChange Property when scrolling months
37064
37065 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
37066
37067         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
37068          - Fixes menu destroying
37069          - Support adding and removing items on already created menus
37070
37071 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
37072
37073         * MonthCalendar.cs:
37074           - Re-worked all bolded dates handling to match win32
37075         * ThemeWin32Classic.cs:
37076           - Fixed rendering with bolded dates
37077
37078 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
37079
37080         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
37081         - Horizontal scroolbar
37082         - Multicolumn
37083         - Fixes
37084
37085
37086 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
37087
37088         * MonthCalendar.cs:
37089           - Fix Usage of MaxSelectionCount from SelectionRange
37090           - Fixed Shift + Cursor Selection
37091           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
37092           - Fixed normal cursor selection to be compat with win32
37093           - Fixed Shift + Mouse Click selection
37094
37095 2004-11-24  Peter Bartok <pbartok@novell.com>
37096
37097         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
37098         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
37099         * XplatUIX11.cs:
37100           - CreatedKeyBoardMsg now updates keystate with Alt key
37101           - Added workaround for timer crash to CheckTimers, Jackson will
37102             develop a proper fix and check in later
37103           - Implemented DispatchMessage
37104           - Removed calling the native window proc from GetMessage (call
37105             now moved to DispatchMessage)
37106
37107         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
37108           the keydata (Fixes bug #69831)
37109
37110         * XplatUIWin32.cs:
37111           - (DispatchMessage): Switched to return IntPtr
37112           - Added DllImport for SetFocus
37113
37114 2004-11-24  Ravindra <rkumar@novell.com>
37115
37116         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
37117         background drawing.
37118         * ListViewItem.cs: Fixed various properties, calculations
37119         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
37120         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
37121         and some internal properties. Fixed MouseDown handler and Paint
37122         method.
37123
37124 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
37125
37126         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
37127
37128 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
37129
37130         * ContainerControl.cs: correct accidental check in of local changes
37131
37132 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
37133
37134         * ThemeWin32Classic.cs:
37135                 - Fixed Drawing Last month in grid (sometimes not showing)
37136         * MonthCalendar.cs:
37137                 - Fixed title width calculation bug (makeing title small)
37138
37139 2004-11-23  Peter Bartok <pbartok@novell.com>
37140
37141         * XplatUIX11.cs:
37142           - Added generation of WM_MOUSEHOVER event
37143           - Added missing assignment of async_method atom
37144           - Fixed WM_ERASEBKGND; now only redraws the exposed area
37145
37146 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
37147
37148         * ThemeWin32Classic.cs:
37149                 - Fixed Drawing of today circle when showtodaycircle not set
37150                 - fixed drawing of first and last month in the grid (gay dates)
37151         * MonthCalendar.cs:
37152                 - Fixed Drawing of today circle
37153                 - Fixed drawing of grady dates
37154                 - Fixed HitTest for today link when ShowToday set to false
37155                 - Fixed DefaultSize to obey ShowToday
37156
37157 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
37158
37159         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
37160         * System.Windows.Forms/Theme.cs
37161         * MonthCalendar.cs: added for MonthCalendar
37162         * SelectionRange.cs: added for MonthCalendar
37163         * Day.cs: added for MonthCalendar: added for MonthCalendar
37164         * DateRangeEventArgs.cs: added for MonthCalendar
37165         * DateRangeEventHandler.cs: added for MonthCalendar
37166
37167 2004-11-22  Ravindra <rkumar@novell.com>
37168
37169         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
37170         property.
37171
37172 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
37173
37174         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
37175         event handler.
37176         
37177         * NumericUpDown.cs: Added new implementation.
37178         * UpDownBase.cs: Added new implementation.
37179
37180         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
37181         implementations.
37182         
37183         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
37184         implementations.
37185
37186         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
37187         methods.
37188
37189 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
37190
37191         * Timer.cs  (Dispose): Should call the base dispose when
37192         overriding.
37193
37194 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
37195
37196         * ScrollBar.cs: updates thumb position when max, min or increment
37197         is changed
37198
37199 2004-11-21  Ravindra <rkumar@novell.com>
37200
37201         * ListView.cs: Implemented item selection, activation and
37202         column header style. Fixed properties to do a redraw, if
37203         required. Added support for MouseHover, DoubleClick, KeyDown
37204         and KeyUp event handling and some minor fixes.
37205         * ListViewItem.cs: Fixed constructor.
37206         * ThemeWin32Classic.cs: Improved drawing for ListView.
37207
37208 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
37209
37210         * ThemeWin32Classic.cs: initial listbox drawing code
37211         * DrawMode.cs: new enumerator
37212         * ListControl.cs: stubbed class
37213         * ListBox.cs: initial implementation
37214         * Theme.cs: new methods definitions
37215         * SelectionMode.cs: new enumerator
37216
37217 2004-11-17  Peter Bartok  <pbartok@novell.com>
37218
37219         * XplatUIWin32.cs: Added double-click events to the class style
37220         * Control.cs (WndProc):
37221           - Added handling of click-count to MouseDown/ MouseUp events.
37222           - Added handling of middle and right mouse buttons
37223           - Removed old debug code
37224
37225 2004-11-17  Jackson Harper  <jackson@ximian.com>
37226
37227         * XplatUIX11.cs: Use the new Mono.Unix namespace.
37228
37229 2004-11-17  Ravindra <rkumar@novell.com>
37230
37231         * ListView.cs: Added event handling for MouseMove/Up/Down.
37232         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
37233         * ThemeWin32Classic.cs: We need to clear the graphics context and
37234         draw column header in a proper state.
37235
37236
37237 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
37238
37239         *  Menu.cs: fixes signature
37240
37241 2004-11-16  Peter Bartok  <pbartok@novell.com>
37242
37243         * XplatUIX11.cs (GetMessage): Implemented generation of
37244           double click mouse messages
37245
37246 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
37247
37248         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
37249         not by menu
37250
37251 2004-11-11  Peter Bartok  <pbartok@novell.com>
37252
37253         * HandleData.cs: Added Visible property
37254         * XplatUIX11.cs (IsVisible): Now uses Visible property from
37255           HandleData
37256         * XplatUIX11.cs: Removed old debug leftovers
37257         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
37258         * Control.cs (WndProc): Removed old debug leftovers,
37259           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
37260           needed WM_SIZE handling
37261
37262 2004-11-11  Jackson Harper  <jackson@ximian.com>
37263
37264         * OwnerDrawPropertyBag.cs:
37265         * TreeViewImageIndexConverter.cs: Initial implementation
37266
37267 2004-11-10  Jackson Harper  <jackson@ximian.com>
37268
37269         * ThemeWin32Classic.cs:
37270         * TabControl.cs: instead of moving tabs by the slider pos just
37271         start drawing at the tab that is offset by the slider. This way
37272         scrolling always moves by exactly one tab.
37273
37274 2004-11-10  Jackson Harper  <jackson@ximian.com>
37275
37276         * TabControl.cs: You can only scroll left when the slider has
37277         already ben moved right.
37278         
37279 2004-11-10  Jackson Harper  <jackson@ximian.com>
37280
37281         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
37282         the clip area.
37283         
37284 2004-11-10  Jackson Harper  <jackson@ximian.com>
37285
37286         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
37287         clip area.
37288         
37289 2004-11-09  Jackson Harper  <jackson@ximian.com>
37290
37291         * TabControl.cs (CalcXPos): New helper method so we can determine
37292         the proper place to start drawing vertical tabs.
37293         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
37294         
37295 2004-11-09  Jackson Harper  <jackson@ximian.com>
37296
37297         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
37298         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
37299         and Bottom, left and right are illegal values for this and
37300         multiline is enabled when the alignment is set to left or right.
37301         (DrawTab): Each alignment block should draw the text itself now
37302         because Left requires special love. Also add rendering for Left
37303         aligned tabs.
37304         
37305 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
37306
37307         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
37308         does not destroy the windows, removes debugging messages
37309
37310 2004-11-09  jba  <jba-mono@optusnet.com.au>
37311
37312         * ThemeWin32Classic.cs
37313         (DrawButtonBase): Fix verticle text rect clipping in windows
37314         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
37315         rendering and incorrect text rect clipping
37316         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
37317         rendering and incorrect text rect clipping
37318         
37319 2004-11-08  Jackson Harper  <jackson@ximian.com>
37320
37321         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
37322         bottom when they are bottom aligned so the bottoms of the tabs get
37323         displayed.
37324         * TabControl.cs (DropRow): Move rows up instead of down when the
37325         tab control is bottom aligned.
37326
37327 2004-11-08 13:59  pbartok
37328
37329         * XplatUIX11.cs:
37330           - Added handling for various window styles
37331           - Added handling for popup windows
37332           - Added SetTopmost handling
37333
37334 2004-11-08 13:55  pbartok
37335
37336         * XplatUIWin32.cs:
37337           - Added argument to SetTopmost method
37338           - Fixed broken ClientToScreen function
37339
37340 2004-11-08 13:53  pbartok
37341
37342         * XplatUIStructs.cs:
37343           - Added missing WS_EX styles
37344
37345 2004-11-08 13:53  pbartok
37346
37347         * XplatUI.cs, XplatUIDriver.cs:
37348           - Added argument to SetTopmost
37349
37350 2004-11-08 13:52  pbartok
37351
37352         * X11Structs.cs:
37353           - Added XSetWindowAttributes structure
37354           - Improved XWindowAttributes structure
37355           - Added SetWindowValuemask enum
37356           - Added window creation arguments enum
37357           - Added gravity enum
37358           - Added Motif hints structure
37359           - Added various Motif flags and enums
37360           - Added PropertyMode enum for property functions
37361
37362 2004-11-08 13:50  pbartok
37363
37364         * Form.cs:
37365           - Fixed arguments for updated SetTopmost method
37366
37367 2004-11-08 13:49  pbartok
37368
37369         * ToolTip.cs:
37370           - Fixed arguments for updated SetTopmost function
37371           - Fixed usage of PointToClient
37372
37373 2004-11-08 13:44  pbartok
37374
37375         * MenuAPI.cs:
37376           - Added Clipping of children and siblings
37377
37378 2004-11-08 13:41  pbartok
37379
37380         * MainMenu.cs:
37381           - Removed SetMenuBarWindow call. We do this in Form.cs
37382
37383 2004-11-08 13:40  jackson
37384
37385         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
37386           scrolling jimmi in the correct location with bottom aligned tabs
37387
37388 2004-11-08 13:36  pbartok
37389
37390         * ContainerControl.cs:
37391           - Implemented BindingContext
37392           - Implemented ParentForm
37393
37394 2004-11-08 12:46  jackson
37395
37396         * TabControl.cs: Put bottom rendered tabs in the right location
37397
37398 2004-11-08 07:15  jordi
37399
37400         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
37401           removes dead code
37402
37403 2004-11-05 17:30  jackson
37404
37405         * TabControl.cs: When selected tabs are expanded make sure they
37406           don't go beyond the edges of the tab control
37407
37408 2004-11-05 14:57  jackson
37409
37410         * TabControl.cs: Reset show_slider so if the control is resized to
37411           a size where it is no longer needed it's not displayed anymore
37412
37413 2004-11-05 13:16  jackson
37414
37415         * TabControl.cs: Make tab pages non visible when added to the
37416           control
37417
37418 2004-11-05 12:42  jackson
37419
37420         * TabControl.cs: Implement SizeMode.FillToRight
37421
37422 2004-11-05 12:16  jackson
37423
37424         * Control.cs: Do not call CreateHandle if the handle is already
37425           created
37426
37427 2004-11-05 11:46  jackson
37428
37429         * TabControl.cs: Remove superflous call to CalcTabRows
37430
37431 2004-11-05 09:07  jackson
37432
37433         * XplatUIX11.cs: Update for Mono.Posix changes
37434
37435 2004-11-05 07:00  ravindra
37436
37437         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
37438           scrolling.
37439
37440 2004-11-04 22:47  jba
37441
37442         * ThemeWin32Classic.cs:
37443           - Fix Button rendering for FlatStyle = Flat or Popup
37444           - Fix RadioButton and CheckBox rendering when Appearance = Button
37445             (normal and flatstyle).
37446           - Correct outer rectangle color when drawing focus rectangle
37447           - Adjust button bounds to be 1 px smaller when focused
37448           - Make button not draw sunken 3d border when pushed (windows compat)
37449           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
37450           - Offset the text in RadioButton and Checkbox when being rendered as
37451           a button.
37452           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
37453           radiobuttons
37454           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
37455           - Fixed disabled text rendering for normally rendered radiobuttons
37456
37457 2004-11-04 10:26  jackson
37458
37459         * TabControl.cs: Recalculate tab rows when resizing
37460
37461 2004-11-04 07:47  jordi
37462
37463         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
37464           collection completion, drawing issues, missing features
37465
37466 2004-11-04 05:03  ravindra
37467
37468         * ScrollBar.cs:
37469                 - We need to recalculate the Thumb area when
37470                 LargeChange/maximum/minimum values are changed.
37471           - We set the 'pos' in UpdatePos() method to minimum, if it's less
37472                 than minimum. This is required to handle the case if large_change is
37473                 more than max, and use LargeChange property instead of large_change
37474                 variable.
37475           - We return max+1 when large_change is more than max, like MS does.
37476
37477 2004-11-04 04:29  ravindra
37478
37479         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
37480                 - Changed default value signatures (prefixed all with ListView).
37481                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
37482                 ListView.
37483           - Fixed calculations for ListViewItem and implemented Clone()
37484           method.
37485
37486 2004-11-04 04:26  ravindra
37487
37488         * Theme.cs, ThemeWin32Classic.cs:
37489                 - Changed default ListView values signatures (prefixed all with
37490                 ListView).
37491           - Fixed default size values for VScrollBar and HScrollBar.
37492                 - Fixed DrawListViewItem method.
37493
37494 2004-11-04 04:05  ravindra
37495
37496         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
37497
37498 2004-11-04 04:04  ravindra
37499
37500         * ImageList.cs: Implemented the missing overload for Draw method.
37501
37502 2004-11-03 19:29  jackson
37503
37504         * TabControl.cs: Handle dropping rows on selection properly
37505
37506 2004-11-03 11:59  jackson
37507
37508         * TabControl.cs: remove debug code
37509
37510 2004-11-03 11:52  jackson
37511
37512         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
37513           the scrolly widgerywoo
37514
37515 2004-11-02 13:52  jackson
37516
37517         * TabControl.cs: Resize the tab pages and tabs when the tab control
37518           is resized
37519
37520 2004-11-02 13:40  jackson
37521
37522         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
37523           selected tab to the bottom
37524
37525 2004-11-02 13:39  jackson
37526
37527         * TabPage.cs: Store the tab pages row
37528
37529 2004-11-02 12:33  jordi
37530
37531         * MenuItem.cs: fixes handle creation
37532
37533 2004-11-02 11:42  jackson
37534
37535         * TabControl.cs: signature fix
37536
37537 2004-11-02 08:56  jackson
37538
37539         * TabControl.cs: Calculate whether the tab is on an edge properly.
37540           Remove top secret debugging code
37541
37542 2004-11-01 19:57  jackson
37543
37544         * TabControl.cs: Add click handling, and proper sizing
37545
37546 2004-11-01 19:47  jackson
37547
37548         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
37549           tab controls
37550
37551 2004-11-01 19:39  jackson
37552
37553         * TabPage.cs: add internal property to store the bounds of a tab
37554           page
37555
37556 2004-10-30 04:23  ravindra
37557
37558         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
37559           values.
37560
37561 2004-10-30 04:21  ravindra
37562
37563         * ListView.cs, ListViewItem.cs: Added support for scrolling and
37564           fixed calculations.
37565
37566 2004-10-30 03:06  pbartok
37567
37568         * XplatUIX11.cs:
37569           - Removed extension of DllImported libs
37570
37571 2004-10-29 09:55  jordi
37572
37573         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
37574           navigation, itemcollection completion, menu fixes
37575
37576 2004-10-27 22:58  pbartok
37577
37578         * XplatUIX11.cs:
37579           - Now throws a nice error message when no X display could be opened
37580
37581 2004-10-26 13:51  jordi
37582
37583         * ListView.cs: removes warning
37584
37585 2004-10-26 03:55  ravindra
37586
37587         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
37588           ThemeWin32Classic.cs: Some formatting for my last checkins.
37589
37590 2004-10-26 03:36  ravindra
37591
37592         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
37593           control and default values.
37594
37595 2004-10-26 03:35  ravindra
37596
37597         * Theme.cs: Added some default values for ListView control.
37598
37599 2004-10-26 03:33  ravindra
37600
37601         * ToolBar.cs: ToolBar should use the user specified button size, if
37602           there is any. Added a size_specified flag for the same.
37603
37604 2004-10-26 03:33  ravindra
37605
37606         * ColumnHeader.cs: Added some internal members and calculations for
37607           ColumnHeader.
37608
37609 2004-10-26 03:32  ravindra
37610
37611         * ListViewItem.cs: Calculations for ListViewItem.
37612
37613 2004-10-26 03:31  ravindra
37614
37615         * ListView.cs: Added some internal members and calculations for
37616           ListView.
37617
37618 2004-10-22 13:31  jordi
37619
37620         * MenuAPI.cs: speedup menus drawing
37621
37622 2004-10-22 13:16  jackson
37623
37624         * XplatUIX11.cs: Make sure to update exposed regions when adding an
37625           expose event
37626
37627 2004-10-22 11:49  jackson
37628
37629         * Control.cs: oops
37630
37631 2004-10-22 11:41  jackson
37632
37633         * Control.cs: Check to see if the window should have its background
37634           repainted by X when drawing.
37635
37636 2004-10-22 11:31  jackson
37637
37638         * XplatUIX11.cs: When invalidating areas only use XClearArea if
37639           clear is true, this way we do not get flicker from X repainting the
37640           background
37641
37642 2004-10-22 11:28  jackson
37643
37644         * XEventQueue.cs: Queue properly
37645
37646 2004-10-21 09:38  jackson
37647
37648         * XEventQueue.cs: Fix access modifier
37649
37650 2004-10-21 09:36  jackson
37651
37652         * XEventQueue.cs: Don't loose messages
37653
37654 2004-10-21 09:22  jackson
37655
37656         * XEventQueue.cs: Don't loose messages
37657
37658 2004-10-20 04:15  jordi
37659
37660         * BootMode.cs: enum need it by SystemInfo
37661
37662 2004-10-19 21:58  pbartok
37663
37664         * XplatUIWin32.cs:
37665           - Small sanity check
37666
37667 2004-10-19 21:56  pbartok
37668
37669         * Form.cs:
37670           - Added private FormParentWindow class which acts as the container
37671             for our form and as the non-client area where menus are drawn
37672           - Added/Moved required tie-ins to Jordi's menus
37673           - Fixed/Implemented the FormStartPosition functionality
37674
37675 2004-10-19 21:52  pbartok
37676
37677         * Control.cs:
37678           - Removed unneeded locals
37679           - Added code to all size and location properties to understand and
37680             deal with the parent container of Form
37681
37682 2004-10-19 21:33  pbartok
37683
37684         * Application.cs:
37685           - Fixed to deal with new Form subclasses for menus
37686
37687 2004-10-19 17:48  jackson
37688
37689         * XEventQueue.cs: commit correct version of file
37690
37691 2004-10-19 16:50  jackson
37692
37693         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
37694
37695 2004-10-19 16:15  jordi
37696
37697         * MenuAPI.cs: MenuBarCalcSize returns the height
37698
37699 2004-10-19 08:31  pbartok
37700
37701         * Control.cs:
37702           - Added missing call to PreProcessMessage before calling OnXXXKey
37703           methods
37704
37705 2004-10-19 00:04  ravindra
37706
37707         * ToolTip.cs: Fixed constructor.
37708
37709 2004-10-18 09:31  jordi
37710
37711         * MenuAPI.cs: menuitems in menubars do not have shortcuts
37712
37713 2004-10-18 09:26  jordi
37714
37715         * MenuItem.cs: fixes MenuItem class signature
37716
37717 2004-10-18 08:56  jordi
37718
37719         * MenuAPI.cs: prevents windows from showing in the taskbar
37720
37721 2004-10-18 00:28  ravindra
37722
37723         * ToolTip.cs: Suppressed a warning message.
37724
37725 2004-10-18 00:27  ravindra
37726
37727         * Control.cs: Default value of visible property must be true.
37728
37729 2004-10-17 23:19  pbartok
37730
37731         * ToolTip.cs:
37732           - Complete implementation
37733
37734 2004-10-17 23:19  pbartok
37735
37736         * XplatUIX11.cs:
37737           - Added EnableWindow method
37738           - Added SetModal stub
37739           - Added generation of WM_ACTIVATE message (still needs testing)
37740           - Added SetTopMost stub
37741           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
37742
37743 2004-10-17 23:17  pbartok
37744
37745         * XplatUIWin32.cs:
37746           - Removed VirtualKeys to XplatUIStructs
37747           - Implemented SetTopMost method
37748           - Implemented EnableWindow method
37749           - Bugfix in ScreenToClient()
37750           - Bugfixes in ClientToScreen()
37751
37752 2004-10-17 22:51  pbartok
37753
37754         * XplatUIStructs.cs:
37755           - Added WS_EX styles to WindowStyles enumeration
37756
37757 2004-10-17 22:50  pbartok
37758
37759         * XplatUI.cs, XplatUIDriver.cs:
37760           - Added method for enabling/disabling windows
37761           - Added method for setting window modality
37762           - Added method for setting topmost window
37763
37764 2004-10-17 22:49  pbartok
37765
37766         * ThemeWin32Classic.cs:
37767           - Added ToolTip drawing code
37768
37769 2004-10-17 22:49  pbartok
37770
37771         * Theme.cs:
37772           - Added ToolTip abstracts
37773
37774 2004-10-17 22:47  pbartok
37775
37776         * Form.cs:
37777           - Fixed Form.ControlCollection to handle owner relations
37778           - Added Owner/OwnedForms handling
37779           - Implemented Z-Ordering for owned forms
37780           - Removed unneeded private overload of ShowDialog
37781           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
37782             so I hope)
37783           - Fixed Close(), had wrong default
37784           - Added firing of OnLoad event
37785           - Added some commented out debug code for Ownership handling
37786
37787 2004-10-17 22:16  pbartok
37788
37789         * Control.cs:
37790           - Fixed/implemented flat list of controls
37791
37792 2004-10-17 22:14  pbartok
37793
37794         * Application.cs:
37795           - Added code to simulate modal dialogs on Win32
37796
37797 2004-10-17 16:11  jordi
37798
37799         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
37800           mouse event
37801
37802 2004-10-17 13:39  jordi
37803
37804         * MenuAPI.cs: menu drawing fixes
37805
37806 2004-10-15 09:10  ravindra
37807
37808         * StructFormat.cs: General Enum.
37809
37810 2004-10-15 09:09  ravindra
37811
37812         * SizeGripStyle.cs: Enum for Form.
37813
37814 2004-10-15 09:08  ravindra
37815
37816         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
37817           in Theme for ListView.
37818
37819 2004-10-15 09:06  ravindra
37820
37821         * ColumnHeader.cs: Flushing some formatting changes.
37822
37823 2004-10-15 09:05  ravindra
37824
37825         * ListViewItem.cs: Implemented GetBounds method and fixed coding
37826           style.
37827
37828 2004-10-15 09:03  ravindra
37829
37830         * ListView.cs: Implemented Paint method and fixed coding style.
37831
37832 2004-10-15 07:34  jordi
37833
37834         * MenuAPI.cs: fix for X11
37835
37836 2004-10-15 07:32  ravindra
37837
37838         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
37839                 - Renamed Paint() method to Draw() for clarity. Also, moved
37840                 DrawImage() to OnPaint().
37841
37842 2004-10-15 07:25  ravindra
37843
37844         * CheckBox.cs, RadioButton.cs:
37845                 - Removed Redraw (), we get it from ButtonBase.
37846                 - Implemented Paint (), to do class specific painting.
37847
37848 2004-10-15 07:16  ravindra
37849
37850         * ButtonBase.cs:
37851                 - Redraw () is not virtual now.
37852                 - Added an internal virtual method Paint (), so that
37853                 derived classes can do their painting on their own.
37854                 - Modified OnPaint () to call Paint ().
37855
37856 2004-10-15 06:43  jordi
37857
37858         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
37859           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
37860
37861 2004-10-15 00:30  ravindra
37862
37863         * MessageBox.cs:
37864                 - MessageBox on windows does not have min/max buttons.
37865                 This change in CreateParams fixes this on Windows. We
37866                 still need to implement this windowstyle behavior in
37867                 our X11 driver.
37868
37869 2004-10-14 05:14  ravindra
37870
37871         * ToolBar.cs:
37872                 - Changed Redraw () to do a Refresh () always.
37873                 - Fixed the MouseMove event handling when mouse is pressed,
37874                 ie drag event handling.
37875                 - Replaced the usage of ToolBarButton.Pressed property to
37876                 ToolBarButton.pressed internal variable.
37877
37878 2004-10-14 05:10  ravindra
37879
37880         * ToolBarButton.cs:
37881                 - Added an internal member 'inside' to handle mouse move
37882                 with mouse pressed ie mouse drag event.
37883                 - Changed 'Pressed' property to return true only when
37884                 'inside' and 'pressed' are both true.
37885                 - Some coding style love.
37886
37887 2004-10-14 00:17  ravindra
37888
37889         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
37890           public method.
37891
37892 2004-10-14 00:15  ravindra
37893
37894         * ButtonBase.cs: Redraw () related improvements.
37895
37896 2004-10-14 00:14  ravindra
37897
37898         * MessageBox.cs: Moved InitFormSize () out of Paint method and
37899           removed unnecessary calls to Button.Show () method.
37900
37901 2004-10-13 17:50  pbartok
37902
37903         * XplatUIX11.cs:
37904           - Formatting fix
37905           - Removed destroying of window until we solve the problem of X
37906             destroying the window before us on shutdown
37907
37908 2004-10-13 16:32  pbartok
37909
37910         * ButtonBase.cs:
37911           - Now Redraws on MouseUp for FlatStyle Flat and Popup
37912
37913 2004-10-13 14:18  pbartok
37914
37915         * XplatUIX11.cs:
37916           - Added code to destroy the X window
37917
37918 2004-10-13 14:18  pbartok
37919
37920         * XplatUIWin32.cs:
37921           - Added code to destroy a window
37922
37923 2004-10-13 14:12  pbartok
37924
37925         * ButtonBase.cs:
37926           - Added the Redraw on Resize that got dropped in the last rev
37927
37928 2004-10-13 09:06  pbartok
37929
37930         * ThemeWin32Classic.cs:
37931           - Path from John BouAntoun:
37932             * Fix check rendering (centre correctly for normal style, offset
37933               correctly for FlatStyle).
37934             * Fix border color usage (use backcolor) for FlatStyle.Popup
37935             * Use checkbox.Capture instead of checkbox.is_pressed when
37936               rendering flatstyle states.
37937
37938 2004-10-12 21:48  pbartok
37939
37940         * ThemeWin32Classic.cs:
37941           - Removed all occurences of SystemColors and replaced them with the
37942             matching theme color
37943
37944 2004-10-12 21:41  pbartok
37945
37946         * ThemeWin32Classic.cs:
37947           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
37948             him using the function for flatstyle drawing
37949           - Changed functions to use the new version of CPDrawBorder3D
37950
37951 2004-10-12 21:15  pbartok
37952
37953         * ControlPaint.cs:
37954           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
37955             match MS documentation. They need to return defined colors if the
37956             passed color matches the configured control color. Thanks to John
37957             BouAntoun for pointing this out.
37958
37959 2004-10-12 20:57  pbartok
37960
37961         * Control.cs:
37962           - Fix from John BouAntoun: Raise ForeColorChanged event when text
37963             color is changed
37964
37965 2004-10-12 20:46  pbartok
37966
37967         * CheckBox.cs:
37968           - Fix from John BouAntoun: Now properly sets the Appearance property
37969
37970 2004-10-12 20:45  pbartok
37971
37972         * ThemeWin32Classic.cs:
37973           - Fixes from John BouAntoun: now handles forecolors and backcolors
37974             for flatstyle rendered controls much better; It also fixes normal
37975             checkbox rendering when pushed or disabled.
37976
37977 2004-10-08 02:50  jordi
37978
37979         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
37980           work
37981
37982 2004-10-07 08:56  jordi
37983
37984         * ThemeWin32Classic.cs: Removes deletion of cached brushes
37985
37986 2004-10-06 03:59  jordi
37987
37988         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
37989           XplatUIWin32.cs: removes warnings from compilation
37990
37991 2004-10-05 12:23  jackson
37992
37993         * RadioButton.cs: Fix ctor
37994
37995 2004-10-05 11:10  pbartok
37996
37997         * MessageBox.cs:
37998           - Partial implementation by Benjamin Dasnois
37999
38000 2004-10-05 10:15  jackson
38001
38002         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
38003           by John BouAntoun
38004
38005 2004-10-05 03:07  ravindra
38006
38007         * ToolBar.cs:
38008                 - Removed a private method, Draw ().
38009                 - Fixed the ButtonDropDown event handling.
38010                 - Fixed MouseMove event handling.
38011
38012 2004-10-05 03:04  ravindra
38013
38014         * ThemeWin32Classic.cs:
38015                 - Added DrawListView method and ListViewDefaultSize property.
38016                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
38017                 - Changed DOS style CRLF to Unix format (dos2unix).
38018
38019 2004-10-05 03:03  ravindra
38020
38021         * Theme.cs:
38022                 - Added DrawListView method and ListViewDefaultSize property.
38023
38024 2004-10-05 02:42  ravindra
38025
38026         * ToolBarButton.cs: Added an internal member dd_pressed to handle
38027           clicks on DropDown arrow.
38028
38029 2004-10-04 22:56  jackson
38030
38031         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
38032           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
38033           Control handle the buffers, derived classes should not have to
38034           CreateBuffers themselves.
38035
38036 2004-10-04 21:20  jackson
38037
38038         * StatusBar.cs: The control handles resizing the buffers now.
38039
38040 2004-10-04 21:18  jackson
38041
38042         * Control.cs: When resizing the buffers should be invalidated. This
38043           should be handled in Control not in derived classes.
38044
38045 2004-10-04 14:45  jackson
38046
38047         * TabPage.cs: oops
38048
38049 2004-10-04 02:14  pbartok
38050
38051         * LeftRightAlignment.cs:
38052           - Initial check-in
38053
38054 2004-10-04 01:09  jordi
38055
38056         * ThemeWin32Classic.cs: fixes right button position causing right
38057           button not showing on horizontal scrollbars
38058
38059 2004-10-02 13:12  pbartok
38060
38061         * XplatUIX11.cs:
38062           - Simplified the Invalidate method by using an X call instead of
38063             generating the expose ourselves
38064           - Added an expose when the window background is changed
38065           - Implemented ClientToScreen method
38066
38067 2004-10-02 13:08  pbartok
38068
38069         * XplatUIWin32.cs:
38070           - Added Win32EnableWindow method (test for implementing modal
38071           dialogs)
38072           - Added ClientToScreen method and imports
38073
38074 2004-10-02 13:07  pbartok
38075
38076         * XplatUI.cs, XplatUIDriver.cs:
38077           - Added ClientToScreen coordinate translation method
38078
38079 2004-10-02 13:06  pbartok
38080
38081         * KeyPressEventArgs.cs:
38082           - Fixed access level for constructor
38083
38084 2004-10-02 13:06  pbartok
38085
38086         * NativeWindow.cs:
38087           - Changed access level for the window_collection hash table
38088
38089 2004-10-02 13:05  pbartok
38090
38091         * Form.cs:
38092           - Added KeyPreview property
38093           - Added Menu property (still incomplete, pending Jordi's menu work)
38094           - Implemented ProcessCmdKey
38095           - Implemented ProcessDialogKey
38096           - Implemented ProcessKeyPreview
38097
38098 2004-10-02 13:02  pbartok
38099
38100         * Control.cs:
38101           - Added private method to get the Control object from the window
38102           handle
38103           - Implemented ContextMenu property
38104           - Implemented PointToScreen
38105           - Implemented PreProcessMessage
38106           - Implemented IsInputChar
38107           - Implemented IsInputKey
38108           - Implemented ProcessCmdKey
38109           - Completed ProcessKeyEventArgs
38110           - Fixed message loop to call the proper chain of functions on key
38111           events
38112           - Implemented ProcessDialogChar
38113           - Implemented ProcessDialogKey
38114           - Implemented ProcessKeyMessage
38115           - Implemented ProcessKeyPreview
38116           - Added RaiseDragEvent stub (MS internal method)
38117           - Added RaiseKeyEvent stub (MS internal method)
38118           - Added RaiseMouseEvent stub (MS Internal method)
38119           - Added RaisePaintEvent stub (MS Internal method)
38120           - Added ResetMouseEventArgs stub (MS Internal method)
38121           - Implemented RtlTranslateAlignment
38122           - Implemented RtlTranslateContent
38123           - Implemented RtlTranslateHorizontal
38124           - Implemented RtlTranslateLeftRight
38125           - Added generation of KeyPress event
38126
38127 2004-10-02 05:57  ravindra
38128
38129         * ListViewItem.cs: Added attributes.
38130
38131 2004-10-02 05:32  ravindra
38132
38133         * ListView.cs: Added attributes.
38134
38135 2004-10-01 11:53  jackson
38136
38137         * Form.cs: Implement the Close method so work on MessageBox can
38138           continue.
38139
38140 2004-09-30 14:06  pbartok
38141
38142         * XplatUIX11.cs:
38143           - Bug fixes
38144
38145 2004-09-30 11:34  jackson
38146
38147         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
38148
38149 2004-09-30 07:26  ravindra
38150
38151         * ListViewItemConverter.cs: Converter for ListViewItem.
38152
38153 2004-09-30 07:26  ravindra
38154
38155         * SortOrder.cs: Enum for ListView control.
38156
38157 2004-09-30 07:25  ravindra
38158
38159         * ColumnHeader.cs: Supporting class for ListView control.
38160
38161 2004-09-30 07:24  ravindra
38162
38163         * ListView.cs, ListViewItem.cs: Initial implementation.
38164
38165 2004-09-30 07:20  ravindra
38166
38167         * ItemActivation.cs: Enum for ListView Control.
38168
38169 2004-09-29 20:29  pbartok
38170
38171         * XplatUIX11.cs:
38172           - Added lookup of pixel value for background color; tries to get a
38173             color 'close' to the requested color, it avoids having to create a
38174             colormap.  Depending on the display this could mean the used color
38175             is slightly off the desired color. Might have to change it to a more
38176             resource intensive colormap approach, but it will work as a
38177           workaround to avoid red screens.
38178
38179 2004-09-29 14:27  jackson
38180
38181         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
38182
38183 2004-09-28 12:44  pbartok
38184
38185         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
38186           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
38187           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
38188           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
38189           TrackBar.cs, VScrollBar.cs:
38190           - Streamlined Theme interfaces:
38191             * Each DrawXXX method for a control now is passed the object for
38192               the control to be drawn in order to allow accessing any state the
38193               theme might require
38194
38195             * ControlPaint methods for the theme now have a CP prefix to avoid
38196               name clashes with the Draw methods for controls
38197
38198             * Every control now retrieves it's DefaultSize from the current
38199             theme
38200
38201 2004-09-28 12:17  jackson
38202
38203         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
38204           drawing
38205
38206 2004-09-24 14:57  jackson
38207
38208         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
38209           Gives us a nice little performance boost.
38210
38211 2004-09-24 12:02  jackson
38212
38213         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
38214           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
38215           Control and supporting classes. Initial checkin
38216
38217 2004-09-23 13:08  jackson
38218
38219         * Form.cs: Temp build fixage
38220
38221 2004-09-23 01:39  ravindra
38222
38223         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
38224           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
38225           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
38226           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
38227           EventHandlers needed by ListView Control.
38228
38229 2004-09-22 14:12  pbartok
38230
38231         * ScrollableControl.cs:
38232           - Implemented DockPadding property
38233           - Implemented AutoScroll property
38234           - Implemented AutoScrollMargin property
38235           - Implemented AutoScrollMinSize property
38236           - Implemented AutoScrollPosition property
38237           - Implemented DisplayRectangle property (still incomplete)
38238           - Implemented CreateParams property
38239           - Implemented HScroll property
38240           - Implemented VScroll property
38241           - Implemented OnVisibleChanged property
38242
38243 2004-09-22 14:09  pbartok
38244
38245         * Form.cs:
38246           - Added Form.ControllCollection class
38247           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
38248             RemoveOwnedForm (still incomplete, missing on-top and common
38249             minimize/maximize behaviour)
38250           - Added StartPosition property (still incomplete, does not use when
38251             creating the form)
38252           - Added ShowDialog() methods (still incomplete, missing forcing the
38253             dialog modal)
38254
38255 2004-09-22 14:05  pbartok
38256
38257         * Application.cs:
38258           - Added message loop for modal dialogs
38259
38260 2004-09-22 14:02  pbartok
38261
38262         * GroupBox.cs:
38263           - Fixed wrong types for events
38264
38265 2004-09-22 14:00  pbartok
38266
38267         * Shortcut.cs, FormWindowState.cs:
38268           - Fixed wrong values
38269
38270 2004-09-22 12:01  jackson
38271
38272         * Control.cs: Text is never null
38273
38274 2004-09-20 22:14  pbartok
38275
38276         * XplatUIWin32.cs:
38277           - Fixed accessibility level for Idle handler
38278
38279 2004-09-20 18:54  jackson
38280
38281         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38282           XplatUIX11.cs: New message loop that uses poll so we don't get a
38283           busy loop
38284
38285 2004-09-17 10:43  pbartok
38286
38287         * ScrollBar.cs:
38288           - Fixed behaviour of arrow buttons. Now properly behaves like
38289             Buttons (and like Microsoft's scrollbar arrow buttons)
38290
38291 2004-09-17 10:14  pbartok
38292
38293         * ScrollBar.cs:
38294           - Added missing release of keyboard/mouse capture
38295
38296 2004-09-17 06:18  jordi
38297
38298         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
38299           Theme.cs: Very early menu support
38300
38301 2004-09-16 17:45  pbartok
38302
38303         * XplatUIWin32.cs:
38304           - Fixed sending a window to the front
38305           - Added overload for SetWindowPos to avoid casting
38306
38307 2004-09-16 17:44  pbartok
38308
38309         * Control.cs:
38310           - Added SendToBack and BringToFront methods
38311
38312 2004-09-16 07:00  ravindra
38313
38314         * Copyright: Added Novell URL.
38315
38316 2004-09-16 07:00  ravindra
38317
38318         * ToolBar.cs: Invalidate should be done before redrawing.
38319
38320 2004-09-15 21:19  ravindra
38321
38322         * ColumnHeaderStyle.cs: Enum for ListView Control.
38323
38324 2004-09-15 21:18  ravindra
38325
38326         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
38327           ListView Control.
38328
38329 2004-09-13 18:26  jackson
38330
38331         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
38332           properly
38333
38334 2004-09-13 18:13  jackson
38335
38336         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
38337           a second thread and post messages into the main threads message
38338           queue. This makes timing much more consistent. Both win2K and XP
38339           have a minimum timer value of 15 milliseconds, so we now do this
38340           too.
38341
38342 2004-09-13 15:18  pbartok
38343
38344         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38345           XplatUIX11.cs:
38346           - Added Z-Ordering methods
38347
38348 2004-09-13 10:56  pbartok
38349
38350         * Form.cs:
38351           - Fixed #region names
38352           - Moved properties and methods into their proper #regions
38353
38354 2004-09-13 10:51  pbartok
38355
38356         * Form.cs:
38357           - Added Accept and CancelButton properties
38358           - Added ProcessDialogKey() method
38359
38360 2004-09-13 08:18  pbartok
38361
38362         * IWindowTarget.cs:
38363           - Initial check-in
38364
38365 2004-09-10 21:50  pbartok
38366
38367         * Control.cs:
38368           - Added DoDragDrop() [incomplete]
38369           - Properly implemented 'Visible' handling
38370           - Added SetVisibleCore()
38371           - Implemented FindChildAtPoint()
38372           - Implemented GetContainerControl()
38373           - Implemented Hide()
38374
38375 2004-09-10 19:28  pbartok
38376
38377         * Control.cs:
38378           - Moved methods into their appropriate #regions
38379           - Reordered methods within regions alphabetically
38380
38381 2004-09-10 18:57  pbartok
38382
38383         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
38384           - Added method to retrieve text from window
38385
38386 2004-09-10 18:56  pbartok
38387
38388         * Control.cs:
38389           - Moved some internal functions into the internal region
38390           - Implemented FontHeight
38391           - Implemented RenderRightToLeft
38392           - Implemented ResizeRedraw
38393           - Implemented ShowFocusCues
38394           - Implemented ShowKeyboardCues
38395           - Implemented FromChildHandle
38396           - Implemented FromHandle
38397           - Implemented IsMnemonic
38398           - Implemented ReflectMessage
38399           - All public and protected Static Methods are now complete
38400
38401 2004-09-10 16:54  pbartok
38402
38403         * Control.cs:
38404           - Implemented remaining missing public instance properties
38405           - Alphabetized some out of order properties
38406
38407 2004-09-10 05:51  ravindra
38408
38409         * PictureBox.cs: Added a check for null image.
38410
38411 2004-09-10 00:59  jordi
38412
38413         * GroupBox.cs: remove cvs tag
38414
38415 2004-09-09 05:25  ravindra
38416
38417         * ToolBar.cs: Make redraw accessible from ToolBarButton.
38418
38419 2004-09-09 05:23  ravindra
38420
38421         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
38422           parent redraw.
38423
38424 2004-09-09 02:28  pbartok
38425
38426         * ThemeWin32Classic.cs:
38427           - Improve disabled string look
38428
38429 2004-09-09 01:15  jordi
38430
38431         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
38432           args and handler
38433
38434 2004-09-08 23:56  ravindra
38435
38436         * ItemBoundsPortion.cs: It's enum, not a class!
38437
38438 2004-09-08 23:47  ravindra
38439
38440         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
38441           Enums for Form.
38442
38443 2004-09-08 21:13  ravindra
38444
38445         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
38446           ListView control.
38447
38448 2004-09-08 21:03  ravindra
38449
38450         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
38451           avoid crash.
38452
38453 2004-09-08 21:01  ravindra
38454
38455         * ScrollableControl.cs: Removed unreachable code.
38456
38457 2004-09-08 06:45  jordi
38458
38459         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
38460
38461 2004-09-08 01:00  jackson
38462
38463         * XplatUIX11.cs: Only run the timers when updating the message
38464           queue. This effectively gives X messages a higher priority then
38465           timer messages. Timers still need love though
38466
38467 2004-09-07 14:01  jackson
38468
38469         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
38470           this for us and the handle is no longer valid.
38471
38472 2004-09-07 13:59  jackson
38473
38474         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
38475           loop that manages to not crash. TODO: Add poll and cleanup timers
38476
38477 2004-09-07 11:12  jordi
38478
38479         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
38480
38481 2004-09-07 03:40  jordi
38482
38483         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
38484           fixes, methods, multiple links
38485
38486 2004-09-06 06:55  jordi
38487
38488         * Control.cs: Caches ClientRectangle rectangle value
38489
38490 2004-09-05 02:03  jordi
38491
38492         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
38493           certain situations
38494
38495 2004-09-04 11:10  jordi
38496
38497         * Label.cs: Refresh when font changed
38498
38499 2004-09-02 16:24  pbartok
38500
38501         * Control.cs:
38502           - Added sanity check to creation of double buffer bitmap
38503
38504 2004-09-02 16:24  pbartok
38505
38506         * ButtonBase.cs:
38507           - Fixed selection of text color
38508           - Fixed handling of resize event; now properly recreates double
38509             buffering bitmap
38510           - Added missing assignment of TextAlignment
38511           - Added proper default for TextAlignment
38512
38513 2004-09-02 14:26  pbartok
38514
38515         * RadioButton.cs:
38516           - Added missing RadioButton.RadioButtonAccessibleObject class
38517
38518 2004-09-02 14:26  pbartok
38519
38520         * Control.cs:
38521           - Added missing Control.ControlAccessibleObject class
38522           - Started to implement Select()ion mechanisms, still very incomplete
38523
38524 2004-09-02 14:25  pbartok
38525
38526         * AccessibleObject.cs:
38527           - Added missing methods
38528
38529 2004-09-02 14:23  pbartok
38530
38531         * AccessibleNavigation.cs, AccessibleSelection.cs:
38532           - Initial check-in
38533
38534 2004-09-02 10:32  jordi
38535
38536         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
38537           pool for pens, brushes, and hatchbruses
38538
38539 2004-09-01 15:30  jackson
38540
38541         * StatusBar.cs: Fix typo
38542
38543 2004-09-01 14:44  pbartok
38544
38545         * RadioButton.cs:
38546           - Fixed state
38547
38548 2004-09-01 14:39  pbartok
38549
38550         * Button.cs, RadioButton.cs:
38551           - Functional initial check-in
38552
38553 2004-09-01 14:01  pbartok
38554
38555         * CheckBox.cs:
38556           - Added missing default
38557           - Added missing region mark
38558
38559 2004-09-01 09:10  jordi
38560
38561         * Label.cs: fixes method signatures, new methods, events, fixes
38562           autosize
38563
38564 2004-09-01 07:19  jordi
38565
38566         * Control.cs: Init string variables with an empty object
38567
38568 2004-09-01 04:20  jordi
38569
38570         * Control.cs: fires OnFontChanged event
38571
38572 2004-08-31 20:07  pbartok
38573
38574         * ButtonBase.cs:
38575           - Enabled display of strings
38576
38577 2004-08-31 20:05  pbartok
38578
38579         * Form.cs:
38580           - Added (partial) implementation of DialogResult; rest needs to be
38581             implemented when the modal loop code is done
38582
38583 2004-08-31 19:55  pbartok
38584
38585         * CheckBox.cs:
38586           - Fixed to match the removal of the needs_redraw concept
38587
38588 2004-08-31 19:55  pbartok
38589
38590         * ButtonBase.cs:
38591           - Removed the rather odd split between 'needs redraw' and redrawing
38592           - Now handles the events that require regeneration (ambient
38593             properties and size)
38594
38595 2004-08-31 19:41  pbartok
38596
38597         * Control.cs:
38598           - Added firing of BackColorChanged event
38599           - Added TopLevelControl property
38600           - Fixed handling of WM_ERASEBKGRND message
38601
38602 2004-08-31 12:49  pbartok
38603
38604         * ButtonBase.cs:
38605           - Removed debug
38606           - Minor fixes
38607
38608 2004-08-31 12:48  pbartok
38609
38610         * CheckBox.cs:
38611           - Finished (famous last words)
38612
38613 2004-08-31 04:35  jordi
38614
38615         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
38616           scrolling bugs, adds new methods
38617
38618 2004-08-30 14:42  pbartok
38619
38620         * CheckBox.cs:
38621           - Implemented CheckBox drawing code
38622
38623 2004-08-30 14:42  pbartok
38624
38625         * ButtonBase.cs:
38626           - Made Redraw() and CheckRedraw() virtual
38627           - Improved mouse up/down/move logic to properly track buttons
38628
38629 2004-08-30 09:44  pbartok
38630
38631         * CheckBox.cs:
38632           - Updated to fix broken build. Not complete yet.
38633
38634 2004-08-30 09:28  pbartok
38635
38636         * CheckState.cs:
38637           - Initial checkin
38638
38639 2004-08-30 09:17  pbartok
38640
38641         * Appearance.cs:
38642           - Initial check-in
38643
38644 2004-08-27 16:12  ravindra
38645
38646         * ToolBarButton.cs: Added TypeConverter attribute.
38647
38648 2004-08-27 16:07  ravindra
38649
38650         * ImageIndexConverter.cs: Implemented.
38651
38652 2004-08-27 14:17  pbartok
38653
38654         * Control.cs:
38655           - Removed unneeded stack vars
38656           - First attempt to fix sizing issues when layout is suspended
38657
38658 2004-08-25 15:35  jordi
38659
38660         * ScrollBar.cs: more fixes to scrollbar
38661
38662 2004-08-25 14:04  ravindra
38663
38664         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
38665           Added the missing divider code and grip for ToolBar Control.
38666
38667 2004-08-25 13:20  pbartok
38668
38669         * Control.cs:
38670           - Control now properly passes the ambient background color to child
38671             controls
38672
38673 2004-08-25 13:20  jordi
38674
38675         * ScrollBar.cs: small bug fix regarding bar position
38676
38677 2004-08-25 12:33  pbartok
38678
38679         * Timer.cs:
38680           - Now only calls SetTimer or KillTimer if the enabled state has
38681           changed
38682
38683 2004-08-25 12:33  pbartok
38684
38685         * XplatUIWin32.cs:
38686           - Fixed timer handling, now seems to work
38687           - Improved error message for window creation
38688
38689 2004-08-25 12:32  pbartok
38690
38691         * Control.cs:
38692           - Fixed generation of MouseUp message
38693
38694 2004-08-25 12:29  jordi
38695
38696         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
38697           and fixes for progressbar
38698
38699 2004-08-24 18:43  ravindra
38700
38701         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
38702           in ToolBar control.
38703
38704 2004-08-24 17:15  pbartok
38705
38706         * Panel.cs:
38707           - Added #region
38708           - Added missing events
38709           - Alphabetized
38710
38711 2004-08-24 17:14  pbartok
38712
38713         * StatusBar.cs, PictureBox.cs:
38714           - Now uses Control's CreateParams
38715
38716 2004-08-24 16:36  pbartok
38717
38718         * XplatUIX11.cs:
38719           - Fixed background color handling
38720           - Fixed sending of enter/leave events on a grab
38721
38722 2004-08-24 16:35  pbartok
38723
38724         * X11Structs.cs:
38725           - Refined definitions for CrossingEvent
38726
38727 2004-08-24 12:37  jordi
38728
38729         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
38730           formmating, methods signature, and adds missing events
38731
38732 2004-08-24 12:24  jordi
38733
38734         * Control.cs: fire OnEnabledChanged event
38735
38736 2004-08-24 11:17  pbartok
38737
38738         * XplatUIWin32.cs:
38739           - Implemented SetTimer() and KillTimer()
38740
38741 2004-08-24 11:16  pbartok
38742
38743         * XplatUIX11.cs:
38744           - Now uses Remove instead of Add to kill the timer
38745
38746 2004-08-24 10:16  jackson
38747
38748         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
38749           picture boxes in the theme now. Draw picture box borders and obey
38750           sizing modes
38751
38752 2004-08-24 05:49  jackson
38753
38754         * Timer.cs: Remove top secret debugging code
38755
38756 2004-08-24 05:34  jackson
38757
38758         * PictureBox.cs: Temp hack to make picture boxes draw their full
38759           image
38760
38761 2004-08-24 05:29  jackson
38762
38763         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38764           XplatUIX11.cs: Move timers to the driver level. On X they are
38765           queued by the driver and checked on idle.
38766
38767 2004-08-24 01:07  jackson
38768
38769         * XplatUIX11.cs: Use a queue for async messages instead of passing
38770           them as ClientMessages since that was totally broken. Also simply
38771           check for events and return an idle message if none are found. This
38772           gives us an idle handler, and prevents deadlocking when no messages
38773           are in the queue.
38774
38775 2004-08-23 18:19  ravindra
38776
38777         * XplatUIWin32.cs: Removed the unwanted destructor.
38778
38779 2004-08-23 17:27  pbartok
38780
38781         * ButtonBase.cs:
38782           - Finishing touches. Works now, just needs some optimizations.
38783
38784 2004-08-23 16:53  jordi
38785
38786         * ScrollBar.cs: small fix
38787
38788 2004-08-23 16:45  pbartok
38789
38790         * Application.cs:
38791           - Removed debug output
38792           - Simplifications
38793
38794 2004-08-23 16:43  jordi
38795
38796         * ScrollBar.cs: [no log message]
38797
38798 2004-08-23 16:10  pbartok
38799
38800         * Form.cs:
38801           - Fixed handling of WM_CLOSE message
38802           - Removed debug output
38803
38804 2004-08-23 16:09  pbartok
38805
38806         * Application.cs:
38807           - Added handling of Idle event
38808           - Added handling of form closing
38809           - Fixed reporting of MessageLoop property
38810           - Removed some unneeded code, should provide a bit of a speedup
38811
38812 2004-08-23 15:22  pbartok
38813
38814         * Control.cs:
38815           - Added InitLayout() method
38816           - Added code to properly perform layout when Anchor or Dock property
38817             is changed
38818           - Changed 'interpretation' of ResumeLayout. MS seems to have a
38819             LAMESPEC, tried to do it in a way that makes sense
38820
38821 2004-08-23 14:10  jordi
38822
38823         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
38824           properties and methods
38825
38826 2004-08-23 13:55  pbartok
38827
38828         * Control.cs:
38829           - Properly fixed Jordi's last fix
38830           - Now uses Cursor's Position property instead of calling XplatUI
38831           directly
38832
38833 2004-08-23 13:44  jordi
38834
38835         * PaintEventHandler.cs: Adding missing attribute
38836
38837 2004-08-23 13:39  pbartok
38838
38839         * Cursor.cs:
38840           - Implemented Position property
38841
38842 2004-08-23 13:39  pbartok
38843
38844         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
38845           - Added method to move mouse cursor
38846
38847 2004-08-23 13:39  pbartok
38848
38849         * XplatUIX11.cs:
38850           - Fixed setting of background color
38851           - Added method to move mouse cursor
38852
38853 2004-08-23 13:16  jordi
38854
38855         * Control.cs: avoids null exception
38856
38857 2004-08-22 17:46  jackson
38858
38859         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
38860           PictureBox
38861
38862 2004-08-22 17:40  jackson
38863
38864         * XplatUIX11.cs: Add some missing locks
38865
38866 2004-08-22 15:10  pbartok
38867
38868         * Control.cs, Form.cs:
38869           - Removed OverlappedWindow style from Control, instead it's default
38870             now is child
38871           - Made form windows OverlappedWindow by default
38872
38873 2004-08-22 13:34  jackson
38874
38875         * ScrollBar.cs: Update the position through the Value property so
38876           the OnValueChanged event is raised.
38877
38878 2004-08-22 12:04  pbartok
38879
38880         * SWF.csproj:
38881           - Added Cursor.cs and UserControl.cs
38882
38883 2004-08-22 12:03  pbartok
38884
38885         * Cursor.cs:
38886           - Started implementation, not usable yet
38887
38888 2004-08-22 12:00  pbartok
38889
38890         * UserControl.cs:
38891           - Implemented UserControl (complete)
38892
38893 2004-08-21 19:20  ravindra
38894
38895         * ToolBar.cs: Correcting the formatting mess of VS.NET.
38896
38897 2004-08-21 18:49  ravindra
38898
38899         * ToolBar.cs: Probably this completes the missing attributes in
38900           toolbar control.
38901
38902 2004-08-21 18:03  ravindra
38903
38904         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
38905           Fixed toolbar control signatures.
38906
38907 2004-08-21 16:32  pbartok
38908
38909         * LinkLabel.cs:
38910           - Signature Fixes
38911
38912 2004-08-21 16:30  pbartok
38913
38914         * Label.cs:
38915           - Signature fixes
38916
38917 2004-08-21 16:19  pbartok
38918
38919         * Control.cs, Label.cs:
38920           - Signature fixes
38921
38922 2004-08-21 15:57  pbartok
38923
38924         * ButtonBase.cs:
38925           - Added loads of debug output for development
38926           - Fixed typo in method name
38927
38928 2004-08-21 15:52  pbartok
38929
38930         * ToolBarButtonClickEventArgs.cs:
38931           - Added missing base class
38932
38933 2004-08-21 14:53  pbartok
38934
38935         * Control.cs:
38936           - Updated to match new GrabWindow signature
38937
38938 2004-08-21 14:51  pbartok
38939
38940         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38941           - Added method to get default display size
38942
38943 2004-08-21 14:23  pbartok
38944
38945         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38946           - Added method to query current grab state
38947           - Added argument to allow confining a grab to a window
38948
38949 2004-08-21 14:22  pbartok
38950
38951         * Keys.cs:
38952           - Added [Flags] attribute so that modifiers can be used in bitwise
38953           ops
38954
38955 2004-08-21 14:21  pbartok
38956
38957         * TrackBar.cs, ScrollBar.cs:
38958           - Replaced direct XplatUI calls with their Control counterpart
38959
38960 2004-08-21 13:32  pbartok
38961
38962         * Control.cs:
38963           - Implemented Created property
38964
38965 2004-08-21 13:28  pbartok
38966
38967         * Control.cs:
38968           - Implemented ContainsFocus
38969
38970 2004-08-21 13:26  pbartok
38971
38972         * Control.cs:
38973           - Implemented CausesValidation
38974
38975 2004-08-21 13:21  pbartok
38976
38977         * Control.cs:
38978           - Implemented CanFocus
38979           - Implemented CanSelect
38980           - Implemented Capture
38981
38982 2004-08-21 12:35  pbartok
38983
38984         * XplatUIWin32.cs:
38985           - Fixed bug with Async message handling
38986           - Implemented getting the ModifierKeys
38987
38988 2004-08-21 12:32  jackson
38989
38990         * AsyncMethodResult.cs: Make sure we have the mutex before we
38991           release it. Fixes BeginInvoke on windows
38992
38993 2004-08-21 11:31  pbartok
38994
38995         * XplatUIWin32.cs, XplatUIX11.cs:
38996           - Drivers now return proper mouse state
38997
38998 2004-08-21 10:54  jackson
38999
39000         * Control.cs: Implement EndInvoke
39001
39002 2004-08-21 10:48  jackson
39003
39004         * Timer.cs: Remove unneeded finalizer
39005
39006 2004-08-20 19:52  ravindra
39007
39008         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
39009           in mouse event handling in the ToolBar control.
39010
39011 2004-08-20 19:50  ravindra
39012
39013         * ImageList.cs: Changed draw method to use the arguments passed in
39014           to draw the image.
39015
39016 2004-08-20 18:58  pbartok
39017
39018         * XplatUIStructs.cs:
39019           - Added private message for async communication
39020
39021 2004-08-20 17:38  ravindra
39022
39023         * Control.cs: Made RightToLeft property virtual and removed a
39024           Console.WriteLine.
39025
39026 2004-08-20 14:39  jordi
39027
39028         * ThemeGtk.cs: use style_attach
39029
39030 2004-08-20 14:39  pbartok
39031
39032         * XplatUIWin32.cs:
39033           - Added jackson's Async code from X11 to Win32
39034
39035 2004-08-20 14:09  pbartok
39036
39037         * SWF.csproj:
39038           - Added all new files
39039
39040 2004-08-20 14:09  pbartok
39041
39042         * Control.cs:
39043           - Added call to set window background color
39044
39045 2004-08-20 14:03  pbartok
39046
39047         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
39048           - Added method for setting the window background
39049
39050 2004-08-20 14:02  pbartok
39051
39052         * XplatUIWin32.cs:
39053           - Added method for setting the background color
39054           - Added handling for erasing the window background
39055
39056 2004-08-20 13:45  jordi
39057
39058         * TrackBar.cs: fixes timer, new properties and methods
39059
39060 2004-08-20 13:34  jackson
39061
39062         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
39063           correct thread
39064
39065 2004-08-20 13:22  jackson
39066
39067         * Timer.cs: Timer Tick events are now handed through Controls Async
39068           mechanism so the callbacks are executed in the same thread as X
39069
39070 2004-08-20 13:19  jackson
39071
39072         * XplatUIDriver.cs: Expose functionality to send async messages
39073           through the driver
39074
39075 2004-08-20 13:18  jackson
39076
39077         * Control.cs: Implement Begininvoke
39078
39079 2004-08-20 13:14  jackson
39080
39081         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
39082           messages through the driver
39083
39084 2004-08-20 13:12  jackson
39085
39086         * XplatUIX11.cs: Lock before all X operations. Also added Async
39087           method functionality through XSendEvent
39088
39089 2004-08-20 13:11  jackson
39090
39091         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
39092           This will screw up on 64 bit systems)
39093
39094 2004-08-20 13:10  jackson
39095
39096         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
39097           Async messages through X/Win32
39098
39099 2004-08-19 19:39  pbartok
39100
39101         * XplatUIX11.cs:
39102           - Updated code to match new HandleData.DeviceContext type
39103
39104 2004-08-19 19:38  pbartok
39105
39106         * HandleData.cs:
39107           - Made DeviceContext a generic object to allow usage from various
39108           drivers
39109           - Added support for queueing Windows messages
39110
39111 2004-08-19 19:37  pbartok
39112
39113         * XplatUIWin32.cs:
39114           - Added generation of MouseEnter, MouseLeave and MouseHover events
39115           - Added cleanup on EndPaint
39116
39117 2004-08-19 19:17  pbartok
39118
39119         * Control.cs:
39120           - Added handling of WM_MOUSEHOVER
39121           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
39122           code
39123
39124 2004-08-19 18:55  jordi
39125
39126         * ThemeGtk.cs: fixes button order
39127
39128 2004-08-19 18:12  jordi
39129
39130         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
39131
39132 2004-08-19 17:09  pbartok
39133
39134         * Control.cs:
39135           - Added Right property
39136           - Added RightToLeft property
39137
39138 2004-08-19 16:27  jordi
39139
39140         * ThemeGtk.cs: experimental GTK theme support
39141
39142 2004-08-19 16:26  jordi
39143
39144         * ITheme.cs, Theme.cs: move themes from an interface to a class
39145
39146 2004-08-19 16:25  jordi
39147
39148         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
39149           theme enhancaments
39150
39151 2004-08-19 16:04  pbartok
39152
39153         * XplatUIX11.cs:
39154           - Added colormap basics
39155           - Added a way to re-initialize with a different display handle
39156           - Fixed setting of the window background color
39157           - Added various X11 imports related to colors and colormaps
39158
39159 2004-08-19 15:51  pbartok
39160
39161         * X11Structs.cs:
39162           - Removed packing hints (Paolo suggested this a while back)
39163           - fixed colormap type
39164           - Added default Atom types
39165           - Added Screen and color structs and enums
39166
39167 2004-08-19 15:39  pbartok
39168
39169         * ImageList.cs:
39170           - Added missing Draw() method
39171           - Added missing RecreateHandle event
39172
39173 2004-08-19 15:30  pbartok
39174
39175         * Form.cs:
39176           - Added handling of WM_CLOSE
39177
39178 2004-08-18 13:16  jordi
39179
39180         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
39181           a table
39182
39183 2004-08-18 09:56  jordi
39184
39185         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
39186
39187 2004-08-17 15:31  ravindra
39188
39189         * SWF.csproj: Updated project.
39190
39191 2004-08-17 15:25  pbartok
39192
39193         * Control.cs:
39194           - Drawing improvement; don't call UpdateBounds if we are not visible
39195             (or have been minimized)
39196
39197 2004-08-17 15:24  pbartok
39198
39199         * XplatUIWin32.cs:
39200           - Finished IsVisible
39201           - Added Win32GetWindowPlacement
39202
39203 2004-08-17 15:08  jackson
39204
39205         * Panel.cs: Initial checkin of the Panel
39206
39207 2004-08-17 14:25  pbartok
39208
39209         * Control.cs:
39210           - Fixed broken handling of default window sizes
39211
39212 2004-08-17 13:29  jackson
39213
39214         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
39215           has a large startup time.
39216
39217 2004-08-17 10:25  jackson
39218
39219         * HandleData.cs: union areas properly
39220
39221 2004-08-17 10:12  jackson
39222
39223         * HandleData.cs: union areas properly
39224
39225 2004-08-16 20:00  ravindra
39226
39227         * ToolBar.cs, ToolBarButton.cs: Added attributes.
39228
39229 2004-08-16 18:48  ravindra
39230
39231         * ToolBar.cs: Added attributes.
39232
39233 2004-08-16 17:17  ravindra
39234
39235         * SWF.csproj: Updated project.
39236
39237 2004-08-16 17:16  jackson
39238
39239         * XplatUIX11.cs: Check for more expose events before sending a
39240           WM_PAINT so they can all be grouped together. This makes dragging a
39241           window across another window redraw in a sane way.
39242
39243 2004-08-16 15:47  pbartok
39244
39245         * Control.cs:
39246           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
39247             support OnMouseEnter/Leave()
39248           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
39249             exposure handling
39250
39251 2004-08-16 15:46  pbartok
39252
39253         * XplatUIStructs.cs, XplatUIX11.cs:
39254           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
39255           OnMouseEnter/Leave()
39256
39257 2004-08-16 15:34  jackson
39258
39259         * XplatUIX11.cs: Group multiple expose events in HandleData, make
39260           sure messages get the message field set to WM_NULL if they are not
39261           handled.
39262
39263 2004-08-16 15:24  jackson
39264
39265         * HandleData.cs: HandleData is used for storing message information
39266           for window handles
39267
39268 2004-08-15 17:23  ravindra
39269
39270         * ColorDepth.cs: Added attribute.
39271
39272 2004-08-15 17:23  ravindra
39273
39274         * SWF.csproj: Updated project for ToolBar Control.
39275
39276 2004-08-15 17:20  ravindra
39277
39278         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
39279           control and also dos2unix format.
39280
39281 2004-08-15 17:13  ravindra
39282
39283         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
39284           ToolBarButtonClickEventArgs.cs,
39285           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
39286           ToolBarTextAlign.cs: First Implementation of ToolBar control.
39287
39288 2004-08-15 15:31  pbartok
39289
39290         * ButtonBase.cs:
39291           - First (mostly) working version
39292
39293 2004-08-13 16:15  pbartok
39294
39295         * Control.cs:
39296           - Fixed Anchor default
39297
39298 2004-08-13 15:43  pbartok
39299
39300         * Control.cs:
39301           - Changed GetCursorPos signature
39302
39303 2004-08-13 15:42  pbartok
39304
39305         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
39306           - Changed signature for GetCursorPos
39307
39308 2004-08-13 15:25  pbartok
39309
39310         * XplatUIX11.cs:
39311           - Cleanup
39312           - Fixed resizing/exposure handling
39313
39314 2004-08-13 15:22  jordi
39315
39316         * ThemeWin32Classic.cs: removes redundant code and fixes issues
39317           with tickposition
39318
39319 2004-08-13 14:55  jordi
39320
39321         * TrackBar.cs: change from wndproc to events
39322
39323 2004-08-13 13:00  jordi
39324
39325         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39326           XplatUIX11.cs: implements PointToClient (ScreenToClient)
39327
39328 2004-08-13 12:53  pbartok
39329
39330         * XplatUIWin32.cs:
39331           - Changed GetWindowPos to also provide client area size
39332           - Fixed broken prototypes for several win32 functions
39333
39334 2004-08-13 12:53  pbartok
39335
39336         * XplatUI.cs, XplatUIDriver.cs:
39337           - Changed GetWindowPos to also provide client area size
39338
39339 2004-08-13 12:52  pbartok
39340
39341         * XplatUIX11.cs:
39342           - Added generation of WM_POSCHANGED
39343           - Changed GetWindowPos to also provide client area size
39344
39345 2004-08-13 12:52  pbartok
39346
39347         * Control.cs:
39348           - Added Dispose() and destructor
39349           - Fixed resizing and bounds calculation
39350           - Fixed Layout
39351           - Added memory savings for invisible windows
39352
39353 2004-08-13 12:46  jordi
39354
39355         * TrackBar.cs: adds timer and grap window
39356
39357 2004-08-13 10:25  jackson
39358
39359         * Timer.cs: SWF Timer
39360
39361 2004-08-12 16:59  pbartok
39362
39363         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39364           - Implemented method to get current mouse position
39365
39366 2004-08-12 14:29  jordi
39367
39368         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
39369           enhancement, fix mouse problems, highli thumb, etc
39370
39371 2004-08-12 13:31  pbartok
39372
39373         * Control.cs:
39374           - Fixed Anchoring bugs
39375
39376 2004-08-12 13:01  jackson
39377
39378         * StatusBar.cs: Don't forget things
39379
39380 2004-08-12 12:54  jackson
39381
39382         * ThemeWin32Classic.cs: Handle owner draw status bars
39383
39384 2004-08-12 12:54  jackson
39385
39386         * StatusBar.cs: Implement missing properties, events, and methods.
39387           Handle mouse clicking
39388
39389 2004-08-12 10:19  jackson
39390
39391         * StatusBarPanelClickEventArgs.cs,
39392           StatusBarPanelClickEventHandler.cs: Classes for handling status
39393           bar panel click events
39394
39395 2004-08-12 10:10  jackson
39396
39397         * Control.cs: Add missing properties
39398
39399 2004-08-12 09:46  pbartok
39400
39401         * BindingsManagerBase.cs:
39402           - Name changed to BindingManagerBase.cs
39403
39404 2004-08-12 09:25  jordi
39405
39406         * ScrollableControl.cs: calls ctrlbase instead of exeception
39407
39408 2004-08-11 16:28  pbartok
39409
39410         * InputLanguageChangingEventArgs.cs:
39411           - Never check in before compiling. Fixes the last check-in
39412
39413 2004-08-11 16:26  pbartok
39414
39415         * InputLanguageChangingEventArgs.cs:
39416           - More signature fixes
39417
39418 2004-08-11 16:20  pbartok
39419
39420         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
39421           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
39422           ImageListStreamer.cs, InputLanguage.cs,
39423           InputLanguageChangedEventArgs.cs,
39424           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
39425           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
39426           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
39427           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39428           - Signature fixes
39429
39430 2004-08-11 16:16  pbartok
39431
39432         * Application.cs:
39433           - Fixed Signature
39434           - Added .Net 1.1 method
39435
39436 2004-08-11 15:25  pbartok
39437
39438         * SWF.csproj:
39439           - Fixed BindingManagerBase.cs filename
39440
39441 2004-08-11 15:22  pbartok
39442
39443         * BindingManagerBase.cs:
39444           - Was checked in with wrong filename
39445
39446 2004-08-11 14:50  pbartok
39447
39448         * SWF.csproj:
39449           - Updated
39450
39451 2004-08-11 13:41  jordi
39452
39453         * XplatUIWin32.cs: Fixes ClientRect
39454
39455 2004-08-11 13:19  pbartok
39456
39457         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39458           XplatUIX11.cs:
39459           - We had SetWindowPos and MoveWindow to set window positions and
39460             size, removed MoveWindow. We have GetWindowPos, so it made sense to
39461             keep SetWindowPos as matching counterpart
39462           - Added some X11 sanity checking
39463
39464 2004-08-11 12:59  pbartok
39465
39466         * Control.cs:
39467           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
39468             (It seems that SetBounds is just a front for SetBoundsCore and
39469              SetBoundsCore updates the underlying window system and
39470              UpdateBounds is responsible for updating the variables associated
39471              with the Control and sending the events)
39472           - Major cleanup of Size handling; we now have two sizes, client_size
39473             and bounds. Bounds defines the window with decorations, client_size
39474             without them.
39475
39476 2004-08-11 12:55  pbartok
39477
39478         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39479           - Added method to calculate difference between decorated window and
39480             raw client area
39481
39482 2004-08-11 12:54  pbartok
39483
39484         * Label.cs:
39485           - Forcing redraw on resize
39486
39487 2004-08-11 11:43  pbartok
39488
39489         * ImageList.cs:
39490           - Removed disposing of the actual images when the list is disposed
39491
39492 2004-08-11 09:13  pbartok
39493
39494         * Control.cs:
39495           - Now properly reparents windows
39496
39497 2004-08-11 08:37  pbartok
39498
39499         * Control.cs:
39500           - Duh!
39501
39502 2004-08-11 07:47  pbartok
39503
39504         * Control.cs:
39505           - Rewrote the collection stuff. Might not be as fast now, not
39506             keeping the number of children around and accessible directly, but
39507             it's more straightforward
39508
39509 2004-08-11 07:44  pbartok
39510
39511         * AccessibleObject.cs:
39512           - Fixed to match ControlCollection rewrite
39513
39514 2004-08-11 07:43  pbartok
39515
39516         * ImageList.cs:
39517           - Added missing creation of the collection list
39518
39519 2004-08-10 20:08  jackson
39520
39521         * StatusBar.cs: Get the paint message from WndProc
39522
39523 2004-08-10 19:31  jackson
39524
39525         * ThemeWin32Classic.cs: Create Brushes as little as possible
39526
39527 2004-08-10 19:20  jackson
39528
39529         * UICues.cs: Add Flags attribute
39530
39531 2004-08-10 19:19  jackson
39532
39533         * StatusBarPanel.cs: Signature cleanup
39534
39535 2004-08-10 19:10  jackson
39536
39537         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
39538           Initial implementation of status bar item drawing
39539
39540 2004-08-10 17:27  jordi
39541
39542         * TrackBar.cs: add missing methods, properties, and restructure to
39543           hide extra ones
39544
39545 2004-08-10 16:24  jackson
39546
39547         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
39548           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
39549           attribute
39550
39551 2004-08-10 13:21  jordi
39552
39553         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
39554           enhancements and standarize on win colors defaults
39555
39556 2004-08-10 12:52  jackson
39557
39558         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
39559           ThemeWin32Classic.cs: Implement DrawItem functionality
39560
39561 2004-08-10 12:47  jordi
39562
39563         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
39564
39565 2004-08-10 12:32  jordi
39566
39567         * Control.cs: throw ontextchange event
39568
39569 2004-08-10 11:43  pbartok
39570
39571         * Control.cs:
39572           - Added more to the still unfinished Dock/Anchor layout code
39573
39574 2004-08-10 11:39  pbartok
39575
39576         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
39577           - Added GetWindowPos method
39578
39579 2004-08-10 11:36  pbartok
39580
39581         * XplatUIWin32.cs:
39582           - Implemented several methods
39583
39584 2004-08-10 09:47  jackson
39585
39586         * TrackBar.cs: Allow control to handle buffering
39587
39588 2004-08-10 09:41  jackson
39589
39590         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
39591
39592 2004-08-10 09:24  jackson
39593
39594         * Label.cs, LinkLabel.cs: Let Control handle buffering.
39595
39596 2004-08-10 09:09  jackson
39597
39598         * StatusBar.cs: Let Control handle all the buffering.
39599
39600 2004-08-10 09:08  jackson
39601
39602         * Control.cs: Control will now handle the buffering code, so each
39603           control does not have to implement this.
39604
39605 2004-08-10 08:34  jackson
39606
39607         * XplatUIDriver.cs: Use default colors from the theme
39608
39609 2004-08-09 17:12  pbartok
39610
39611         * ImageList.cs:
39612           - Fixed several bugs Ravindra pointed out
39613
39614 2004-08-09 16:11  pbartok
39615
39616         * Control.cs:
39617           - Added incomplete dock layout code
39618           - Added support for mouse wheel
39619
39620 2004-08-09 16:09  pbartok
39621
39622         * XplatUIX11.cs:
39623           - Added handling for middle and right mousebutton
39624           - Added handling for mouse wheel
39625           - Added handling for key state and mouse state and position
39626           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
39627           messages
39628
39629 2004-08-09 15:40  jackson
39630
39631         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
39632           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
39633           checkin
39634
39635 2004-08-09 15:37  jackson
39636
39637         * StatusBar.cs: Initial implementation of StatusBar
39638
39639 2004-08-09 15:36  jackson
39640
39641         * ITheme.cs: Add support for drawing status bar and getting status
39642           bar item sizes
39643
39644 2004-08-09 15:35  pbartok
39645
39646         * MouseButtons.cs:
39647           - Fixed values
39648
39649 2004-08-09 15:34  jackson
39650
39651         * ThemeWin32Classic.cs: Add support for drawing status bar and get
39652           status bar item sizes
39653
39654 2004-08-09 15:21  jackson
39655
39656         * ThemeWin32Classic.cs: Use known colors for default control
39657           colours
39658
39659 2004-08-09 15:12  jackson
39660
39661         * ThemeWin32Classic.cs: Make the default font static, it is static
39662           in control so this doesn't change functionality and creating fonts
39663           is sloooooow.
39664
39665 2004-08-09 14:56  pbartok
39666
39667         * X11Structs.cs:
39668           - Added GrabMode enum
39669
39670 2004-08-09 14:55  pbartok
39671
39672         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39673           - Removed Run method, was only required for initial development
39674
39675 2004-08-09 14:51  pbartok
39676
39677         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39678           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
39679           capture
39680
39681 2004-08-09 13:48  pbartok
39682
39683         * XplatUIX11.cs:
39684           - Fixed default sizing for child windows
39685
39686 2004-08-09 12:56  pbartok
39687
39688         * XplatUIX11.cs:
39689           - Added generation of WM_DESTROY message
39690           - Added handling of window manager induced shutdown
39691
39692 2004-08-09 11:31  jackson
39693
39694         * ThemeWin32Classic.cs: New names for control properties
39695
39696 2004-08-09 11:25  jackson
39697
39698         * Control.cs: Use new color names
39699
39700 2004-08-09 11:02  jackson
39701
39702         * XplatUI.cs: Get default window properties from the theme
39703
39704 2004-08-09 11:01  jackson
39705
39706         * ITheme.cs: The theme engine now controls default window
39707           properties
39708
39709 2004-08-09 11:00  jackson
39710
39711         * ThemeWin32Classic.cs: Add default window color properties
39712
39713 2004-08-09 10:17  jackson
39714
39715         * ThemeWin32Classic.cs: Use correct default back color
39716
39717 2004-08-09 10:05  jackson
39718
39719         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
39720           the theme now.
39721
39722 2004-08-09 09:56  jackson
39723
39724         * XplatUI.cs: Remove defaults, these are handled by the theme now.
39725
39726 2004-08-09 09:54  jackson
39727
39728         * Control.cs: Get default properties from the theme.
39729
39730 2004-08-09 09:53  jackson
39731
39732         * ITheme.cs: Themes now handle default control properties
39733
39734 2004-08-09 09:53  jackson
39735
39736         * ThemeWin32Classic.cs: Themes now handle default control
39737           properties so coloring will be consistent
39738
39739 2004-08-08 16:54  jordi
39740
39741         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
39742
39743 2004-08-08 15:08  jordi
39744
39745         * XplatUIX11.cs: fixes keyboard crash
39746
39747 2004-08-08 13:47  jordi
39748
39749         * Label.cs: add cvs header info
39750
39751 2004-08-08 12:09  jackson
39752
39753         * ThemeWin32Classic.cs: Add pen_buttonface
39754
39755 2004-08-08 11:52  jordi
39756
39757         * Label.cs, LinkLabel.cs: [no log message]
39758
39759 2004-08-08 11:34  jordi
39760
39761         * ThemeWin32Classic.cs: Use Windows Standard Colours
39762
39763 2004-08-07 17:32  jordi
39764
39765         * TrackBar.cs: throw exceptions of invalid enums values
39766
39767 2004-08-07 17:31  jordi
39768
39769         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
39770           draw method name
39771
39772 2004-08-07 16:56  jackson
39773
39774         * HorizontalAlignment.cs: Initial checkin
39775
39776 2004-08-07 13:16  jordi
39777
39778         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
39779           methods
39780
39781 2004-08-07 13:05  jordi
39782
39783         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
39784           GetSysColor defines
39785
39786 2004-08-06 18:01  pbartok
39787
39788         * ThemeWin32Classic.cs:
39789           - Fixed some rounding issues with float/int
39790
39791 2004-08-06 18:00  jackson
39792
39793         * DockStyle.cs, AnchorStyles.cs:
39794
39795                   Add flags and serializable attributes.
39796
39797 2004-08-06 17:46  pbartok
39798
39799         * XplatUIX11.cs:
39800           - Implemented GetParent
39801
39802 2004-08-06 17:18  pbartok
39803
39804         * TrackBar.cs:
39805           - Fixed some rounding issues with float/int
39806
39807 2004-08-06 17:17  pbartok
39808
39809         * X11Structs.cs, XplatUIX11.cs:
39810           - Fixed Refresh and Invalidate
39811
39812 2004-08-06 15:30  pbartok
39813
39814         * Control.cs, X11Structs.cs, XplatUIX11.cs:
39815           - Fixed recursive loop when resizing
39816           - Improved/fixed redrawing on expose messages
39817
39818 2004-08-06 09:53  jordi
39819
39820         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
39821           keyboard navigation
39822
39823 2004-08-06 08:02  pbartok
39824
39825         * X11Structs.cs, XplatUIX11.cs:
39826           - Fixed reparenting
39827           - Fixed window border creation
39828
39829 2004-08-05 15:38  pbartok
39830
39831         * XplatUIX11.cs:
39832           - Attempted fix for reparenting problems
39833
39834 2004-08-04 15:14  pbartok
39835
39836         * Control.cs:
39837           - Fixed Invalidation bug (calculated wrong client area)
39838           - Added ClientSize setter
39839
39840 2004-08-04 15:13  pbartok
39841
39842         * Form.cs:
39843           - Added AutoScale properties
39844
39845 2004-08-04 15:13  pbartok
39846
39847         * SWF.csproj:
39848           - Added latest files
39849
39850 2004-08-04 14:11  pbartok
39851
39852         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39853           XplatUIX11.cs:
39854           - Added Invalidate handling
39855
39856 2004-08-03 17:09  jordi
39857
39858         * XplatUIDriver.cs: fixes spelling mistake
39859
39860 2004-07-27 09:53  jordi
39861
39862         * TrackBar.cs: fixes trackbar events, def classname, methods
39863           signature
39864
39865 2004-07-27 09:29  jordi
39866
39867         * ScrollBar.cs: fixes scrollbar events
39868
39869 2004-07-27 04:38  jordi
39870
39871         * Control.cs: changes to be able to run winforms samples
39872
39873 2004-07-26 11:42  jordi
39874
39875         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
39876           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
39877
39878 2004-07-26 05:41  jordi
39879
39880         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
39881           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
39882           implementation
39883
39884 2004-07-22 09:22  jordi
39885
39886         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
39887           check link overlapping, implement events, and fixes
39888
39889 2004-07-21 10:28  jordi
39890
39891         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
39892
39893 2004-07-21 10:19  jordi
39894
39895         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
39896           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
39897           LinkLabelLinkClickedEventArgs.cs,
39898           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
39899           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
39900           implementation
39901
39902 2004-07-19 13:09  jordi
39903
39904         * Control.cs, Label.cs: label control re-written: added missing
39905           functionlity, events, and properties
39906
39907 2004-07-19 10:49  jordi
39908
39909         * Control.cs: fixes SetBounds logic
39910
39911 2004-07-19 01:29  jordi
39912
39913         * Control.cs: Call RefreshWindow only if the window has created
39914
39915 2004-07-15 14:05  pbartok
39916
39917         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
39918           - Implemented ImageList and ImageList.ImageCollection classes
39919           - Added ColorDepth enumeration
39920           - Updated SWF VS.Net project
39921
39922 2004-07-15 11:06  jordi
39923
39924         * XplatUIStructs.cs: added MsgButons enum
39925
39926 2004-07-15 11:03  jordi
39927
39928         * Control.cs: added basic mouse handeling events
39929
39930 2004-07-15 03:38  jordi
39931
39932         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
39933           Vertical TrackBar control implementation
39934
39935 2004-07-13 09:33  jordi
39936
39937         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
39938
39939 2004-07-13 09:31  jordi
39940
39941         * Control.cs, Form.cs: commit: new properties and fixes form size
39942           problems
39943
39944 2004-07-09 14:13  miguel
39945
39946         * ProgressBar.cs: Spelling
39947
39948 2004-07-09 11:25  pbartok
39949
39950         * ProgressBar.cs:
39951           - Removed usage of Rectangle for drawing. Miguel pointed out it's
39952           faster
39953
39954 2004-07-09 11:17  miguel
39955
39956         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
39957
39958                 * ProgressBar.cs: Fixed spelling for `block'
39959
39960                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
39961                 style guidelines.
39962
39963                 Avoid using the += on rect.X, that exposed a bug in the compiler.
39964
39965 2004-07-08 23:21  pbartok
39966
39967         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
39968           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
39969           BaseCollection.cs, Binding.cs, BindingContext.cs,
39970           BindingMemberInfo.cs, BindingsCollection.cs,
39971           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
39972           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
39973           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
39974           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
39975           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
39976           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
39977           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
39978           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
39979           FrameStyle.cs, GiveFeedbackEventArgs.cs,
39980           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
39981           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
39982           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
39983           InputLanguageChangedEventArgs.cs,
39984           InputLanguageChangedEventHandler.cs,
39985           InputLanguageChangingEventArgs.cs,
39986           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
39987           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
39988           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
39989           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
39990           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
39991           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
39992           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
39993           QueryAccessibilityHelpEventArgs.cs,
39994           QueryAccessibilityHelpEventHandler.cs,
39995           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
39996           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
39997           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
39998           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
39999           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
40000           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
40001           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
40002           XplatUIX11.cs, lang.cs:
40003           - Initial check-in
40004