2009-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2009-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2
3         * TreeNodeCollection.cs: When removing the selected node, set the
4         SelectedNode value of TreeView to null if there aren't more nodes left - 
5         this is better than to clear the selected node in Clear, since we need
6         to handle the situation in the Remove methods as well.
7         Fixes #525002.
8
9 2009-07-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10
11         * ToolStripItemCollection.cs: Find should do a case insensitive
12         search, and should throw an ArgumentNullException if the parameter is
13         an empty string.
14
15 2009-07-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16
17         * PropertyGrid.cs: Use click handlers for each ToolStripButton instead
18         of using a global handler for the ToolStrip. This way the buttons can
19         be recovered and can have its PerformClick method called properly.
20         Fixes #522454.
21
22 2009-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23
24         * X11Dnd.cs: Implement support for XdndActionList, so we can get the
25         complete list of the supported actions in the drag source, and use the
26         action passed in the Position message only as a fallback. This will
27         help us with dnd operations with non winforms apps.
28         Fixes #402158.
29
30 2009-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
31
32         * ToolStripItemCollection.cs: Use a List<> instead of an ArrayList in
33         Find. This should fix the exception we were getting when trying to
34         convert the ArrayList to an array of objects (since we were losing the
35         type parameter).
36         Fixes #519944.
37
38 2009-07-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
39
40         * RadioButton.cs: Setting Checked when none of the sibligs is checked
41         should happen *not* in GotFocus, but in the Enter event. This is
42         specially important since we should get that Checked behaviour even if
43         no handle is created yet - and thus, no actual GotFocus call happens at
44         the time.
45         Fixes #520764.
46
47 2009-07-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
48
49         * ComboBox.cs: Adjust manually the top border for out internal
50         ComboBox, since removing the border from it leaves it without any
51         margin. This is not noticeable in a default ComboBox, but it is in an
52         instance shown on top of ToolStrip.
53         Fixes the remaining part of #507462.
54
55 2009-07-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
56
57         * TextBoxBase.cs: Expose the margin top width as a property, to keep
58         the code clean.
59         * ToolStripTextBox.cs: Since we are actually using no border in the
60         default TextBox impl, and we are drawing the border ourselves, we need
61         to manually set the top margin.
62         Fixes part of #507462.
63
64 2009-07-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
65
66         * PrintPreviewDialog.cs: Record when left was pressed, so we can
67         simulate Tab+Alt when moving the focus throughout our buttons and
68         controls.
69         Fixes the remaining bits of #509142.
70
71 2009-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
72
73         * TabControl.cs: When computing the width of each tab page, use the
74         page's Font instead of the tab control one.
75         Fixes #514368.
76
77 2009-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
78
79         * MenuAPI.cs: When handling the Keys.Left key, don't close the menu if
80         the current menu is specifically a ContextMenu (this is what .net does
81         as well). This way we also avoid a crash caused by MenuTracker trying
82         to use the menu when it was already hidden.
83
84 2009-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
85
86         * PrintPreviewDialog.cs: Remove the code used to handle the
87         DropDown menu, since we are now doing it by default in ToolBar, and
88         just call the base impl as needed.Also, deactivate the dropdown menu
89         before moving the focus to a different button in our toolbar, as .net
90         does.
91         * ContextMenu.cs:
92         * MenuAPI.cs: Make as internal the needed bits to deactivate a
93         ContextMenu, and also to keep some beauty in our api.
94
95 2009-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
96
97         * ToolBar.cs: When handling the key down message, if we are on a
98         drop down button, either show the DropDownMenu or pass the key to its
99         ProcessCmdKey method as needed.
100         Fixes the remaining bits of #509985.
101
102 2009-06-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
103
104         * ToolBar.cs: Isolate the event logic related to OnButtonClick. Also
105         set current_item when navigating with the keyboard, so we can use it
106         properly later. Finally, handle both Enter and Space to fire
107         OnButtonClick *only*, without any other impact, as .net does.
108         Fixes part of #509985.
109
110 2009-06-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
111
112         * MenuAPI.cs: Close any active menu when we get a simple Alt.
113         Fixes #509299.
114
115 2009-06-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
116
117         * ToolBar.cs: In OnButtonClick only change the Pushed value for
118         buttons with toogle style. We were previously doing it for
119         DropDownButton's buttons, but that's not what .net is doing.
120         Fixes #510030.
121
122 2009-06-26  Atsushi Enomoto  <atsushi@ximian.com>
123
124         * XplatUICarbon.cs : support multi-byte text input.
125           Fixed bug #501276.
126
127 2009-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
128
129         * ListBox.cs: When creating DrawItemEventArgs, pass either
130         Theme.ColorHighlightText or ForeColor depending on the selected state
131         of our item, as .net does.
132         Fixes #512115.
133
134 2009-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
135
136         * ComboBox.cs: When handling WM_CHAR, process the message first, and
137         send it to the textbox only if it wasn't handled.
138         Fixes #507459.
139
140 2009-06-18  Jonathan Pobst  <monkey@jpobst.com>
141
142         * ComboBox.cs: Only do my big sort at the end of AddRange if
143         the combobox is actually set to Sorted.
144
145 2009-06-18 Tom Hindle <tom_hindle@sil.org>
146         
147         * XplatUIX11.cs: Enabled Text to coexist with custom data formats.
148         Fixes #511849.
149
150 2009-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
151
152         * ListBox.cs: When calculating the scrollbars for non MultiColumn
153         mode, force the use of the horizontal scrollbar only if
154         ScrollAlwaysVisible is true as well.
155         Fixes #513029.
156
157 2009-06-17  Jonathan Pobst  <monkey@jpobst.com>
158
159         * ComboBox.cs: When using AddRange on a sorted combobox, don't
160         try to use our inefficient sorted insert method, just append
161         it and sort the whole thing at then end.
162         [Fixes bug #511247]
163
164 2009-06-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
165
166         * ToolBar.cs: Expose as internal the code used to show a dropdown menu.
167         * PrintPreviewDialog.cs: Handle the down/up arrow keys for our
168         DropDown element.
169         Fixes #509152.
170
171 2009-06-16  Ivan N. Zlatev  <contact@i-nz.net>
172
173         * DataGridView.cs: Scrolling fixes.
174         [Fixes bug #512816]
175
176 2009-06-16  Ivan N. Zlatev  <contact@i-nz.net>
177
178         * DataGridView.cs, DataGridViewRowCollection.cs: Clean up a bit and 
179         optimize for batch adding rows.
180
181 2009-06-16  Ivan N. Zlatev  <contact@i-nz.net>
182
183         * DataGridView.cs: Avoid calling ReBind twice during the initial data 
184         binding.
185         [Fixes bug #512807]
186
187 2009-06-16  Ivan N. Zlatev  <contact@i-nz.net>
188
189         * DataGridView.cs: Suppress invalidation during data binding.
190         [Fixes part of bug #512807]
191
192 2009-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
193
194         * PrintPreviewDialog.cs: Tune the navigation among the buttons and
195         controls that are part of our ToolBar, so we can mimic the behaviour
196         observed in .Net, by handling also the arrow keys and doing the
197         preprocess for them too.
198         Fixes the remaining bits of #509142.
199
200 2009-06-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
201
202         * ToolBar.cs: Expose the current item as internal.
203         * PrintPreviewDialog.cs: Tune the TabStop property for
204         PrintPreviewControl/ToolBar so we match the .net scenario regarding
205         Tab navigation. Also implement support to navigate throughout the
206         items in the ToolBar.
207         Fixes #509142.
208
209 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
210
211         * DataGridViewComboBoxCell.cs, DataGridViewComboBoxColumn.cs: 
212         Implement items syncing in the non-databound scenario.
213         [Fixes bug #494031]
214
215 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
216
217         * DataGridView.cs: Call OnCellValidating and OnCellValidated and 
218         handle the Cancel accordingly.
219         [Fixes bug #506838]
220
221 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
222
223         * DataGridViewBand.cs: Fix a typo in DefaultHeaderCellType.
224         [Fixes bug #506796]
225
226 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
227
228         * DataGridViewColumnCollection.cs, DataGridViewRowCollection.cs, 
229         DataGridView.cs: Fire CollectionChangeAction.Refresh collection 
230         changed when Clearing the collections so that the DataGridView 
231         can know and reset the current cell.
232         [Fixes bug #492549]
233
234 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
235
236         * BindingSource.cs: In ResetBindings use the ListChangedEventArgs ctor 
237         with the PropertyDescriptor parameter instead of index, because the 
238         latter will set some irelevant indices. Fixes a bug uncovered by recent
239          fix to ListChangedEventArgs.
240
241 2009-06-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
242
243         * DataObject.cs: When looking for any specific format, do a case
244         insensitive search, as .net does.
245         Fixes #509199.
246
247 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
248
249         * CurrencyManager.cs: In AllowNew firstly check if the list is a 
250         IBindingList and proxy to AllowNew. IBindingList has slightly differet 
251         logic and eventhough it's an IList IsReadOnly should not be used in this 
252         case as it might be True but AllowNew could be True as well.
253         Fixes a bug uncovered by a fix to the Array class.
254
255 2009-06-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
256
257         * ListBindingHelper.cs: In GetListItemType do a null check when
258         looking for IList.Item, since the impl could be explicit, and thus
259         private. Fix by Florent Fayolle (p.ricca at odyssee-ingenierie.com).
260         Fixes the remaining part of #507120
261
262 2009-06-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
263
264         * DataObject.cs: Map StringFormat/Text/UnicodeText formats properly,
265         to match them in all the cases, as this is exactly what .net does.
266         Fixes #510728.
267
268 2009-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
269
270         * ListBindingHelper.cs: In GetListItemType handle gracefully the case
271         where an instance of IEnumerator returns a null value for its Current
272         property. Fix by Florent Fayolle (p.ricca at odyssee-ingenierie.com).
273         Fixes #507120.
274
275 2009-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
276
277         * ComboBox.cs: Properly detect whether we need to use our vertical
278         scrollbar or not, specially for DropDownList/DropDown styles,
279         depending on the value of DropDownHeight.
280         Fixes #508541.
281
282 2009-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
283
284         * ToolTip.cs: Call the base implementation in Dispose, but do it
285         before anything else to avoid a regression. This way we do the default
286         routines related to any System.ComponentModel.Container.
287         Fixes #508586.
288
289 2009-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
290
291         * Clipboard.cs:
292         * XplatUIX11.cs:
293         * DataFormats.cs: Implement support for serializable types in our
294         clipboard.
295         Fixes #357642.
296
297 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
298
299         * ColorDialog.cs: Actually add the help button to the form, so it can
300         be visible.
301         Fixes #478555.
302
303 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
304
305         * PrintPreviewDialog.cs: Don't use Dock.Fill for the
306         PrintPreviewControl, since it will be hidden in the top by our
307         toolbar. Use manual location and anchoring instead.
308         Fixes #474889.
309
310 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
311
312         * FileDialog.cs: When saving the size of the dialog, use the
313         ClientSize instead of Size, so we have always the same size for the
314         form. Patch by Alex Shulgin.
315         Fixes #503064.
316
317 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
318
319         * MessageBox.cs: When showing the dialog call XplatUI.AudibleAlert to
320         show a beep, similar to what .net does. 
321         Fixes #473725.
322
323 2009-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
324
325         * ContainerControl.cs:
326         * MenuStrip.cs
327         * ToolStrip.cs: Implicit mnemonic processing should happen for every
328         ToolStrip child, not only for MenuStrip, so we are going to do that in
329         ToolStrip.ProcessMnemonic, where we already had that exactly
330         functionality, but we are only just checking that either this instance
331         is a ToolStripDropDownMenu instance or Alt has been pressed. Finally
332         remove the extra code, since we are not going to use it now.
333         Fixes the remaining bits of #503663.
334
335 2009-05-21  Neville Gao  <nevillegao@gmail.com>
336
337         * ContextMenu.cs: Cleaned up UIA properties.
338
339 2009-05-20  Dick Porter  <dick@acm.org>
340
341         * XplatUICarbon.cs: Add more locking around MessageQueue
342         manipulations.
343
344 2009-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
345
346         * DateTimePicker.cs: Call Focus in HideMonthCalendar to avoid
347         duplication of code, as well as actually getting the focus back in
348         *any* scenario where the drop down is closed.
349
350 2009-05-18 Tom Hindle <tom_hindle@sil.org>
351         * ScrollableControl.cs: Ignore setting properties HScroll and 
352         VScroll when AutoScroll is true.
353         [Fixes bug #500213]
354
355 2009-05-18  Jonathan Pobst  <monkey@jpobst.com>
356
357         * ToolStripRenderer.cs: Apply patch from Thomas Goldstein to make
358         disabled graphics look closer to the ones that .Net produces.
359         [Fixes bug #473660]
360
361 2009-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
362
363         * DateTimePicker.cs: When calculating the max width for the year part,
364         use the current value, since *all* the possible values are exactly a 4
365         digits number. This way we avoid a ArgumentOutOfRangeException trying
366         to check against different values.
367         Fixes #500917.
368
369 2009-05-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
370
371         * MessageBox.cs: When handling ProcessDialogChar, check that
372         CancelButton is not null before trying to use it, to avoid a null ref
373         exception. We don't need to do that on the ok/yes buttons, since they
374         always exist.
375         Fixes #503935.
376
377 2009-05-15  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
378
379         * ListBox.cs: Handle the key down event in WndProc instead of doing it
380         in an event handler, as we need to avoid any operation in case
381         the user has handled it in its own OnKeyDown handler, and this can't
382         be achieved since our handler would be the first one always.
383         * FontDialog.cs: Update the calls since our method handling key down
384         has been renamed.
385         Fixes #503469.
386
387 2009-05-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
388
389         * Application.cs: We should dismiss the active ToolStrip when we
390         receive a WM_SYSKEYDOWN message, instead of WM_SYSKEYUP, so the next
391         keyboard short cut can be properly processed by another menu item.
392         Fixes part of #503663.
393
394 2009-05-13  Andreia Gaita  <avidigal@novell.com>
395
396         * HtmlDocument.cs: If the objects are strings, wrap them in ""
397
398 2009-05-13  Andreia Gaita  <avidigal@novell.com>
399
400         * HtmlDocument.cs: Fix InvokeScript call (duh).
401
402 2009-05-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
403
404         * TextBox.cs: Expose IsAutoCompleteAvailable as internal.
405         * ComboBox.cs: If auto complete is being used, it is needed to update
406         the actual value of the combo box, doing it immediately if the user
407         presses Enter, or doing it when our combo box loses focus. Finally,
408         when handling Enter and Escape keys for the combobox, don't try to
409         hide the listbox if it is not visible in the first place. 
410         Fixes part of #489339.
411
412 2009-05-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
413
414         * ToolStripDropDownMenu.cs: Use the height returned by
415         ToolStripItem.GetPreferredHeight to calculate our own height.
416
417 2009-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
418
419         * TreeNode.cs: When setting Checked, do a double null check, since the
420         current node can still get a null parent handling
421         TreeView.OnAfterCheck.
422         Fixes #502567.
423
424 2009-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
425
426         * Control.cs: When assigning ContextMenu, do a null check before
427         assigning its container field.
428
429 2009-05-08  Brad Taylor  <brad@getcoded.net>
430
431         * DateTimePicker.cs: Add a UIA-specific property to ensure that if
432         is_checkbox_checked is changed, we won't break.
433
434 2009-05-08  Andrés G. Aragoneses  <aaragoneses@novell.com>
435
436         * ToolStripItem.cs: Prevent NRE when our holder is a
437         ToolStripDropDownButton and we get Select()ed.
438
439 2009-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
440
441         * ToolStripControlHost.cs: DefaultSize must return the current size of
442         the Control, not the value returned by GetPreferredSize. Also connect
443         a handle to the control Resize event, and use it to fire
444         OnHostedControlReize.
445         Fixes the remaining bits of #483146.
446
447 2009-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
448
449         * ToolStripDropDown.cs: When performing the layout, use
450         ToolStripItem.GetPreferredSize ().Height instead of
451         ToolStripItem.Height, since we are already using it that way in this
452         same method.
453         Fixes part of ##483146.
454
455 2009-05-08  Brad Taylor  <brad@getcoded.net>
456
457         * DateTimePicker.cs: Wrap UIA specific code in NET_2_0 wrappers.  Send
458         OnUIASelectionChanged when ShowCheckbox is true and the checkbox
459         recieves focus.  Part of fix for #502029.
460
461 2009-05-06  Mike Gorse  <mgorse@novell.com>
462
463         * FileDialog.cs: Add UIAFocusedItemChanged to PopupButtonPanel.
464         Add PerformClick and PerformDoubleClick to PopupButton.
465         Fixes #499851.
466
467 2009-05-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
468
469         * TabControl.cs: call Focus() to emit GotFocus event at the
470         proper time when SelectionIndex changes. Fixes #499887.
471
472 2009-05-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
473
474         * MonthCalendar.cs: In SetBoundsCore always do the bounds check to
475         have valid values, even if BoundSpecified is not including
476         Size/Height/Width - this is useful when we are in a control using Dock
477         or Anchor.
478         Fixes part of #483146.
479
480 2009-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
481
482         * ComboBox.cs: When losing the focus, if our textbox is not null,
483         close its auto complete list, if any.
484         Fixes part of #489339.
485
486 2009-04-27  Andrés G. Aragoneses  <aaragoneses@novell.com>
487
488         * ListView.cs: Make OnColumnClick +internal to be used by a11y.
489
490 2009-04-27  Brad Taylor  <brad@getcoded.net>
491
492         * ToolStripButton.cs: Emit an internal event when CheckOnClick is
493         changed.
494
495 2009-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
496
497         * XplatUIX11.cs: Properly support UTF8 when handling the
498         SelectionRequest event - this is helpful supporting some window
499         managers, such KDE, that explictly request the text in utf8, as
500         opposed to gnome, that supports ascii.
501         Fixes #489393.
502
503 2009-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
504
505         * ToolStripDropDownItem.cs: When assigning a new
506         ToolStripDropDownMenu, let it know we are its OwnerItem. This way the
507         Capture duties performed by Application/ToolStripManager are handled
508         nicely and we don't end up in an inconsisten stat.
509         Fixes #492815.
510
511 2009-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
512
513         * ToolStrip.cs: Even if we are not exactly a MenuStrip instance, close
514         any ToolStripDropDownItem when receiving a mouse down event in an
515         empty area.
516
517 2009-04-24  Andrés G. Aragoneses  <aaragoneses@novell.com>
518
519         * ToolBarButton.cs: add UIA events for style and dropdownmenu changes.
520
521 2009-04-24  Andrés G. Aragoneses  <aaragoneses@novell.com>
522
523         * ToolBarButton.cs: rename a method to include UIA prefix.
524
525 2009-04-24  Andrés G. Aragoneses  <aaragoneses@novell.com>
526
527         * ToolBarButton.cs: change visibility of some UIA methods from
528         protected virtual to private.
529
530 2009-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
531
532         * ToolStripDropDown.cs: In OnVisibleChanged, if we have an OwnerItem,
533         fire OnDropDownOpened/OnDropDownClosed depending on the new
534         visibility. This also ensures that any direct access to this instance
535         will fire the mentioned events for the OwnerItem.
536         * ToolStripDropDownItem.cs: Remove the invocations to
537         OnDropDownOpened/OnDropDownClosed, since they are handled in
538         ToolStripDropDown, as well as updating the
539         OnDropDownHide/OnDropDownShow calls to be in the right order.
540         Fixes #496193.
541
542 2009-04-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
543
544         * Control.cs, ContextMenuStrip.cs, ToolStripMenuItem.cs: Only process any 
545         shortchut in ToolStripMenuItem.ProcessCmdKey if the control generating the 
546         event is the same as the owner of the menu item. Also set properly 
547         SourceControl for ContextMenuStrip, as well as add an internal field to 
548         contain the control that owns the ContextMenuStrip (we need to know this 
549         even before the public property is assigned).
550         Fixes bits of #393775.
551
552 2009-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
553
554         * StatusStrip.cs: Use the same icon as .net when the mouse is over the
555         size grip.
556         Fixes #492828.
557
558 2009-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
559
560         * ComboBox.cs: When calculating the height of the ComboListBox,
561         specially for the 2.0 profile, use MaxDropDownItems if the
562         DropDownHeight property hasn't been set, and use the later if it has
563         been set. This way we support both properties.
564         Fixes #493308.
565
566 2009-04-14  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
567
568         * ThreadExceptionDialog.cs: Draw the error icon, previously missing.
569         Fixes #474253.
570
571 2009-04-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
572
573         * ContainerControl.cs: Implement support for Control.CausesValidation,
574         by adding a pending list of controls to be validated in the top
575         container control, and postpone validation as needed. 
576         Also remove any control in the validation chain in case it gets removed 
577         from its owner before the pending validation actually happens.
578         Fixes #457170.
579
580 2009-04-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
581
582         * ListBox.cs: The default instance StringFormat field used to draw our
583         items should use the StringFormatFlags.NoWrap value, so it doesn't try
584         to put in a different line the text that doesn't fit our bounds, but
585         show it partially.
586         Fixes #475581.
587
588 2009-04-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
589
590         * CheckedListbox.cs: When executing OnItemClick check that the index
591         is different to -1 before trying to retrieve an item using that value.
592         Fixes a ArgumentOutOfRangeException thrown when the horizontal
593         scrollbar was visible but not needed, and then a clicked was received
594         on its area.
595
596 2009-04-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
597
598         * MaskedTextBox.cs: If Insert is pressed, change the internal
599         overwrite mode for our default value.
600         Fixes some bits of #477395.
601
602 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
603
604         * ListView.cs: In EnsureVisible avoid any direct access to items if we
605         are using virtual mode - otherwise use the bounds stored in a specific
606         item in a given index. This is specially important when using groups
607         or when items are re-arranged, since the position in the items
608         collection can be different than that one being displayed.
609         Fixes the rest of ##491978.
610
611 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
612
613         * ThemeWin32Classic.cs: Include the previous check for ListView in a
614         2.0 define as needed.
615
616 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
617
618         * ThemeWin32Classic.cs: Don't draw ListView's gridlines if we are using groups.
619         Fixes part of #491978.
620
621 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
622
623         * ToolTip.cs: New fields to store the title/icon information.
624         * ThemeWin32Classic.cs: Implement support for tooltip's title and
625         icon.
626         Fixes #491978.
627
628 2009-04-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
629
630         * TabControl.cs: When removing a tab that was previously selected, set
631         internally the value of selected_index to -1, to avoid trying to
632         access the previous one when trying to set the new one (and was
633         already removed from the collection). This is what .net seems to do
634         too.
635         Fixes #490937.
636
637 2009-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
638
639         * XplatUIX11.cs, X11Clipboard.cs: Text and Rtf formats must be
640         separated, and we cannot fallback on Text if Rtf is requested but not
641         present.
642         * Clipboard.cs: Actually use the format specified by our user when
643         putting data.
644
645 2009-03-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
646
647         * X11Clipboard.cs: Actually look for the RtfText format when calling
648         GetRftText in our clipboard formats list, instead of using the
649         generical Text format.
650
651 2009-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
652
653         * TextBox.cs: Process auto completion properly when we are using the
654         internal source provided by ComboBox, and also remove some repeated
655         checks.
656         Fixes #489339.
657
658 2009-03-30 Tom Hindle <tom-hindle@sil.org>
659         
660         * DataGridView added Support for Invisible Columns to 
661         AutoFillColumnsInternal method.
662
663 2009-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
664
665         * X11Structs:
666         * X11Clipboard.cs: Move internal ClipboardStruct from X11Structs to
667         its own file, since it is adding some functionality and thus is not a
668         simple struct as before.
669         * XplatUIX11.cs: Add support to store different formats that could
670         have been specified by the user when puting data in the Clipboard -
671         this is important when more than one format is supported (such plain
672         text and rtf text). Update in the needed places, as well as simplify
673         the code.
674         Fixes #489625.
675
676 2009-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
677
678         * XplatUIX11.cs: When handling the SelectionRequest event, use
679         SelectionRequestEvent instead of SelectionEvent, so we get the right
680         data for the app asking for clipboard data. Set the member of
681         SelectioneEvent.property to indicate the place where we are storing
682         the information as well - this is specially important for gnome/kde
683         apps using the TARGETS atom to ask for the supported permission before
684         actually asking for a specific format.
685         Fixes #489393.
686
687 2009-03-28  Ivan N. Zlatev  <contact@i-nz.net>
688
689         * DataGridViewCell.cs: We don't support drawing all types of cell borders, 
690         so fallback and at least draw something instead of nothing.
691
692 2009-03-27  Ivan N. Zlatev  <contact@i-nz.net>
693
694         * DataGridView.cs: If the column header isn't visible allow resizing 
695         using the cell column border. Also be sure to reset the cursor properly.
696         [Fixes bug #489929]
697
698 2009-03-26   Carlos Alberto Cortez <calberto.cortez@gmail.com>
699
700         * ToolStrip.cs: When disposing, iterate over the items in reverse
701         order, since disposing the items modifies the collection.
702         * ToolStripItem.cs: Remove from the owner when disposing.
703         Fixes #485769.
704
705 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
706
707         * DataGridView.cs: Add an implementation for UpdateRowHeightInfo. No 
708         longer throws a NotImplementedException.
709           Based on a patch by Tom Hindle <tom_hindle@sil.org>
710         [Fixes bug #488319]
711
712 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
713
714         * DataGridView.cs: Implement IsCurrentRowDirty. No longer throws 
715         NotImplementedException.
716
717 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
718
719         * DataGridViewColumn.cs, DataGridViewTextBoxColumn.cs: 
720         Fix SortMode clash handling.
721         [Fixes bug #488263]
722
723 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
724
725         * DataGridView.cs: Do not show the vertical scrollbar if there is only 
726         one row or less. For the sake of MSNET compatibility.
727         [Fixes bug #487988]
728
729 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
730
731         * DataGridView.cs: When the current cell is moved out of the editing row 
732         be sure to reset it back to a place holder row.
733
734 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
735
736         * DataGridView.cs: If IsHandleCreated and the very first row is added 
737         to the grid in a non-databound scenario - select the first cell.
738         [Fixes bug #486881]
739
740 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
741
742         * DataGridView.cs: If we are not databound and empty once the first row 
743         gets added select the first cell.
744         [Fixes bug #486881]
745
746 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
747
748         * DataGridView.cs, DataGridViewColumn.cs: Do not set Row/CellTemplate's
749         DataGridView. They do not belong to a DataGridView.
750         [Fixes bug #486645]
751
752 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
753
754         * DataGridViewCellCollection.cs, DataGridViewColumnCollection.cs: 
755         Set indices and associate with DataGridView only after the item is 
756         add to the internal list.
757         [Fixes part of bug #486645]
758
759 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
760
761         * DataGridView.cs: Do not add any cells to the FullRowTemplate in RowCount. 
762         FullRowTemplate already contains all the cells.
763         [Fixes part of bug #486645]
764
765 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
766
767         * DataGridView.cs, DataGridViewCellCollection.cs: Split the column removal 
768         to perform Pre and Post removal actions to allow the current cell to be 
769         moved and all events fired properly before the column is removed.
770
771 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
772
773         * DataGridView.cs, DataGridViewRow.cs: Split the row removal to perform Pre and 
774         Post removal action to allow the current cell to be moved and all events fired 
775         properly before the row is removed.
776
777 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
778
779         * DataGridView.cs: Fire CellEnter and CellLeave events for the Cell.
780         [Fixes bug #486640]
781
782 2009-03-18  Jonathan Pobst  <monkey@jpobst.com>
783
784         * XplatUICarbon.cs: Commit patch from Alex Shulgin that fixes window
785         placement of popup windows on OSX.
786
787 2009-03-18  Matt Guo  <matt@mattguo.com>
788
789         * FontDialog.cs: Override "ToString" for FontDialog.ColorComboBox.ColorComboBoxItem
790         [Fixes bug #482690]
791
792 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
793
794         * DataGridView.cs: Implement the CellMouseDoubleClick event.
795         [Fixes bug #486262]
796
797 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
798
799         * DataGridView.cs: Fix scrolling to take into account that the 
800         scrollbars are actually inside the client area of the datagridview.
801
802 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
803
804         * DataGridView.cs: Implement mouse wheel scrolling.
805         [Fixes bug #486159]
806
807 2009-03-17  Ivan N. Zlatev  <contact@i-nz.net>
808
809         * DataGridView.cs: When DataSource changes the rebinding should happen 
810         not if IsHandleCreated but if BindingContext != null.
811         [Fixes bug #486013]
812
813 2009-03-17  Ivan N. Zlatev  <contact@i-nz.net>
814
815         * DataGridView.cs: Browsable(false) properties should be skipped when 
816         autogenerating the columns.
817         [Fixes bug #486021]
818
819 2009-03-16  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
820
821         * DomainUpDown.cs: When ReadOnly is true, all the text entered by the
822         user should use a different handling, trying to use every pressed char
823         as a unique and only one prefix to compare against the items. Also,
824         refactor some input check code to avoid duplication.
825         Fixes #458607.
826
827 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
828
829         * DataGridViewCell.cs: In OwningColumng Handle invalid column index 
830         silently.
831         [Fixes bug #485278]
832
833 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
834
835         * DataGridViewBand.cs: Update our State whenever a property changes.
836         * DataGridView.cs: Don't be so generous in reseting Displayed, because 
837         it will spawn lots and lots of unneeded State changed events.
838         [Fixes bug #484989]
839
840 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
841
842         * DataGridView.cs, DataGridViewRow.cs, DataGridViewColumn.cs: 
843         Add support for invisible rows and columns.
844         [Fixes bug #484951]
845
846 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
847
848         * DataGridViewCell.cs: Escape literal { in ToString.
849         * DataGridViewTextBoxCell.cs: Fix ToString.
850         [Fixes bug #484923]
851
852 2009-03-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
853
854         * MenuAPI.cs: When navigating items using the keyboard properly handle
855         the case when no item is selected - this way we should try to select
856         the first or the last item depending on the direction, but no the
857         second or third one, etc.
858
859 2209-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
860
861         * Form.cs: When calling ProcessCmdKey, just after checking for any
862         MainMenu, check if there's an active ContextMenu that is *not* owned
863         by the form - this is needed when a non-focusable control owns a
864         ContextMenu but its ProcessCmdKey method can't be called since it
865         can't receive any input.
866         Fixes #477655.
867
868 2009-03-13  Neville Gao  <nevillegao@gmail.com>
869
870         * ToolBar.cs: Sent ButtonClick events when button style is DropDown.
871         * ContextMenu.cs: Add UIA Framework property UIAVisible to detect if
872         ContextMenu is displayed.
873
874 2009-03-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
875
876         * XplatUIX11.cs: In GetMessage when F1 gets pressed, besides sending a
877         WM_HELP message for the associated window, don't call
878         NativeWindow.WndProc *at all*, since this could send a WM_*
879         key-related to Control.WndProc. Also, return the keypress message, in
880         case it needs to be preprocessed for any menu.
881         Fixes #478476.
882
883 2009-03-08  Ivan N. Zlatev  <contact@i-nz.net>
884
885         * DataGridView.cs: When removing the first displayed row and moving 
886         the current cell up one we must invalidate the first displayed row 
887         index before calculating the row heights, etc.
888         [Fixes bug #483202]
889
890 2009-03-08  Ivan N. Zlatev  <contact@i-nz.net>
891
892         * DataGridView.cs: Fix three column bugs:
893            - Rows should be cleared (but not removed) if columns become 0.
894            - The current cell should get moved
895            - ColumnCount increase was adding too many columns.
896
897 2009-03-07  Ivan N. Zlatev  <contact@i-nz.net>
898
899         * DataGridView.cs: Fix RowCount decrease which wasn't working well 
900         in both scenarions - with and without editing row.
901
902 2009-03-06  Ivan N. Zlatev  <contact@i-nz.net>
903
904         * DataGridView.cs: Be compatible with MS in that the scroll to 
905         selection has a synchronous effect. The trick here is that in 
906         order to avoid unnecessary calculations each time a row/column 
907         is added/removed we recalculate the whole grid size just before 
908         just before the scroll to selection.
909         [Fixes bug #482478]
910
911 2009-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
912
913         * RichTextBox.cs: LoadFile(string path) should pass by default
914         RichTextBoxStreamType.RichText, without caring about the detection or
915         extension of the file.
916
917 2009-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
918
919         * RichTextBox.cs: When calling LoadFile, remove the extra EOL
920         introduced by StreamReader, since it will convert the EOF to an EOL.
921         Fixes #479646.
922
923 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
924
925         * ToolStripDropDownMenu.cs: Use Math.Max instead of calculating
926         preferred size twice.
927
928 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
929
930         * ToolStripMenuItem.cs: Don't draw the dropdown arrow or shortcut
931         string if we aren't on a ToolStripDropDownMenu.
932
933 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
934
935         * ToolStripDropDownButton.cs, ToolStripItem.cs: Refactor some Button
936         code from Item to Button.  Patch from Alex Shulgin.
937
938 2009-03-05  Jonathan Pobst  <monkey@jpobst.com>
939
940         * ToolStripDrowDown.cs: Remove some hardcoded values and assumptions.
941         * ToolStripDropDownButton.cs: This should use a ToolStripDropDownMenu,
942         not a ToolStripDropDown.
943         * ToolStripItem.cs: Don't use the item margins on a ToolStripDropDown.
944
945 2009-03-04  Ivan N. Zlatev  <contact@i-nz.net>
946
947         * DataGridView.cs: Fix RowCount/ColumnCount decreasing.
948
949           Based on a patch by Tom Hindle <tom_hindle@sil.org>
950           [Fixes bug #482133]
951
952 2009-03-04  Ivan N. Zlatev  <contact@i-nz.net>
953
954         * DataGridView.cs, DataGridViewElement.cs: 
955            - Always calls OnDataGridViewChanged() if the new DGV is 
956            not the same/null as the current one.
957            - Do not throw NREs when setting TopLeftHeaderCell to null
958            - Unset the DGV for TopLeftHeaderCell when replacing it
959           Based on a patch by Tom Hindle <tom_hindle@sil.org>
960           [Fixes bug #481681]
961
962 2009-03-04  Jonathan Pobst  <monkey@jpobst.com>
963
964         * ToolStripDropDown.cs: When dismissing control due to ESC, don't
965         hit a NRE if we are a ContextMenuStrip and do not have a parent.
966         [Fixes bug #478616]
967
968 2009-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
969
970         * ListView.cs: When removing items from a ListViewItemCollection
971         contained in ListView (not in ListViewGroup), before actually removing
972         the items remove them also from their -if any- associated groups. If
973         the item is present in ListViewGroup.Items but not in ListView.Items,
974         then don't remove it - this is *exactly* what .net seems to do.
975         Fixes the remaining bits of #478689.
976
977 2009-02-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
978
979         * ListView.cs: In our MouseDown handler in ItemControl use the item in
980         the very specific *real* position where the mouse was pressed, using
981         GetItemAtDisplayIndex for that purpose, instead of directly accessing
982         Items - this is specially useful when groups with Details view is
983         used. This is what we do in other places when using groups.
984         Fixes part of #478689.
985
986 2009-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
987
988         * MaskedTextBox.cs: Properly replace selection when a new valid key
989         is pressed - even when IsOverwriteMode is false. This is what .net
990         does.
991
992 2009-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
993
994         * MaskedTextBox.cs: When setting Text and RejectOnFirstFailure is
995         true, use MaskedTextProvider.Set instead of MaskedTextProvider.Replace, 
996         since Set will keep the previous value in case of error (just what we
997         need), but still call MaskedTextProvider.Clear if
998         RejectOnFirstFailure is false - match .net.
999
1000 2009-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1001
1002         * MaskedTextBox.cs: When setting Text use the very precise algorithm
1003         that .net uses: iterate over every char of the new value, trying to
1004         use every char, and use a normal call to MaskedTextProvider.Replace
1005         call if RejectInputOnFirstFailure is true. Fire OnMaskInputRejected 
1006         in case of error in both cases, as well.
1007         Fixes #477408.
1008
1009 2009-02-25  Neville Gao  <nevillegao@gmail.com>
1010
1011         * ColorDialog.cs: Added UIA Framwork Property:
1012         UIASelectedSmallColorControl.
1013
1014 2009-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1015
1016         * MaskedTextBox.cs: Forgot to update the call of the new method
1017         introduces in the previous patch.
1018
1019 2009-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1020
1021         * MaskedTextBox.cs: Handle OnKeyDown to properly process the Delete
1022         key. Also create a new method to avoid code duplication between
1023         OnKeyDown and OnKeyPress.
1024         Fixes #477388.
1025
1026 2009-02-24  Ivan N. Zlatev  <contact@i-nz.net>
1027
1028         * DataGridViewCell.cs: Invalidate the datagrid when the cell is selected 
1029         or deselected.
1030         [Fixes bug #479124]
1031
1032 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1033
1034         * MaskedTextBox.cs: In OnKeyPress the IsOverwriteMode check is
1035         actually inversed, so put it the right way. Also, don't automatically
1036         look for the next editable item after adding a new one, but way for
1037         the next insertion (this is what .net does) - this is not needed when
1038         MaskedTextProvider.InsertAt is called however, since it already looks for the
1039         next editable position.
1040         Fixes the remaining bits of #477383.
1041
1042 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1043
1044         * MaskedTextBox.cs: In OnKeyPress handle backspace by calling
1045         MaskedTextProvider.RemoveAt method. Also for setting the SelectionStart
1046         property after the text was modified, adjust the testPosition value
1047         depending on what method was called.
1048         Fixes part of #477383.
1049
1050 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1051
1052         * ListView.cs: For EnsureVisible, adjust the view port bounds based on
1053         the existence of the column headers, as well as using this information
1054         to adjust the vscrollbar value, so items never get hidden by the
1055         column headers.
1056         Fixes #478498.
1057
1058 2009-02-23  Ivan N. Zlatev  <contact@i-nz.net>
1059
1060         * DataGridView.cs: Make the ScrollBars property work properly.
1061
1062 2009-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1063
1064         * TextBox.cs: Some code lifting for AutoComplete's support. First,
1065         when handling non-navigation keys, save the original Text typed by the
1066         user, and don't motify it BEFORE. This was a design mistake, since the
1067         re-assignation happens only when navigating the append/suggest list,
1068         not while creating the matches. Also, process the Delete key just like 
1069         the backspace one. Finally, when handling WM_CHAR, ignore both Escape
1070         and Enter keys.
1071         Fixes some missing bits of #469967.
1072
1073 2009-02-22  Ivan N. Zlatev  <contact@i-nz.net>
1074
1075         * DataGridView.cs: Fix row removal in the data-bound scenario.
1076
1077 2009-02-19  Ivan N. Zlatev  <contact@i-nz.net>
1078
1079         * DataGridViewCell.cs: Use strict equality comparison in order to 
1080         prevent superfluous CellValueChanged events.
1081
1082 2009-02-19  Ivan N. Zlatev  <contact@i-nz.net>
1083
1084         * DataGridView.cs: Do not reset the columns when the data list changes, 
1085         but only the rows. Fixes multiple bugs related to sorting, custom 
1086         column styles being reset and more.
1087
1088 2009-02-19  Jonathan Pobst  <monkey@jpobst.com>
1089
1090         * ThemeWin32Classic.cs: Respect a PictureBox's Padding when
1091         drawing the image.
1092
1093 2009-02-18  Andrés G. Aragoneses  <aaragoneses@novell.com>
1094
1095         * ToolBarButton.cs: Oops, use the correct event (fix r127298).
1096
1097 2009-02-17  Andrés G. Aragoneses  <aaragoneses@novell.com>
1098
1099         * ToolBarButton.cs: Event for Enabled property (needed to fix
1100           UIA #474197).
1101
1102 2009-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1103
1104         * TextBox.cs: When handling WndProc with autocomplete activated,
1105         event if the new text is not causing any change in the look up
1106         algorithm, save it as we normally do when numbers and letters.
1107         Fixes #469967.
1108
1109 2009-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1110
1111         * TreeNode.cs: When Text/StateImageIndex/StateImageKey/NodeFont change
1112         Invalidate the proper bounds in the TreeView, not only resetting the
1113         width.
1114         Fixes #475542.
1115
1116 2009-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1117
1118         * TreeNode.cs: Don't return TreeView.BackColor when retrieving our own
1119         BackColor property. This is what .net does in both 1.1 and 2.0.
1120         * TreeView.cs: When selected_node is not the same as highlighted_node,
1121         we need to handle the back color in a different way, trying to use the
1122         node's BackColor if it's not Color.Empty.
1123         Fixes #464200.
1124
1125 2009-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1126
1127         * TreeView.cs: When canceling selection in our MouseUp handler,
1128         invalidate also the previous selected node bounds.
1129         Fixes #464191.
1130
1131 2009-02-07  Ivan N. Zlatev  <contact@i-nz.net>
1132
1133         * DataGridView.cs: End or if end fails then cancel the current edit 
1134         operation before clearing the data source.
1135
1136 2009-02-07  Ivan N. Zlatev  <contact@i-nz.net>
1137
1138         * DataGridView.cs: Data-bind only after the handle is created.
1139         [Fixes bug #473680]
1140
1141 2009-02-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1142
1143         * TreeView.cs: When handling the MouseMove event, check if
1144         focused_node and selected_node fields are null - usually they are non
1145         null, since we have always a selected node, but canceling selection by
1146         handling BeforeSelect event leaves the two of them as null.
1147         Fixes #470451.
1148
1149 2009-02-06  Neville Gao  <nevillegao@gmail.com>
1150
1151         * TabControl.cs: Control enabled to support accessibility.
1152         [Fixes Bug #472428]
1153
1154 2009-02-05  Ivan N. Zlatev  <contact@i-nz.net>
1155
1156         * DataGridViewRowCollection.cs, DataGridView.cs: Fix row insertation: 
1157            - Use ArrayList.Insert instead of the Item property so that the item 
1158            is actually inserted and not an existing item replaced.
1159            - Call DataGridView.OnRowsAddedInternal and drop internal from 
1160            OnRowsAdded for binary compitability. This also fixes several 
1161            redrawing issues.
1162         [Fixes bug #472968]
1163
1164 2009-02-05  Andrés G. Aragoneses  <aaragoneses@novell.com>
1165
1166         * ToolBarButton.cs: Doh, fire OnUIATextChanged *after* setting
1167           the value.
1168
1169 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
1170
1171         * ToolBarButton.cs: Add another event (OnUIATextChanged).
1172
1173 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
1174
1175         * ToolBarButton: Fix typo in previous commit (r125704).
1176
1177 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
1178
1179         * ToolBar.cs, ToolBarButton.cs: Add new UIA events to know
1180         when a button gets focus, firing the events from the ToolBar.
1181         r: jpobst
1182
1183 2009-02-04  Mario Carrion  <mcarrion@novell.com>
1184
1185         * ColumnHeader.cs: Raising ListView.ColumnWidthChanged when setting 
1186         Width.
1187         * ListView.cs: Internal method added: RaiseColumnWidthChanged, used by
1188         ColumnHeader to raise ColumnWidthChanged.
1189         [Fixes Bug #467086]
1190
1191 2009-02-03  Ivan N. Zlatev  <contact@i-nz.net>
1192
1193         * DataGridViewRowCollection.cs, DataGridView.cs: Move row completion 
1194         code in the row collection code, so that the completion happens before 
1195         the CollectionChanged event, also better encapsulation.
1196         [Fixes bug #471987]
1197
1198 2009-02-02  Ivan N. Zlatev  <contact@i-nz.net>
1199
1200         * DataGridView.cs: When editing is finished do not remove the editing 
1201         row, because it has already become a real one. Instead add a new one.
1202         [Fixes bug #471754]
1203
1204 2009-02-02  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1205
1206         * TreeView.cs: When drawing the node's image, check that the index
1207         specified by the node is valid for the ImageList.
1208         Fixes #471094.
1209
1210 2009-02-02  Andrés G. Aragoneses  <aaragoneses@novell.com>
1211
1212         * ToolBar.cs: Add new UIAPerformClick method to be called by
1213         UIAutomationWinforms when someone calls Invoke() on the
1214         ToolBarButtonProvider. r: jpobst
1215
1216 2009-02-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1217
1218         * XplatUIX11.cs: Don't send a WM_SHOWWINDOW message when receiving
1219         MapNotify/UnmapNotify events - we are already firing those events in
1220         the proper places, so we avoid this way to send the same message two
1221         times. I'm leaving the handling code in case we could break something
1222         in the future, as this change seems dangerous (but needed).
1223         Fixes #467546.
1224
1225 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
1226
1227         * DataGridView.cs: Complete incomplete rows when they are added to 
1228         the grid.
1229         [Fixes bug #471068]
1230
1231 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
1232
1233         * DataGridView.cs, DataGridViewColumnCollection.cs: Ensure that the 
1234         binding is cleared prior to setting it to null. Fixes a regression 
1235         causing exceptions when the DataSource is set to null and then set 
1236         again to a data source.
1237
1238 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
1239
1240         * DataGridView.cs, DataGridViewImageColumn.cs, DataGridViewCell.cs: 
1241            - Make Image/Bitmap cells work.
1242            - Handle images with size greater than the cell.
1243            - Default to MiddleCenter alignment for image cells.
1244         [Fixes bug #471101]
1245
1246 2009-01-30  Ivan N. Zlatev  <contact@i-nz.net>
1247
1248         * UpDownBase.cs: Force Height to PreferredHeight.
1249
1250 2009-01-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1251
1252         * XplatUIX11.cs: We should use utf8 handling clipboard transference
1253         with other x11 applications, and use utf16 when handling clipboard
1254         data in the class library. Update the related points as well.
1255         Fixes #468683.
1256
1257 2009-01-28  Ivan N. Zlatev  <contact@i-nz.net>
1258
1259         * DataGridViewCell.cs: Format strings according to the supplied 
1260         CellStyle.Format.
1261         [Fixes bug #470384]
1262
1263 2009-01-28  Ivan N. Zlatev  <contact@i-nz.net>
1264
1265         * DataGridView.cs: Reset the hover cell if it gets moved due to row(s) 
1266         addition or removal. Fixes multiple crashes in OnMouseMove.
1267
1268 2009-01-27  Ivan N. Zlatev  <contact@i-nz.net>
1269
1270         * DataGridView.cs: Fix a NRE when setting the CurrentCell to null.
1271
1272 2009-01-27  Ivan N. Zlatev  <contact@i-nz.net>
1273
1274         * XplatUIX11.cs: Fire Timer.Tick even if there is no MainForm for the 
1275         current context.
1276         [Fixes bug #469239]
1277
1278 2009-01-26  Andreia Gaita  <avidigal@novell.com>
1279
1280         * WebBrowser.cs: fix initial value of ScrollbarsEnabled, so they
1281         won't be disabled by default.
1282         Fixes #468690
1283
1284 2009-01-26  Ivan N. Zlatev  <contact@i-nz.net>
1285
1286         * DataGridView.cs: Do not clear the rows if we are not databound.
1287
1288 2009-01-26  Ivan N. Zlatev  <contact@i-nz.net>
1289
1290         * DataGridView.cs: Do not be too smart about selecting the first cell 
1291         when the first row is added as this is not what MS does. Fixes the 
1292         failing unit tests.
1293
1294 2009-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1295
1296         * TreeNode.cs: NextVisibleNode and PrevVisibleNode properties don't
1297         take into account the fact that OpenTreeNodeEnumerator needs to call
1298         MoveNext/MovePrevious to actually put the passed node as the one
1299         retrieved in Current. This way this property should work as really
1300         expected in .net.
1301         Fixes part of #467225.
1302
1303 2000-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1304
1305         * TreeView.cs: When calculating the scrollbars, don't use
1306         TreeNode.Bounds, since it still can have the values of the previous
1307         -and now invalid- layout -which depends on TreeView.skipped_nodes, and
1308         could not have been updated as well-, and use the actual number of
1309         visible number of nodes to compute the height needed to contain all
1310         the nodes. Also reset the value of vbar to 0 when disabled - this way
1311         we make sure that, when re-enabled, it will update the visible area of
1312         the treeview, even if the previous value before disabling it is the
1313         same as now. Finally don't do anything for the vbar.ValueChanged
1314         handler - for the case wheer we manually set the value but don't the
1315         vbar is disabled already.
1316         Fixes part of #467225.
1317
1318 2009-01-23  Jonathan Pobst  <monkey@jpobst.com>
1319
1320         * ToolStrip.cs: Switch from foreach to for, in case the collection
1321         somehow changes while enumerating it.
1322
1323 2009-01-23  Ivan N. Zlatev  <contact@i-nz.net>
1324
1325         * DataGridView.cs, DataGridViewCell.cs: Fix crashes when there is no 
1326         editing control.
1327
1328 2009-01-23  Ivan N. Zlatev  <contact@i-nz.net>
1329
1330         * DataGridView.cs: Fix new row adding/editing in the non-databound 
1331         scenario.
1332
1333 2009-01-21  Mike Gorse  <mgorse@novell.com>
1334
1335         * TrackBar.cs: Make LargeIncrement/Decrement internal so that UIA can
1336           use them.
1337           Added UIAValueParamChangedEvent.
1338
1339 2009-01-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1340
1341         * TreeView.cs: In CollapseAll, set vbar to the maximum value, instead
1342         of trying to set as top node the highest parent of the previous top
1343         node. Moving to the bottom of the TreeView after a call to CollapseAll
1344         is exactly what .net does. This should avoid some nasty issue when
1345         CollapseAll is called and we don't need the vertical scroll bar.
1346
1347 2009-01-21  Mario Carrion <mcarrion@novell.com>
1348
1349         * Form.cs: UIA Support: Internal events added: UIAWindowStateChanged
1350         and UIATopMostChanged.
1351
1352 2009-01-21  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1353
1354         * MenuItem.cs: Add UIACheckChanged, UIARadioCheckChanged,
1355         UIAEnabledChanged, and UIATextChanged events.
1356
1357         * Form.cs: Add UIAMenuChanged event.
1358
1359         * Menu.cs:
1360         * MenuAPI.cs: Note which internal APIs are being used by UIA.
1361
1362 2009-01-21  Neville Gao  <nevillegao@gmail.com>
1363
1364         * ToolBar.cs: Control enabled to support accessibility.
1365         [Fixes Bug #455950]
1366
1367 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1368
1369         * TreeView.cs: When handling mouse up event, check whether
1370         highlighted_node is null or not - usually it should be non-null
1371         alwaays, since the mouse down handler sets it, but some externa
1372         operations, such TreeNodeCollection.Clear, could set it to null.
1373         Fixes #438650.
1374
1375 2009-01-19  Ivan N. Zlatev  <contact@i-nz.net>
1376
1377         * ThemeWin32Classic.cs: Draw the menu item shortcut even if the menu 
1378         item is disabled.
1379
1380 2009-01-19  Ivan N. Zlatev  <contact@i-nz.net>
1381
1382         * MenuAPI.cs: Do not handle shortcuts if the menu item is disabled.
1383         [Fixes bug #467285]
1384
1385 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1386
1387         * MonthCalendar.cs: When handling the selection changes using the
1388         mouse, don't set SelectionRange if the selection range didn't actually
1389         change. This matters because, even if we set the range to the same
1390         previous range, an extra DateChanged event is fired. Just to be clear:
1391         SelectionRage property doesn't check whether the new value is
1392         different to the previous one (by ref equals doesn't work here).
1393         Fixes other bits of #364914.
1394
1395 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1396
1397         * MonthCalendar.cs: Remove the extra OnDateChanged call when handling
1398         selection using the keyboard, since we are already firing this event
1399         when setting SelectionRange. Also don't set SelectionRange if the
1400         previous and the new value are the same (the property, just as .net
1401         does, doesn't check whether the previous value and the new one are the
1402         same). This saves us from firing OnDateChanged event if the selection
1403         range didn't change actually.
1404         Fixes the remaining bits of #364914.
1405
1406 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1407
1408         * ListBox.cs: When removing an item and the last item is selected,
1409         remove it from the selection, and if selection mode is One try to
1410         select the new last item.
1411         Fixes #465422.
1412
1413 2009-01-16  Mike Gorse  <mgorse@novell.com>
1414
1415         * Splitter.cs: Make MaxSize internal so that UIA code can use it.
1416
1417 2009-01-16  Mario Carrion <mcarrion@novell.com>
1418
1419         * ColumnHeader.cs: UIA Support: raising internal event UIATextChanged 
1420         when changing Text. 
1421
1422 2009-01-16  Carlos Alberto Cortez <calberto.cortez@ggmail.com>
1423
1424         * X11Structs.cs:
1425         * XplatUIX11.cs: Properly encode/decode the unicode strings we
1426         store/retrieve in the Clipboard. Also, since we try to convert the
1427         data to different formats, separate the source and the result of
1428         it, so we can always fallback to the original and don't mix wrong
1429         conversions.
1430
1431 2009-01-16  Mike Gorse  <mgorse@novell.com>
1432
1433         * TextControl.cs: Add UIASelectionChanged event.
1434
1435 2009-01-16  Ivan N. Zlatev  <contact@i-nz.net>
1436
1437         * DataGridView.cs: Forward the first key events to the editing control.
1438         [Fixes bug #457307]
1439
1440 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
1441
1442         * Application.cs: Oops, launch the copied handler of PreRun instead of
1443         the global one (gendarme would bark otherwise). (Improving r123375)
1444
1445 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
1446
1447         * XplatUI.cs:
1448         * Application.cs: Move the PreRun event fire to the end of the XplatUI
1449         static ctor (we don't move the PreRun event to this class because its
1450         usage would cause the call to the static ctor). This way we can get
1451         a11y support for dialogs that run without App.Run.
1452
1453 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
1454
1455         * ListView.cs: New internal property to know the inner array's length of
1456         the location of items, in order to avoid a try-catch strategy for the
1457         case when this array has not been resized yet (for reference, look at
1458         r123288). r: jpobst
1459
1460 2009-01-13  Andrés G. Aragoneses  <aaragoneses@novell.com>
1461
1462         * Application.cs: Simplify UIA initialization, reducing it from 4 to 1
1463         reflection calls. This requires UIAutomationWinforms r123213.
1464
1465 2009-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1466
1467         * MonthCalendar.cs: Detect selection changes in MouseDown/MouseMove
1468         handlers and fire the DateSelected event until MouseUp is reached,
1469         like .net does, instead of firing it for each mouse event.
1470         Fixes part of #364914.
1471
1472 2009-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1473
1474         * TreeView.cs: When the selection gets canceled using the BeforeSelect
1475         event, invalidate the previous highlighted_node bounds, to show the
1476         user that the item was *not* selected.
1477         Fixes #464191.
1478
1479 2009-01-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1480
1481         * ComboBox.cs: Separate some scroll logic: setting SelectedIndex, as
1482         well as -in DropDown and Simple modes- writing in the textbox should
1483         try to set the requested item as the top one, but navigating with the
1484         keyboard and handling mouse selection don't need that behaviour. Also,
1485         when resetting selected_index handling key press events, reset
1486         ComboListBox.HighlightIndex. 
1487         Fixes the remaining bits of #464188.
1488
1489 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1490
1491         * DataGridView.cs: Fix crashes when shortcut keys are pressed, but 
1492         there are no cells:
1493            - CurrentCellAddress should be -1, -1 and not 0, 0.
1494            - Be tolerant and fall back to clearing the current cell if either 
1495            column or row is -1 in MoveCurrentCell.
1496            - Misc. more -1 checks.
1497
1498 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1499
1500         * DataGridView.cs: Preserve the column index. Fixes a regression 
1501         introduced by the data binding position tracking code.
1502
1503 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1504
1505         * DataGridView.cs: If the bottom of the row matches the client height 
1506         do not regard the row as partially visible. Fixes the weird scrolling 
1507         when there is no scrollbar.
1508
1509 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1510
1511         * DataGridViewComboBoxCell.cs: Implement/Fix the data binding.
1512
1513 2009-01-09  Mario Carrion  <mcarrion@novell.com>
1514
1515         * MessageBox.cs: Fixed internal UIAIconRectangle property.
1516
1517 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1518
1519         * DataGridViewCheckBoxCell.cs: Respect the ReadOnly state of the Cell.
1520
1521 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1522
1523         * DataGridView.cs: Track the Position in the CurrencyManager.
1524
1525 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1526
1527         * DataGridView.cs: Implement data-bound new item editing/addition.
1528         * DataGridViewRowCollection.cs: Make it possible for us to internally 
1529         remove the edit row.
1530         [Fixes bugs #457107, #457308, #325240]
1531
1532 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1533
1534         * CurrencyManager.cs: Even if Position is set to a greater value than the 
1535         list count reset it to position of the last item.
1536
1537 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1538
1539         * BindingSource.cs: AddNew doesn't set index/add_pending for IBindingList. 
1540         Fix that in order to make CancelNew to work.
1541
1542 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1543
1544         * BindingSource.cs: When adding a new item try to delegate to the internal 
1545         list first before throwing an exception.
1546
1547 2009-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1548
1549         * ComboBox.cs: When setting the text and adjusting the top_item, do it
1550         *only* if the current item is *not* visible already.
1551         Fixes part of #464188.
1552
1553 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1554
1555         * DataGridView.cs: Requesting the CurrencyManager for the first time can 
1556         lead to unexpected OnBindingContextChanged calls and recursive rebinding. 
1557         Fix that.
1558         [Fixes bug #464493]
1559
1560 2009-01-08  Brad Taylor  <brad@getcoded.net>
1561
1562         * ComboBox.cs: Expose a few private fields as internal UIA properties.
1563
1564 2009-01-07  Mario Carrion <mcarrion@novell.com>
1565         
1566         * DataGrid.cs: CWL removed.
1567
1568 2009-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1569
1570         * RadioButton.cs: When setting Checked, we should first update the
1571         check state of the current RadioButton, as well as invalidating it,
1572         and after that actually update the siblings. This is done to match
1573         .net.
1574         Fixes the remaining bits of #463028.
1575
1576 2009-01-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1577
1578         * RadioButton.cs: Setting Checked to false should set TabStop to stop
1579         as well. Also, when we get the focus and no other RadioButton is
1580         selected in the parent control, we should mark ourselves as Checked.
1581         Fixes part of #463028.
1582
1583 2009-01-05  Mario Carrion <mcarrion@novell.com>
1584
1585         * DataGrid.cs: UIA suppport. internal events: 
1586         UIAGridCellChanged, UIAColumnsHeadersVisibleChanged, 
1587         UIASelectionChanged, UIACollectionChanged. Internal properties: 
1588         UIARowHeight, UIACellsArea, UIACaptionArea, 
1589         UIAColumnHeadersArea, UIASelectedRows, UIACurrentTableStyle, 
1590         UIAVScrollBar and UIAHScrollBar.
1591
1592 2009-01-05  Jonathan Pobst  <monkey@jpobst.com>
1593
1594         * ToolStripSplitStackLayout.cs: Enable the overflow button if any
1595         of the buttons are set to Overflow = Always.
1596         [Fixes bug #463013]
1597
1598 2009-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1599
1600         * BindingNavigator.cs: Properly enable/disable the toolstrip buttons,
1601         based on whether the binding source is availble or not. Fixes #463008.
1602
1603 2009-01-03  Ivan N. Zlatev  <contact@i-nz.net>
1604
1605         * DataGridViewCell.cs: We should return a value even if we are not bound 
1606         to a DataGridView.
1607
1608 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1609
1610         * CurrencyManager.cs, DataGrid.cs: 
1611            - Rename CanAddRows to AllowNew. The CurrencyManager has no 
1612            concept of "rows".
1613            - Add two more internal properties AllowRemove and AllowEdit.
1614         * DataGridView.cs: Refactor in a data-bound situation AllowUserToAddRows, 
1615         AllowUserToDeleteRows and cell ReadOnly state to be also checked against the 
1616         CurrencyManager data source.
1617
1618 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1619
1620         * DataGridView.cs: Fix crashes caused by assigning negative values to 
1621         ScrollBar.LargeIncrement when the ClientSize.Width/Height is less than 
1622         the column/row heights/widths.
1623         [Fixes bug #462684]
1624
1625 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1626
1627         * DataGridView.cs: Non-autogenerated columns that have a data property 
1628         set that exists in the current datasource should be set to be data-bound.
1629
1630 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1631
1632         * DataGridView.cs: Fix column sorting for columns containing null 
1633         values. A "null" value is not always "null" (e.g could be String.Empty) 
1634         and thus parsing numeric types throwed an exception for "null" values.
1635
1636 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1637
1638         * DataGridView.cs: Detach the editing control when the edit is 
1639         finished.
1640
1641 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1642
1643         * DataGridView.cs: Multiple fixes to handle last column/row removal 
1644         and cell movement after that instead of throwing exceptions.
1645
1646 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1647
1648         * DataGridViewCellCollection.cs: When cells are removed the column 
1649         indices become invalid if the cell is not the last one and have to 
1650         be refreshed.
1651
1652 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1653
1654         * DataGridView.cs: Return false in CommitEdit if there was an error.
1655
1656 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1657
1658         * DataGridView.cs: Remove a leftover Console.WriteLine.
1659
1660 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1661
1662         * DataGridViewRow.cs: Access the indexer of the data manager directly 
1663         instead of the internal list.
1664
1665 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1666
1667         * DataGridViewCell.cs, DataGridView.cs, DataGridViewCheckBoxCell.cs: 
1668         Rewrite the value getting, setting, parsing, formatting logic:
1669            - If data-bound value get/set should actually get and set from the 
1670              data source.
1671            - Make proper usage of TypeConverters for value parsing/formatting.
1672            - Raise DataError if setting the new value fails.
1673            - Get rid off the internal valueType field and get/set the ValueType 
1674            property instead.
1675         [Fixes bug #462051]
1676
1677 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1678
1679         * DataGridView.cs: Rewrite the DataBinding layer:
1680            - Get rid off all BindingSource/IBindingList/DataSet/DataTable 
1681            specific code.
1682            - Get rid off the per DataSource type column autogeneration code.
1683            - Use the CurrencyManager for everything that is DataBinding related.
1684
1685 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1686
1687         * CurrencyManager.cs: Do not fire duplicate ListChanged events.
1688
1689 2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>
1690
1691         * DataGridView.cs, DataGridViewRow.cs: Add a new internal property 
1692         DataManager to fetch the CurrencyManager for the DataGridView and to 
1693         spare this logic for the other components to follow.
1694
1695 2008-12-31  Mario Carrion  <mcarrion@novell.com>
1696
1697         * MessageBox.cs: UIA support: new properties: UIAMessage, 
1698         UIAMessageRectangle and UIAIconRectangle.
1699
1700 2008-12-31  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1701
1702         * FileDialog.cs: Add PopupButtonPanel.PopupButton.PerformClick method
1703         and DirComboBox.DirComboBoxItem.ToString override for UIA support.
1704
1705 2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>
1706
1707         * DataGridView.cs: Do not autogenerate duplicate column for a 
1708         data member that has already problematically been assigned one.
1709         [Fixes bug #457305]
1710
1711 2008-12-30  Jonathan Pobst  <monkey@jpobst.com>
1712
1713         * ProfessionalColorTable.cs: Better detection of user's theme.
1714         [Fixes bug #462766]
1715
1716 2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>
1717
1718         * DataGridView.cs: In the case where there are no autogenerated 
1719         columns and the user adds columns problematically we must generate 
1720         the rows after the very first column is added.
1721
1722 2008-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1723
1724         * DateTimePicker.cs: When increasing/decreasing the value of month
1725         with ShowUpDown set to true, moving from december to january, and
1726         moving from january to december should adjust the year to the next and
1727         the previous year, respectively.
1728         Fixes the remaining bits of #459674.
1729
1730 2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>
1731
1732         * DataGridView.cs: If a new cell is selected edit mode should be 
1733         immediately enabled only if EditOnEnter is set. Whether the mouse 
1734         or not was used to select the cell is irrelevant.
1735
1736 2008-12-29  Ivan N. Zlatev  <contact@i-nz.net>
1737
1738         * DataGridView.cs: Remove a bogus ReBind call, which was causing 
1739         recursive rebinding.
1740
1741 2008-12-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1742
1743         * DateTimePicker.cs: Handle the "MMMM" month format.
1744         Fixes #459674.
1745
1746 2008-12-23  Ivan N. Zlatev  <contact@i-nz.net>
1747
1748         * DataGridView.cs: 
1749            - Make ReBind private and refactor various calls to call ReBind 
1750            instead of ClearBinding/DoBinding
1751            - Rebind when the column collection changes
1752         * DataGridViewColumnCollection.cs: 
1753            - Leave the rebinding on change to be handled by the DataGridView.
1754
1755 2008-12-23  Jonathan Pobst  <monkey@jpobst.com>
1756
1757         * DataGridView.cs: Add a ReBind convenience method.
1758         * DataGridViewColumnCollection.cs: Rebind when a column is added.
1759         [Fixes bug #462019]
1760
1761 2008-12-23  Neville Gao  <nevillegao@gmail.com>
1762
1763         * StatusBar.cs: Modified argument variable.
1764         * SplitContainer.cs: Control enabled to support accessibility.
1765         [Fixes Bug #455950]
1766
1767 2008-12-22  Jonathan Pobst  <monkey@jpobst.com>
1768
1769         * ToolStripMenuItem.cs: Guard against an NRE.
1770         [Fixes bug #457110]
1771
1772 2008-12-22  Mario Carrion  <mcarrion@novell.com>
1773
1774         * Control.cs: AccessibleXXXX properties don't return 
1775         AccessibleObject.XXXX, instead a local referece is returned.
1776
1777 2008-12-22  Neville Gao  <nevillegao@gmail.com>
1778
1779         * PrintPreviewControl.cs: Added internal properties to support
1780         accessibility.
1781         [Fixes Bug #459699]
1782
1783 2008-12-19  Mario Carrion  <mcarrion@novell.com>
1784
1785         * Control.cs: Reverted r121561. 
1786
1787 2008-12-19  Andrés G. Aragoneses  <aaragoneses@novell.com>
1788
1789         * X11DesktopColors.cs: Since r121873 we don't need gtk a11y checks here,
1790         it has been moved to the bridge.
1791
1792 2008-12-18  Brad Taylor  <brad@getcoded.net>
1793
1794         * DateTimePicker.cs: Add a few UIA specific events, and a couple
1795         internal methods useful for UIA.
1796
1797 2008-12-18  Mario Carrion <mcarrion@novell.com>
1798
1799         * ListBox.cs: Fixed GetItemRectangle when MultiColumn is true.
1800         [Fixes Bug #455752]
1801
1802 2008-12-17  Mike Gorse  <mgorse@novell.com>
1803
1804         * ListView.cs, ListViewItem.cs: Send OnUIAFocusedItemChanged if an
1805           item's Focused property is set.
1806
1807 2008-12-17  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1808
1809         * TreeView.cs:
1810         * TreeNode.cs:
1811         * TreeNodeCollection.cs: Add events for UIA support:
1812         UIACheckBoxesChanged, UIALabelEditChanged, UIANodeTextChanged, and
1813         UIACollectionChanged.
1814
1815 2008-12-17  Bill Holmes  <billholmes54@gmail.com>
1816
1817         * ListViewItem.cs (ListViewSubItem.ctor): Initalizing the 
1818           SubItemStyle member field. 
1819
1820         Contributed under MIT/X11 license.
1821
1822 2008-12-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1823
1824         * ListBox.cs: In MultiColumn mode don't use top_index to calculate the
1825         y coord, since it's useless in this case, and we need to rely only on
1826         the number of rows and ItemHeight to compute this value.
1827         Fixes part of #257471.
1828
1829 2008-12-15  Mike Gorse  <mgorse@novell.com>
1830
1831         * StatusBar.cs: Send OnUIACollectionChanged in Remove().
1832
1833 2008-12-15  Mario Carrion  <mcarrion@novell.com>
1834
1835         * Control.cs: Accessibility properties instantiate AccessibilityObject when
1836         needed.
1837         [Fixes Bug #459223]
1838
1839 2008-12-15  Brad Taylor  <brad@getcoded.net>
1840
1841         * ToolStripItem.cs: Add a UIA specific event for listening for when a
1842         ToolStripItem becomes selected or deselected.
1843
1844 2008-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1845
1846         * MonthCalendar.cs: Select the date in MouseDown, not in MouseUp, as
1847         .net does. Use the date in the point of the mouse move coords as the
1848         new range as well, if the left button of the mouse is being pressed.
1849         Fixes #364914.
1850
1851 2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1852
1853         * MonthCalendar.cs: When modifying either AnnuallyBoldedDates,
1854         MonthlyBoldedDates or BoldedDates call UpdateBoldedDates, to
1855         effectively repaint the control.
1856         Fixes the remaining bits of #417961.
1857
1858 2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1859
1860         * MonthCalendar.cs: When setting MaxDate/MinDate, adjust the selected
1861         range to contain only dates within the new possible range.
1862         Fixes part of #417961.
1863
1864 2008-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1865
1866         * MaskedTextBox.cs: MaskedTextService.Replace doesn't expect the
1867         length of the text, but the end position, so we need to substract 1 to
1868         have a valid value. Also, in the same InputText method, don't use
1869         SelectionLength as the length of the text, since the selected text
1870         could actually be empty, but we need to set the value anyway.
1871         Fixes #457370.
1872
1873 2008-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1874
1875         * TextBox.cs: Don't do any auto complete task if the custom source is
1876         null or empty. Also avoid duplication of code.
1877         Fixes #457743.
1878
1879 2008-12-09  Ivan N. Zlatev  <contact@i-nz.net>
1880
1881         * DataGridView.cs: Refresh column sizes when new rows are added.
1882         [Fixes bug #457050]
1883
1884 2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1885         * RichTextBox.cs: When parsing the contents of a rtf file, don't call
1886         Split to create a line - we are already doing this, by _adding_ a new
1887         one when rtf_cursor_x is 0 (this field gets this value just after we
1888         receive the newline param as true). This avoids having a proportional number
1889         of empty lines in the end of the rich text box.
1890         Fixes #396664.
1891
1892 2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1893
1894         * RichTextBox.cs: When saving the contents as a plain text, don't add
1895         a new line for every Line structure, since the data in Document
1896         already contains the new line characters. This avoids duplicated new
1897         lines using the Save methods.
1898         Fixes #445618.
1899
1900 2008-12-09  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1901
1902         * TreeView.cs: Expose ScrollBars as internal properties, for use by UIA
1903         framework.  Fixes bug #457678.
1904
1905 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1906
1907         * DataGridViewRow.cs: Prevent an exception on a not yet databound grid, 
1908         where datasource is null.
1909         [Fixes exception reported in bug 441240]
1910
1911 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1912
1913         * DataGridView.cs: EndEdit validation fixes.
1914
1915 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1916
1917         * DataGridView.cs: This is the cool patch that adds support for 
1918         actually updating the data in the databinding backend after editing. 
1919         With bonus firing and handling the DataError event.
1920
1921 2008-12-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1922
1923         * Line.cs: When calculating the text tags's Shift value, store it as
1924         pixels instead of points. This way we can actually handle different
1925         fonts in the same RichTextBox, as well as the right size of the caret.
1926         Fixes part of #351938.
1927
1928 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1929
1930         * DataGridViewCheckBoxCell.cs: Fix to make it work. Wrong value was 
1931         casted to CheckState causing InvalidCastExceptions.
1932
1933 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1934
1935         * DataGridView.cs: Fix the DataGridViewEditMode.EditOnEnter behavior 
1936         to not depend on the item being clicked.
1937
1938 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1939
1940         * DataGridView.cs: Implement NotifyCurrentCellDirty, so that it no 
1941         longer throws a NotImplementedException.
1942
1943 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1944
1945         * DataGridView.cs: Set EditingControlFormattedValue when preparing an 
1946         IDataGridViewEditingControl for editing.
1947
1948 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1949
1950         * DataGridViewComboBoxCell.cs: Implement data binding support.
1951
1952 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1953
1954         * DataGridView.cs: Use the CurrencyManager to update the data source 
1955         binding position instead of casting the data sourcde to BindingSource.
1956         This enables position updating for other type of data sources.
1957
1958 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1959
1960         * ComboBox.cs: Update the SelectedIndex before updating the Text 
1961         in OnDisplayMemberChanged.
1962
1963 2008-12-07  Ivan N. Zlatev  <contact@i-nz.net>
1964
1965         * DataGridView.cs: Fix our support for IDataGridViewEditingControl.
1966         [Fixes bug #457112]
1967
1968 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1969
1970         * DataGridView.cs: Sorting fixes:
1971            - Be strict when sorting is enabled.
1972            - If there is a data source delegate the sorting request.
1973
1974 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1975
1976         * Binding.cs: When converting the data also try with the destination 
1977         type typeconverter. This indirectly adds support for Nullable types 
1978         in our databinding layer.
1979
1980 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1981
1982         * DataGridView.cs: When cell editing is finished focus back the 
1983         DataGridView. Fixes keyboard navigation post-editing.
1984
1985 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1986
1987         * DataGridView.cs: Fix the cell editing by delaying the currentCell 
1988         setting to after EndEdit is called for the old cell.
1989
1990 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1991
1992         * BindingSource.cs: Reset the bindings. Fixes a NotWorking test.
1993
1994 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1995
1996         * XplatUIX11.cs: Send WM_HELP only to the focused window.
1997
1998 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1999
2000         * CurrencyManager.cs: Fix exceptions when resetting the data source 
2001         for the same time (e.g. in ComboBox): 
2002            - Do not set the list position if we are still transferring data
2003            - When resetting the list firstly push the data then update the 
2004            binding.
2005         * Binding.cs: Check BindingManager.Position == -1 instead of 
2006         BindingManager.Current == null in order to avoid unexpected 
2007         exceptions.
2008
2009 2008-12-05  Brad Taylor  <brad@getcoded.net>
2010
2011         * MonthCalendar.cs: Add UIA specific events so that we can know when
2012         the selection changes, and when MaxSelectedCount changes.
2013
2014 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
2015
2016         * DataGridView.cs: Cleanup rows_displayed out of OnPaint. It's not 
2017         used for anything.
2018
2019 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
2020
2021         * DataGridView.cs: Fix scrolling and selection of cells/rows prior
2022         to the control being drawn for the first time by:
2023            - Implement DisplayedRowsCount to not rely on the control being
2024            already painted. Also added support for the partial row flag.
2025            - Fix scrolling to take into account partial rows and scroll to
2026            them.
2027         [Fixes bug #456527]
2028
2029 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
2030
2031         * DataGridView.cs: Do not reset the CurrentCell when the handle is
2032         created if the user has already set it.
2033
2034 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
2035
2036         * DataGridView.cs: Fix CurrentCell to actually select the cell.
2037
2038 2008-12-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2039
2040         * XplatUIX11.cs: Add support to RichTextFormat by reading it as ascii
2041         text and then let the underneath users of IDataObject interpret and
2042         parse by themselves. 
2043         Fixes #439251.
2044
2045 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2046
2047         * DataGridView.cs: Fix my previous commit to actually update what it 
2048         was supposed to.
2049
2050 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2051
2052         * DataGridView.cs: Ensure that when a row is removed the all the 
2053         current row/column/cell get updated. Fixes multiple exceptions.
2054
2055 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2056
2057         * DataGridView.cs: Fix scrolling to the current cell when key navigation 
2058         is used.
2059         [Fixes bug #443560]
2060
2061 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2062
2063         * DataGridView.cs, DataGridViewCell.cs: Fire CellStateChanged events.
2064         * DataGridViewCell.cs: Set the cell as selected prior to setting the 
2065         new state.
2066         [Fixes issue 1 in bug #443560]
2067
2068 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2069
2070         * DataGridView.cs: Invalidate after the current row/column seletion 
2071         chagnes.
2072         [Fixes bug #438434]
2073
2074 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2075
2076         * DataGridView.cs: Refresh the data if the data list is reset, etc.
2077
2078 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2079
2080         * DataGridView.cs: Handle datasource state changes:
2081            - IBindingList - list changes
2082            - BindingSource - list changed and datasource changes
2083
2084 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2085
2086         * DataGridView.cs: Select the first cell when databound. 
2087         Visually select when CurrentCell is set.
2088
2089 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2090
2091         * DataGridView.cs: Set the current cell before raising CellClick.
2092
2093 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2094
2095         * DataGridView.cs: Cleanup MoveCurrentCell to not fire any CellEnter, 
2096         CellLeave events as this is already done in SetCurrentCellAddressCore.
2097
2098 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2099
2100         * DataGridView.cs: Set the minimum size for the columns to be the 
2101         width of their header, so that the columns don't get squashed 
2102         all together.
2103
2104 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2105
2106         * DataGridView.cs: After the data is bound PerformLayout, so that 
2107         the columns get autosized.
2108
2109 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2110
2111         * DataGridView.cs: Move all currentCell setting code into 
2112         one central place - SetCurrentCellAddressCore. That way the 
2113         current cell is properly updated when programatically set.
2114         Fire RowEnter/Leave events.
2115
2116 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2117
2118         * DataGridView.cs: Update the CurrencyManager.Position, so that 
2119         when a BindingSource is used BindingSource.Current will be correct.
2120
2121 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2122
2123         * GroupBoxRenderer.cs: Fix when VisualStyles disabled:
2124            - No caption text is drawn because Color.Empty is used.
2125            - Fix top and height off by 1.
2126
2127 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2128
2129         * DataGridViewRow.cs: Implement DataBoundItem.
2130
2131 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2132
2133         * BindingSource.cs: Return null for Current if there is no data present.
2134
2135 2008-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2136
2137         * MenuAPI.cs: Add a Menu.SelectedItem null check when navigating the
2138         menus using the arrow keys. Also when handling the left arrow key, don't 
2139         assign the current menu to the parent one, if the parent is null.
2140         Fixes #446392.
2141
2142 2008-11-24  Everaldo Canuto  <ecanuto@novell.com>
2143
2144         * PrintPreviewDialog.cs: Fix toolbar size, height must be 26. Fixes bug
2145         #413501.
2146
2147 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2148
2149         * Scrollbar.cs:
2150         * ScrollableControl.cs: Simplify the code to manually set the size of
2151         the thum area, avoiding duplication of code, and also preserving the
2152         right value for different code paths - this can happen when size
2153         changes are made to the scrollbar after setting LargeChange, Maximum
2154         or related properties for the ScrollBar.
2155
2156 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2157
2158         * ScrollableControl.cs: When scrolling, don't invalidate the entire
2159         area, and call to XplatUIX11.ScrollWindow instead. This is exactly
2160         what .Net does: copy the visible area, and only invalidate the part of
2161         the area that wasn't visible before scrolling.
2162         Fixes #441738.
2163
2164 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
2165
2166         * DataGridView.cs: Listen for a DataTable's TableCleared event so we
2167         can clear ourselves when it is raised, we don't have a newrowindex
2168         if we don't have any columns.
2169         * DataGridViewRowCollection.cs: Ensure we always delete all the rows,
2170         re-index after each delete so the NewRow will have the correct index.
2171         [Fixes bug #448005]
2172
2173 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
2174
2175         * Form.cs: Don't change min/max size if it is empty.
2176         [Fixes bug #447873]
2177
2178 2008-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2179
2180         * ScrollBar.cs:
2181         * ScrollableControl.cs: When the manual thumb size is used, the
2182         maximum allowed value should depend on that thumb size, instead of
2183         LargeChange (using the maximum - LargeChange + 1 value). But
2184         LargeChange should be used normally when incrementing/decrementing.
2185         Fixes the remaining part of #441546.
2186
2187 2008-11-23  Andreia Gaita  <avidigal@novell.com>
2188
2189         * WebBrowser.cs, WebBrowserBase.cs: Delay loading of DocumentStream 
2190         until an about:blank has been loaded (according to spec). Fix 
2191         ScrollbarsEnabled to set when a document is loaded (since we use js 
2192         for it). Fix url so it reflects the current loading document and not 
2193         the previous one. Send StatusChanged events.
2194
2195 2008-11-23  Andreia Gaita  <avidigal@novell.com>
2196
2197         * Application.cs: If a message comes in for an embedded control
2198         (like webbrowser) when we're capturing the keyboard, release the
2199         capture and continue.
2200         [fixes #429462]
2201
2202 2008-11-22  Andreia Gaita  <avidigal@novell.com>
2203
2204         * XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
2205
2206 2008-11-21  Andreia Gaita  <avidigal@novell.com>
2207
2208         * WebBrowser.cs, HtmlDocument.cs: Fixes for #428172
2209         
2210 2008-11-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2211
2212         * ScrollBar.cs:
2213         * ScrollableControl.cs: Set manually the thumb size for the
2214         ScrollableControl scrollbars, so any further changes to the underneath
2215         scrollbars respect the original size.
2216         Fixes part of #441546.
2217
2218 2008-11-21  Geoff Norton  <gnorton@novell.com>
2219
2220         * XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
2221         PlatformID.MacOSX now exists.
2222
2223 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
2224
2225         * TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
2226         Having something internal abstract isn't very nice for people who want
2227         to inherit from this class.
2228
2229 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
2230
2231         * ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
2232         invalid value.  Just return null for the Image, and use the ImageList's
2233         ImageSize for calculations.
2234
2235 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
2236
2237         * ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
2238         through DroppedDown so the proper events get called and state gets reset.
2239         [Fixes bug #446805]
2240
2241 2008-11-18  Jonathan Pobst  <monkey@jpobst.com>
2242
2243         * DataGridViewColumnCollection.cs: Make sure we re-index the columns after
2244         the collection is modified.
2245
2246 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
2247
2248         * DomainUpDown.cs: Remove string cache and reflection optimizations.  They
2249         aren't always correct, and fixing them for every case is not worth the
2250         negligible benefit they provide.
2251         [Fixes bug #445713]
2252
2253 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
2254
2255         * DataGridView.cs: We should never add actual cells to the RowTemplate.
2256         Internally, use RowTemplateFull to give us a new row with cells.
2257         * DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
2258         * DataGridViewRowCollection.cs: Use RowTemplateFull.
2259
2260 2008-11-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2261
2262         * XplatUIX11.cs: Forms without borders should be able to change its
2263         size - specially they should be able to be maximized, adding the
2264         respective MotifFunctions.Resize bit when setting window properties as
2265         well as *not* marking the Hwnd as size fixed.
2266         Fixes #444347.
2267
2268 2008-11-12  Jonathan Pobst  <monkey@jpobst.com>
2269
2270         * DataGridViewCellStyle.cs: Allow SelectionBackColor to have
2271         an alpha value.
2272         [Fixes bug #444348]
2273
2274 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
2275
2276         * DataGridView.cs: Add internal to OnAutoSizeColumnModeChanged.
2277         * DataGridViewColumn.cs: Recalculate columns when AutoSizeMode changes.  Raise
2278         AutoSizeColumnModeChanged.
2279         [Fixes bug #443609]
2280
2281 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
2282
2283         * DataGridViewRowCollection.cs: Guard against the user deleting the
2284         NewRow.  Add an internal delete so we can still delete it.
2285         * DataGridView.cs: Use the new internal delete when deleting the NewRow.
2286         [Fixes bug #442181]
2287
2288 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
2289
2290         * TextControl.cs: Add some order of operation to our math so
2291         we don't end up with a negative height for our invalidate rect.
2292         [Fixes bug #381889]
2293
2294 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
2295
2296         * Control.cs: When our enabled changes, notify our implicit children
2297         controls as well as our regular controls.
2298         [Fixes bug #441523]
2299
2300 2008-11-08  Andreia Gaita <shana@jitted.com> 
2301
2302         * HtmlElement.cs: Small code cleanup
2303
2304 2008-11-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2305
2306         * BindingNavigator.cs: MoveFirstItem should be enabled only if
2307         position is larger than 0, not only different than 0. Also Position
2308         and Count items should be enabled if the BindingSource is non null and
2309         non empty.
2310         Fixes #439961.
2311
2312 2008-11-05  Jonathan Pobst  <monkey@jpobst.com>
2313
2314         * TabControl.cs: Don't raise SelectedIndexChanged until we have
2315         actually modified the tab collection, so TabCount will be correct.
2316         [Fixes bug #441896]
2317
2318 2008-11-05  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2319
2320         * ListViewItem.cs: Mark ListViewSubItem.UIATextChanged event as
2321         NonSerialized to fix serialization of ListViewItem.
2322
2323 2008-11-04  Mike Gorse  <mgorse@novell.com>
2324
2325         * ListView.cs: Call OnUIAFocusedItemChanged after completing the
2326           focus change, and always call in SetFocusedItem.
2327         * ListBox.cs: Add UIAFocusedItemChanged as in ListView.
2328
2329 2008-11-04  Jonathan Pobst  <monkey@jpobst.com>
2330
2331         * ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
2332         mode.  Based on a patch by John Mortlock.
2333         [Fixes bug #436790]
2334
2335 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2336
2337         * ListView.cs: Use the UsingGroups property where needed, instead of
2338         duplicating the check in other places.
2339
2340 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2341
2342         * ListView.cs: When calculating layout, refresh the count of items
2343         belonging to the default item, insteas of doing it only one time. This
2344         was already working fine for icon views, not not for details.
2345         Fixes #438948.
2346
2347 2008-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2348
2349         * ListView.cs:
2350         * ListViewItem.cs:
2351         * ThemeWin32Classic.cs: Don't render Tile view if there wasn't a call
2352         to Applicatin.EnableVisualStyles, and use LargeIcon view, as .net
2353         does.
2354         Fixes #437933.
2355
2356 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2357
2358         * ListView.cs: Wrap call to OnUIAFocusedItemChanged with #if NET_2_0.
2359
2360 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2361
2362         * ListView.cs: Add internal UIAFocusedItemChanged event.  Fixes bug
2363         #441280, patch by Mike Gorse <mgorse@novell.com>.
2364
2365 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
2366
2367         * TreeView.cs: When doing ExpandAll, don't scroll to the bottom
2368         if there is no scrollbar.
2369         [Fixes bug #440885]
2370
2371 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
2372
2373         * ProgressBar.cs, ThemeWin32Classic.cs, ThemeVisualStyles.cs: Commit
2374         patch from Andy Hume that fixes many issues with ProgressBar.
2375         [See bug #440220]
2376
2377 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
2378
2379         * Form.cs: Don't allow MinimumSize and MaximumSize to conflict.
2380         [Fixes bug #438866]
2381
2382 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2383
2384         * UpDownBase.cs:
2385         * DomainUpDown.cs:
2386         * NumericUpDown.cs: Internal events added to UpDownBase:
2387         UIAUpButtonClick and UIADownButtonClick.  Patch by Neville Gao
2388         <ngao@novell.com>.
2389
2390 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2391
2392         * ToolStripLabel.cs: Internal event added: UIAIsLinkChanged.
2393
2394 2008-11-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2395
2396         * ListView.cs:
2397         * ThemeWin32Classic.cs: Don't use groups nor insertion mark in
2398         Application.EnableVisualStyles hasn't been called.
2399         Fixes part of #437933.
2400
2401 2008-10-31  Andreia Gaita  <shana@jitted.com>
2402
2403         * Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
2404           if the container is not focused already, we need to specifically set
2405           focus to the first available control, or to the form itself if there
2406           are no controls.
2407
2408 2008-10-31  Andreia Gaita  <shana@jitted.com>
2409
2410         activate message fix: a call to .Show now waits until both WM_SHOWWINDOW and
2411         WM_ACTIVATE have been processed before returning, so it is guaranteed that
2412         once it returns and the form is visible, it is actually on the screen on X11
2413
2414         * ContainerControl.cs: Only send focus to the control if the top container
2415           is already focused. This is so that, when a form is first shown, all
2416           the enter/leave events are done first before any focus stuff comes in.
2417           If a control has no top container, there's an extra check on Control.Focus
2418           to make sure it gets focused in this particular case.
2419
2420         * Control.cs: Force focus if the control is active but did not receive
2421           focus after being set as active.
2422
2423         * MdiClient.cs: Dispose the form when closing
2424
2425         * XplatUIX11.cs: When mapping and unmapping windows, make sure the call
2426           doesn't return until both WM_SHOWWINDOW and WM_ACTIVATE have come in
2427           if the window is a top Form.
2428           Reset all hwnd properties when the window has been destroyed so that
2429           we don't land in any codepaths that might try to do something with it.
2430           Added a bunch of debugging messages. If TRACE is defined, all X calls
2431           are logged through DebugHelper. Set a few missing EntryPoint attributes.
2432
2433 2008-10-29  Mario Carrion <mcarrion@novell.com>
2434
2435         * ListViewItem.cs: Control enabled to support Accessibility:
2436         - Internal events: UIATextChanged, UIASubItemTextChanged.
2437         - Internal event UIATextChanged in ListViewSubItem that triggers
2438         UIASubItemTextChanged.
2439         * ListView.cs: Control enabled to support Accessibility:
2440         - Internal events: UIACheckBoxesChanged, UIAMultiSelectChanged, 
2441         UIAShowGroupsChanged, UIAViewChanged and UIALabelEditChanged.
2442         - Internal event UIACollectionChanged in ColumnHeaderCollection.
2443         - Internal event UIACollectionChanged in ListViewItemCollection.
2444         - Internal properties: UIAHeaderControl, UIAColumns, UIARows, 
2445         UIADefaultListViewGroup, UIAHScrollBar and UIAVScrollBar.
2446         - Internal methods: UIAGetHeaderBounds.
2447
2448 2008-10-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2449
2450         * ScrollableControl.cs: Actually fire the 2.0 Scroll event when we get
2451         the event from the respective scrollbars.
2452         Fixes #436709.
2453
2454 2008-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2455
2456         * ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
2457         textbox to know whether any navigation key will be handled or not. If
2458         not, don't pass the message to the textbox, and use it here instead. 
2459         * TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
2460         is more precise- than the previous AutoCompleteMatches one.
2461         This should the keyboard navigation in ComboBox when using auto
2462         complete modes.
2463
2464 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
2465
2466         * ComboBox.cs: Fix item height calculation based off Font to match .Net.
2467         [Fixes bug #436730]
2468
2469 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
2470
2471         * ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
2472         overridden methods will get called.
2473         * ToolStripItem.cs: Raise Click before MouseUp.
2474         * ToolStripSplitButton.cs: Fix up some bounding rectangles to take
2475         the item's location into account.
2476         [Fixes bug #437683]
2477
2478 2008-10-24  Neville Gao  <nevillegao@gmail.com>
2479
2480         * NumericUpDown.cs: Control enabled to support accessibility.
2481         [Fiexes bug #438135]
2482
2483 2008-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2484
2485         * TextBox.cs: Check that we actually have items no navigate, select
2486         text when pressing enter, as well as handle direction keys only if
2487         mode is different to Suggest or the suggest listbox is visible.
2488
2489 2008-10-23  Andreia Gaita  <shana@jitted.com>
2490
2491         * WebBrowser.cs: Use the new ContentStream property to retrieve
2492           a stream encoded from the document content
2493
2494 2008-10-23  Andreia Gaita  <shana@jitted.com>
2495
2496         * HtmlDocument.cs,
2497           HtmlElement.cs,
2498           HtmlWindow.cs: Fix GetHashcode for null objects
2499
2500 2008-10-22  Andreia Gaita  <shana@jitted.com>
2501
2502         * HtmlDocument.cs,
2503           HtmlElement.cs,
2504           HtmlWindow.cs: Fix equality operators (fixes #428173)
2505
2506 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
2507
2508         * XplatUIWin32.cs: Apply patch from John Mortlock that ensures
2509         mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
2510         [Fixes bug #436772]
2511
2512 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
2513
2514         * ComboBox.cs: Fire SelectedIndexChanged when the user selects the
2515         same item with the mouse as was already selected.
2516         [Fixes bug #436789]
2517
2518 2008-10-21  Brad Taylor  <brad@getcoded.net>
2519         
2520         * TextControl.cs: Break out code to get the visible range into
2521           GetVisibleLineIndexes to be used in UIA code.
2522         
2523         * Line.cs:
2524         * TextControl.cs:
2525         * TextBoxBase.cs: Add comments indicating that the method or property
2526           is used via reflection from UIA code.
2527
2528 2008-10-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2529
2530         * ListViewItem.cs: Match .net serialization.
2531         Fixes remaining part of #417520.
2532
2533 2008-10-20  Jonathan Pobst  <monkey@jpobst.com>
2534
2535         * ToolStripProfessionalRenderer.cs: Don't paint over a set BackgroundImage.
2536
2537 2008-10-20  Mario Carrion <mcarrion@novell.com>
2538
2539         * ErrorProvider.cs, ToolTip.cs, HelpProvider.cs: UIA internal property 
2540         added: UIAToolTipRectangle.
2541
2542 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2543
2544         * ListViewItem.cs: When deserializing enumerate over the data, instead
2545         of accessing the data directly. This way we handle much better the
2546         cases were we lack information.
2547         Fixes #417520.
2548
2549 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2550
2551         * ListView.cs: When removing an item from a main ListView.Items
2552         collection (and not a ListViewGroupCollection.Items one), remove it
2553         also from the group, as .net does. Patch by Mario Carrion (mario at
2554         novell dot com).
2555         Fixes #436653.
2556
2557 2008-10-19  Andreia Gaita  <avidigal@novell.com>
2558
2559         * Form.cs: Forms that get closed without a handle being created are
2560         disposed in 2.0. Fixes failing FormTest.FormClose and
2561         FormTest.FormClose2 on windows.
2562
2563 2008-10-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2564
2565         * ListView.cs: If both scrollbars are visible, the vertical one
2566         shouldn't extend too far down.
2567         Fixes #435771.
2568
2569 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
2570
2571         * DataGridView.cs: Add the ability to resize columns and rows with
2572         the mouse.  Also support double-clicking to autoresize.
2573         * DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
2574         * DataGridViewRow.cs: Invalidate the grid if a row's height changes.
2575         * DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
2576         isn't shown on autoresize.
2577         [Fixes bug #420193]
2578
2579 2008-10-17  Mario Carrion <mcarrion@novell.com>
2580
2581         * ComboBox.cs: Remove UIAListbox.
2582
2583 2008-10-17  Mario Carrion <mcarrion@novell.com>
2584
2585         * ComboBox.cs, ListBox.cs: Using added/removed item in 
2586           OnUIACollectionChangedEvent instead of index.
2587
2588 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
2589
2590         * ComboBox.cs: When we are sorting the items, if the item's type
2591         doesn't support IComparer, use a default one that compares based
2592         off the item's visible text.
2593         [Fixes bug #436328]
2594
2595 2008-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2596
2597         * ColumnHeader.cs: Invalidate ListView.header_control when setting
2598         ImageIndex/ImageKey.
2599         * ThemeWin32Classic.cs: When drawing the column header, draw a image
2600         for the column if available, and make the required adjustments to the
2601         text location.
2602         Fixes #435105.
2603
2604 2008-10-17  Neville Gao  <nevillegao@gmail.com>
2605
2606         * StatusBarPanel.cs: Control enabled to support accessibility.
2607         [Fixes bug #435988]
2608
2609 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2610
2611         * DataGridView.cs: When a user begins an edit in the 'new row',
2612         make that a real row, and add a new 'new row'.  If the user
2613         cancels the edit, remove the new 'new row' and reset everything.
2614         Also, ensure UserAddedRow and UserRemovedRow events are raised.
2615         [Fixes bug #430954]
2616
2617 2008-10-16  Ivan N. Zlatev  <contact@i-nz.net>
2618
2619         * TableLayoutSettings.cs: Fix NREs when deserializing and 
2620         panel is not yet set.
2621         [Fixes bug #436199]
2622
2623 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2624
2625         * DataGridView.cs: Invalidate after deleting a row.
2626
2627 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2628
2629         * DataGridView.cs: Handle Enter and Escape keys.
2630           - Move call to EndEdit to MoveCurrentCell.
2631           - Remove call to EndEdit from navigation key routines.
2632           - Fire CellLeave and CellEnter.
2633
2634 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2635
2636         * DataGridViewCell.cs: Some fixes to the new cell border
2637         painting code.
2638
2639 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2640
2641         * ThemeEngine.cs: Enable visualstyles rendering by default
2642         (on platforms that support it).
2643
2644 2008-10-15  Ivan N. Zlatev  <contact@i-nz.net>
2645
2646         * XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before 
2647         MainForm.OnLoad has completed unless DoEvents is forced.
2648         [Fixes bug #412536]
2649
2650 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
2651
2652         * ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.
2653
2654 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
2655
2656         * Control.cs: Make our implementation of DrawToBitmap better 
2657         match WmPaint.  [Fixes bug #435579]
2658
2659 2008-10-14  Andreia Gaita  <avidigal@novell.com>
2660
2661         * WebBrowser.cs: Use DocumentElement as the document's root for the
2662         whole content. Should fix DocumentText and DocumentStream problems.
2663
2664 2008-10-14  Jonathan Pobst  <monkey@jpobst.com>
2665
2666         * DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
2667         these will get called in DGV.OnCollectionChanged.  Make sure 
2668         OnCollectionChanged always gets called.
2669         * DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
2670         from every row.  Call this in OnCollectionChanged.
2671         [Fixes bug #433669]
2672
2673 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2674
2675         * ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
2676         textbox if auto complete is used, since we need to navigate over it.
2677         And in this case don't pass this messages to the base impl. Also hide
2678         the auto complete list box when displaying the drop down listbox.
2679         * TextBox.cs: new internal members to expose some of the auto complete
2680         functionality to combobox.
2681
2682 2008-10-13  Ivan N. Zlatev  <contact@i-nz.net>
2683
2684         * XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before 
2685         MainForm.OnLoad has completed.
2686         [Fixes bug #412536]
2687
2688 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2689
2690         * TextBox.cs: Apply an old-approved patch that adds autocomplete's
2691         Append support to this controls. We need it to apply new patches.
2692
2693 2008-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2694
2695         * Control.cs: When updating z order in child controls, send to back
2696         the implicit controls. Also, do it explicitly, instead of making
2697         GetAllControls return the implicit controls in a specific order, and
2698         thus avoid depending on that, which could change in the future.
2699         Fixes #434304.
2700
2701 2008-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2702
2703         * X11Dnd.cs: Try to call Application.DoEvents before returning in a
2704         call to StartDrag, since we must fire DragDrop/DragLeave *before*
2705         that, as .net does - instead of firing DragDrop/DragLeave *after* the
2706         call to Control.DoDragDrop has completed. This is needed since at the
2707         point of returning, we have sent related dnd ClientMessages, but we
2708         need to wait for them to fire the wmf respective ones.
2709         Fixes #325076.
2710
2711 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
2712
2713         * LinkLabel.cs: Recreate link pieces when change Padding.
2714
2715 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
2716
2717         * LinkLabel.cs: Take Padding into account when recreate link pieces.
2718         [Fixes bug #412530]
2719
2720 2008-10-08  Everaldo Canuto  <ecanuto@novell.com>
2721
2722         * Control.cs: Implement internal property PaddingClientRectangle, it will be
2723         useful for drawing controls that must take care about Padding property.
2724
2725 2008-10-08  Jonathan Pobst  <monkey@jpobst.com>
2726
2727         * BindingSource.cs: Make item_type internal so we can access it in DGV.
2728         * DataGridView.cs: Add support for autogenerating columns from a
2729         BindingSource.
2730
2731 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
2732
2733         * DataGridView.cs: Comment out an exception that is getting thrown
2734         too often currently.
2735
2736 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
2737
2738         * DataGridView.cs: Always rebind to the datasource, as things may
2739         have changed in it that we aren't capturing yet.
2740
2741 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
2742
2743         * DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
2744         drawing mode.  If we are top aligned, give ourselves some top padding.
2745
2746 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2747
2748         * X11Dnd.cs: When firing the default dnd enter/leave events, fire the
2749         events on the control under the mouse pointer, instead of firing them
2750         on the window generating the dnd operation. To achieve this re-use the
2751         code used to get the window under the pointer when getting MouseMove
2752         events.
2753         Fixes #381876.
2754
2755 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2756
2757         * X11Dnd.cs: Don't check that that the window sending the dnd events
2758         is the owner of the selection. Although Gtk+ sets it that way, it's
2759         not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
2760         So, just as Gtk+ does, we set our window sending the dnd events as the
2761         owner of the selection, but don't check it when receiving them. This
2762         should fix interoperability with Qt/Kde.
2763         Fixes #324251.
2764
2765 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
2766
2767         * DataGridView.cs: Make sure we take the vertical scrollbar into
2768         account when autosizing columns.
2769
2770 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
2771
2772         * DataGridView.cs: Handle sorting datetimes.
2773
2774 2008-10-04  Ivan N. Zlatev  <contact@i-nz.net>
2775
2776         * ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs, 
2777         TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup 
2778         compilation warnings.
2779
2780 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2781
2782         * RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs, 
2783         ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs, 
2784         ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs, 
2785         ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup 
2786         compilation warnings.
2787
2788 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2789
2790         * DataGridView.cs, DataGridViewCell.cs, 
2791         DataGridViewCellValidatingEventArgs.cs, 
2792         DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs, 
2793         DataGridViewRow.cs, DataGridViewRowHeaderCell.cs, 
2794         DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
2795
2796 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2797
2798         * HtmlElementEventArgs.cs, HtmlWindowCollection.cs: 
2799         Cleanup compilation warnings.
2800
2801 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2802
2803         * XplatUIWin32.cs: Cleanup compilation warnings.
2804
2805 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2806
2807         * PropertyGrid.cs: Cleanup compilation warnings.
2808
2809 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2810
2811         * DataGridViewRow.cs: Only clear the row background if we
2812         are going to paint a new background.
2813
2814 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2815
2816         * DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
2817         DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
2818         use PaintBorder instead.        
2819
2820 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2821
2822         * DataGridView.cs: When CellBorderStyle is set, update the
2823         AdvancedCellBorderStyle to match.
2824
2825 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2826
2827         * DataGridViewCell.cs: Add helper methods to convert Alignment
2828         to TextFormatFlags and align rectangles.
2829         * DataGridViewTextBoxCell.cs: Use Alignment when painting text.
2830         * DataGridViewImageCell.cs: Use Alignment when painting the image.
2831
2832 2008-10-02  Ivan N. Zlatev  <contact@i-nz.net>
2833
2834         * ToolTip.cs: Display tooltips only for controls on the active form.
2835         [Fixes bug #428115]
2836
2837 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2838
2839         * DataGridView.cs: Make OnCellValueNeeded internal.
2840         * DataGridViewCell.cs: Raise the CellValueNeeded event so the
2841         user can supply their own value if they choose.
2842
2843 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2844
2845         * DataGridViewColumnHeaderCell.cs: Create a new style object
2846         so the DefaultCellStyle doesn't get changed.
2847
2848 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2849
2850         * ToolStripItem.cs: Check to make sure the owner is actually
2851         changing in InternalOwner before doing any work.  Fixes some
2852         failing tests.
2853
2854 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2855
2856         * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
2857         * DataGridView.cs: Use a column header's inherited style instead
2858         of just using the default.
2859
2860 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2861
2862         * SplitContainer.cs: Raise SplitterMoved when the splitter is
2863         moved through code.
2864
2865 2008-10-01  Mario Carrion <mcarrion@novell.com>
2866
2867         * ScrollBar.cs: Internal property added: UIAThumbPosition.
2868
2869 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2870
2871         * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
2872
2873 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2874
2875         * ToolStripItem.cs: When the user sets Owner, we need to remove
2876         it from its previous owner and then add it to the new owner's
2877         item collection.  Also, create InternalOwner, so we can set the owner
2878         that doesn't do this new stuff.
2879         * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
2880
2881 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2882
2883         * ToolStripItem.cs: When our parent changes, recalculate our text
2884         size, since we may be getting our Font from our parent.  When our
2885         owner's Font changes, recalculate ourselves as we may be using
2886         that font.
2887
2888 2008-10-01  Everaldo Canuto  <ecanuto@novell.com>
2889
2890         * MenuAPI.cs: Select the first option of a popup when opening the popup via
2891         return key. [Fixes bug #413792].
2892
2893 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2894
2895         * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
2896         ambient properties.  (Get their value from their parents if
2897         values haven't been set.)
2898
2899 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2900
2901         * ToolStripSystemRenderer.cs: Call overridden methods' bases
2902         after our logic, so users can do painting by handling the events.
2903         Currently, we draw over any user painting.
2904
2905 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2906
2907         * ToolStripProfessionalRenderer.cs: Call overridden methods' bases
2908         after our logic, so users can do painting by handling the events.
2909         Currently, we draw over any user painting.
2910
2911 2008-09-30  Everaldo Canuto  <ecanuto@novell.com>
2912
2913         * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
2914
2915 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
2916
2917         * TreeNode.cs, TreeView.cs: Move logic that determines the node
2918         image to draw to TreeNode.  Give Index/Keys put on the node
2919         precedence over the global one for the TreeView.
2920
2921 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
2922
2923         * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
2924
2925 2008-09-29  Mario Carrion <mcarrion@novell.com>
2926
2927         * ListBox.cs: Index fixed.
2928
2929 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2930
2931         * TabControl.cs: When expanding the tab -because it's selected now-,
2932         using Right alignment, instead of adding some selected delta value to
2933         the X origin, substract it, so it gets a location adjacent to the panel, 
2934         instead of be more separated.
2935         Fixes #409170.
2936
2937 2008-09-29  Jonathan Pobst  <monkey@jpobst.com>
2938
2939         * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
2940         own copies of them.
2941
2942 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2943
2944         * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
2945         as well as the other static fields, to avoid using their previous
2946         values my mistake when handling the dnd events. This should avoid
2947         handling any status event after the drop has been finalized/cancelled.
2948
2949 2008-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2950
2951         * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
2952         operation, instead of waiting until we get any movement - this will
2953         help us to have the data available in case no movement was detected
2954         and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
2955         Finally add a windows.forms-only fallback to fire the mentioned events
2956         if no movement at all was detected, just like .net does.
2957         Fixes #381876.
2958
2959 2008-09-27  Jonathan Pobst  <monkey@jpobst.com>
2960
2961         * ThemeWin32Classic.cs: When drawing a status bar panel, don't
2962         return early if the text is empty because the icon doesn't get
2963         drawn then.  [Fixes bug #428113]
2964
2965 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2966
2967         * FileDialog.cs: Implement basic support for sorting by columns in
2968         Details view. Patch by Eric Petit.
2969         Fixes #428006.
2970
2971 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2972
2973         * ThemeWin32Classis.cs: When drawing gridlines take into account the
2974         case where ListView.ItemSize hasn't been computed, and provide a
2975         fallback as well. This prevents a division by 0.
2976
2977 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
2978
2979         * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
2980         correctly draw tooltip backgrounds.
2981
2982 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
2983
2984         * ImageList.cs: Change CopyTo implementation to ensure clones are
2985         created of our images.
2986         [Fixes bug #409169]
2987
2988 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
2989
2990         * Control.cs: When setting fonts, we need to ensure we change our
2991         reference to the new font object, even if it represents the same
2992         font as before.  If we don't, the original font can get disposed
2993         and we will still try to use it.
2994         [Fixes bug #386450]
2995
2996 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2997
2998         * FileDialog.cs: Take into account Tile view when selecting the view
2999         (2.0 profile).
3000
3001 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3002
3003         * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
3004         the item bounds, since we can't iterate over them in virtual mode.
3005         Also fix wrong calculation of the gridlines when using scrolling.
3006         Fixes #400390.
3007
3008 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3009
3010         * XplatUIX11.cs: When handling EnterNotify events, take into account
3011         both the public and implicit controls when trying to detect the
3012         grab/ungrab process. This should fix ListView selection in Details
3013         view.
3014
3015 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
3016
3017         * TreeView.cs: Redraw the whole node area when the selected node changes.
3018         Things like state images were not getting redrawn because the invalid
3019         rectangle was too small.
3020         [Fixes bug #428211]
3021
3022 2008-09-23  Mario Carrion  <mcarrion@novell.com>
3023
3024         * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
3025         [Fixes bug #428993]
3026
3027 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
3028
3029         * Form.cs: Do not set the Form's icon in the backend if showicon = false.
3030         [Fixes bug #428114]
3031
3032 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
3033
3034         * ThemeWin32Classic.cs: Allow tooltips to be multiline.
3035         [Fixes bug #427884]
3036
3037 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
3038
3039         * StatusBar.cs: Add tooltip support.
3040         [Fixes bug #428113]
3041
3042 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3043
3044         * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
3045         alignments of sub items in Details view. Patch by John Mortlock (johnm at 
3046         hlaustralia.com.au).
3047         Fixes #425360.
3048
3049 2008-09-23  Neville Gao  <nevillegao@gmail.com>
3050
3051         * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
3052         [Fixes bug #419079]
3053
3054 2008-09-22  Jonathan Pobst  <monkey@jpobst.com>
3055
3056         * TextBoxBase.cs: Set Text to "" instead of null in Clear().
3057         [Fixes bug #428107]
3058
3059 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3060
3061         * ListView.cs: Don't do anything when EnsureVisible is called inside a
3062         BeginUpdate/EndUpdate block.
3063         Fixes #425049.
3064
3065 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3066
3067         * ListViewItem.cs: The semantics for the public .ctor of
3068         ListViewSubItemCollection need us to already have a Text value for the
3069         item, which in our implementation have as available *after* adding the
3070         first sub item. So create an internal .ctor that satisfies our needs
3071         and let the public .ctor have the same semantics as .net.
3072         Fixes #427561.
3073
3074 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3075
3076         * ListControl.cs: Changes in Formatting related values should call
3077         RefreshItems, as .net does.
3078         * ComboBox.cs:
3079         * ListBox.cs: In the respective overrides of RefreshItems calculate
3080         layout as well as refreshing - again, this is what .net does.
3081         Fixes #426168.
3082
3083 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3084
3085         * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
3086         since we are already doing that when we change the value of the
3087         scrollbar or force the call to ScrollWindow in the same method. This
3088         way we don't cause a Invalidate call for all the listbox bounds for
3089         methods calling UpdateTopItem with an already updated top item. This
3090         was happening specially calling EnsureVisible with already visible
3091         items.
3092
3093 2008-09-18  Mike Gorse <mgorse@novell.com>
3094
3095         * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
3096           XplatUIStructs.cs: Added KeyFilter
3097         [Fixes bug #427039]
3098
3099 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3100
3101         * RelatedPropertyManager.cs: The properties returned by
3102         GetItemProperties should be that ones of the *actual* object returned
3103         by the property, not the property type - this is very special when the
3104         property exposes a type, but the returned object actually is a child
3105         class and implements more functionality and properties.
3106
3107 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3108
3109         * Binding.cs: Don't look for the property in the data source if the
3110         passed string is empty.
3111
3112 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
3113
3114         * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to 
3115         fix unused variable warnings.
3116
3117 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
3118
3119         * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
3120         [Fixes bug #427073]
3121
3122 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
3123
3124         * XplatUIX11.cs: 
3125          - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this 
3126          leads to the window manager overriding our border style and zorder. 
3127          - Allow the activation of non-modal forms, which are children of a 
3128          modal form.
3129         [Fixes bug #423417]
3130
3131 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
3132
3133         * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should 
3134         ask the window manager to do the work instead of changing the property 
3135         directly.
3136         [Fixes bug #423417]
3137
3138 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
3139
3140         * CurrencyManager.cs: Check for positon before call ChangeRecordState in
3141         AddNew to fix some navigation for empty datasets. [Fixes #323053]
3142
3143 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
3144
3145         * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set 
3146         InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
3147         border and fixes some drawing issues when resize form.
3148
3149 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
3150
3151         * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
3152         
3153         * ThemeWin32Classic.cs: We don't need to reduce button size when it is
3154         AcceptButton.
3155
3156 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
3157
3158         * TextBoxBase.cs: For standard textbox the scrollbars are always 
3159         visible if Multiline is true.
3160         [Fixes bug #426896]
3161
3162 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
3163
3164         * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
3165         patch.
3166         
3167 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
3168
3169         [Fixes most od DBNull and HeadersVisible problems]
3170         
3171         * DataGrid.cs:
3172         - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
3173         returns the value that we need.
3174         - Fixed FromPixelToColumn method that return zero for first     column and for
3175         row header cell, now it returns -1 for row header cell.
3176         - Fixed HitTest to check row header cell in column header area, it now
3177         returns HitTestType.None. [Fixes #322864]
3178         - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
3179         checks for RowHeadersVisible and other things.
3180         - If an exception occurs when setting CurrentCell and user type 'yes' in
3181         message dialog, invalidade current and new cell and set setting_current_cell
3182         to false to prevent future errors. [Partially fixes #323050]
3183
3184         * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
3185         value (SetColumnValueAtRow), it must be done by grid to properly show 
3186         messages. [Fixes #323050]
3187
3188         * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
3189         better draw column and row header. Also dont draw anything when column
3190         headers is not visible.
3191
3192 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3193
3194         * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
3195         logic.
3196
3197 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3198
3199         * TreeView.cs: Don't start editing a node on right click, only
3200         left click.
3201
3202 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3203
3204         * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
3205         disabled over a year ago.
3206         * Form.cs: Wrap calling Load in a try/catch because it can happen
3207         before the catch-all one in NativeWindow.
3208         [Fixes bug #425414]
3209
3210 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3211
3212         * ToolStripDropDownMenu.cs: Calculate the connected area better
3213         to take into account when the drop down is not directly under the
3214         owner item.
3215         * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
3216
3217 2008-09-16  Mario Carrion <mcarrion@novell.com>
3218
3219         * ScrollBar.cs: New event added: UIAValueChanged, generated when
3220           LargeChange, SmallChange, Maximum or Minimum values are changed.
3221         [Fixes bug #426464]
3222
3223 2008-09-16  Mario Carrion <mcarrion@novell.com>
3224
3225         * ErrorProvider.cs: Component enabled to support accessibility.
3226         * Application.cs: Updated to Initialize UIA in ErrorProvider.
3227         [Fixes bug #426459]
3228
3229 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3230
3231         * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
3232         so we don't highlight on first focus.
3233         [Fixes bug #360869]
3234
3235 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3236
3237         * TextControl.cs: Correctly calculate the height of the area we 
3238         need to invalidate when we have started scrolling and viewport_y
3239         is used.  [Fixes bug #387608]
3240
3241 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3242
3243         * TextControl.cs: When getting the SelectedText, don't add in
3244         NewLine characters, as they are already contained in the lines.
3245         [Fixes bug #388115]
3246
3247 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3248
3249         * TextBoxBase.cs: Replace the buggy Lines setter with one that
3250         simply concats the lines and send it to the Text setter.
3251         [Fixes issue #2 and #3 of 388115]
3252
3253 2008-09-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3254
3255         * Binding.cs: The default value of DataSourceNullValue should be
3256         Convert.DBNull actually. Also, the NullValue should only be used *if*
3257         itself is not null, and use the null/Convert.DBNull value instead.
3258
3259 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
3260
3261         * TextControl.cs: Add a method to convert a string newline to the
3262         newline enum.
3263         * TextBoxBase.cs: When the user hits enter, insert a native newline.
3264         [Fixes part 1 of bug #388115]
3265
3266 2008-09-15  Mario Carrion <mcarrion@novell.com>
3267
3268         * ToolTip.cs: UnPopup event set to internal to match public API.
3269
3270 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
3271
3272         * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
3273         have to remove the Ctrl in order for the focus moving code to kick in.
3274         [Fixes bug #426170]
3275
3276 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
3277
3278         * CheckedListBox.cs: Return the real item index from Add.  It may not be
3279         the last item if the list is sorted.  The user can change the NewValue in
3280         the ItemCheck event, we need to use that value if so.
3281         * ListBox.cs: Return the real item index from a sorted Add.
3282         [Fixes bug #426166]
3283
3284 2008-09-15  Ivan N. Zlatev  <contact@i-nz.net>
3285
3286         * MimeIcon.cs: Add null checks in the GnomeHandler, because it might 
3287         happen that the icons from the theme is missing or the particular size 
3288         unavailable.
3289         [Fixes bug #424981]
3290
3291 2008-09-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3292
3293         * Binding.cs: When assigning null or DBNull depending on value/ref type,
3294         use IsValueType instead to get the precise desired value.
3295         Fixes #424276.
3296
3297 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3298
3299         * TreeNodeCollection.cs: When adding a new node to an opened node,
3300         we have to invalidate everything below the parent node because
3301         every node scoots down and we have to repaint them.
3302         [Fixes bug #411386]
3303
3304 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3305
3306         * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
3307         property into account when drawing.
3308         [Fixes bug #416064]
3309
3310 2008-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3311
3312         * ListBox.cs: When calling Items.Clear(), call
3313         SelectedIndexCollection.ClearCore instead of normal Clear method, to
3314         not fire any Selected*Changed event - this is done to match .net and
3315         don't have invalid values when changing the DataSourceProperty.
3316         Fixes #424273.
3317
3318 2008-09-12  Mario Carrion  <mcarrion@novell.com>
3319
3320         * HelpProvider.cs: Control enabled to support accessibility.
3321         * Application.cs: Updated to Initialize UIA in HelpProvider.
3322         [Fixes bug #425988]
3323
3324 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3325
3326         * Form.cs: When we are showing a dialog box, if its owner is TopMost,
3327         make the dialog TopMost as well.
3328         [Fixes bug #425984]
3329
3330 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3331
3332         * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
3333         clipboard data better.
3334         [Fixes bug #414446]
3335
3336 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3337
3338         * TextBoxBase.cs: Applied patch from John Mortlock that ensures
3339         TextChanged and SelectionChanged events fire in the same order as .Net.
3340         [Fixes bug #425725]
3341
3342 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3343
3344         * DataGridView.cs: When sorting a column, if it only contains numbers,
3345         do a numeric sort instead of a string sort.
3346         [Fixes bug #425849]
3347
3348 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3349
3350         * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
3351         against NRE's when the settings have a null panel.
3352         * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
3353         the panel gets set.
3354         [Fixes bug #425647]
3355
3356 2008-09-11  Mario Carrion  <mcarrion@novell.com>
3357
3358         * ToolTip.cs: Control enabled to support accessibility.
3359         * Application.cs: Updated to Initialize UIA in ToolTip.
3360         [Fixes bug #425277]
3361
3362 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3363
3364         * Control.cs: Make the custom Enumerator internal to fix build.
3365
3366 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3367
3368         * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
3369         already in edit mode, begin edit mode.  Generally edit mode isn't
3370         started until the second click, but CheckBoxes are special.
3371
3372 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3373
3374         * ErrorProvider.cs: Never try to add our icons to ContainerControl,
3375         since that can be set to anything.  Always add them to the Control's
3376         parent.  [Fixes bug #416058]
3377
3378 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3379
3380         * ListView.cs: Use a custom enumerator for ListViewItemCollection
3381         so items can be deleted in a foreach.
3382         [Fixes bug #425342]
3383
3384 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3385
3386         * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
3387         Store the user set explicit height so that the row can be AutoSized
3388         and then when AutoSize is turned off, it can get its original size back.
3389         * DataGridView.cs: Use the Row's GetPreferredHeight instead of 
3390         duplicating the logic.  When setting AutoSizeRowsMode to None, reset
3391         rows' heights back to their explicit values.
3392         [Fixes bug #415780]
3393
3394 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3395
3396         * DateTimePicker.cs: When getting focus, select the checkbox if we are
3397         already showing it. Also, don't change its value when pressing space
3398         if the checkbox is not visible (ShowCheckBox as false). Finally, the
3399         checkbox should remain selected as long as Checked is false, and the
3400         other parts are disabled.
3401         Fixes #424267.
3402         
3403 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3404
3405         * MessageBox.cs: Handle shortcut keys to dialog buttons.
3406         [Fixes bug #425425]
3407
3408 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3409
3410         * Binding.cs: When the value retrieved from the control property is
3411         null, don't return Convert.DBNull for Nullable instances, since they
3412         can *actually* get a null value.
3413         Fixes #424265.
3414
3415 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
3416
3417         * Control.cs: Add an internal field to force doublebuffering regardless
3418         of what the public mechanisms are set to.  This is because MS's native
3419         controls are doublebuffered even though their .Net bits are set to false.
3420         * ProgressBar.cs: Set force_double_buffer to true.
3421         [Fixes bug #406595]
3422
3423 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
3424
3425         * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
3426         the cell template.
3427         * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
3428         * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
3429         without EditingControls, paint background selection for types without
3430         EditingControls, reset the EditingCellValueChanged flag when the
3431         cell's value is committed.
3432         * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
3433         have EditingControls, remove a double call to a cell's OnContentClickInternal,
3434         don't do cell changing logic in OnMouseDown if the cell didn't change.
3435         [Fixes bug #420351]
3436
3437 2008-09-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3438
3439         * DateTimePicker.cs: Fix the edition of am/pm specifier.
3440
3441 2008-09-09  Jonathan Pobst  <monkey@jpobst.com>
3442
3443         * TextControl.cs: Add "&" to the list of valid characters in a URL.
3444
3445 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3446
3447         * DateTimePicker.cs: Before incrementing or decrementing any part in
3448         the textbox, end any current edit. Also when ending the current edit
3449         use the editing_part_index field instead of the current selected
3450         value, since they can be out of synch, and we really need to work on
3451         the *real* current edit part. Finally when PartData.Selected changes,
3452         always try to end any ongoing edit.
3453         This should fix some small errors handling mouse navigation and
3454         increase/decrease operations.
3455
3456 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3457
3458         * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
3459         respectively) should handled different, since the 12 hours format
3460         needs the value typed by the user to be adjusted depending on the
3461         a.m/p.m value, so it is preserved, and only changed when the value
3462         reaches the 12 value (when it changes from a.m to p.m).
3463         Fixes part of #416555.
3464
3465 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
3466
3467         * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
3468         * ToolStripDropDownItem.cs: Don't fire events and such again if
3469         ShowDropDown is called on an already dropped down item.
3470         * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
3471         subitems, the user may add some in the DropDownOpening event.
3472         [Fixes bug #417877]
3473
3474 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
3475
3476         * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
3477         [Fixes bug #424270]
3478
3479 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
3480
3481         * MdiClient.cs: When looking for menustrips on a child form to merge,
3482         look inside ToolStripContainers.
3483         [Fixes bug #424264]
3484
3485 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
3486
3487         * ErrorProvider.cs: Unbreak my previous commit.
3488
3489 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
3490
3491         * ErrorProvider.cs: Icon should always be 16x16.
3492         [Fixes bug #424380]
3493
3494 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
3495
3496         * GridEntry.cs: Invalidate the child items cache when the property 
3497         value changes.
3498
3499 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
3500
3501         * GridEntry.cs, PropertyGridView.cs: 
3502            - Update the ReadOnly detection and rendering to finally hopefully 
3503            match the one of MSFT.
3504            - Niceify and move the debug CWLS.
3505         [Fixes bug #409028]
3506
3507 2008-09-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3508
3509         * ListView.cs: Don't call Invalidate at all from SetItemLocation,
3510         since we are already calling Invalidate for the entire control when
3511         needed - and call Redraw() when size changes, since we need to paint
3512         there by ourselved and not anymore from the mentioned method. 
3513         This should improve the layout process. Also clean some not needed calls 
3514         here and there.
3515
3516 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
3517
3518         * MenuAPI.cs: Add a null check to the Alt-F4 code.
3519         [Fixes bug #420309]
3520
3521 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
3522
3523         * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
3524         [Fixes bug #423040]
3525
3526 2008-09-04  Ivan N. Zlatev  <contact@i-nz.net>
3527
3528         * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs, 
3529         PropertyGridView.sc: Implement lazy/delayed propertygrid population 
3530         on item expansion. Improves performance and fixes bug #417955.
3531         [Fixes bug #417955]
3532
3533 2008-09-05  Stephane Delcroix  <sdelcroix@novell.com>
3534
3535         * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
3536         fix the build.
3537
3538 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3539
3540         * TextControl.cs: Add "_" to the list of valid characters in a URL.
3541         [Fixes bug #423408]
3542
3543 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3544
3545         * Control.cs: If using OptimizedDoubleBuffer, ensure the clip 
3546         region gets set.
3547         [Fixes bug #414166]
3548
3549 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3550
3551         * FontDialog.cs: When storing our font size from the starting font,
3552         use SizeInPoints instead of Size in case Size is a different unit
3553         from Points.
3554         [Fixes bug #416489]
3555
3556 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3557
3558         * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
3559         don't use it for anything else, check if a directory is highlighted.
3560         If it is, navigate into it.
3561         [Fixes bug #422087]
3562
3563 2008-09-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3564
3565         * Binding.cs: When acquiring a BindingManagerBase for the first time,
3566         check that the specified property actually exists in the data source,
3567         and throw an ArgumentException if that's not the case - this is only
3568         done for this scenario, since for later cases (such Position changes)
3569         we throw different exceptions (match .Net).
3570
3571 2008-09-03  Ivan N. Zlatev  <contact@i-nz.net>
3572
3573         * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs, 
3574           FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs, 
3575           PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs, 
3576           TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs, 
3577           ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs, 
3578           ToolStripStatusLabel.cs: Add missing PerformLayout calls to various 
3579           properties.
3580           [Fixes bug #418684]
3581
3582 2008-09-03  Neville Gao  <nevillegao@gmail.com>
3583
3584         * StatusBar.cs: Control enabled to support accessibility.
3585         [Fixes bug #419079]
3586
3587 2008-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3588
3589         * Binding.cs: When connecting the event handler for the "Changed"
3590         event for the property, only do it for PropertyManager, and not for
3591         CurrencyManager - this is exactly what does .Net, totally ignoring any
3592         change in the property of the elements of a list.
3593         Fixes the tests.
3594
3595 2008-09-02  Jonathan Pobst  <monkey@jpobst.com>
3596
3597         * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
3598         to Windows when creating a window, as we fake MDI stuffs.
3599         [Fixes bug #421858]
3600
3601 2008-09-01  Ivan N. Zlatev  <contact@i-nz.net>
3602
3603         * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the 
3604         change takes effect.
3605
3606 2008-08-24  Ivan N. Zlatev  <contact@i-nz.net>
3607
3608         * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
3609         [Fixes bug #419001]
3610
3611 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
3612
3613         * DataGridView.cs: Raise CellContentClick event.
3614         [Fixes part of bug #420351]
3615
3616 2008-08-27  Mario Carrion  <mcarrion@novell.com>
3617
3618         * ScrollBar.cs: Control enabled to support accessibility.
3619         [Fixes bug #416759]
3620
3621 2008-08-27  Mario Carrion  <mcarrion@novell.com>
3622
3623         * ComboBox.cs: Control enabled to support accessibility.
3624         [Fixes bug #416663]
3625
3626 2008-08-27  Mario Carrion  <mcarrion@novell.com>
3627
3628         * ListBox.cs: Control enabled to support accessibility.
3629         [Fixes bug #416640]
3630
3631 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
3632
3633         * ComboBox.cs: Don't suppress the TextChanged event when changing
3634         the SelectedIndex.
3635         * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
3636         and re-raise it.
3637         [Fixes bug #420673]
3638
3639 2008-08-26  Jonathan Pobst  <monkey@jpobst.com>
3640
3641         * ErrorProvider.cs: Fix a regression NRE when setting properties
3642         for a control before it has a parent.
3643         [Fixes bug #420305]
3644
3645 2008-08-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3646
3647         * Binding.cs: Use the BindingManagerBase.Current value to obtain
3648         connect the property "Changed" event, instead of using the data
3649         sources - this is useful when the property specifies actually a
3650         multiple objects path.
3651         Fixes part of #417973.
3652
3653 2008-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3654
3655         * RelatedPropertyManager.cs: PropertyManager instances associated to a
3656         nested properties should return not the properties of the data source
3657         itself, but the properties of the type of a specific property in the
3658         data source - match .net.
3659
3660 2008-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
3661
3662         * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
3663         AddRange overloads into AddItems method, and added missing NULL check.
3664         Added extra argument check to RemoveAt for compatibility with MS. 
3665         Modified IList implementation of Add, Contains, IndexOf and Remove to
3666         throw an ArgumentException if item is not an int. Modified IList.Insert
3667         to throw a NotSupportException instead of an Exception. Implemented
3668         ICollection.
3669         (ObjectCollection): To avoid duplication, use AddItems method from
3670         AddRange overloads. On 1.0 profile, first perform NULL check on items
3671         in AddItems.
3672
3673 2008-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
3674
3675         * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
3676          #419087.
3677
3678 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
3679
3680         * X11Keyboard.cs : comment out some Console.WriteLine().
3681
3682 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
3683
3684         * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
3685           even if premises are not filled. Also XLookupString() was not
3686           receiving correct input, which blocked precise input handling
3687           on non-XIM mode.
3688
3689 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3690
3691         * ListView.cs: When calling OnCacheVirtualItems, cast to the right
3692         type of delegate, instead of EventHandler - this was causing a type
3693         cast exception in all apps handling this event.
3694         Fixes #417876.
3695
3696 2008-08-20  Jonathan Pobst  <monkey@jpobst.com>
3697
3698         * ToolStripDropDownItem.cs: Always raise DropDownOpening in
3699         ShowDropDown to give the user a chance to dynamically add
3700         drop down items.  [Step 1 of fixing bug #417877]
3701
3702 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3703
3704         * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
3705         had any mouse motion since the call to StartDrag, to match the dnd
3706         behaviour of .net.
3707         Fixes part of #381876.
3708
3709 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3710
3711         * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
3712         if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
3713         Also, if we are actually moving into a different window after
3714         grabbing, generate a LeaveNotify event for the previous window, since
3715         we need to fire the leave events until the grab ends, not when
3716         actually moving outside of the control.
3717
3718 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3719
3720         * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
3721         events only for client windows was wrong - we need to compare the
3722         client window against the window receiving the EnterNotify event, not
3723         against zero (since client window is never Zero, btw).
3724         This prevents having unnecessary handling of EnterNotify events for
3725         non-client windows when a gran begins.
3726
3727 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3728
3729         * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
3730         MouseMove/MotionNotify events at all (which should only happen after
3731         MouseUp/ButtonRelease, as .Net does).
3732         This avoids firing an extra and unnecessary MouseMove event just after
3733         every MouseDown event.
3734
3735 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
3736
3737         * LinkLabel.cs: Always clear any previous links when LinkArea
3738         is set.  [Fixes bug #410709]
3739
3740 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
3741
3742         * ToolStripProfessionalRenderer.cs: Revert last change.
3743         * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
3744         for ToolStripDropDownBackground.
3745
3746 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
3747
3748         * ToolStripProfessionalRenderer.cs: Use Window color for the 
3749         background of dropdowns to match .Net when the user is not
3750         using the default white.  [Fixes bug #418108]
3751
3752 2008-08-19  Atsushi Enomoto  <atsushi@ximian.com>
3753
3754         * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
3755           it caused timer registration twice. Fixed bug #418107.
3756
3757 2008-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3758
3759         [Correction: This is the actual change to X11Dnd issue, not the
3760         previous one, which was actually a different issue.]
3761
3762         * X11Dnd.cs: Increase the interval for the Timer, to not fire our
3763         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
3764         when the pointer is actually in motion, but only when the pointer
3765         seems to stop (as .net does).
3766         Fixes part of #381876.
3767
3768
3769 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
3770
3771         * ListBox.cs: Fix CopyTo implementation.
3772         [Fixes bug #409169]
3773
3774 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
3775
3776         * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
3777         drawing a ComboBox's background.  Fixes bad disabled rendering when
3778         the control is not at 0,0.
3779         [Fixes bug #416063]
3780
3781 2008-08-16  Ivan N. Zlatev  <contact@i-nz.net>
3782
3783         * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the 
3784         ComponentModel layer, which will properly prioritize the attributes.
3785         Avoids wrong prioritization of duplicate attributes when retrieving 
3786         the converter and editor.
3787         [Fixes bug #417729]
3788
3789 2008-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3790
3791         * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
3792         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
3793         when the pointer is actually in motion, but only when the pointer
3794         seems to stop (as .net does).
3795         Fixes part of #381876.
3796
3797 2008-08-15  Ivan N. Zlatev  <contact@i-nz.net>
3798
3799         * GridEntry.cs: Perform stricter check for the ParentEntry's 
3800         PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor 
3801         implementation.
3802         [Fixes bug #417567]
3803
3804 2008-08-14  Geoff Norton  <gnorton@novell.com>
3805
3806         * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
3807         Fixes #396983.  Properly fix ActiveWindow trackin and do not
3808         prematurely show POPUP windows.
3809
3810 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3811
3812         * XplatUIX11.cs: Handle the obscured regions while scrolling using
3813         GraphicsExpose event, processing it just after we copy the scrolled
3814         area. This ensures that the next calls to ScrollWindow will copy
3815         regions already updated, and the scrolling will be smooth. Also remove
3816         the code that was trying to detect the obscured regions, since we are
3817         not using it anymore (too slow).
3818
3819 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3820
3821         * ListBox.cs: Fix the -temporary- broken selection in ListBox for
3822         MultiExtended mode, by separating some logic between the ctrl/shift
3823         handling. Also ignore any MouseMove events generated together with
3824         MouseDown events - we are only interested in the real motion event.
3825         Fixes part of #414963.
3826
3827 2008-08-08  Jonathan Pobst  <monkey@jpobst.com>
3828
3829         * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
3830         is selected.  [Fixes bug #414143]
3831
3832 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
3833
3834         * GridEntry.cs: Check if current property is a ICustomTypeDescriptor 
3835         and not the parent one (the propertyowner). Fixes the behavior of 
3836         GetConverter/GetEditor.
3837         [Fixes bug #415452]
3838
3839 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
3840
3841         * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
3842         [Fixes part of bug #415452]
3843
3844 2008-08-05  Ivan N. Zlatev  <contact@i-nz.net>
3845
3846         * GridEntry.cs: ITypeDescriptorContext should be relative to the parent 
3847         GridEntry, not the current.
3848         [Fixes bug #413896]
3849
3850 2008-08-04  Ivan N. Zlatev  <contact@i-nz.net>
3851
3852         * TextBoxBase.cs: De-internalize max_length field.
3853         * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox 
3854         share the same logic.
3855         [Fixes bug #414454]
3856
3857 2008-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3858
3859         * ListBox.cs: Selection changes made in the MouseDown handler should
3860         use the *Core versions of selection in SelectedIndices collection,
3861         since the SelectedIndexChanged/SelectedValueChanged events are fired
3862         until we get a MouseUp event, and thus we need to separate the logic
3863         from the events, as done in the keyboard navigation. Also, fire those
3864         selection events from keyboard navigation in SelectionMode.None, even
3865         if we don't have a selection, as .Net does.
3866
3867 2008-08-01  Jonathan Pobst  <monkey@jpobst.com>
3868
3869         * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
3870         last change introduced when an item is clicked but isn't on a toolstrip.
3871
3872 2008-07-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3873
3874         * ListBindingHelper.cs: When looking for an object's properties, check
3875         if it implements ICustomTypeDescriptor, in which case we should
3876         resolve the propertu based on its GetProperties method, not in its
3877         actual properties. This is what .Net seems to do.
3878         Fixes a UsingWebBrowser problem during initialization.
3879
3880 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
3881
3882         * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
3883         sitting on a MenuStrip.
3884
3885 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
3886
3887         * ToolStripButton.cs: If we "click" a top button on a menustrip that has
3888         no children with the keyboard, we need to release the keyboard capture.
3889         [Fixes bug #413567]
3890
3891 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
3892
3893         * ToolStripMenuItem.cs: If we "click" a top level menu item that has
3894         no children with the keyboard, we need to release the keyboard capture.
3895         [Fixes bug #413567]
3896
3897 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
3898
3899         * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
3900         the GTK+-based implementation of VisualStyles.
3901         * ThemeWin32Classic.cs: Exposed various layout values for use in the
3902         GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
3903         ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
3904         ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
3905         TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
3906         TrackBarHorizontalTrackHeight.
3907
3908 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
3909
3910         * TabControl.cs: Added hot style handling for the scroll buttons.
3911         right_slider_state, left_slider_state are now of type PushButtonState to
3912         allow for a hot state. Added tracking of the mouse button being held down
3913         on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
3914         LeftScrollButtonArea.
3915         * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
3916         TabControlGetRightScrollRect.
3917
3918 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3919
3920         * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent 
3921         runtime errors.
3922
3923 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3924
3925         * Form.cs: Ensure that we reset the shown_raised flag after 
3926         the form is closed, so that we raise the show events the next 
3927         time the form is shown.
3928         [Fixes bug #413141]
3929
3930 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3931
3932         * Form.cs: Ensure closing events are raised only once.
3933         [Fixes bug #413143]
3934
3935 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3936
3937         * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode, 
3938         so that we can successfully generate the LParam in-place instead of 
3939         in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard 
3940         navigation for menus.
3941
3942 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3943
3944         * MenuAPI.cs: When montion don't set the keyboard navigation state to 
3945         'navigating'. Fixes bug #411356.
3946
3947 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3948
3949         [Fixed remaining issues of #406773 (#1)]
3950         * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
3951
3952         * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
3953         MainMenu (already done) and ContextMenu creation.
3954
3955         * ContextMenu.cs: Create tracker on construction. 
3956
3957 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3958
3959         * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
3960         possible to instantiate MenuTracker without GrabControl.
3961
3962 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3963
3964         * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
3965
3966         * MainMenu.cs: Set GrabControl on SetForm using current form.
3967
3968 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3969
3970         * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
3971
3972 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3973
3974         * MenuAPI.cs: Check if menu is activated before deactivate it in 
3975         ProcessShortcut.
3976
3977 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3978
3979         * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs, 
3980         ColumnStyle.cs: 
3981         Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
3982          - One style instance can only participate in a single style collection.
3983          - Styles can request their owner to layout whenever their properties 
3984          change.
3985          [Fixes bugs #412583 and #412582]
3986
3987 2008-07-29  Ivan N. Zlatev  <contact@i-nz.net>
3988
3989         * X11Keyboard.cs: Implement the generation of the LParam for 
3990         all keyboard messages.
3991         [Fixes bug #378728]
3992
3993 2008-07-29  Jonathan Pobst  <monkey@jpobst.com>
3994
3995         * ListBox.cs: Don't let the user set TopIndex so high that it
3996         scrolls up far enough to show empty items.
3997         [Fixes bug #412728]
3998
3999 2008-07-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4000
4001         * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
4002         (I'm an idiot and forgot to commit the actual changes, as well as
4003         specify the right file, which is this one, not ListView.cs).
4004
4005 2008-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4006
4007         * ListView.cs: Don't draw ListViewSubItem instances from
4008         DrawListViewItem - we need to reuse the main item's drawing for the
4009         first sub item in case owner draw is true, but wants the system to
4010         do the default draw for the first sub item, without incurring in a
4011         recursion problem.
4012         Fixes #410880.
4013
4014 2008-07-28  Jonathan Pobst  <monkey@jpobst.com>
4015
4016         * ToolStripButton.cs: Update Checked for CheckOnClick before
4017         raising the Click event.  [Fixes bug #412505]
4018
4019 2008-07-28  Ivan N. Zlatev  <contact@i-nz.net>
4020
4021         * Form.cs: Remove some seems leftover code for non-TopLevel's 
4022         CreateParams, which is breaking ClientSize sizing, because it 
4023         removes the border window styles.
4024
4025 2008-07-27  Ivan N. Zlatev  <contact@i-nz.net>
4026
4027         * PropertyGrid.cs: Invalidate the View when the PropertyTab 
4028         changes.
4029
4030 2008-07-25  Gert Driesen  <drieseng@users.sourceforge.net>
4031
4032         * WebBrowser.cs: Removed debug output.
4033
4034 2008-07-25  Jonathan Pobst  <monkey@jpobst.com>
4035
4036         * FileDialog.cs: Apply patch from Ernesto to clean up some
4037         dialog messages.
4038
4039 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4040
4041         * TableLayoutPanel.cs: Perform layout on GrowStyle change, so 
4042         that the change has an immediate effect.
4043
4044 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4045
4046         * ScrollableControl.cs: Update PerformLayout calls to include 
4047         provide the name of the property that changed.
4048
4049 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4050
4051         * TableLayoutPanel.cs: Draw relative to the DisplayRectangle 
4052         location. Fixes drawing of border and cell borders if scrollable.
4053
4054 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4055
4056         * ScrollableControl.cs: Perform layouting after the AutoScroll 
4057         properties have changed, so that the changes have immediate 
4058         effect.
4059         [Fixes bug #409090]
4060
4061 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4062
4063         * XplatUIX11.cs: Non Client area is actually Client such in the 
4064         case of NotifyIcon, so double check WholeWindow == ClientWindow 
4065         when adding an expose.
4066         [Fixes bugs #324237 and #357022]
4067
4068 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4069
4070         * TableLayoutPanel.cs: Invalidate after layouting, so that we 
4071         repaint the cell borders.
4072
4073 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4074
4075         * PropertyGridTextBox.cs: Stop filtering messages prior to our 
4076         disposal to avoid unexpected ObjectDisposedExceptions.
4077
4078 2008-07-24  Ivan N. Zlatev  <contact@i-nz.net>
4079
4080         * TableLayoutPanel.cs: Layout on Row/Column count change.
4081
4082 2008-07-22  Gert Driesen  <drieseng@users.sourceforge.net>
4083
4084         * ListViewItem.cs: Changed binary serialization to match MS. Fixes
4085         bug #409351.
4086         * PictureBox.cs: When ImageLocation is set to null or an empty string,
4087         only set image to null if it was previously initialized from an url
4088         (or using ImageLocation). In ImageLocation, load specified image
4089         asynchronously if WaitOnLoad is false. Added support for local file
4090         paths to LoadAsync, and added missing argument check.
4091
4092 2008-07-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4093
4094         * DateTimePicker.cs: 
4095         * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
4096         order to set the value as required (which means: when selection
4097         changes for a part being edited, and not before that if not needed).
4098         Also use an enum to describe which part are we using, and use the
4099         selection as a property in PartData, in order to notify the
4100         DateTimePicker owner that we need to end the current edit.
4101         Fixes #383462.
4102
4103 2008-07-17  Ivan N. Zlatev  <contact@i-nz.net>
4104
4105         * PropertyGridTextBox.cs: Validation should be performed only if we 
4106         are focused. We can lose focus for example if the Return key is used 
4107         to set the entry and there is an error. When the message box is 
4108         displayed we would have validate on click in the message box.
4109
4110 2008-07-16  Ivan N. Zlatev  <contact@i-nz.net>
4111
4112         * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content 
4113         in order to determine that we are expandable is wrong. There was a bug, 
4114         now fixed, in TypeDescriptor that was causing the wrong converter to be 
4115         returned which caused GetPropertiesSupported == false in most cases.
4116         [Fixes bug #409027]
4117
4118 2008-07-15  Jonathan Pobst  <monkey@jpobst.com>
4119
4120         * ImageList.cs: Fix ICollection.CopyTo implementation for
4121         ImageListCollection.  [Fixes bug #409169]
4122
4123 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
4124
4125         * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
4126         WorkingArea so that menus can appear on the second monitor
4127         when one has dual monitors.
4128
4129 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4130
4131         * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
4132         Fixes build.
4133
4134 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4135
4136         * TextBox.cs: Implement navigation support for auto complete in
4137         TextBox, as well as refactor the code to show the auto complete window
4138         when receiving a WM_CHAR message, instead of TextChanged, since
4139         autocomplete itself should be able to set the Text a lot of times and
4140         finally only typing should show it, not changes from code.
4141
4142 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4143
4144         * TabControl.cs: When expanding the selected tab, don't adjust the
4145         width if alignment is Right, since it has a different offset than 0,
4146         as opposed to the other alignments.
4147         Fixes the selected tab not being painted at all with alignment = Right
4148         and using FillToRight size mode.
4149
4150 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
4151
4152         * TreeView.cs: Fix ToString to match MS.  [Fixes bug #409029]
4153
4154 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
4155
4156         * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
4157         values from the textbox to the boundary values.  [Fixes bug #409026]
4158
4159 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
4160
4161         * TreeNodeCollection.cs: We were copying one too many elements when
4162         doing our array copy.  Fixes a crash when RemoveAt is called.
4163         [Fixes bug #408999]
4164
4165 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4166
4167         * TabControl.cs: When doing the layout and need to call FillRow -using
4168         FillToRight size mode-, use the overload receiving a bool param
4169         indicating whether we need to do a vertical or horizontal calculation.
4170         Fixes part of #399583.
4171
4172 2008-07-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4173
4174         * TextBox.cs: When painting, use the value returned by
4175         GetLastVisibleItem instead of using the cached last_item field, since
4176         there could be a desynchronization between the layout and the
4177         painting. Fixes a AOOR exception in auto complete mode.
4178
4179 2008-07-12  George Giolfan  <georgegiolfan@yahoo.com>
4180
4181         * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
4182         NonClientAreaEnabled until our VisualStyles is modified to allow it.
4183
4184 2008-07-12  Gert Driesen  <drieseng@users.sourceforge.net>
4185
4186         * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
4187
4188 2008-07-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4189
4190         * TextBox.cs: When focus is lost, if the auto complete listbox is
4191         visible, hide it.
4192
4193 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
4194
4195         * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
4196         tracking size for tool windows.
4197         * Theme.cs, ThemeWin32Classic.cs : Extracted
4198         ManagedWindowSpacingAfterLastTitleButton.
4199
4200 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
4201
4202         * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
4203         They are bit-rotted and have always been listed as "unsupported".
4204
4205 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
4206
4207         * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
4208
4209 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
4210
4211         * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
4212
4213 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4214
4215         * ListBox.cs: Make sure last_item_visible gets reset before we try
4216         to do a layout due to scrollbars appearing or disappearing.
4217         [Fixes bug #408139]
4218
4219 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4220
4221         * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
4222         for different window themes.  [Fixes bug #339140]
4223
4224 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4225
4226         * ThemeWin32Classic.cs: Implemented minimized window border width properly,
4227         in ManagedWindowBorderWidth.
4228
4229 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4230
4231         * InternalWindowManager.cs: Change MouseMove to take a point, so
4232         we can use the same point later on.
4233         * MdiWindowManager.cs: Store point sent to MouseMove so we can
4234         later reset to it.  On Windows, the Cursor.Position had already
4235         changed by the time we were resetting to it.
4236         [Fixes bug #363239]
4237
4238 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4239
4240         * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
4241         are inactive.
4242         * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
4243         user requested it.
4244         [Fixes bug #398686]
4245
4246 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4247
4248         * MdiWindowManager.cs: Double-clicking on the title bar should not
4249         maximize a MDI form if MaximizeBox = false.
4250
4251 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4252
4253         * ThemeVisualStyles.cs: Fixed a warning.
4254
4255 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4256
4257         * ThemeVisualStyles.cs: Fixed warnings and formatted.
4258
4259 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4260
4261         * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
4262         implementation produces a better result.
4263
4264 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4265
4266         * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
4267         windows.
4268
4269 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4270
4271         * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
4272         cannot be used from the ThemeEngine constructor.
4273         * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
4274         Application.VisualStylesEnabled because it does not work on X11.
4275
4276 2008-07-09  Jonathan Pobst  <monkey@jpobst.com>
4277
4278         * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
4279         that we did not always check for, as well as fixes to the IList
4280         implementations.  [Fixes bug #402703]
4281
4282 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
4283
4284         * IDeviceContext.cs: Added Dispose.
4285
4286 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
4287
4288         * Control.cs: Added OnSizeInitializedOrChanged.
4289         * Form.cs: OnLoadInternal: Added a call to
4290         Control.OnSizeInitializedOrChanged.
4291         * InternalWindowManager.cs:
4292          * HandleTitleBarMouseMove: No longer invalidates the parent window.
4293          * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
4294          * TitleButton: Added Entered.
4295          * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
4296         * MdiWindowManager.cs:
4297          * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
4298          move over the maximized title buttons causes a change.
4299          * IsActive: Can now be called before the window is added to a MDI parent.
4300         * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
4301         ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
4302         * ThemeVisualStyles.cs: Implemented proper managed window rendering.
4303         * ThemeWin32Classic.cs:
4304          * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
4305          * DrawTitleButton takes a new form parameter.
4306          * Added ManagedWindowTitleButtonHasHotElementStyle,
4307          ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
4308
4309 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
4310
4311         * ThemeEngine.cs: ThemeVisualStyles is now selected if
4312         Application.EnableVisualStyles has been called, even if the current system
4313         configuration does not support rendering with Visual Styles.
4314         * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
4315         Styles should not be used.
4316
4317 2008-07-08  Jonathan Pobst  <monkey@jpobst.com>
4318
4319         * ComboBox.cs: PreferredHeight is not tied to ItemHeight.  Fixes 3rd
4320         ComboBox in FormsTest.
4321
4322 2008-07-08  Ivan N. Zlatev  <contact@i-nz.net>
4323
4324         * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only 
4325         for fixed toolwindows.
4326
4327 2008-07-08  George Giolfan  <georgegiolfan@yahoo.com>
4328
4329         * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
4330
4331 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4332
4333         * Control.cs: CreateControl just returns if the Control is diposed 
4334         and doesn't throw ObjectDisposedException.
4335         [Fixes bug #406566]
4336
4337 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4338
4339         * Control.cs: Do not create the control if the parent isn't created 
4340         yet, e.g in the case of a parented form on which .Show is called.
4341         It will be created when the parent is made visible/created.
4342         Improves #402446.
4343
4344 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4345
4346         * Form.cs: Avoid recursively calling OnSizeChanged due to recursive 
4347         WM_WINDOWPOSCHANGED caused by the layouting code on win32.
4348         [Fixes bug #406786]
4349
4350 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4351
4352         * Form.cs: When disposed set owner to null. Improves #402446.
4353
4354 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4355
4356         * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize 
4357         use children's PreferredSize if in AutoSize mode and ExplicitBounds 
4358         if not.
4359         * Form.cs: Take the Padding into account for the PreferredSize.
4360         [Fixes bug #402849]
4361
4362 2008-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4363
4364         * TabControl.cs: Since we don't support more than one direction in
4365         TabControl rows alignment (this is, the row becomes the
4366         bottom row when selected), make Direction return always 1. This way
4367         the layout doesn't get confused about a bad calculation.
4368         Fixes #399582.
4369
4370 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4371
4372         * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages, 
4373         so that the wparam is properly set.
4374         Fixes form moving in the test case in bug 402446.
4375
4376 2008-07-07  Jonathan Pobst  <monkey@jpobst.com>
4377
4378         * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
4379         the full tree instead of nothing.  [Improves bug #406584]
4380
4381 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
4382
4383         * ThemeWin32Classic.cs: Adjusted minimized window painting.
4384
4385 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
4386
4387         * InternalWindowManager.cs: No longer draws decorations for maximized MDI
4388         children.
4389
4390 2008-07-04  Jonathan Pobst  <monkey@jpobst.com>
4391
4392         * TreeView.cs: Add a null check when using CollapseAll on an
4393         empty tree.  [Fixes bug #406449]
4394
4395 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4396
4397         * Form.cs: Make OnMenuComplete internal so we can call it.
4398         * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
4399         [Fixes bug #399321]
4400
4401 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4402
4403         * TabControl.cs: Handle Up and Down keys when TabControl is in
4404         vertical alignment.
4405         [Fixes bug #399585]
4406
4407 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4408
4409         * TabControl.cs: Invalidate when we remove a tab.  Guard against
4410         an AOORE when trying to remove a tabpage that is not owned by the
4411         parent control.
4412         [Fixes bug #399927]
4413
4414 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4415
4416         * ScrollBar.cs: Change the LargeChange calculation to be correct.
4417         Ensure we are using LargeChange instead of large_change so we our
4418         calculations are correct.
4419         [Fixes bug #403122]
4420
4421 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4422
4423         * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
4424         we need to ensure the ColumnCount/RowCount gets set.
4425         [Fixes bug #404851]
4426
4427 2008-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4428
4429         * ListBox.cs: When handling item navigation, if selection mode is
4430         None, call EnsureVisible, since scrolling is normally handled by
4431         selection, that we are not calling in this case.
4432         Fixes #398345.
4433
4434 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
4435
4436         * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
4437         a null check to our focus walking code.  [Fixes bug #394332]
4438
4439 2008-07-02  Andy Hume <andyhume32 at yahoo dot co dot uk>
4440
4441         * ComboBox.cs: Case missed in bug 379596 "Support item
4442         navigation by entering text": On _close_ drop-down select
4443         the first item matching the text in the textbox.  [Fixes bug #397265]
4444
4445 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
4446
4447         * DataGridView.cs: Fix a crash when sorting by column headers, 
4448         mentioned in bug #404841.  Remove some dead switch cases.
4449
4450 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4451
4452         * ComboBox.cs:
4453         * TextBox.cs: Implement AutoComplete support for ComboBox, which just
4454         uses the AutoComplete support in the internal TextBox. Also TextBox
4455         can store a reference to ComboBox, in case AutoCompleteSource is set
4456         to ListItems (this is, ComboBox's items, and we don't want to pass an
4457         additional collection).
4458
4459 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4460
4461         * ListViewItem.cs: Restore the initial value of bounds rect to
4462         Rectangle.Empty, and is this value for Layout detection in virtual
4463         mode. Fixes the tests.
4464
4465 2008-06-30  Jonathan Pobst  <monkey@jpobst.com>
4466
4467         * XPlatUI.cs: Remove references to "new" X11 backend.
4468
4469 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
4470
4471         * Control.cs: Add an internal virtual OnDragDropEnd method 
4472         to allow controls such as ListBox, which depend on a sequence 
4473         of MouseDown+Move+End events, to handle the lack of a MouseUp 
4474         when a DnD operation is started in MouseDown.
4475         * ListBox.cs: If a DnD operation is started in MouseDown we won't 
4476         get a MouseUp, so reset our state whenever a DnD operation ends.
4477
4478 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
4479
4480         * PropertyGrid.cs: Clear the root griditem first thing when 
4481         new object/s is/are selected. Fixes some rare cases where 
4482         the View will get a paint request and won't know that the 
4483         grid is in the process of repopulating.
4484
4485 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4486
4487         * XplatUIX11.cs, InternalWindowManager.cs: 
4488         If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS 
4489         doesn't automagically update the FormBorderStyle, so we must 
4490         double check the CreateParams explicitly to determine if the 
4491         window is a toolwindow.
4492         * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow 
4493         instead of doing custom checks.
4494
4495         Fixes toolwindows for the test case in bug #402446
4496
4497 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4498
4499         * Control.cs: Visibility of the control should be false 
4500         when the handle is destroyed in WmDestroy and not immediately 
4501         in Dispose(). This is effectively where the disposing process 
4502         ends even though the control is marked as Disposed immediately 
4503         after calling Dispose().
4504         [Fixes bug #402446]
4505
4506 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4507
4508         * PropertyGridTextBox.cs: Start monitoring the mouse clicks 
4509         when the textbox gets focus.
4510         [Fixes bug #402704]
4511
4512 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4513
4514         * PropertyGridTextBox.cs, PropertyGridView.cs: 
4515          - Alt + Down should show the drop down editor.
4516          - Focus the editor when showing it
4517         [Fixes bug #402710]
4518
4519 2008-06-25  Jonathan Pobst  <monkey@jpobst.com>
4520
4521         * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
4522         that are not the first panel.
4523         * StatusBar.cs: Ensure that the X coordinate of panels is always
4524         stored.  Fix IList implementation of StatusBarPanelCollection to
4525         call the regular methods.
4526         [Fixes bug #403599, #402165]
4527
4528 2008-06-23  Jonathan Pobst  <monkey@jpobst.com>
4529
4530         * ThemeWin32Classic.cs: Fix position calculation for centered
4531         text on status bar panels.  [Fixes bug #402165]
4532
4533 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
4534
4535         * Splitter.cs: Fix Splitter to:
4536          - Work for arbitrary splitter size
4537          - Handle MinSize and MinExtra properly
4538          - Get rid of absolute positioning during drag and use relative
4539          - Multiple other fixes 
4540          [Fixes bug #338966]
4541
4542 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
4543
4544         * Cursor.cs: Show shouldn't hide the cursor.
4545
4546 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4547
4548         * ListViewItem.cs: When invalidating, add some extra space to bounds,
4549         since focus rectangle and selection can add some space and need to
4550         take into account those small offsets - specially in Details view.
4551         * ListView.cs: Instead of invalidate using item Bounds directly, call
4552         item.Invalidate, to have the code centralized.
4553         Fixes focused/selection garbage when selecting and deselecting items
4554         that are close.
4555
4556 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4557
4558         * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
4559         mode we can check whether we have to force a Layout or not, and can
4560         cache based on this, instead of avoiding caching all the the time. Do
4561         this check in GetBounds and TextBounds.
4562         Fixes selection in Details view.
4563
4564 2008-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4565
4566         * ListView.cs: Make HeaderControl internal, thus the theme engine can
4567         get its *real* height instead of trying to infere it.
4568         * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
4569         get the position of them, since it's in general a bad idea in general,
4570         and because we can't do that in virtual mode. Instead get the first
4571         visible item as well as item height, and draw them.
4572         Fixes #400390.
4573
4574 2008-06-20  Jonathan Pobst  <monkey@jpobst.com>
4575
4576         * ToolStripSplitButton.cs: We can't add in extra width if
4577         the button is not AutoSize.  [Fixes bug #401279]
4578
4579 2008-06-20  Ivan N. Zlatev  <contact@i-nz.net>
4580
4581         * PaddingConverter.cs: 
4582          - Implement conversion to InstanceDescriptor
4583          - Handle "All" in CreateInstance by using the supplied 
4584          ITypeDescriptorContext.
4585          [Fixes bugs #396076 and #396078]
4586
4587          Patch by Andy Hume  <andyhume32@yahoo.co.uk>
4588          Code contributed under MIT/X11 license.
4589
4590 2008-06-19  Andy Hume <andyhume32 at yahoo dot co dot uk>
4591
4592         * ComboBox.cs, ListControl.cs, Control.cs, Button.cs, 
4593         ButtonBase.cs:
4594         Add Category attributes.
4595         Code is contributed under the MIT/X11 license.
4596
4597 2008-06-18  Ivan N. Zlatev  <contact@i-nz.net>
4598
4599         * Form.cs: 
4600          - Fix a NRE when unparenting a form.
4601          - Do not recreate or destroy a parented form when 
4602         unparenting. 
4603
4604 2008-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4605
4606         * TextBox.cs: Implement basic support for AutComplete with custom
4607         sources.
4608
4609 2008-06-18  Jonathan Pobst  <monkey@jpobst.com>
4610
4611         * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
4612         DropDownButtonBounds should be from the origin of the button, not the
4613         ToolStrip.  [Fixes bug #401279]
4614
4615 2008-06-16  Sandy Armstrong <sanfordarmstrong@gmail.com> 
4616
4617         * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
4618           running gtk_init_check.  This prevents GAIL from loading
4619           unnecessarily, which was breaking UIA support.  Initial fix for bug
4620           #375987.
4621         * Application.cs: Add UIA support to Winforms.  New static constructor
4622           uses reflection to initialize UIAutomationWinforms assembly.  Added
4623           PreRun event so UIA can initialize before the mainloop starts, and
4624           FormAdded event so UIA can provide a11y support for new Forms in an
4625           Application.
4626
4627 2008-06-16  Jonathan Pobst  <monkey@jpobst.com>
4628
4629         * DataGridView.cs: When binding to a dataset, subscribe to table
4630         and column change events.  Unsubscribe to these when we clear bindings.
4631         [Fixes bug #399601]
4632
4633 2008-06-14  Everaldo Canuto  <ecanuto@novell.com>
4634
4635         [DataGrid drawing refactory]
4636
4637         * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
4638
4639         * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
4640         must be handle by Theme, now it call DataGridPaintColumnHeader.
4641
4642         * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
4643         test cases must be also fixed because it checks for wrong size.
4644
4645         * ThemeWin32Classic.cs: 
4646                 - Draw the bottom line of grid caption.
4647                 - Prevent to draw caption text when it is empty.
4648                 - Use CPDrawBorder3D for 3D efects to simplify code.
4649                 - Uses 3D (when not flat) to paint corner shared between row and column
4650                 header.
4651                 - Fix header drawing issues on win32, now borders are drawing.
4652                 - Fix column header paint issues to mimic win32.
4653                 - Adjust header drawing for last column, like first one it must be draw
4654                 different.
4655                 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
4656                 not an character.
4657                 - DataGridPaintColumnHeader created to draw column headers, it also
4658                 paint stuff right on Win32.
4659                 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle 
4660                 class.
4661
4662         * Theme.cs: 
4663                 - DataGridPaintRowHeaderStar method added.
4664                 - DataGridPaintColumnHeader method added.
4665
4666 2008-06-13  Jonathan Pobst  <monkey@jpobst.com>
4667
4668         * Control.cs: Don't reset to Dock style layout if DockStyle is
4669         set to none.  [Fixes bug #399316]
4670
4671 2008-06-12  Everaldo Canuto  <ecanuto@novell.com>
4672
4673         * Win32DnD.cs: Fix the check for control not equal null.
4674         Fixes bug #341420 and #381886. 
4675
4676 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
4677
4678         * DataGridViewRowCollection.cs: Update the indexes of rows after
4679         one has been removed.
4680         * DataGridViewSelectedRowCollection.cs: Add internal clear method.
4681         * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
4682         * DataGridView.cs: Add support for deleting rows via Delete key, deleting
4683         rows for the Rows collection, or deleting rows from the bound DataSet.
4684
4685 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
4686
4687         * DataGridView.cs: Listen to a DataSet's changed event even
4688         when autogeneratecolumns is false.  Refactor the changed event's
4689         add row code to use the same as the existing add row code.
4690         [Fixes bug #399601]
4691
4692 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4693
4694         * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
4695         much any time the caret moves and there is text, not just when
4696         the selection changes as one would think.
4697         * RichTextBox.cs: Override RaiseSelectionChanged and fire
4698         SelectionChanged.
4699         [Fixes bug #397271]
4700
4701 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4702
4703         * FontDialog.cs: Forward ListBox keyboard events to the ListBox
4704         instead of trying to duplicate the code.
4705         * ListBox.cs: Make method internal so we can send keyboard events.
4706         [Fixes bug #398344]
4707         
4708 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4709
4710         * TextBoxBase.cs: When pasting and checking the max length,
4711         subtract the selected text length (the text we will be replacing) from
4712         the document length.
4713         * TextControl.cs: Ensure every character insertion is reflected in
4714         charcount, so max length will work properly.
4715         [Fixes bug #398605]
4716
4717 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4718
4719         * ListBox.cs: Ensure scrollbars are updated when a single
4720         column listbox with an already set top-index is created.
4721         [Fixes bug #398342]
4722
4723 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4724
4725         * FontDialog.cs: Typing in the font/style textboxes should search
4726         the list boxes case-insensitively.  [Fixes bug #398343]
4727
4728 2008-06-11  George Giolfan  <georgegiolfan@yahoo.com>
4729
4730         * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
4731         widths of icon and buttons instead of hard coded values.
4732
4733 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4734
4735         * ListBox.cs: When SelectionMode is None, clicking an item should move focus
4736         as well as generating a SelectedIndexChanged event, just like .Net does
4737         -surprise-.
4738         Fixes #398345.
4739
4740 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4741
4742         * ListBox.cs: When navigating items visually, use FocusedItem as the
4743         reference point instead of SelectedIndex, since even in
4744         SelectionMode.None we need to support navigation, and in that case we
4745         just can't use SelectedIndex.
4746         Fixes part of #398345.
4747
4748 2008-06-10  Jonathan Pobst  <monkey@jpobst.com>
4749
4750         * Control.cs: Make a SetBoundsInternal that avoids the new
4751         SetBounds code.
4752         * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
4753         SetBoundsInternal instead of SetBoundsCoreInternal.
4754
4755 2008-06-10  Ivan N. Zlatev  <contact@i-nz.net>
4756
4757         * ScrollableControl.cs: Use SetBoundsCoreInternal instead of 
4758         SetBounds for the scrollbars.
4759
4760 2008-06-10  Andreia Gaita <avidigal@novell.com> 
4761
4762         * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
4763           FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
4764           OnMouseMove, OnMouseOver, OnMouseUp
4765         * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
4766           ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
4767         * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
4768           to the WebControl object to pass to new collection objects
4769         * HtmlHistory.cs: Implement support for individual window histories.
4770         * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
4771           AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
4772           GotFocus, LostFocus, OnLoad, OnUnload
4773         * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
4774           ContextMenu
4775         * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
4776           security level changes and context menu event support.
4777
4778 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4779
4780         * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
4781         as happens with Esc, patch my Andy Hume.
4782         Fixes #396294.
4783
4784 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4785
4786         * MdiWindowManager.cs: DrawMaximizedButtons now uses
4787         ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
4788         * Theme.cs: Made MenuButtonSize platform dependent. Added
4789         ManagedWindowButtonSize.
4790         * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
4791         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
4792
4793 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4794
4795         * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
4796         Added support for rendering with VisualStyles.
4797
4798 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4799
4800         * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
4801         support for rendering the border with VisualStyles.
4802
4803 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4804
4805         * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
4806         the icon is not shown.
4807         * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
4808         its own logic.
4809
4810 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4811
4812         * InternalWindowManager.cs: Draw minimized windows even if they don't have
4813         borders.
4814
4815 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
4816
4817         * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
4818
4819 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
4820
4821         * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
4822         [Fixes bug #397943]
4823
4824 2008-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4825
4826         * ComboBox.cs: When snaping height -because of IntegralHeight set to
4827         true- with ComboBoxStyle.Simple, set the height to PreferredHeight
4828         if the requested height leaves the listbox area with *less* than the
4829         required are to see one item. We were setting it to PreferredHeight
4830         even for values matching the height for a single item.
4831         Fixes #396297.
4832
4833 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
4834
4835         * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
4836
4837 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
4838
4839         * DataGridViewCell.cs: Use property instead of field.
4840
4841 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4842
4843         * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
4844         null checks.
4845
4846 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4847
4848         * Theme.cs: Added #region around the managed window code. Made the managed
4849         window methods abstract.
4850         * ThemeWin32Classic.cs: Added #region around the managed window code.
4851
4852 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4853
4854         * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
4855         if it has borders.
4856         * ThemeWin32Classic.cs: Removed HasBorders checks in
4857         DrawManagedWindowDecorations.
4858
4859 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4860
4861         * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
4862         Extracted ManagedWindowGetTitleBarIconArea.
4863
4864 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
4865
4866         * DataGridViewCellStyle.cs: Don't clone the font.
4867
4868 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
4869
4870         * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
4871
4872 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4873
4874         * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
4875         also on 64 bit machinges. Fixes the BadWindow errors while scrolling
4876         in 64 bit machines.
4877
4878 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
4879
4880         * DataGridViewCell.cs: Correctly get converters for FormattedValue.
4881         Use Format/FormatProvider before trying converters.
4882         * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
4883         are 'set'.  Change constructor to not use ApplyStyle since it wants
4884         everything applied.  Clone the Font.
4885         * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
4886         ApplyStyle the rest.
4887
4888 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4889
4890         * ListView.cs: We need to calculate the scrollbars even if the handle
4891         hasn't been created - this is needed when methods using scrollbars
4892         info, such EnsureVisible, are called before control has been created.
4893         Fixes #397272.
4894
4895 2008-06-05  George Giolfan  <georgegiolfan@yahoo.com>
4896
4897         * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
4898         only if the elements are defined. 
4899
4900 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4901
4902         * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
4903         section. Also, when setting bounds, snap height as well as save the
4904         requested height if Dock has any value affecting the height: Left,
4905         Right and Bottom - important if using IntegralHeight as true.
4906
4907 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4908
4909         * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
4910         passed to SetBounds to reflect the new adjusted height (Integral-wise), 
4911         instead of doing that only in our SetBoundsCore override, since the 
4912         bounds cached can be the same as saved one and we could not get the
4913         new height applied.
4914         Fixes #396297.
4915
4916 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4917
4918         * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
4919         * XplatUI.cs: Added ToolWindowCaptionButtonSize.
4920         * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
4921         ToolWindowCaptionButtonSize.
4922         * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
4923
4924 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4925
4926         * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
4927         hard coded values.
4928         * Theme.cs: Made DoubleClickTime plaform dependent.
4929
4930 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4931
4932         * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
4933         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
4934         ToolWindowCaptionHeight.
4935
4936 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4937
4938         * InternalWindowManager.cs: The adjustment to ensure positive client area
4939         sizes is now platform dependent (disabled on Windows).
4940         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
4941         RequiresPositiveClientAreaSize.
4942
4943 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4944
4945         * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
4946
4947 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4948
4949         * InternalWindowManager.cs: Changed IconicSize to use
4950         SystemInformation.MinimizedWindowSize.
4951         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
4952         * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
4953
4954 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4955
4956         * ComboBox.cs: If the combobox is anchored both on top and bottom,
4957         adjust height if IntegralHeight is true when calling SetBoundsCore (as
4958         likely the height was modified even if Height wasn't specified in
4959         BoundsSpecified parameter).
4960         Fixes part of #396297.
4961
4962 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com> 
4963
4964         * InternalWindowsManager.cs: Changed minimum window size while resizing to
4965         SystemInformation.MinWindowTrackSize.
4966         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
4967         * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
4968
4969 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
4970
4971         * MenuItem.cs: Fixed Dispose.
4972
4973 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
4974
4975         * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
4976         * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
4977         EnteredHeaderCell, PressedHeaderCell: Added.
4978         * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
4979         * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
4980         theme a chance to override default painting.
4981         * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
4982         GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
4983         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
4984         ListView and DataGridView header rendering.
4985         
4986 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
4987
4988         * RichTextBox.cs: GetPositionFromCharIndex should return the 
4989         visual position of the character relative to the viewport.
4990         [Fixes part of bug #396664]
4991
4992 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
4993
4994         * GridEntry.cs: Make HasCustomEditor check for EditStyle != None 
4995         and not just for the existance of an UITypeEditor. In some cases 
4996         there is an editor associated just to do PaintValue, but which 
4997         doesn't actually support editing.
4998         [Fixes bug #396632]
4999
5000 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5001
5002         * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
5003         if needed, instead of 0 - this should help us in the corner case where
5004         we have more than one item but we are only partially showing 1 item.
5005         Fixes part of #374713.
5006
5007 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5008
5009         * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
5010         control, return immediately if the any parent control's handle hasn't
5011         been created or isn't visible, as well as avoiding creating the parent
5012         Form if the handle hasn't been previously created.
5013         Fixes tests.
5014
5015 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
5016
5017         * TableLayoutPanel.cs: Use border sizes when calculating the
5018         panel's preferred size.  [Fixes part of bug #396433]
5019
5020 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
5021
5022         * SplitContainer.cs:
5023          - Fix SplitterDistance to update only if needed. 
5024          - Make it force min and max validation.
5025          - Handle properly mouse moves outside the resizeable area.
5026          [Fixes bug #396232]
5027
5028 2008-06-02  Andreia Gaita <avidigal@novell.com> 
5029
5030         * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
5031           (which also suppresses all popup dialogs). Throw NotSupported
5032           exceptions for activex getters/setters.
5033         * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
5034           IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
5035           StatusText, Version, GoSearch
5036         * HtmlDocument.cs: Add DocType support
5037
5038 2008-06-02  Andy Hume  <andyhume32@yahoo.co.uk>
5039
5040         * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
5041         [Fixes bug 396124]
5042
5043 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
5044
5045         * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
5046
5047 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
5048
5049         * TableLayoutPanel.cs: When calculating preferred size, use the
5050         actual number of columns and rows, not what the user set them to.
5051         [Fixes bug #396141]
5052
5053 2008-06-02  George Giolfan <georgegiolfan@yahoo.com> 
5054
5055         * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
5056         394311.
5057
5058 2008-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5059
5060         * XplatUIX11.cs: When detecting areas obscured in a control by other
5061         toplevel windows while scrolling, return if the control hasn't a 
5062         container form.
5063         Fixes some tests.
5064
5065 2008-05-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5066
5067         * XplatUIX11.cs: Properly detect the visible area of a control being
5068         scrolled (obscured by other winforms controls and any X toplevel
5069         windows), to mark as invalid the requested area to be scrolled that
5070         isn't visible and thus can't be copied.
5071         Fixes #324513.
5072
5073 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5074
5075         * ListBox.cs: Compute the precise amount to vertically scroll when
5076         using DrawMode.OwnerDrawVariable.
5077         Patch by jkeymer (j.keymer@gmx.net).
5078
5079 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5080
5081         * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox 
5082         to avoid setting an invalid value for the verticall scrollbar 
5083         when navigating items. And, duh, also remove my silly debug messages
5084         from previous commits.
5085         Fixes #374713.
5086
5087 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
5088
5089         * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and 
5090         make it MS compatible.
5091
5092 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
5093
5094         * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs: 
5095          - Allow the editing of entries even if their parent is read-only.
5096          - Do not render expandable properties read-only.
5097          - Refactor expansion checks form PropertyGrid into PropertyGrid.
5098
5099 2008-05-30  George Giolfan <georgegiolfan@yahoo.com> 
5100
5101         * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
5102         support for the hover style.
5103
5104 2008-05-29  Andreia Gaita <avidigal@novell.com> 
5105
5106         * ContainerControl.cs: Check for null dead-end when traversing the tree
5107           of parent controls.
5108         
5109           [Fixes #394332, patch by Ernesto Carrea]
5110
5111 2008-05-29  Geoff Norton  <gnorton@novell.com>
5112
5113         * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
5114         constant that it is.  Fixes #393981
5115
5116 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
5117
5118         * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
5119         that the user probably doesn't want to set this.
5120
5121 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
5122
5123         * ThemeWin32Classic.cs: Don't let the text size be bigger than
5124         the control size for CheckBox/RadioBox.
5125         [Fixes part of bug #394645]
5126
5127 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
5128
5129         * PropertyGrid.cs: Update the state of the sorting buttons in 
5130         the toolbar if PropertySort is set programatically.
5131
5132 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
5133
5134         * GridItemCollection.cs: Add multiple items with conflicting names 
5135         support and also preserve name ordering.
5136         [Fixes #395345]
5137
5138 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
5139
5140         * GridItemCollection.cs: Revert my multiple items with same 
5141         name patch.
5142
5143 2008-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5144
5145         * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
5146         or middle ones.
5147         Fixes part of #393908.
5148
5149 2008-05-28  Jonathan Pobst  <monkey@jpobst.com>
5150
5151         * ToolStripDrowDown.cs: When using the Show () methods that have a
5152         Control parameter, set the menu owner to that Control.
5153         [Fixes bug #394345]
5154
5155 2008-05-28  Ivan N. Zlatev  <contact@i-nz.net>
5156
5157         * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
5158         [Fixes bug #362756]
5159
5160 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
5161
5162         * GridItemCollection.cs: Refactor to support multiple items with the 
5163         same name.
5164         [Fixes bug #394314]
5165
5166 2008-05-27  Jonathan Pobst  <monkey@jpobst.com>
5167
5168         * Control.cs: The 2.0 check for illegal cross thread calls in 
5169         Control.Handle were throwing an exception when we were getting
5170         the Handle in order to invoke correctly.  Created a private
5171         version that does not contain this check.
5172         [Fixes bug #394531]
5173
5174 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
5175
5176         * PropertyGrid.cs: Respect DefaultTabType.
5177
5178 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
5179
5180         * ListView.cs: SPACE selects an item.
5181         [Fixes bug #393023]
5182
5183 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
5184
5185         * ListView.cs: Reset the search string whenever the items are 
5186         modified.
5187         [Fixes bug #393020]
5188
5189 2008-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5190
5191         * ListControl.cs: For the first added item PositionChanged is fired
5192         _before_ ItemChanged, which leave us in a temporary invalid state - so
5193         we need to set the selected index from ItemChanged handler *if* we
5194         know that the first item has just been added *and* the items have been
5195         actually added to the ListControl.
5196         Fixes #369048.
5197
5198 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5199
5200         * TabControl.cs: Only clicks with the left button should be
5201         handled.
5202         Fixes #393908.
5203
5204 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5205
5206         * ComboBox.cs: 
5207         * FIleDialog.cs:
5208         * TextBox.cs: Expose an internal method in TextBox to restore the
5209         original context menu, and call it from ComboBox to re-use it in the
5210         combobox containing the file name in FileDialog.cs.
5211         Fixes part of #393775.
5212
5213 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
5214
5215         * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
5216         style.
5217
5218 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
5219
5220         * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
5221         down button style.
5222
5223 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5224
5225         * ComboBox.cs: Minor correction to previous patch: PageDown should
5226         also *try* to move by one item if the computed offset is negative,
5227         just like the PageUp case.
5228
5229 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5230
5231         * ComboBox.cs: When navigating using PageDown/PageUp the navigation
5232         should be done for at least 1 item, and not stay at the same item.
5233         Fixes part of #374713.
5234
5235 2008-05-23  Jonathan Pobst  <monkey@jpobst.com>
5236
5237         * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
5238         directories.  [Fixes bug #393931]
5239
5240 2008-05-22  Andreia Gaita <avidigal@novell.com> 
5241
5242         * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
5243           Don't fire events until the initial about:blank page has finished
5244           loading. Clean up events.
5245
5246 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
5247
5248         * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
5249           FocusIn() too. This should fix the issue on switching
5250           scim keyboards.
5251
5252 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
5253
5254         * X11Keyboard.cs : set XIM font size to somewhat reasonable
5255           number (ideally the input textbox size, but that could be
5256           too messy).
5257
5258 2008-05-22  Jonathan Pobst  <monkey@jpobst.com>
5259
5260         * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
5261         the ToolStripItem's TextChanged.  [Fixes bug #393597]
5262
5263 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5264
5265         * TabControl.cs: When invalidating in SelectedIndex and we need to
5266         inflate to take into account the border of the tabs, make sure that
5267         the invalidated rect doesn't overflow the control bounds, since that
5268         would avoid updating at all.
5269
5270 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5271
5272         * TabControl.cs: Don't substract scroller width from the row width,
5273         since we need to take into account the total width of the control when
5274         calculating the position of the tabs. This avoids showing scroller
5275         when it is actually not needed.
5276         Fixes part of #322325.
5277
5278 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5279
5280         * ThemeVisualStyles.cs: Added support for TextBoxBase.
5281
5282 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5283
5284         * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
5285         Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
5286
5287 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
5288
5289         * DataGridView.cs: Only paint the top left header cell if there
5290         are columns.
5291
5292 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
5293
5294         * DataGridView.cs: When binding to a BindingSource, get the underlying
5295         list to bind to.  [Fixes bug #345483]
5296
5297 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
5298
5299         * DataGridView.cs: Do not bind to collection properties.
5300         [Fixes bug #337470]
5301
5302 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5303
5304         * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
5305
5306 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5307
5308         * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
5309         thumb style.
5310
5311 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5312
5313         * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
5314
5315 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5316
5317         * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
5318         background.
5319
5320 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5321
5322         * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
5323
5324 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5325
5326         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
5327         checked styles.
5328
5329 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5330
5331         * TabControl.cs: Extended to handle the hot style.
5332
5333 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5334
5335         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
5336         Extended UpDownBase code to handle hot and disabled styles.
5337
5338 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5339
5340         * DataGridView.cs: Handle databinding to generic list type things.
5341         [Fixes bug #325239]
5342
5343 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5344
5345         * DataGridViewCellCollection.cs: Add a method to find the cell
5346         with the given DataPropertyName.
5347         * DataGridViewColumn.cs: Track if the column was autogenerated or not.
5348         * DataGridViewColumnCollection.cs: Add a method to clear all
5349         autogenerated columns.
5350         * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
5351         columns.
5352         [Fixes bug #348082]
5353
5354 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5355
5356         * DataGridView.cs: Don't try to update the RowTemplate with
5357         a null CellTemplate.
5358
5359 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5360
5361         * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
5362         * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
5363         * DataGridView.cs: Lots of fixes/enhancements to databinding to
5364         a DataSet.
5365
5366 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5367
5368         * Control.cs: Remove invalidating implicit child controls when
5369         control is invalidated.  It was causing too many redraws on
5370         controls with implicit scrollbars.
5371         * ListView.cs: Listen to the Invalidated event and invalidate
5372         child controls.
5373
5374 2008-05-20  Andreia Gaita <avidigal@novell.com> 
5375
5376         * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
5377         * HtmlDocument.cs: Check for nulls
5378
5379 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5380
5381         * Control.cs: In ControlCollection.RemoveInternal, remove the
5382         internal control before calling PerformLayout and OnControlRemoved,
5383         which was leaving us in an invalid state and causing a X error (bad
5384         match). Observe that Remove () call has the same order.
5385         Fixes an X error changing ComboBoxStyle.DropDownStyle.
5386
5387 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5388
5389         * TabControl.cs: Don't paint by ourselved and instead let OnPaint
5390         being fired if ControlStyles.UserPaint style is activated.
5391         Fixes #371905.
5392
5393 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
5394
5395         * GridEntry.cs: Don't be so strict when setting the value - 
5396         do not check if what we set is what we get.
5397         [Fixes bug #389245]
5398
5399 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
5400
5401         * XplatUIX11.cs: If there are no timers timeout should be 0
5402         [Fixes bug #363522]
5403
5404 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
5405
5406         * Control.cs: As a followup to invalidating implicit children when
5407         a control is invalidated, only invalidate them if they are in the
5408         clip rectangle.
5409
5410 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5411
5412         * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
5413
5414 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5415
5416         * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
5417
5418 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5419
5420         * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
5421         * XplatUIWin32.cs: Made Win32DeleteObject public.
5422
5423 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
5424
5425         * GridEntry.cs: Determine HasDefaultValue more strictly by using 
5426         PropertyDescriptor.ShouldSerializeValue.
5427         [Fixes bug #391924]
5428
5429 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5430
5431         * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
5432         in the classic theme.
5433
5434 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5435
5436         * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
5437         ThumbPressed.
5438         * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
5439         ScrollBarHasPressedThumbStyle.
5440
5441 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5442
5443         * TextRenderer.cs: Included some methods in the 1.1 profile.
5444
5445 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
5446
5447         * Control.cs: When we make a control visible, it may have been
5448         previously visible and while it wasn't visible, the z-order of
5449         things may have been shuffled, so the control needs to have its
5450         z-order updated just in case.  [Fixes bug #391518]
5451
5452 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5453
5454         * ThemeVisualStyles.cs: Added support for GroupBox.
5455
5456 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5457
5458         * GroupBoxRenderer.cs: Included in the 1.1 profile.
5459
5460 2008-05-16  Atsushi Enomoto  <atsushi@ximian.com>
5461
5462         * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
5463           bug #389996; XSelectInput() behaved as mouse handler robber,
5464           so remove extra call to it.
5465
5466 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5467
5468         * Control.cs: Simplify ControlCollection.Contains method.
5469
5470 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5471
5472         * DataGridViewRow.cs: Implement GetPreferredSize.
5473
5474 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5475
5476         * DataGridViewComboBoxCell.cs: Don't declare text twice.  Fixes build.
5477
5478 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5479
5480         * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
5481         painting and edit control fixes.
5482
5483 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5484
5485         * DataGridView.cs, DataGridViewCell.cs: Work around some external
5486         checks to make sure we are in an actual row/col for top left header cell.
5487         * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
5488
5489 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5490
5491         * Control.cs: Use long instead of int when handling WParam from
5492         mousewheel scrolling.  Int was overflowing on Win64.
5493
5494 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5495
5496         * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
5497         flow panel without scrolling first, and then calculate the 
5498         scrolling based on the new layout.  [Fixes bug #390149]
5499
5500 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5501
5502         * ListBox.cs: Invalidate after scrolling up when selected index
5503         changes.  [Fixes bug #390151]
5504
5505 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5506
5507         * ComboBox.cs: When setting mode to Simple *and* height hasn't been
5508         set, default height to 150. I tried first with DefaultSize, but this
5509         is not generating a SetBoundsCore call before handle creation time, so
5510         we can take it into account. This is just what .net does.
5511
5512 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
5513
5514         * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
5515         as it broke some stuff.  Calberto is filing a bug for eno to
5516         work with.
5517
5518 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5519
5520         * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
5521         to 0 is the current value is -1, and if style is not Simple, just
5522         return, like .net does.
5523         Fixes part of #374713.
5524
5525 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
5526
5527         * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
5528         progress bar stuffs, use doubles instead of ints to prevent
5529         overflow.  [Fixes bug #389798]
5530
5531 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
5532
5533         * XplatUIX11.cs, X11Keyboard.cs :
5534           Significant refactoring on XIM support. Now IM engine UI
5535           should show up, at mostly-correct preedit position.
5536           - Eliminated use of FocusWindow, as it is never mapped
5537             and hence blocks correct preedit position. XIC is now
5538             created per window, and it must be destroyed too when
5539             the window is destroyed.
5540           - WM_QUIT messages should not be filtered even when hwnd
5541             is zombie. Filtering it could cause endless loop.
5542           - Preedit position must move only when the window is alive.
5543           - Make it IDisposable and make sure to release XIM/XICs.
5544
5545 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
5546
5547         * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
5548           XplatUIX11.cs, XplatUIWin32.cs :
5549           fix for bug #325033 and #387693;
5550           - WM_QUIT should not be sent when no running application
5551             exists.
5552           - SetTimer/KillTimer (especially on win32) should be
5553             invoked for the window that the timer is/will_be attached.
5554           - There could be unattached timers to a window when it's
5555             started. For those timers, hold pending timers and when
5556             a window is mapped, attach them to it.
5557           - WaitForHwndMessage() could run into loop when
5558             WM_SHOWWINDOW is handled before this method is called.
5559             So, strictly check wm_showwindow state.
5560           - Tick handler should not be invoked while one Tick handler
5561             call is still running (introduced Busy state).
5562
5563 2008-05-13  Andreia Gaita <avidigal@novell.com> 
5564
5565         * WebBrowserBase.cs: Override Internal alternative methods for
5566           SetBoundsCore and OnResize instead of the protected ones.
5567         * Control.cs: Move SetBoundsCore and OnResize implementations to
5568           SetBoundsCoreInternal and OnResizeInternal, so they can be
5569           overriden internally (WebBrowserBase needs to catch them but can't
5570           override the protected methods without api compat problems)
5571
5572 2008-05-13  Andreia Gaita <avidigal@novell.com> 
5573
5574         * WebBrowserBase.cs: Hiding away non-public overrides for api compat
5575
5576 2009-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5577
5578         * Binding.cs:
5579         * ListView.cs: Remove debug messages.
5580
5581 2008-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5582
5583         * ComboBox.cs: Don't do any calculation for simple mode if the listbox
5584         area is empty. Also calculate scrollbars in Simple mode based in area
5585         height and total number of items, not in MaxDropDownItems.
5586         Fixes part of #371991.
5587
5588 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5589
5590         * PictureBox.cs: Always invalidate on resize.  Fixes an app for jhill.
5591
5592 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5593
5594         * BindingSource.cs: GetListSortDescription is not public.
5595
5596 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5597
5598         * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
5599
5600 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5601
5602         * HtmlElement.cs: Fix parameter names to match MS.
5603         * HtmlWindowCollection.cs: Should not be sealed.
5604
5605 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5606
5607         * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
5608         button, because the thumb button will not get drawn if the scrollbar
5609         is disabled.  [Fixes bug #389262]
5610
5611 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5612
5613         * ListBox.cs: Handle End key for multi-column listboxen.
5614         [Fixes bug #389266]
5615
5616 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5617
5618         * ListBox.cs: Fix algorithm to determine which column our item is in.
5619         [Fixes bug #389265]
5620
5621 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5622
5623         * ListBox.cs: Invalidate when the listbox is resized.
5624         [Fixes bug #389256]
5625
5626 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5627
5628         * ListBox.cs: There is always at least one row in the ListBox (if
5629         we are doing these calculations.)  [Fixes bug #389253]
5630
5631 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5632
5633         * ListBox.cs: There is always at least one column in the ListBox.
5634         [Fixes bug #389250]
5635
5636 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5637
5638         * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
5639         ensure in Simple mode that the height is exactly the requested one.
5640         Also add the ComboBoxListControl to the controls collection in Simple
5641         mode even if handle hasn't been created.
5642         Fixes part of #371991.
5643
5644 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5645
5646         * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
5647         our ComboBox owner instead of giving it back to the previous control (
5648         as done in other controls). Also remove the empty override of Select
5649         method, since we want to be selected *and* give focus to our owner.
5650         This should let the user do keys-navigation in Simple mode. 
5651
5652 2008-05-10  Geoff Norton  <gnorton@novell.com>
5653
5654         * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
5655         problems with rapid scrolling of treeviews. Fixes #381084
5656
5657 2008-05-10  Geoff Norton  <gnorton@novell.com>
5658
5659         * XplatUICarbon.cs: Deactivate the active window before
5660         activating the desired window.  Completes fixing #386504
5661
5662 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5663
5664         * ListView.cs: When calculating scrollbars, set horizontal scroll bar
5665         SmallChange to the item size width plus the padding, to match .net.
5666
5667 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5668
5669         * FileDialog.cs: Apply the custom filter typed by the user in the file
5670         name combobox as much as possible while navigating in the file dialog.
5671         Fixes #385261.
5672
5673 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5674
5675         * Binding.cs: Actually use NullValue if the retrieved value of
5676         data source is null or DBNull. Makes a test pass.
5677
5678 2008-05-09  Jonathan Pobst  <monkey@jpobst.com>
5679
5680         * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
5681         * MimeIcon.cs: Provide a way to get icons from resources.
5682
5683 2008-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5684
5685         * Binding.cs: When the value retrieved from the control to be assigned
5686         to the data source is null, actually use the 2.0 DataSourceNullValue
5687         value. Make pass a data binding test.
5688
5689 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
5690
5691         * Control.cs: We need to invalidate implicit children even when
5692         invalidate is called with invalidatechildren = false.  (Implicit
5693         children are really part of the parent.)
5694         * ListView.cs: Double-buffer internal child controls for less
5695         flicker.
5696         * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
5697         owner ListView subitems for greatly increased performance.
5698         [Fixes bug #388477]
5699
5700 2008-05-08  Carlos Alberto Cortez <calebrto.cortez@gmail.com>
5701
5702         * FileDialog.cs: When the user types a wildcard character in the
5703         filename combobox, update the contents of the folder using the text as
5704         a filter.
5705         Fixes part of #385261.
5706
5707 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
5708
5709         * ListBox.cs: Various fixes for MultiColumn listboxen.
5710         [Fixes bug #388114]
5711
5712 2008-05-08  Andreia Gaita <avidigal@novell.com> 
5713
5714         * HtmlElement.cs: Implement Style property
5715
5716 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
5717
5718         * ListBox.cs: Respect checkboxes when measuring item size.
5719         * ThemeWin32Classis.cs: When drawing list items, don't draw
5720         text outside of the item's bounds to prevent overlapping.
5721         (.Net actually overlaps, but that's just silly.)
5722         [Fixes bug #388117]
5723
5724 2008-05-08  Everaldo Canuto  <ecanuto@novell.com>
5725
5726         * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
5727         Gert Driesen. Fixes bug #324830. 
5728
5729 2008-05-07  Everaldo Canuto  <ecanuto@novell.com>
5730
5731         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
5732         method implemented.
5733
5734 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5735
5736         * BindingSource.cs: When calling IsSynchronized, return the value of
5737         the related IList list.
5738
5739 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5740
5741         * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
5742         make a test pass.
5743
5744 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
5745
5746         * DataGridView.cs: Implement PageUp/PageDown keys.  Extend keyboard
5747         navigation to scroll the grid if the current cell is not visible.
5748
5749 2008-05-07  Andreia Gaita <avidigal@novell.com> 
5750
5751         * HtmlElement.cs: Implement TabIndex
5752
5753 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
5754
5755         * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
5756         properties, even when there are no items.
5757         [Fixes bug #387611]
5758
5759 2008-05-07  Ivan N. Zlatev  <contact@i-nz.net>
5760
5761         * NativeWindow.cs: Add support for multiple handles per window.
5762         * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs, 
5763         XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection 
5764         directly - use FromHandle instead.
5765         [Fixes bug #374660]
5766
5767 2008-05-07  Andreia Gaita <avidigal@novell.com> 
5768
5769         * HtmlElement.cs: Implement InnerHTML setter
5770
5771 2008-05-07  Andreia Gaita <avidigal@novell.com> 
5772
5773         * HtmlDocument.cs: Implement Focused
5774
5775 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5776
5777         * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
5778         methods, as well as add messages to the exceptions.
5779
5780 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5781
5782         * BindingSource.cs: Setting DataSource should only reset DataMember if
5783         the previous value was null (make pass a not working test).
5784
5785 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5786
5787         * BindingSource.cs: When EndInit call is postponed and is called until
5788         DataSource.EndInit is called, remove the handler for data source.
5789
5790 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5791
5792         * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
5793
5794 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5795
5796         * ToolStripManager.cs: Store references to toolstrips as
5797         weak references so they do not prevent forms from getting collected.
5798         [Fixes bug #386483]
5799
5800 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5801
5802         * TrackBar.cs: We can't set ResizeRedraw because it isn't set
5803         on .Net.  So do the same thing in WndProc.
5804
5805 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5806
5807         * TrackBar.cs: Commit patch from Andy Hume that corrects
5808         the clickable areas to better match .Net.
5809         [Fixes bug #387074]
5810
5811 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5812
5813         * TrackBar.cs: Commit patch from Andy Hume that adds the
5814         ResizeRedraw control flag so the track bar repaints itself
5815         when it is resized.  [Fixes bug #387072]
5816
5817 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5818
5819         * TrackBar.cs: Commit patch from Andy Hume that adds better
5820         support for keyboard navigation when the TrackBar is vertical.
5821         [Fixes bug #387071]
5822
5823 2008-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5824
5825         * BindingSource.cs: Implement ISupportInitializeNotification support.
5826
5827 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
5828
5829         * ThemeVisualStyles.cs: Added support for ToolBar.
5830
5831 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
5832
5833         * ToolBar.cs: Made the Vertical property internal.
5834
5835 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5836
5837         * ThemeVisualStyles.cs: Added support for TrackBar.
5838
5839 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5840
5841         * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
5842         TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
5843         TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
5844         TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
5845         TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
5846         TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
5847
5848 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5849
5850         * ThemeVisualStyles.cs: Added support for UpDownBase.
5851
5852 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5853
5854         * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
5855         Extracted Theme.UpDownBaseDrawButton.
5856
5857 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
5858
5859         * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
5860         removed from the static toolstrips collection in ToolStripManager
5861         when they are disposed.  Provides a workaround for bug #386483.
5862
5863 2008-05-05  Ivan N. Zlatev  <contact@i-nz.net>
5864
5865         * GridEntry.cs: Read-only properties with Editor with 
5866         UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
5867         [Fixes bug #384184]
5868
5869 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
5870
5871         * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
5872         the menu key and there are no items on the menu.
5873         [Fixes bug #386644]
5874
5875 2008-05-05  Sebastien Pouliot  <sebastien@ximian.com>
5876
5877         * Control.cs: Avoid calling ToString on a string.
5878         * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
5879         * GroupBox.cs: In FlatStyle property throw, not just create, the 
5880         exception. Avoid calling ToString on a string.
5881         * ProgressBar.cs: Avoid calling ToString on a string. 
5882         * ScrollBar.cs: Avoid calling ToString on a string. 
5883         [All issues were found using Gendarme]
5884
5885 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
5886
5887         * NotifyIcon.cs: Prevent click events to be trigger after double click 
5888         events. Fixes remaining issues of bug #324832.
5889
5890 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
5891
5892         * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
5893         to mimic win32 behavior. Partially fixes bug #324832.
5894
5895 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5896
5897         * BindingSource.cs: Implement Find methods.
5898
5899 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5900
5901         * BindingSource.cs: Implement Sort, ApplySort overloads, and
5902         RemoveSort methods.
5903
5904 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5905
5906         * ListBindingHelper.cs: When calling GetListItemProperties and the
5907         passed object is ITypedList, return the result of
5908         ITypedList.GetItemProperties instead.
5909
5910 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5911
5912         * LinkLabel.cs: Set default value of name on constructor of Link class
5913         only for 2.0 profile.
5914
5915 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5916
5917         * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
5918         Fixes remaining issues of bug #346154.
5919
5920 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5921
5922         * LinkLabel.cs: Set a default value for name on internal contructor of
5923         Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
5924
5925 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5926
5927         * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
5928         and refer all instances to owner.links. Partially fixes #346154.
5929
5930 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5931
5932         * LinkLabel.cs: Fix linkarea values for empty text, must have start and 
5933         length equal zero. Also called CreateLinkPieces in constructor. It fixes
5934         the LinkLabel test 'TestLinkArea'.
5935
5936 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5937
5938         * Form.cs: Remove menu before close form to prevent form to be not gaced.
5939         [Fixes #386460]
5940
5941 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5942
5943         * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
5944         [Fixes #386463]
5945
5946 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5947
5948         * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
5949         [Fixed bug #357004]
5950
5951 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5952
5953         * MenuAPI.cs: Remove unused ProcessCmdKey method.
5954
5955 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5956
5957         * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used. 
5958         [Fixes bug #375398]
5959
5960 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5961
5962         * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
5963         of bug #367492.
5964
5965 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5966
5967         * MenuAPI.cs: Check if mouse down comes from menu, we need it because
5968         sometimes we open a conext menu on mouse down of some controls and the mouse
5969         up is dispatched to menu and dont need to. It fix remaining issues of 
5970         #363711 and other problems related to menu mouse click events.
5971
5972 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
5973
5974         * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
5975         some var names to better fit changes, now we have month_menu and today_menu
5976         vars. Fixes bug #363711.
5977
5978 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
5979
5980         * MonthCalendar.cs: Handle every right mouse click to open context menu,
5981         right now the default month menu but it will be change to have "Go to today"
5982         menu.
5983
5984 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5985
5986         * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
5987
5988 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
5989
5990         * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
5991
5992 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5993
5994         * ThemeVisualStyles.cs: Added support for TreeView.
5995
5996 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5997
5998         * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
5999         Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
6000
6001 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6002
6003         * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
6004
6005 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6006
6007         * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
6008         Implement 2.0 SP1 stuffs.
6009
6010 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6011
6012         * FileDialog.cs: Implement 2.0 SP1 stuffs.
6013
6014 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6015
6016         * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
6017         Implement CanEnableIme property. (2.0 SP1)
6018
6019 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6020
6021         * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
6022         from the 2.0 API.
6023
6024 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6025
6026         * Control.cs: Provide an internal way for a control to override
6027         the setting of Height.
6028         * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
6029         set height using new method.
6030
6031 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
6032
6033         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
6034
6035 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
6036
6037         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
6038         ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
6039
6040 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
6041
6042         * ThemeVisualStyles.cs: Added support for StatusBar.
6043
6044 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6045
6046         * DataObject.cs: Add the other IDataObject interface.
6047
6048 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
6049
6050         * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
6051         DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
6052
6053 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6054
6055         * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
6056         * ListView.cs: Hide non-public API.
6057         * MaskedTextBox.cs: Remove extra attribute.
6058
6059 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6060
6061         * DataGridViewImageCell.cs: Use formatted value instead of value
6062         to calculate preferred size.
6063
6064 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
6065
6066         * ListBox.cs: Move some initialization around so that selected_indices
6067         is not accessed before it is created.
6068
6069 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
6070
6071         * InputLanguageCollection.cs: Implement the collection better.
6072         [Fixes bug #385506]
6073
6074 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
6075
6076         * ToolStripDropDownItem.cs: Get the correct event object for
6077         DropDownItemClicked.
6078         * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
6079         [Fixes bug #385475]
6080
6081 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
6082
6083         * DataGridViewRowCollection.cs: We don't currently support shared 
6084         rows.  Should fix test failures caused by previous commit.
6085
6086 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
6087
6088         * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
6089         datagridview gets set.  Only paint cells in visible columns.
6090         * DataGridViewCell.cs: Draw border after cell content.
6091         * DataGridView.cs: Invalidate after setting some properties.  Only
6092         use visible columns.  Fit hit test bug with areas in the col/row header
6093         area but not in a row or col.  Implement UpdateCell/Row methods.
6094
6095 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
6096
6097         * DataGridViewElement.cs: Don't throw NIEX.
6098         * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
6099         * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
6100         * DataGridViewCheckBoxColumn.cs: Implement ToString.
6101         * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
6102         * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
6103         if the user filled in the formatting Value, use it.
6104
6105 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
6106
6107         * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
6108         to a string.
6109
6110 2008-04-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6111
6112         * BindingSource.cs: Some corrections to Filter property, as well as
6113         setting it for our list when resetting it.
6114
6115 2008-04-29  Jonathan Pobst  <monkey@jpobst.com>
6116
6117         * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
6118         than the maximum.  Fixes reopened bug #384182.
6119
6120 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6121
6122         * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
6123         Fixes remaining issues of #367490.
6124
6125 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6126
6127         * ToolStripDropDown.cs: Screen.Bound dont return right value then use 
6128         SystemInformation.WorkingArea to get max_screen value.
6129
6130 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6131
6132         * BindingSource.cs: Implement Filter and RemoveFilter.
6133
6134 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6135
6136         * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
6137
6138 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6139
6140         * X11Dnd.cs: When trying to convert data and we know we started the
6141         dnd loop, don't try to use the cached data if the loop is not running,
6142         which means that the data has been resetted.
6143         Fixes #378191.
6144
6145 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6146
6147         * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
6148         win32 behavior.
6149
6150 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6151
6152         * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
6153         it to drawn off screen edge. Fixes bug #367490.
6154
6155 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6156
6157         * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
6158         menu position to have only one assignment of Location var.
6159
6160 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6161
6162         * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
6163         for this patch. Fixes bug #384115.
6164
6165 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
6166
6167         * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
6168         the same.  If LargeChange is zero, set a minimum size for the scroll
6169         thumb grip.  [Fixes bug #384182]
6170
6171 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
6172
6173         * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
6174         [Fixes bug #384181]
6175
6176 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
6177
6178         * ListBox.cs: Math.Min should be Math.Max.  [Fixes bug #384183]
6179
6180 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6181
6182         * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
6183         patch from Ernesto).
6184
6185 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6186
6187         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
6188
6189 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6190
6191         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
6192
6193 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6194
6195         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
6196
6197 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6198
6199         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
6200
6201 2008-04-27  George Giolfan  <georgegiolfan@yahoo.com>
6202
6203         * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
6204
6205 2008-04-27  Andreia Gaita <avidigal@novell.com> 
6206
6207         * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
6208           supposed to return a reference to an mshtml interface, which we
6209           don't support).
6210         * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
6211           reference to an mshtml interface, which we don't support). Code
6212           formatting cleanup.
6213         * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
6214           DomDocument getter (it's supposed to return a reference to an
6215           mshtml interface, which we don't support). Code formatting cleanup.
6216
6217 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6218
6219         * ListView.cs: Ouch, forgot to commit.
6220
6221 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6222
6223         * ListView.cs: 
6224         * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
6225
6226 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6227
6228         * ListView.cs: When calculating box selection for virtual mode, don't
6229         look for intersection with item's text, but item bounds, since that
6230         would mean read ListViewItem's text for _every_ item, and that's
6231         something we just can't do in virtual mode (items are only requested
6232         when drawn).
6233
6234 2008-04-26  George Giolfan  <georgegiolfan@yahoo.com>
6235
6236         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
6237         partial support for managed windows (based on the patch from Ernesto).
6238
6239 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6240
6241         * ListView.cs: When doing a key search use FindItemWithText method
6242         instead of doing the search by ourselves, this way we avoid
6243         duplicating the code and also we handle the special case for virtual
6244         mode. To achieve that make our private overload of FindItemWithText
6245         internal and also have a 'roundtrip' parameter.
6246
6247 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6248
6249         * ListView.cs: When doing the layout don't request the
6250         ListViewItem instance if we are in virtual mode (since we can't request it
6251         until the item is actully drawn).
6252
6253 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6254
6255         * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch 
6256         from Ernesto).
6257
6258 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6259
6260         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on 
6261         the patch from Ernesto).
6262
6263 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6264
6265         * ThemeEngine.cs: Added code to select ThemeVisualStyles.
6266         * ThemeVisualStyles.cs: Added.
6267
6268 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6269
6270         * IDeviceContext.cs: Added a missing using.
6271
6272 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6273
6274         * ButtonBase.cs: Made IsDefault protected internal.
6275         * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
6276
6277 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6278
6279         * Application.cs: Included VisualStyles-related members in the 1.1 profile.
6280         * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
6281         RadioButtonRenderer.cs: Included in the 1.1 profile.
6282         * IDeviceContext.cs: Added.
6283         * TextRenderer.cs: Included a member in the 1.1 profile.
6284
6285 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6286
6287         * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
6288
6289 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
6290
6291         * ErrorProvider.cs: Make the error icons come after the control
6292         they refer to.  It isn't the way the MS does it, but its better
6293         than what we were doing.  See bug #368587.
6294
6295 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
6296
6297         * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
6298         from Eric Albright that lazy loads the input language as ensures
6299         everything gets properly initialized.  Fixes bug #373871.
6300
6301 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
6302
6303         * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
6304         implicit mnemonics.  [Fixes bug #383000]
6305
6306 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6307
6308         * X11Dnd.cs: When canceling the operation, automatically restore the
6309         default cursor - normally the default cursor is restored when the
6310         mouse buttons are released, but we should be able to restore it even
6311         if the buttons are still pressed (for example, when pressing ESC to
6312         cancel).
6313         Fixes #381894.
6314
6315 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6316
6317         * X11Dnd.cs: When starting a new drad and drop operation, set control
6318         field to null, just as the other fields, to avoid calling any
6319         operation on a previous control. Also, when calling DndLeave on a
6320         control, set it to null, thus we don't fire that event multiple times
6321         for that control.
6322         Fixes #209264.
6323
6324 2008-04-23  Geoff Norton  <gnorton@novell.com>
6325
6326         * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
6327         the whole_window object.  Fixes #377084.
6328
6329 2008-04-23  Andreia Gaita <avidigal@novell.com> 
6330
6331         * HtmlElement.cs: Implement RaiseEvent (event injection into the
6332           embedded browser)
6333
6334 2008-04-23  Jonathan Pobst  <monkey@jpobst.com>
6335
6336         * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
6337
6338 2008-04-23  Andreia Gaita <avidigal@novell.com> 
6339
6340         * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
6341           invocation
6342
6343 2008-04-23  Andreia Gaita <avidigal@novell.com> 
6344
6345         * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
6346           attaching/detaching
6347
6348 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6349
6350         * X11Dnd.cs: When the drop was cancelled, or could just not be
6351         performed, return DragDropEffect.None always (match .net).
6352
6353 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
6354
6355         * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
6356
6357 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
6358
6359         * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
6360
6361 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
6362
6363         * DataGridView.cs: Add support for error icon tool tips.
6364         * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
6365         * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
6366
6367 2008-04-22  Ivan N. Zlatev  <contact@i-nz.net>
6368
6369         * X11Structs.cs: Add mouse button masks enum.
6370         * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and 
6371         WM_EXITSIZEMOVE only once at the beginning and at the end of the 
6372         form resize/move operation instead of for each step of it.
6373         [Fixes bug #346529 for the x11 backend]
6374
6375 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6376
6377         * DataGridView*: Implement support for drawing error icons.
6378
6379 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6380
6381         * TreeView.cs: Make vbar and hbar internal.
6382         * TreeNode.cs: If collapsing the node removes one of the TreeView's
6383         scrollbars, invalidate the whole thing.
6384         [Fixes bug #382001]
6385
6386 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6387
6388         * TreeView.cs: Calling Sort() sets Sorted = true.
6389         * TreeNodeCollection.cs: Try to find the owner TreeView to determine
6390         if the nodes need to be sorted.
6391         [Fixes bug #382028]
6392
6393 2008-04-21  Ivan N. Zlatev  <contact@i-nz.net>
6394
6395         * Form.cs: Fire SizeChanged for both when the form is minimized and 
6396         restored.
6397         * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it 
6398         on PropertyNotify of _NET_WM_STATE. Much much cleaner.
6399
6400 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6401
6402         * ComboBox.cs: If the combobox is disabled, draw a disabled
6403         background before painting anything else.
6404         [Fixes bug #381729]
6405
6406 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6407
6408         * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
6409         forget to send a Leave event to the target window - just as .net does
6410         when cancelling dnd operations.
6411
6412 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6413
6414         * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
6415         soon as possible - this happens when we send the drop message to the
6416         target window. This way we avoid firing any DragOver _after_ drop finished.
6417         Fixes #378179.
6418
6419 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6420
6421         * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
6422         * Form.cs: Handle form minimization as a special state, where size doesn't 
6423         change, but we have to fire SizeChanged.
6424         [Fixes bug #325122 for the win32 and x11 backends]
6425
6426 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6427
6428         * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS 
6429         if the handle is disabled.
6430         [Fixes bug #371751]
6431
6432 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6433
6434         * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations) 
6435         for forms with FormBorderStyle.None.
6436         [Fixes bug #349571]
6437
6438 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6439
6440         * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and 
6441         WM_EXITSIZEMOVE.
6442         [Fixes bug #346529 for the X11 backend]
6443
6444 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6445
6446         * XplatUIX11.cs: 
6447           - Send a mouse Enter message after say dragging the mouse with a 
6448           button down and then release it in another client.
6449           - Reset the cursor to prevent X11 from remembering it and setting it 
6450           before the control gets WM_SETCURSOR.
6451           - Qeueue a mouse move after a mouse enter like win32.
6452           [Fixes bug #323234]
6453
6454 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6455
6456         * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND. 
6457         It's sent when the form gets moved, resized, closed.
6458         * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
6459         [Fixes bug #359193 for X11]
6460
6461 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6462
6463         * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes 
6464         the build.
6465
6466 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6467
6468         * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0 
6469         group. Fixes the 1.1 build.
6470
6471 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6472
6473         * ListView.cs: Use display indexes for selection in Details view, as
6474         well as do the proper layout based on display indexes for that view
6475         too.
6476
6477 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6478
6479         * ListView.cs: Focused item information is now stored as a display
6480         index, and display indexes are used all over the place for selection,
6481         instead of ListViewItem.Index values, which doesn't give us enough
6482         information to modify the selection in groups mode, and was broken.
6483
6484 2008-04-18  Ivan N. Zlatev  <contact@i-nz.net>
6485
6486         * Control.cs: Do not fire MouseDown if validation of the control has 
6487         failed.
6488         * Form.cs: Validate the form before closing.
6489         [Fixes bugs #330501 and #353310]
6490
6491 2008-04-18  Andreia Gaita <avidigal@novell.com> 
6492
6493         * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
6494           CreateWebBrowserSiteBase implementations
6495         * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
6496           Style and TabIndex setters
6497
6498 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6499
6500         * ListViewGroup.cs: When returning the actual item count, return the
6501         proper count for default group.
6502         Fix the tests.
6503
6504 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6505
6506         * ListView.cs:
6507         * ListViewGroup.cs: When calculating groups layout, get the actual
6508         number of items per group, since groups added to the group BUT not
6509         added to the ListView are just ignored, and can cause some nasty
6510         exceptions because of the lack of synchronization. Also for
6511         ListViewGroup don't use lazy initialization for items, since we 
6512         the common scenario is to use it always - and it helps us to  refactor
6513         and clean the .ctor overloads.
6514
6515 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6516
6517         * ListView.cs: When adding an item to a ListViewItemCollection
6518         belonging to a group (ListViewGroup.Items), don't generate a redraw if
6519         the added item hasn't beeen previously added to the ListView instance
6520         refered by the group, since it will be ignored. This should avoid some 
6521         really nasty flickering.
6522
6523 2008-04-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6524
6525         * ListView.cs: When accessing an item in a specific display
6526         position, use the helper method GetItemAtDisplayIndex, instead of
6527         direct access to the reordered_items_indices array. When doing layout
6528         for groups set the correct Items index for the display position (since
6529         in groups mode items don't have the same position as in Items
6530         collection).
6531         * ListViewGroup.cs: Add a field to store the starting item number,
6532         which is later used when calculating the layout.
6533
6534         Fixes #360805.
6535
6536 2008-04-17  Gert Driesen  <drieseng@users.sourceforge.net>
6537
6538         * Application.cs: Fixed ProductVersion to fallback to the assembly
6539         version. Fixes regression for bug #325413.
6540
6541 2008-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6542
6543         * ListView.cs: New helper method to retrieve an item in a _specific
6544         display_ position (the items can be displayed in a different order
6545         than one of Items collection).
6546         * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
6547         collection, use ListView.GetItemAtDisplayIndex, to get an item in a
6548         specific display position (again remember that items can be sorted
6549         different than Items).
6550
6551 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
6552
6553         * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
6554         list and update it when the collection changes.  We were recreating
6555         this several times per row paint and for every pixel the mouse moved
6556         across the grid.
6557         * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
6558         changes.
6559
6560 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
6561
6562         * DataGridViewColumnCollection.cs: Convert our internal sorted columns
6563         list to use generics.
6564         * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
6565         and remove unneccessay casts.
6566
6567 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
6568
6569         * DataGridViewBand.cs: Add internal way to set displayed variable.
6570         * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
6571         * DataGridView.cs: Make sure we always keep track of Displayed
6572         rows and columns, and only draw things that are displayed.
6573
6574 2008-04-16  Atsushi Enomoto  <atsushi@ximian.com>
6575
6576         * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
6577           whether the key events are filtered or not. Introduced
6578           PreFilter() process for this purpose. This fixes atokx3/iiimx
6579           shift state issue.
6580
6581 2008-04-16  Andreia Gaita <avidigal@novell.com> 
6582
6583         * HtmlHistory.cs: Implement Length property
6584
6585 2008-04-15  Jonathan Pobst  <monkey@jpobst.com>
6586
6587         * DataGridView.cs: Call EndEdit when a sort is performed so we take
6588         away the edit textbox.  Refactor to reuse column sort code.
6589
6590 2008-04-12  Everaldo Canuto  <ecanuto@novell.com>
6591
6592         * MenuAPI.cs: Remove the code that save and restore capture status of 
6593         grab_control, this fixes some Menu and Context menu bugs but maybe it can
6594         cause some others, I cant figure the possible problems of this patch but
6595         right now remove the code looks to be better than keep it. This patch fixes
6596         bugs #357638, #378721 and #379570.
6597
6598 2008-04-12  Andreia Gaita <avidigal@novell.com> 
6599
6600         * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
6601         Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
6602         add missing properties and event handlers.
6603         
6604 2008-04-14  Jonathan Pobst  <monkey@jpobst.com>
6605
6606         * ListBox.cs: Make sure the LargeChange we are setting is at least
6607         zero, to prevent an IOORE.  [Fixes bug #379531]
6608
6609 2008-04-13  Andy Hume <andyhume32@yahoo.co.uk>
6610
6611         * ComboBox.cs: Support item navigation by entering text.  Firstly, 
6612         in DropDownList mode, for each key-press select the next item 
6613         starting with that letter.
6614         For other modes, when no item selected, on arrow-up/-down and open 
6615         drop-down select the first item matching the text in the textbox.
6616
6617 2008-04-14  Atsushi Enomoto  <atsushi@ximian.com>
6618
6619         * X11Keyboard.cs : Control.FromHandle() could return null
6620           in MoveCurrentCaretPos().
6621
6622 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6623
6624         * ListView.cs: When changing the size in VirtualMode, also Reset the
6625         selection.
6626         * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
6627         changing selection info for VirtualMode.
6628         Fixes #372618.
6629
6630 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6631
6632         * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
6633         view, don't use LineLimit for the first item - use NoWrap *always*
6634         instead, since ListView.LabelWrap is not used for this view.
6635         Fixes #378054.
6636
6637 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6638
6639         * Binding.cs: Call UpdateIsBinding when setting control - probably
6640         Binding is already usable and we don't need to wait to check the
6641         IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
6642         Created, just like 2.0 does.
6643         * CurrencyManager.cs: I'm so lame - the previous check was wrong.
6644
6645 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6646
6647         * Binding.cs: Just realized we don't need to have a handler for
6648         BindingContextChanged, since this info should be now consumed directly
6649         in the BindingManagerBase. And also, the manager.IsBindingSuspended
6650         state info is checked directly, instead of caching it.
6651
6652         * CurrencyManager.cs: IsSuspended should return always false if Count
6653         == 0.
6654
6655 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6656
6657         * Binding.cs: When calling PushData, return if manager.Count == 0,
6658         since we just don't have data to be read. Also, when setting the
6659         Control for binding, hook up some events to refresh the IsBinding
6660         state when BindingContext change or control gets created; use
6661         Control.IsHandleCreated instead of Control.Created check to set
6662         IsBinding state - we *actually* need to modify IsBinding when control
6663         is created, but we don't have any Created event, only HandleCreated.
6664         Fixes part of #349364.
6665
6666 2008-04-11  Geoff Norton  <gnorton@novell.com>
6667
6668         * XplatUICarbon.cs: Expose Caret to the Carbon layer.  Guard against
6669         warping a null Caret.
6670
6671 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
6672
6673         * DataGridView.cs: Implement row/column autosizing methods. Implement
6674         autosorting.
6675         * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
6676         * DataGridViewRowCollection.cs: Add an internal sorting method.
6677
6678 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
6679
6680         * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
6681         value in ListView drawing code.
6682
6683 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
6684
6685         * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
6686         is clicked.  Respect the user setting Cancel in FileOk.
6687
6688 2008-04-11  Geoff Norton  <gnorton@novell.com>
6689
6690         * ListView.cs: Avoid setting and resetting control Width/Heights and
6691         calculate the final value and set it once.  Prevents a feedback loop
6692         on the mac.
6693
6694 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
6695
6696         * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
6697         [Fixes bug #378869]
6698
6699 2008-04-10  Atsushi Enomoto  <atsushi@ximian.com>
6700
6701         * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
6702           Add some on-the-spot code, but it seems we don't need it.
6703
6704 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
6705
6706         * Form.cs: Add method for DataGridView to trigger focus cues
6707         even when it handles the tab keypress.
6708
6709 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
6710
6711         * DataGridView.cs: More keyboard handling, tab, esc.
6712         * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
6713         when at the beginning or end of the text in the text box.
6714
6715 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6716
6717         * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
6718
6719 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6720
6721         * DataGridView.cs: Some fixups for showing and adding the edit control.
6722         * DataGridViewButtonColumn.cs: Implement ToString.
6723         * DataGridViewCell.cs: Size and position the control simultaneously.
6724         * DataGridViewTextBoxCell.cs: Use base to position control.
6725
6726 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6727
6728         * DataGridViewCell.cs: Fix up some formatting and painting code.
6729         * DataGridViewImageCell.cs: Implement some NIEX methods.
6730
6731 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6732
6733         * ToolStripItemCollection.cs: What moving an item from one owner
6734         to another, remove from source owner before adding to destination.
6735         [Fixes bug #378109]
6736
6737 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6738
6739         * PictureBox.cs: Call Load when ImageLocation is set.
6740         [Fixes bug #378308]
6741
6742 2008-04-09  Atsushi Enomoto  <atsushi@ximian.com>
6743
6744         * X11Keyboard.cs, XplatUIX11.cs :
6745           Implement over-the-spot mode (with some odd offsets).
6746           - set preedit position when caret is set.
6747           - Wrap XMoveResizeWindow() to move preedit position.
6748
6749 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
6750
6751         * X11keyboard.cs: Fix last patch, maxval must be less not greater than
6752         array lenght.
6753
6754 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
6755
6756         * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
6757         and ScanTableIndex public, it fix compilations errors when compiling
6758         WinForms to generate keyboard layout resources.
6759
6760 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
6761
6762         * X11keyboard.cs: Prevent keyboard errors when vitual table theres 
6763         different element count than scan table. It prevents some errors in non
6764         standard keyboards.
6765
6766 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
6767
6768         * DataGridViewHeaderCell.cs: Implement some NIEX methods.
6769
6770 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
6771
6772         * DataGridView.cs: Call OnContentClick.
6773         * DataGridViewCell.cs: Do a null check on ValueType instead
6774         of valueType.
6775         * DataGridViewCheckBoxCell.cs: Implement.
6776
6777 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
6778
6779         * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
6780
6781 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
6782
6783         * X11Keyboard.cs : Check XGetIMValues() return value in
6784           case it does not return input styles in some environment.
6785
6786 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
6787
6788         * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
6789
6790 2008-04-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6791
6792         * BindingContext.cs: Stub UpdateBinding method.
6793
6794 2008-04-07  Atsushi Enomoto  <atsushi@ximian.com>
6795
6796         * X11Structs.cs : added couple of structs for XIM support.
6797         * X11Keyboard.cs :
6798           Release XIM in case it failed to create XIC. 
6799           Use consts for XNblah string.
6800           Add support for IM style customization and XIC creation
6801           for preedit-position and preedit-callback.
6802           Right now use MONO_WINFORMS_XIM_STYLE environment variable
6803           (list of: over-the-spot | on-the-spot | root). Only root
6804           mode works so far.
6805
6806           (redoing r99172 with fix.)
6807
6808 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
6809
6810         * TreeView.cs: Center the checkbox a little better.
6811
6812 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
6813
6814         * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
6815         Apply very nice patch from Ernesto Carrea that simplifies our
6816         scrollbar drawing.  [From bug #376146]
6817
6818 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
6819
6820         * TreeView.cs: Correct the location of the root node checkbox when
6821         ShowRootLines = false.  Don't draw the root lines for the root node
6822         when ShowRootLines = false.  [Fixes bug #377535]
6823
6824 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
6825
6826         * WebBrowserBase.cs: Added missing attributes and fixed attributes.
6827         Fixed line endings.
6828         * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
6829         line endings.
6830         * MaskedTextBox.cs: Added missing attribute. Code formatting.
6831         * PageSetupDialog.cs: Added missing attribute. Code formatting.
6832         * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
6833         * ImeMode.cs: Added missing field.
6834         * HtmlWindow.cs: Code formatting. Fixed line endings.
6835         * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
6836         warnings.
6837         * HtmlHistory.cs: Code formatting. Fixed line endings.
6838         * HtmlDocument.cs: Code formatting. Fixed line endings.
6839         * ToolStripPanel.cs: Added missing IList implementation.
6840         * HtmlElementCollection.cs: Code formatting. Fixed line endings.
6841
6842 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
6843
6844         * BindingContext.cs: Changed argument names to fix corcompare errors.
6845         * DataGridView.cs: Removed extra explicit interface implementation
6846         of IDropTarget. Code formatting.
6847         * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
6848         * ComboBox.cs: Changed argument names to fix corcompare errors.
6849         * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
6850         errors.
6851         * GridColumnStylesCollection.cs: Changed argument names to fix
6852         corcompare errors. Removed extra tabs.
6853         * GridTableStylesCollection.cs: Changed argument names to fix corcompare
6854         errors.
6855         * Control.cs: Changed argument names to fix corcompare errors. Code
6856         formatting. Removed extra explicit IList implementation.
6857         * TextBox.cs: Changed argument names to fix corcompare errors. Code
6858         formatting. Use string.Empty instead of "".
6859         * GridItemCollection.cs: Changed argument names to fix corcompare
6860         errors. Code formatting.
6861         * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
6862         corcompare errors. Code formatting.
6863         * ImageList.cs: Changed argument names to fix corcompare errors.
6864         * ToolStripItem.cs: Changed argument names to fix corcompare errors.
6865         * DataGridViewRowCollection.cs: Changed argument names to fix
6866         corcompare errors. Code formatting.
6867         * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
6868         * DataGridViewSelectedCellCollection.cs: Changed argument names to
6869         fix corcompare errors. Code formatting.
6870         * DataGridViewComboBoxCell.cs: Changed argument names to fix
6871         corcompare errors. Code formatting.
6872         * LinkLabel.cs: Changed argument names to fix corcompare errors.
6873         * TreeNode.cs: Changed argument names to fix corcompare errors. Code
6874         formatting.
6875         * PropertyGrid.cs: Changed argument names to fix corcompare errors.
6876         Code formatting.
6877         * BindingSource.cs: Changed argument names to fix corcompare errors.
6878         Removed extra explicit interface implementations.
6879         * DataGridViewSelectedRowCollection.cs: Changed argument names to
6880         fix corcompare errors. Code formatting.
6881         * ToolStripItemCollection.cs: Removed extra explicit interface
6882         implementation of IList.ReadOnly.
6883         * DataGridViewColumnCollection.cs: Changed argument names to fix
6884         corcompare errors. Code formatting.
6885         * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
6886         * ListView.cs:  Changed argument names to fix corcompare errors.
6887         * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
6888         errors.
6889         * DataGridBoolColumn.cs: Changed argument names to fix corcompare
6890         errors.
6891         * ListBindingHelper.cs: Changed argument names to fix corcompare
6892         errors.
6893         * DataGridViewSelectedColumnCollection.cs: Changed argument names to
6894         fix corcompare errors. Code formatting.
6895         * ToolStripPanel.cs: Removed extra explicit implementation of
6896         IDropTarget interface.
6897         * ListBox.cs: Changed argument names to fix corcompare errors. Code
6898         formatting. Removed extra tabs and spaces.
6899         * DataGridViewCellCollection.cs: Changed argument names to fix
6900         corcompare errors.
6901         * Help.cs: Changed argument names to fix corcompare errors. Code
6902         formatting.
6903         * TabControl.cs: Changed argument names to fix corcompare errors.
6904         * DataGridColumnStyle.cs: Changed argument names to fix corcompare
6905         errors.
6906         * TableLayoutSettings.cs: Changed argument names to fix corcompare
6907         errors.
6908
6909 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6910
6911         * ListBindingHelper.cs: When returning properties, only return those
6912         that are browsable. Also, don't do a linear search of the properties,
6913         but use the indexer of the PropertyDescriptorCollection class.
6914
6915 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6916
6917         * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
6918         Dictionary containing the related (child) currency managers. Also,
6919         when setting DataSource, add datasource to our List if it is not a list.
6920
6921 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
6922
6923         * PropertyGridTextBox.cs: Fix background color of the buttons.
6924         * PropertyGridView.cs: Make the entry less jumpy.
6925
6926 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
6927
6928         * PropertyGrid.cs: Fix unused variable warnings.
6929
6930 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
6931
6932         * PropertyGridView.cs: Fix expansion via [+] misbehavior on 
6933         double-click. It expanded it once in the mouse down and then 
6934         again in the double-click handler.
6935
6936 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
6937         
6938         * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner, 
6939         TypeConverter and UITypeEditors.
6940
6941 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
6942
6943         * Control.cs: Visibility should be set synchronously, 
6944         so we must also redraw once it is and not rely on layouting or 
6945         other code to repaint.
6946         [Fixes bug #339898]
6947
6948 2008-04-04  Jonathan Pobst  <monkey@jpobst.com>
6949
6950         * DataGridViewCell.cs: Respect DataGridView.GridColor.
6951
6952 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
6953
6954         * Control.cs: Invalidate when the alpha channel is less than 255,
6955         not only when control is transparent.
6956
6957 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
6958
6959         * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
6960         Implement some painting convenience methods that threw NIEX.
6961
6962 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
6963
6964         * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
6965         * DataGridViewLinkCell.cs: Implement.
6966
6967 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
6968
6969         * GridEntry.cs: Report the conversion exception error description.
6970         [Fixes bug #375792]
6971
6972 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
6973
6974         * PropertyGridView.cs: Do not scroll to item on resize.
6975         [Fixes bug #375789]
6976
6977 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6978
6979         * BindingContext.cs: When retrieving a BindingManagerBase, if the
6980         dataSource parameter is ICurrencyManagerProvider, then return
6981         ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
6982         instead of creating a new one.
6983
6984 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6985
6986         * BindingSource.cs: Implement support for Type instances as
6987         DataSource.
6988
6989 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
6990
6991         * DataGridView.cs: Minor cleanups and call CellMouseUp.
6992         * DataGridViewCell.cs: Make some painting routines internally virtual.
6993         * DataGridViewButtonCell.cs: Implement.
6994
6995 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
6996
6997         * Control.cs: We always need to invalidate our children with
6998         transparent backgrounds when we are invalidated.
6999         [Fixes bug #376081]
7000
7001 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7002
7003         * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
7004         and CancelCurrentEdit on CurrencyManager respectively. Implement
7005         support for ICancelAddNew too.
7006
7007 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7008
7009         * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
7010         call EndNew/CancelNew if list is ICancelAddNew.
7011
7012 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
7013
7014         * DataGridView.cs: Guard against an exception while painting
7015         if there are no rows.
7016
7017 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
7018
7019         * DataGridView.cs: Implement a bunch of keyboard commands.
7020
7021 2008-03-31  Jonathan Pobst  <monkey@jpobst.com>
7022
7023         * ToolBar.cs: Don't do our painting if UserPaint is set.  If UserPaint
7024         isn't set, don't call OnPaint.  [Fixes bug #375300]
7025
7026 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7027
7028         * BindingSource.cs: IsBindingSuspended, ResumeBinding and
7029         SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
7030         hookup the remaining events related to CurrencyManager, and fire
7031         OnListChanged also for the Clear () method.
7032
7033 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7034
7035         * BindingSource.cs: Use Current and Position implementations in
7036         CurrencyManager instead of using our own routines, since we need 
7037         to be in synch with it. Count should NEVER return a -1 value, and 
7038         also report ListChanged events for both simple IList data 
7039         sources (manually) as well for IBindingList ones (by hooking up an
7040         event handler for it).
7041
7042 2008-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7043
7044         * BindingSource.cs: Make one .ctor call the another, to avoid
7045         duplicate code. Add the CurrencyManager property, and also for AddNew
7046         throw the proper exceptions and show better error messages.
7047
7048 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
7049
7050         * ComboBox.cs: Only adjust selectedindex if Handle has been
7051         created.  Fixes failing test.
7052
7053 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
7054
7055         * ComboBox.cs: Adjust selectedindex if we insert a new item
7056         above the current selectedindex in a sorted ComboBox.
7057         [Fixes bug #374654]
7058
7059 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
7060
7061         * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
7062         [Fixes bug #374712]
7063
7064 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
7065
7066         * DataGridViewTextBoxCell.cs: Implement stuffs.
7067
7068 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
7069
7070         * TreeView.cs: Create the scrollbars even earlier to be
7071         double dog certain they are created before they are accessed.
7072
7073 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
7074
7075         * XplatUIX11.cs: Remove a no-op line that csc was choking on.
7076
7077 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
7078
7079         * ScrollBar.cs: Create an internal safe Value setter so we
7080         won't crash if we try to set a value outside the min and max.
7081         * TextBoxBase.cs: Use safe value setter to guard against a
7082         potential NRE that is being reported by Reflector.
7083
7084 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
7085
7086         * TreeView.cs: Create the scrollbars earlier in the constructor
7087         to attempt to guard against an NRE in SetTop in Reflector.
7088
7089 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
7090
7091         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
7092         DataGridViewRowCollection.cs: Do not scroll column and row headers,
7093         show messagebox on data format error, use column display index
7094         correctly, make sure HitTest supports new layout stuff,
7095         make sure scrollbars support new layout stuff.
7096
7097 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
7098
7099         * XplatUIX11.cs : Patch by Doug Rintoul.
7100           For some IM engines, keypress events need to delay call
7101           to XPending() and XNextEvent() in the loop so that it
7102           does not mess the orders in XIM commit callback.
7103           Some KeyRelease events such as shift keys need to be
7104           processed both in the IM engine and winforms driver
7105           itself since winforms holds its own state check.
7106
7107           For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
7108
7109 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
7110
7111         * X11Keyboard.cs, XplatUIX11.cs :
7112           add primitive support for XIM input support (preedit-
7113           nothing and status-nothing). It requires precise event
7114           capturing (XSelectInput/"filterEvents") and different
7115           call to XFilterEvent against root window.
7116           Get composed string and send dummy WM_IME_COMPOSITION.
7117           Free XIM and XIC instances in finalizer.
7118
7119           (This first patch does not include suggested changes
7120            by Doug Rintoul. It will follow.)
7121
7122 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
7123
7124         * DataGridView.cs: When binding to a property, if the property
7125         doesn't have a setter, set the column to readonly.
7126         [Fixes bug #343965]
7127
7128 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
7129
7130         * ComboBox.cs: Guard against NRE if an arrow key is hit while
7131         we aren't dropped down.  Support Home/End in DropDownList mode.
7132         [Fixes bug #371990]
7133
7134 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
7135
7136         * TreeNodeCollection.cs: Don't increment count until we've
7137         saved our index to return.
7138         [Fixes bug #373603]
7139
7140 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
7141
7142         * Label.cs: Add padding to the label's AutoSize calculation.
7143         [Fixes bug #373792]
7144
7145 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7146
7147         * ListBindingHelper.cs: Actually implement GetListName method.
7148
7149 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7150
7151         * BindingSource.cs: Throw the propert expceptions for some methods, as
7152         well as detect the list item type for Add method if DataSource is null.
7153
7154 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
7155
7156         * DataGridViewCell.cs: I don't know why I commented this out,
7157         putting it back for now.
7158
7159 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
7160
7161         * DataGridViewCell.cs: Remove storage for owning column, just
7162         use column index.
7163         * DataGridViewColumn.cs: Make getter for HeaderTextSet.
7164         * DataGridViewColumnHeaderCell.cs: If the header text has been
7165         explicitly set, return it.
7166         [Fixes bug #325979]
7167
7168 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
7169
7170         * DataGridViewRowCollection.cs: Disable row sharing when
7171         using data binding.  Its a great feature, but lets work on
7172         getting DGV usable first before we worry about optimizations.
7173
7174 2008-03-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7175
7176         * BindingSource.cs: When resetting our internal list, compute list
7177         item type information to be used for indirect list access. Also
7178         implement/tune some properties and methods related to the list access
7179         too.
7180         * ListBindingHelper.cs: Add a stub for GetListName method, used from
7181         BindingSource.
7182
7183 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7184
7185         * DataGridView.cs: If RowCount is increased while ColumnCount
7186         is zero, add a column.  [Fixes bug #331649]
7187
7188 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7189
7190         * DataGridViewRowCollection.cs: When adding new rows for
7191         databinding, make sure they are place before the add row.
7192         [Fixes bug #343961]
7193
7194 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7195
7196         * DataGridViewRow.cs: Draw cells in column DisplayIndex order
7197         instead of Index order.
7198
7199 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7200
7201         * DataGridView.cs: If columns are added by increasing ColumnCount,
7202         they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
7203         [Fixes bug #325588]
7204
7205 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7206
7207         * DataGridView.cs: Turn off and on the "new row" when 
7208         AllowUserToAddRows is toggled.  When the handle is created,
7209         set current cell and selected cell/row/col.
7210
7211 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7212
7213         * ComboBox.cs: When navigating the drop down by keyboard, we
7214         need to scroll the list box if our selection moves out of the
7215         currently shown items.  [Fixes bug #371990]
7216
7217 2008-03-24  Luke Page <luke.a.page@gmail.com>
7218
7219         * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
7220         on the control. Also now handles unicode compatibility characters and
7221         stores the unicode compatibility length on the stack. Fixes Bugs
7222         #355198 and #366436.
7223
7224 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7225
7226         * BindingSource..cs: Take into account DataMember when re-creating the
7227         List property, and also create a specific kind of list as needed.
7228
7229 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7230
7231         * ListBindingHelper.cs: Add a new case for GetList () method - when we
7232         get an empty IEnumerable, try to detect whether the datamember is
7233         valid or not for that type, if true, return null, and throw exception
7234         otherwise.
7235
7236 2008-03-22  Jonathan Pobst  <monkey@jpobst.com>
7237
7238         * ComboBox.cs: Alt-Down should drop down the list, Esc should
7239         retract it.  [Fixes bug #371989]
7240
7241 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
7242
7243         * PropertyGrid.cs: Initialize the sorting button as pushed.
7244
7245 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
7246
7247         * PropertyGrid.cs: 
7248          - Visually select the PropertyTab.
7249          - Filter Properties by Attributes properly.
7250
7251 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
7252
7253         * MenuItem.cs: Remove menu item from parent when disposed.
7254         [Fixes bug #372845]
7255
7256 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
7257
7258         * ToolBar.cs: Don't reset layout_type if Dock = None.
7259
7260 2008-03-21  Andreia Gaita <avidigal@novell.com> 
7261
7262         * UserControl.cs: Select the first available control when we get focus.
7263           Fixes #372616
7264
7265 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
7266
7267         * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
7268         the content if we are in edit mode.  [Fixes bug #343964]
7269
7270 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
7271
7272         * DataGridViewCell.cs: Fix border painting for column headers.
7273
7274 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7275
7276         * BindingSource.cs: When setting or resetting data source,
7277         use ListBindingHelper.GetList () method, since it will get the list in
7278         case datasource is IListSource.
7279
7280 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
7281
7282         * DataGridViewCell.cs: Implement lots more stuffs.
7283
7284 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
7285
7286         * PropertyGridView.cs, GridEntry.cs: Implement support for 
7287         UITypeEditor.IsDropDownResizable.
7288
7289 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
7290
7291         * DataGridViewCell.cs: Remove unused variables, improve how
7292         several of the property getters work.
7293         * DataGridViewRow.cs: Don't call setSize on a cell, cell should
7294         get its size from the parent row/col.
7295
7296 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
7297
7298         * PropertyGrid.cs: Ensure PropertiesTab is visible even if the 
7299         user alters manually the PropertyTabs collection via the 
7300         PropertyTabs property.
7301
7302 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7303
7304         * ListBindingHelper.cs: Implement -previously- ignored cases. We have
7305         new tests for them to be sure to be compatible with .net.
7306
7307 2008-03-20  Andreia Gaita <avidigal@novell.com> 
7308
7309         * WebBrowserBase.cs: Fix attributes, add events
7310         * WebBrowser.cs: Fix Padding signature
7311
7312 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
7313
7314         * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
7315
7316 2008-03-19  Jonathan Pobst  <monkey@jpobst.com>
7317
7318         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
7319         DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
7320         DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
7321         passes the new suite of tests for it.
7322
7323 2008-03-18  Andreia Gaita <avidigal@novell.com> 
7324
7325         * WebBrowser.cs: Add missing attributes, missing Padding and
7326           DefaultSize properties, remove extraneous getters
7327
7328 2008-03-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7329
7330         * ListBindingHelper.cs: Implement a pair of GetListItemProperties
7331         method overloads.
7332
7333 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
7334
7335         * ComboBox.cs: Move resetting the selected index to keypress
7336         instead of textchanged.  Changing the text programmatically
7337         should not trigger resetting the selected index.  Fixes test.
7338
7339 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
7340
7341         * ComboBox.cs: When the user types into the textbox, reset
7342         the selected index to -1.  [Fixes bug #371672]
7343
7344 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
7345
7346         * FileDialog.cs: Support Control-A for selecting everything
7347         in an OpenFileDialog.  [Fixes bug #371564]
7348
7349 2008-03-15  Jonathan Pobst  <monkey@jpobst.com>
7350
7351         * DataGridView.cs: When row/column visible/height properties
7352         change, invalidate.  Take the NIEX out of InvalidateRow/Column
7353         etc.  We don't support them yet, but we can just invalidate
7354         everything until we do support them.  (Added MonoTODO).  Set
7355         proper control styles.
7356         * DataGridViewRow.cs: Don't call PaintHeader if row headers
7357         are turned off. 
7358
7359 2008-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7360
7361         * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
7362
7363 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
7364
7365         * DataGridViewRow.cs: Only paint the white background in
7366         cell bounds, the row bounds extends past the cells if the 
7367         grid width isn't as wide as the DGV.
7368
7369 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
7370
7371         * DataGridView*: Completely revamp the drawing to match the
7372         public API.  Our grids now look better, and call all the
7373         appropriate methods and event to allow users to override
7374         the painting and do their own.
7375
7376 2008-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7377
7378         * ListBindingHelper.cs: Implement 2.0 GetList methods.
7379
7380 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
7381
7382         * DataGridView.cs: Implement BorderStyle.
7383
7384 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
7385
7386         * FileDialog.cs: Apply patch from Andy Hume: Any time we
7387         are comparing attributes, make sure we only look at the
7388         one we are interested.  These calls were failing if there
7389         were more than one attribute.
7390         [Fixes bug #370385]
7391
7392 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
7393
7394         * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
7395
7396 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
7397
7398         * PageSetupDialog.cs: Stub EnableMetric.
7399         * PrintControllerWithStatusDialog.cs: Implement IsPreview.
7400         * PrintPreviewDialog.cs: Add ProcessDialogKey,
7401         ProcessTabKey.
7402
7403 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
7404
7405         * MonthCalendar.cs: Remove unused variable.
7406
7407 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
7408
7409         * DataGridView*.cs: corcompare stuffs.
7410
7411 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7412
7413         * MonthCalendar.cs: Remove an incorrect invalidate optimization.
7414         The savings aren't worth the extra code to fix the optimization.
7415         [Fixes bug #368585]
7416
7417 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7418
7419         * ToolBar.cs: Always call base.Dock in the Dock override so that
7420         Control's layout_type gets reset correctly.
7421         [Fixes bug #368882]
7422
7423 2008-03-11  Ivan N. Zlatev  <contact@i-nz.net>
7424
7425         * X11Dnd.cs: End DnD operation also for the middle mouse button.
7426
7427 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7428
7429         * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
7430         at the same time we do explicit ones, because we have to give all
7431         other controls on the container a chance to handle explicit ones
7432         first.  If no one has an explicit mnemonic, then we can let the
7433         MenuStrip have a shot at implicit mnemonics.
7434         * MenuStrip.cs: Create an implicit mnemonic function.
7435         * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
7436         mnemonics for MenuStrips.
7437         [Fixes bug #368493]
7438
7439 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7440
7441         * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
7442         DataGridColumnStyle.cs: corcompare stuffs.
7443
7444 2008-03-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7445
7446         * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
7447         Details - This is needed after we added the bits to use any available
7448         column also for List and SmallIcon view. 
7449
7450 2008-03-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7451
7452         * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
7453         at the proper place, not only when changing SelectedIndex and changing
7454         the selection using keys/mouse, as .net does.
7455
7456 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7457
7458         * ControlBindingsCollection.cs: Implement last 2.0
7459         DefaultDataSourceUpdateMode property. Also fix a wrong instruction
7460         in the new 2.0 Add methods.
7461
7462 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7463
7464         * ListBox.cs: When calling SelectedIndexCollection.Clear,
7465         return if no items are previously selected - this is done to avoid 
7466         firing OnSelectedIndexChanged without need to do so. Also,
7467         when creating handle ensure that the focused item is visible (as
7468         .net does).
7469
7470 2008-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7471
7472         * ListBox.cs: Rewrote/refactored most of selection code. We require
7473         the following things in selection: a) keep selection sorted (both
7474         indices and items), b) SelectedIndices automatically detect the
7475         selection mode, c) SelectedIndex should be the first selected item
7476         index, d) Need to Focus/adjust scroll bar when selecting a new item,
7477         not only for SelectedIndex, which is specially important in Multi*
7478         selection modes. To achieve this we are moving the selection core to
7479         SelectedIndexCollection and make depend all selection modifications on
7480         it.
7481         Fixes #366438.
7482
7483 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7484
7485         * ToolStrip.cs: Enable implicit mnemonics for drop down
7486         menu strips.  [Fixes part of bug #367692]
7487
7488 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7489
7490         corcompare - fix parameter names [stragglers].
7491         Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
7492         HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
7493         TabControl.cs.
7494
7495 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7496
7497         Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
7498         was a mnemonic pressed as well as Alt.  Also, if nothing handles a
7499         mnemonic, let the ToolStripManager have it even if it doesn't
7500         have a matching mnemonic.
7501         [Fixes bug #367499]
7502
7503 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7504
7505         corcompare - fix warning about implicit implementation
7506         * ToolStrip.cs: Add IToolStripData interface.
7507         * IToolStripData.cs: Add.
7508
7509 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7510
7511         corcompare - fix warning about implicit implementation
7512         * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
7513         * IBounds.cs: Add.
7514
7515 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
7516
7517         corcompare - fix parameter names [N-Z].
7518         LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
7519         Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
7520         PropertyManager.cs, RichTextBox.cs,
7521         ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
7522         StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
7523         StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
7524         TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
7525         TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
7526         ToolStripContentPanel.cs, ToolStripDropDown.cs,
7527         ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
7528         ToolStripPanel.cs, ToolStripSeparator.cs,
7529         TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
7530         UICuesEventHandler.cs, UpDownBase.cs.
7531
7532 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
7533
7534         corcompare - fix parameter names [G-M].
7535         GridColumnStylesCollection.cs, GridItemCollection.cs,
7536         GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
7537         HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
7538         Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
7539         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
7540         ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
7541
7542 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
7543
7544         corcompare - fix parameter names [A-F].
7545         Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
7546         DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
7547         DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
7548         DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
7549         DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
7550         DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
7551         DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
7552
7553 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
7554
7555         * GridEntry.cs: Do not convert not only if the types match, 
7556         but also if the property type is assigneable from the value's
7557         type.
7558         [Fixes bug #366566]
7559
7560 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
7561
7562         * PropertyGridView.cs: 
7563          - Subscribe to the listbox only once and not everytime.
7564          - Update the textbox even if SetValue fails.
7565          - Close the listbox before calling TrySetValue just in case.
7566          [Fixes bug #366569]
7567
7568 2008-03-03  Jonathan Pobst  <monkey@jpobst.com>
7569
7570         * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
7571
7572 2008-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7573
7574         * ListView.cs: Implement support for custom column width based on
7575         Columns collection (we were previously using this collection only
7576         with Details view).
7577         Fixes #364484.
7578
7579 2008-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7580
7581         * ListViewItem.cs: For Tile view, always set bounds for the first
7582         subitem (which is the main one), and also don't let Width be larger
7583         than ListView.TileSize.Width. Improve code readibility also.
7584         * ThemeWin32Classic.cs: When painting the ListViewItem instances
7585         in Tile view, _always_ use the NoWrap flag.
7586         Fixes #360798.
7587
7588 2008-02-29  Ivan N. Zlatev  <contact@i-nz.net>
7589
7590         * PropertyGrid.cs: Check for null PropertyDescriptor.Name just 
7591         in case.
7592         * GridEntry.cs: For MS compitability make all child properties 
7593         readonly if the parent is readonly. Ugh.
7594         [Fixes bug #365945 and #365944]
7595
7596 2008-02-29  Andreia Gaita <avidigal@novell.com> 
7597
7598         * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
7599           relative to the history
7600
7601 2008-02-29  Andreia Gaita <avidigal@novell.com>
7602
7603         * HtmlElement.cs: More handlers for mouse and key events
7604
7605 2008-02-28  Andreia Gaita <avidigal@novell.com>
7606
7607         * WebBrowserBase.cs: MouseClick sig changed.
7608         * HtmlHistory.cs: Implement history navigation
7609         * HtmlElement.cs: Add event handlers, and connect them.
7610
7611 2008-02-28  Ivan N. Zlatev  <contact@i-nz.net>
7612
7613         * GridEntry.cs: 
7614          - Use PropertyDescriptor.DisplayName instead of .Name for Label,
7615            so that DisplayNameAttribute doesn't get ignored.
7616          - Check for ParenthesizeNameAttribute and parenthesize the Label.
7617          - Add support for PasswordPropertyTextAttribute
7618         * PropertyGridView.cs: Check if an entry is a password.
7619         [Fixes bugs #365589, #365586, #365588]
7620
7621 2008-02-28  Andreia Gaita <avidigal@novell.com>
7622
7623         * PropertyGridView.cs: Revert the message filtering change, as we
7624         need it to block after all. Remove block parameter, unnecessary.
7625
7626 2008-02-27  Jonathan Pobst  <monkey@jpobst.com>
7627
7628         * UserControl.cs: Better implementation of GetPreferredSize.
7629         First step to fixing bug #361441.
7630
7631 2008-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7632
7633         * Binding.cs: Actually implement data binding support for 
7634         classes implementing IBindableComponent.
7635         * ControlBindingsCollection.cs: Likewise.
7636
7637 2008-02-26  Andreia Gaita  <avidigal@novell.com>
7638
7639         * PropertyGridView.cs: Use a message filter to check when to 
7640         close the dropdown
7641
7642 2008-02-26  Andreia Gaita  <avidigal@novell.com>
7643
7644         * Application.cs: Change the message_filters loop so a filter 
7645         can be removed while looping.
7646
7647 2008-02-26  Ivan N. Zlatev  <contact@i-nz.net>
7648
7649         * GridEntry.cs: Optimization in ToggleValue so that it caches
7650         the current value.
7651         * PropertyGridView.cs: An optimization so that the property isn't 
7652         re-read twice for each StandardValue added to the drop-down menu.
7653         Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
7654         license.
7655         [Fixes bug #362755]
7656
7657 2008-02-26  Jonathan Pobst  <monkey@jpobst.com>
7658
7659         * Application.cs: Apply patch from Justin Cherniak to match
7660         MS better for ProductName, ProductVersion, and CompanyName.
7661         [Fixes bug #361709]
7662
7663 2008-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7664
7665         * Binding.cs: Actually implement 2.0 NullValue property. Also
7666         when changing the formatting related properties, only update the state
7667         if formatting_enabled is true (we don't mind otherwise).
7668
7669 2008-02-25  Jonathan Pobst  <monkey@jpobst.com>
7670
7671         * ToolStrip.cs: Don't raise ItemClicked for disabled items.
7672         [Fixes bug #364486]
7673
7674 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
7675
7676         * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead 
7677         of GetType on the current value as it uses reflection to 
7678         determine the type. This fixes the case where the new value is 
7679         null. 
7680
7681 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
7682
7683         * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
7684         past the view.
7685
7686 2008-02-24  Luke Page  <luke.a.page@gmail.com>
7687
7688         * Line.cs, TextControl.cs: Implement offset x and y so that a
7689         document doesn't have to begin  at (0,0) on the viewpoint.
7690         * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
7691         bars and switches the text alignment (and therefore is now
7692         implemented for textbox). Fixes #321383.
7693
7694 2008-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7695
7696         * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
7697         properties. Also when changing FormattingEnabled update the control
7698         property -as .Net does-.
7699
7700 2008-02-22  Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
7701
7702         * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
7703         * Binding.cs: Add stubs for the overloads of the Add method in
7704         CBCollection.
7705
7706 2008-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7707
7708         * Binding.cs: PullData () returns a false value if we got an exception.
7709         Also when validating the control and we get an error, instead of
7710         setting the value of the previous one, cancel the event (tested in 1.1
7711         and 2.0).
7712
7713 2008-02-22  Jonathan Pobst  <monkey@jpobst.com>
7714
7715         * TreeView.cs: Make selected_node and highlighted_node internal.
7716         * TreeNodeCollection.cs: Reset selected_node and highlighted_node
7717         to null when Nodes.Clear is called.
7718         [Fixes bug #363884]
7719
7720 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7721
7722         * FontDialog.cs: Ensure that when the Font is set in code,
7723         all the gui pieces are updated accordingly.
7724         [Fixes bug #361020]
7725
7726 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7727
7728         * TextRenderer.cs: Respect proposed size for MeasureString.
7729         * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
7730         autosize, use a proposed width to force wrapping for long text.
7731         [Fixes bug #360981]
7732
7733 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7734
7735         * TreeView.cs: Factor in checkboxes = false and state images in
7736         to HitTest.  [Fixes bug #363360]
7737
7738 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7739
7740         * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
7741         when drawing the selected range.
7742         [Fixes bug #363648]
7743
7744 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7745
7746         * ToolStripContainer.cs: Add SupportsTransparentBackColor and
7747         ResizeRedraw control styles.
7748         [Fixes bug #363555]
7749
7750 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7751
7752         * TreeView.cs: StateImages are basically custom checkboxes, so
7753         factor their size the same as real checkboxes when determining
7754         what got clicked.
7755         [Fixes bug #363367]
7756
7757 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7758
7759         * MessageBox.cs: Make the message box wider if the form caption
7760         is longer than the text in the form.
7761         [Fixes bug #361137]
7762
7763 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
7764
7765         * PropertyGridView.cs: Fix a NRE when closing the drop down form.
7766
7767 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7768
7769         * TreeNode.cs: Guard against an NRE when the parent's
7770         StateImageList hasn't been set.
7771         [Fixes bug #363353]
7772
7773 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7774
7775         * SplitContainer.cs: Add SupportsTransparentBackColor and
7776         OptimizedDoubleBuffering control styles.
7777         [Fixes bug #363303]
7778
7779 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7780
7781         * Application.cs: For the app data paths and the registry key paths,
7782         ensure they are created before returning them to the user.
7783         [Fixes bug #361709]
7784
7785 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7786
7787         * Application.cs: Guard against an NRE in CompanyName and
7788         ProductName.
7789
7790 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7791
7792         * Application.cs: For CompanyName, ProductName, and ProductVersion,
7793         make sure we handle all three cases correctly: attribute is present,
7794         attribute is present but is an empty string, and attribute is not
7795         present.
7796
7797 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
7798
7799         * PropertyGridView.cs: 
7800          - Fix a NRE that caused a test failure
7801          - Another performance improvement - cache the standard values
7802          listbox.
7803
7804 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
7805
7806         * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
7807         code paths.
7808
7809 2008-02-19  Ivan N. Zlatev  <contact@i-nz.net>
7810
7811         * PropertyGridView.cs: Fix a big performance bug.
7812
7813 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
7814
7815         * SelectionRange.cs: Apply patch from Andy Hume to make
7816         constructor behavior more accurate.  [Fixes bug #362117]
7817
7818 2008-02-19  Andreia Gaita <avidigal@novell.com> 
7819
7820         * Control.cs: Added a new flag is_disposing to track if the
7821         window is currently in the process of being disposed of.
7822         This is used so that, when firing visibility changes triggered
7823         by unparenting controls during Dispose, the control doesn't
7824         get created again.      
7825
7826 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
7827
7828         * ComboBox.cs: Set height to preferred height when the handle
7829         is created.  [Fixes bug #360862]
7830
7831 2008-02-18  Andreia Gaita <avidigal@novell.com>
7832
7833         * XplatUIX11.cs: Create FosterParent with border width at 0.
7834         With the previous value of 4, everytime a control got reparented
7835         from parent = null, it's location would be shifted right and 
7836         down by 4, since these coordinates would be offset by the 
7837         FosterParent's border width.
7838
7839 2008-02-18  Ivan N. Zlatev  <contact@i-nz.net>
7840
7841         * Control.cs: During diposing firstly remove ourselfes from
7842         the parent and *then* destroy our handle, because removing
7843         ourselfes from the parent controls collection causes 
7844         VisibilityChange, etc events, which require a handle and end
7845         up recreating the control.
7846
7847 2008-02-17  Ivan N. Zlatev  <contact@i-nz.net>
7848
7849         * GridEntry.cs: Set expanded state before notifying that the
7850         expansion has taken place.
7851         * PropertyGridView.cs:
7852          - Set the propertygridtextbox text to the selected 
7853          StandardValue before proceeding to setting it.
7854          - Scrolling bugfixes.
7855
7856 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
7857
7858         * GridEntry.cs:
7859          - Fix ValueText to not return null.
7860          - Fix conversion error reporting to actually happen.
7861         * PropertyGridView.cs: Set entry only if the text has changed.
7862         [Fixes bug #362116]
7863
7864 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
7865
7866         * GridEntry.cs: 
7867          - Fix handling of a null current value.
7868          - Swallow editor exceptions.
7869         [Fixes bug #362114]
7870
7871 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
7872
7873         * PropertyGrid.cs: Clear current items first thing before 
7874         repopulating subitems.
7875         * GridEntry.cs: 
7876          - Handle null StandardValuesCollection.
7877          - Mark as not editable if there is no PropertyDescriptor and
7878          if the Converter cannot convert from string.
7879         [Part of fix for bugs #360666 and #358332]
7880
7881 2008-02-15  Luke Page  <luke.a.page@gmail.com>
7882         * MaskedTextBox.cs: Now skips non editable characters after a
7883         character has been entered and we are progressing to the next
7884         position in the MaskedTextBox.
7885
7886 2008-02-15  Luke Page  <luke.a.page@gmail.com>
7887         * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
7888         that it changes the selection rather than just repositioning the
7889         cursor. Fixes Bug #360873.
7890
7891 2008-02-15  Luke Page  <luke.a.page@gmail.com>
7892         * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
7893         when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
7894         correctly. See #359330
7895
7896 2008-02-15  Andreia Gaita <avidigal@novell.com>
7897
7898         * XplatUIX11.cs: If the handle is null when posting a message, use the
7899         current thread queue to post instead. Fixes #332409
7900
7901         * SendKeys.cs: Slight optimization
7902
7903 2008-02-14  Ivan N. Zlatev  <contact@i-nz.net>
7904
7905         * PropertyGrid.cs, PropertyGridView.cs:
7906         Fix multiple scrolling and sizing issues.
7907         [Fixes bug #359199]
7908
7909 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
7910
7911         * PropertyGridView.cs: Ensure that drop down editors are shown
7912         in the WorkingArea of the screen.
7913         [Fixes bug #359807]
7914
7915 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
7916
7917         * GridEntry.cs: Fail silently when UITypeEditor is missing.
7918         [Fixes bug #360666]
7919
7920 2008-02-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7921
7922         * Binding.cs: Implement 2.0 DataSourceNullValue property.
7923
7924 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
7925
7926         * PropertyGridView.cs:
7927          - Clear the controls in the drop down form after it is hidden.
7928          - Fix Width sizing of the dropdown editors to match MSFT.
7929
7930 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
7931
7932         * PropertyGridView.cs: 
7933          - Fix height for drawing the grid entry
7934          text value, so that it clips multiline text properly.
7935          - Fix unfocusing to match MSFT.
7936
7937 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
7938
7939         * PropertyGrid.cs: Do not populate subgriditems unless expandable.
7940         Fixes a bug where on repopulation after value changed items become
7941         expandable.
7942
7943 2008-02-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7944
7945         * Binding.cs: For the 2.0 profile, look for a 
7946         'PropertyChanged' event in the target control, and add checks for
7947         DataSourceUpdateMode property to change -or not- the data source
7948         from validation/control property change.
7949
7950 2008-02-10  Atsushi Enomoto  <atsushi@ximian.com>
7951
7952         * Binding.cs : build fix (operator == is not overriden in 1.x. Do
7953           not compare struct with null in 2.0).
7954
7955 2008-02-10  Luke Page <luke.a.page@gmail.com>
7956
7957         * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
7958         updates the provider and if not using a provider, uses the internal document
7959         class implementation of password char. Also when showing text, uses display string
7960         from the provider, instead of the actual text.
7961
7962 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7963
7964         * Binding.cs: Ooooops, forgot to take into account the data_source
7965         and binding_member_info null case (it was breaking the Binding tests).
7966
7967 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7968
7969         * Binding.cs: Implement support for data source changes exposed by
7970         'PropertyNameChanged' events, and update the control property as
7971         needed.
7972
7973 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7974
7975         * Binding.cs: Implement 2.0 WriteValue method.
7976
7977 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
7978
7979         Commit patch from James Purcell for better AutoScale implementation:
7980
7981         * ScaleControl should call GetScaledBounds with the control's total size rather
7982         than client size.  GetScaledBounds should handle ignoring the borders in its
7983         calculations.  Cleaned up ScaleControl/GetScaledBounds overrides in controls
7984         (for the most part they just call the base code now since that is fixed).
7985         * Added ScaleChildrenInternal to allow controls to disable scaling of children
7986         without having to override ScaleChildren (since none of .NET's controls do). 
7987         This is required for most controls in Mono that have scrollbars to prevent the
7988         scrollbars from being moved/resized.
7989         * Nested ContainerControls can have a different scale mode than their parent. 
7990         This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
7991         designer produce different results both of which look incorrect).
7992         * Default AutoScaleMode for ContainerControl should be Inherit.
7993         * Simplified workaround for ComboBox scaling issue.
7994         * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's. 
7995         1.0 style auto scaling should scale the whole control's size instead of
7996         ignoring the borders (except for Form) and the rounding is done differently to
7997         preserve control alignment.
7998         * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
7999         GetAutoScaleSize.
8000         * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
8001         * CurrentAutoScaleDimensions should round the estimated character width instead
8002         of truncating.
8003         * ListBox's GetScaledBounds should always use the height it was set to instead
8004         of the height that was passed in.  This prevents rounding errors from
8005         accumulating quickly with IntegralHeight.
8006         [Bug #359098]
8007
8008 2008-02-08  Andreia Gaita <avidigal@novell.com>
8009
8010         * Form.cs: Add a null check (darn it). 
8011
8012 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
8013
8014         * MdiClient.cs: Make sure the requesting form actually owns the
8015         control menu items before removing them.  Also, use
8016         Suspend/ResumeLayout when adding or removing items so we only
8017         layout once.
8018         [Fixes bug #359887]
8019
8020 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
8021
8022         * Control.cs: Guard against an NRE in ShowFocusCues.
8023         [Fixes bug #359830]
8024
8025 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8026
8027         * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
8028         property, as well as stubbing DataSourceUpdateMode.
8029
8030 2008-02-08  Andreia Gaita <avidigal@novell.com>
8031
8032         * Form.cs: When closing forms, get focus back to the active control of the
8033         active form. [Fixes #341314, corner case]
8034         
8035 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
8036
8037         * MdiClient.cs: After we move the scrollbars, invalidate the NC
8038         area, so any old scrollbar artifacts are cleaned up.
8039         [Fixes bug #336305]
8040
8041 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
8042
8043         * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
8044         for our menus, display that control box menu instead of the 1.1
8045         menu one.
8046
8047 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
8048
8049         * MdiControlStrip.cs: Add property to access the mdi form tied to
8050         each toolstripitem.
8051         * MdiClient.cs: Be smarter about removing and adding toolstripitems
8052         to the implicitly merged menu.  Every time we clicked the form, items
8053         were getting removed and the re-added, causing the form to jump around
8054         as the menu resized.
8055
8056 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
8057
8058         * MdiClient.cs: Make sure the NormalBounds always gets set.  It
8059         was being reset by the implicit menu merge for menustrips.
8060         [Fixes bug #336296]
8061
8062 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
8063
8064         * Form.cs: Don't do the previous change when WindowState = Normal,
8065         or it messes up where the window is placed.  Fixes test failure.
8066
8067 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
8068
8069         * Form.cs: When becoming visible, if we are an MDI child, call
8070         SetWindowState with a dummy old_state so that changes will actually
8071         be made.
8072         [Fixes the 2nd part of bug #325473]
8073
8074 2008-02-07  Andreia Gaita <avidigal@novell.com>
8075
8076         * Control.cs: Reset properties to their pre parent-change values in case
8077         the new parent == null (in which case we're basically removing the control, 
8078         and don't want any events fired due to fake property changes)
8079         [Fixes #355850]
8080
8081 2008-02-06  Ivan N. Zlatev  <contact@i-nz.net>
8082
8083         * PropertyGridView.cs: 
8084          - Refactor SetValue to allow setting the value
8085         when a custom editor is used, but the entry is not editable.
8086          - Remove the custom editor control on CloseDropDown.
8087         [Fixes #359196]
8088
8089 2008-02-06  Andreia Gaita <avidigal@novell.com>
8090
8091         * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
8092         reflection only on 1.1, this property is public on system.drawing on 2.0.
8093         Fixed #359247
8094
8095 2008-02-06  Andreia Gaita  <avidigal@novell.com>
8096         
8097         * WebBrowser.cs: Do a normal page refresh by default.
8098
8099 2008-02-05  Andreia Gaita  <avidigal@novell.com>
8100
8101         * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create 
8102         the window so that the check on Control.UpdateZOrderOfChild passes on non-X
8103         platforms. Fixes #359036
8104         
8105         Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on 
8106         platform-specific flags.
8107
8108 2008-02-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8109
8110         * Binding.cs: Add 2.0 BindableComponent property - just return control
8111         by now.
8112
8113 2008-02-05  Everaldo Canuto  <ecanuto@novell.com>
8114
8115         * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
8116         Jonathan for this patch. Fixes #358442.
8117
8118 2008-02-05  Jonathan Pobst  <monkey@jpobst.com>
8119
8120         * Form.cs: If we change the active MDI child form, let the others
8121         know they need to repaint their title bar so it will appear inactive.
8122         [Fixes part 1 of bug #325473]
8123
8124 2008-02-05  Ivan N. Zlatev  <contact@i-nz.net>
8125
8126          * PropertyGridView.cs: Do not trucate custom editors' width
8127          and align them to the left.
8128          [Fixes #358353 and #358349]
8129
8130 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8131
8132         * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
8133         Also fix the arguments passed to CollectionChangeEventArgs in the
8134         related methods.
8135
8136 2008-02-04  Geoff Norton  <gnorton@novell.com>
8137
8138         * Hwnd.cs: The conversion to Quartz coordinates happens in
8139         System.Drawing.  Removing this translation from here.
8140
8141 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
8142
8143          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
8144          CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
8145          GridItemCollection.cs:
8146          PropertyGrid rewrite part 2. Tons of bugfixes and new features.
8147
8148 2008-02-04  Geoff Norton  <gnorton@novell.com>
8149
8150         * X11Keyboard.cs: VK_MENU should send a KEYUP instead of 
8151         SYSKEYUP if any other key has been pressed in the mean time.
8152         Fixes #324404
8153
8154 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8155
8156         * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
8157         when the item in current position is different than 0. Also, save the
8158         item index in the beginning of the operation, instead of getting the
8159         index of the item when the event is actually performed. Lastly clean
8160         the related fields in ItemsMouseUp if the ItemDrag operation wasn't
8161         triggered.
8162         [Fixes #357873]
8163
8164 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8165
8166         * Form.cs: Alt-Minus for MDI children system menu should work
8167         with both the minus keys on the keyboard.
8168         [Fixes bug #336295]
8169
8170 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8171
8172         * Control.cs: Don't invalidate on region change.  The WM should
8173         take care of this automagically.  Keeps us out of an infinite
8174         paint loop if someone changes the Region in the OnPaint.
8175         [Fixes bug #358327]
8176
8177 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
8178
8179          * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
8180
8181 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8182
8183         * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
8184         down the MonthCalendar only on F4, not Alt+F4.
8185         * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
8186         [Fixes bug #358340]
8187
8188 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8189
8190         * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
8191         if its part of a DateTimePicker, else, use the back color.
8192         [Fixes bug #358339]
8193
8194 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8195
8196         * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
8197         [Fixes bug #358342]
8198
8199 2008-02-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8200
8201         * CurrencyManager.cs: When we get a ListChanged event from our source,
8202         always fire our own ListChanged event, as .Net does.
8203
8204 2008-02-03  Luke Page  <luke.a.page@gmail.com>
8205
8206         * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
8207         #358379.
8208
8209 2008-02-03  Luke Page  <luke.a.page@gmail.com>
8210
8211         * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
8212         property. Removed if for richtext property that was always true.
8213         PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
8214
8215 2008-02-03  Luke Page  <luke.a.page@gmail.com>
8216
8217         * TextBoxBase.cs - commited patch from James Purcell that
8218         correctly sets the FixedHeight control style when the MultiLine
8219         property is changed on a TextBox control. Fixes bug 358229.
8220
8221 2008-02-02  Luke Page  <luke.a.page@gmail.com>
8222
8223         * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
8224         Fixes bug 351938 - caret is positioned correctly when drawn
8225         and when calculating textual position of caret, no longer
8226         has a NRE in certain situations.
8227         
8228 2008-02-01  Geoff Norton  <gnorton@novell.com>
8229
8230         * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
8231         get that region removed from the paint event.
8232         * XplatUICarbon.cs: Remove the window mapping after disposing of 
8233         window.  Prevents a crash with handle reuse.  Optimize exposes
8234         only onto visible windows (rare; but possible).
8235
8236 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8237
8238         * UpDownBase.cs: Make sure the internal textbox calls the base's
8239         OnMouseDown and OnMouseUp so the textbox will function correctly.
8240         There were notes saying it doesn't chain up, but its an internal
8241         class, so our implementation may differ.
8242         [Fixes bug #357482]
8243
8244 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8245
8246         * ListBox.cs: Fix a logic error and don't process MouseDown
8247         for mouse buttons other than Left.
8248
8249 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8250
8251         * Control.cs: Remove HeightInternal.
8252         * ListBox.cs: Commit patch from James Purcell that correctly
8253         calculates heights for ListBoxen.
8254         [Fixes bug #357152]
8255
8256 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8257
8258         * Label.cs: Apply patch from James Purcell that corrects the 
8259         signature of the AutoSize property.
8260         [Fixes bug #357605]
8261
8262 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8263
8264         * ListBox.cs: Don't throw [Mouse]Click events for buttons
8265         other than the left mouse button.
8266
8267 2008-01-31  Jonathan Pobst  <monkey@jpobst.com>
8268
8269         * Control.cs: Remove my awesome optimization as it caused some
8270         regressions with control ordering.  :(
8271         [Fixes bug #357467]
8272
8273 2008-01-31  Ivan N. Zlatev  <contact@i-nz.net>
8274
8275          * PropertyGridView.cs: Fix a NRE on double click when there is no
8276          selected object.
8277
8278 2008-01-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8279
8280         * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
8281
8282 2008-01-30  Jonathan Pobst  <monkey@jpobst.com>
8283
8284         * ListBox.cs: Call MouseClick and MouseDoubleClick.
8285         [Fixes bug #357146]
8286
8287 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8288
8289         * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
8290         * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
8291         instead of Hwnd.bmp_g.
8292
8293 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8294
8295         * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
8296         Use the Hwnd one instead.
8297
8298 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8299
8300         * Form.cs: Remove duplicated copy of GetAutoScaleSize.
8301
8302 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8303
8304         * Form.cs: corcompare for RestoreBounds.
8305
8306 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8307
8308         * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
8309
8310 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8311
8312         * Form.cs: Handle Alt-Minus for MDI children forms.
8313         * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
8314         Add mnemonics to the control menu.
8315         [Fixes bug #336295]
8316
8317 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8318
8319         * Binding.cs: Initial implementation bits of FormattingEnabled
8320         property and BindingComplete event (2.0). 
8321         * BindingCompleteEventArgs.cs: Internal methods for setting error text
8322         and exception.
8323
8324 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
8325
8326         * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
8327         table.Location.  [Fixes bug #354672]
8328
8329 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
8330
8331         * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
8332         ResizeBegin and ResizeEnd.  [Fixes bug #346529 for win32]
8333
8334 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8335
8336         * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
8337         of doing all the re-bound work, just invalidate and call SetControlText 
8338         to set the updated text of selected item to our textbox.
8339         Fixes #333750.
8340
8341 2008-01-28  Andreia Gaita <avidigal@novell.com>
8342
8343         * HtmlWindow.cs: Add event handler support. Add Document, Frames, 
8344         IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
8345         missing properties and methods. Add Load, Unload, Error, GotFocus, 
8346         LostFocus, Resize, Scroll events (only load and unload are connected)
8347
8348 2008-01-27  Gert Driesen  <drieseng@users.sourceforge.net>
8349
8350         * AccessibleObject.cs: Modified argument names to match MS.
8351         * Button.cs: Modified argument names to match MS.
8352         * BindingContext.cs: Modified argument names to match MS.
8353         * BindingMemberInfo.cs: Modified argument names to match MS.
8354         * ButtonBase.cs: Modified argument names to match MS.
8355         * ComboBox.cs: Modified argument names to match MS.
8356         * Control.cs: Modified argument names to match MS.
8357         * CheckedListBox.cs: Modified argument names to match MS.
8358         * CommonDialog.cs: Modified argument names to match MS.
8359         * DataGrid.cs: Modified argument names to match MS.
8360         * CursorConverter.cs: Modified argument names to match MS.
8361         * ControlPaint.cs: Modified argument names to match MS.
8362         * CheckBox.cs: Modified argument names to match MS.
8363         * ControlBindingsCollection.cs: Modified argument names to match MS.
8364         * BindingSource.cs: Modified argument names to match MS.
8365         * DataFormats.cs: Modified argument names to match MS.
8366         * ContainerControl.cs: Modified argument names to match MS.
8367         * CurrencyManager.cs: Modified argument names to match MS.
8368         * Application.cs: Modified argument names to match MS.
8369         * ContextMenuStrip.cs: Modified argument names to match MS.
8370         * ContextMenu.cs: Modified argument names to match MS.
8371         * BindingManagerBase.cs: Modified argument names to match MS.
8372         * WindowsFormsSection.cs: Fixed line ending.    
8373
8374 2008-01-27  Andreia Gaita <avidigal@novell.com>
8375
8376         * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
8377         detecting that the dropdown toolwindow is hidden. EndLoop outside the
8378         while.
8379
8380 2008-01-26  Gert Driesen  <drieseng@users.sourceforge.net>
8381
8382         * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
8383         MS. Code formatting.
8384
8385 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8386
8387         * Binding.cs: Don't avoid the Format event if the control 
8388         property type is object. Also, if the value retrieved by 
8389         the data source is null _and_ the control proeprty type 
8390         is object, return Convert.DBNull (match .Net).
8391         Fixes part of #324286.
8392
8393 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8394
8395         * ListControl.cs: Since we are getting two BinginContextChanged events
8396         for the same binding context instance (when the control is added to
8397         form, and when the form is actually shown), take it into account only the
8398         first time for a given binding context instance.
8399         Fixes part of #324286.
8400
8401 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
8402
8403          * PropertryGridView.cs: Ops.
8404
8405 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
8406
8407          * PropertyGridView.cs: Close dropdown form if the owner form is
8408          moved or minimized.
8409          [Fixes bug #322446]
8410
8411 2008-01-25  Ivan N. Zlatev  <contact@i-nz.net>
8412
8413          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs, 
8414          RootGridEntry.cs, CategoryGridEntry.cs:
8415          PropertyGrid rewrite.
8416          - Rewrite all of the control logic in PropertyGrid.
8417          - Rewrite all of the ComponentModel logic in GridEntry.
8418          - Rewrite all UI work in PropertyGridView.
8419          - Many bugfixes, etc.
8420
8421 2008-01-24  Jonathan Pobst  <monkey@jpobst.com>
8422
8423         * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
8424         when all contained controls are autosize or dock-fill.  Also take into
8425         account when the total percentage of column/row sizes is not 100%.
8426         [Fixes bug #354672]
8427
8428 2008-01-24  Andreia Gaita <avidigal@novell.com>
8429
8430         * HtmlDocument.cs:
8431         - Save a reference to the IDocument in the instance and
8432           use that one instead of going to WebHost.Document; the document that the 
8433           WebHost returns might not be the right one (in case of frames).
8434         - Use the hashcode returned from the IDocument interface.
8435         - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie, 
8436           Domain (setter is not supported), Encoding, ForeColor, Forms, Images, 
8437           LinkColor, Url, VisitedColor, Window
8438
8439         * HtmlElement.cs: 
8440         - Implemented: CanHaveChildren, Children, Document, GetAttribute, 
8441           set_Attribute, NextSibling, Parent, TagName, AppendChild, 
8442           GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
8443           SetAttribute, Equals, equality operators.
8444         - Added stubs for: AttachEventHandler, DetachEventHandler, Focus, 
8445           InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView, 
8446         
8447         * HtmlElementCollection.cs: Change implementation to use a generic
8448         collection. Implemented Enumerator and CopyTo
8449
8450         * HtmlHistory.cs: Add constructor, no implementation yet.
8451
8452         * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
8453         Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode, 
8454         Equals, equality operators.
8455
8456         * HtmlWindowCollection.cs: Implemented. 
8457
8458         * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
8459         has been deprecated).
8460
8461         * WebBrowserBase.cs: Use Completed event to track document loading
8462         (Navigated has been deprecated)
8463
8464 2008-01-24  Jonatham Pobst  <monkey@jpobst.com>
8465
8466         * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems.  Top
8467         level MenuItems do not respect tabs.
8468         [Fixes bug #355196]
8469
8470 2008-01-23  Geoff Norton  <gnorton@novell.com>
8471
8472         * XplatUICarbon.cs:  Ensure that windows are created in their initial 
8473         FormWindowState.  Finished fixing Fullscreen windows on Carbon
8474
8475 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8476
8477         * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
8478         be used as grab_control. Also save status of capture before show ContextMenu
8479         and restore it after close.
8480
8481 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8482
8483         * Control.cs: Internal FindRootParent method added to return high control
8484         in parent tree.
8485
8486 2008-01-23  Geoff Norton  <gnorton@novell.com>
8487
8488         * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
8489         * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
8490         it work again.  Handle HITTEST events.
8491
8492 2008-01-23  Geoff Norton  <gnorton@novell.com>
8493
8494         * XplatUICarbon.cs: Ensure that we always have a host window.  Prevents
8495         a crash in certain cases.  Support for fullscreen windows in certain cases.
8496
8497 2008-01-23  Jonathan Pobst  <monkey@jpobst.com>
8498
8499         * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
8500         [Fixes bug #355703]
8501
8502 2008-01-23  Geoff Norton  <gnorton@novell.com>
8503         
8504         * XplatUICarbon.cs: Remove some dead code that was causing warnings.
8505
8506 2008-01-23  Geoff Norton  <gnorton@novell.com>
8507
8508         * XplatUICarbon.cs:  Re-enabled Carets in QuickDraw as a overlay window.
8509
8510 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8511
8512         * SplitContainer.cs: Remove unused declarations.
8513         * Binding.cs: Remove unused declarations.
8514
8515 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8516
8517         * Form.cs: Remove unused declaration of 'active' in Activate method.
8518         * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to 
8519         prevent compilation warnings.
8520         * TextControl.cs: Remove unused declaration of selection_pos_on_line.
8521         * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
8522         * Bindings.cs: Remove unused formatting_enabled declaration.
8523         * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
8524         warnings.
8525         * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
8526         warnings.
8527         * PropertyGridView.cs: Remove usused 'ex' declaration.
8528         * DataGridView.cs: Remove unused declarations.
8529
8530 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8531
8532         [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
8533         
8534         * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved 
8535         to Control class, it makes possible to grab menu to controls that can't 
8536         reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
8537         WmMouseMove removed since it was used only to track menu events.
8538
8539         * Control.cs:
8540         - Moved all active_tracker stuff from Form.
8541         - ProcessActiveTracker added to prevent code duplicity, now mouse events 
8542         can call this method instead of reimplement all necessary code handle for
8543         menu tracker.
8544         - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
8545         and WmMouseMove).
8546         
8547         * MenuAPI.cs: 
8548         - Remove special handle to ToolStripOverflow, now we can grab menu to 
8549         controls that can't reach Form using parent tree.
8550         - Change type of grab_control from Form to Control.
8551
8552 2008-01-22  Geoff Norton  <gnorton@novell.com>
8553
8554         * TextBoxBase.cs: Split up the sizing of controls and placing of 
8555         controls.  Fixes a bug where scrollbars in Reflector could be sized
8556         wrong and have non-working thumbers.
8557
8558 2008-01-23  Geoff Norton  <gnorton@novell.com>
8559
8560         * XplatUI.cs: Refactor environment variables to default support to the
8561         Carbon driver on the Mac.
8562
8563 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8564
8565         * Label.cs: Uses new LabelPainter for drawing operations.
8566         * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
8567         * Theme.cs: DrawLabel and LabelDefaultSize removed.
8568
8569 2008-01-22  Geoff Norton  <gnorton@novell.com>
8570
8571         * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
8572
8573 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
8574
8575         * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
8576         through the normal flat button code and don't draw the checkbox glyph.
8577         * Theme.cs: Button->ButtonBase signature change.
8578         [Fixes bug #324755]
8579
8580 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
8581
8582         * LinkLabel.cs: Uses new class LinkLabelPainter.
8583
8584 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
8585
8586         * MessageBox.cs: Adjust right border space, we don't need to add 
8587         "space_border*2" two times.
8588
8589 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
8590
8591         * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
8592         becomes a wrapper around Padding.
8593         [Fixes a part of bug #354676]
8594
8595 2008-01-22 Geoff Norton  <gnorton@novell.com>
8596
8597         * Mime.cs:  Avoid a needles exception on OSX if we dont have a buffer
8598         acquired.  Also ensure the buffer is large enough to grab the header
8599         we need on linux boxes.
8600
8601 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
8602
8603         * Control.cs: Implement a custom enumerator so people can delete
8604         from the Controls collection while in a foreach.
8605         [Fixes bug #355074]
8606
8607 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
8608
8609          * PropertyGridView.cs: Fix focusing behavior:
8610          - Tab should focus the grid text box.
8611          - Clicking on the labels shouldn't focus the grid text box.
8612
8613 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
8614
8615          * PropertyGridView.cs: IsValueTypeGridItem should return true 
8616          for Arrays as well.
8617
8618 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
8619
8620          * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
8621           - Renamed GridEntry.SelectedObjects to TargetObjects to better
8622           reflect the property name role.
8623           - PropertyGrid.GetTarget is not required as the target is known
8624           (TargetObjects).
8625           - Setting values will handle value types as a special case now and
8626           populate them up in the chain.
8627           [Fixes #354990]
8628
8629 2008-01-21  Jonathan Pobst  <monkey@jpobst.com>
8630
8631         * Hwnd.cs: Create a public property for the Graphics we keep around.
8632
8633 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
8634
8635          * PropertyGridView.cs: Just hide the grid textbox and do nothing more 
8636          when the current object selection changes. 
8637          Fixes failing test SelectedObject_Null2.B5.
8638
8639 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
8640
8641          * PropertyGrid.cs: Process Browsable properties with 
8642          DesignerSerializationVisibilityAttribute.Content as being expandable.
8643          This seems also what MS does. Without this e.g SplitContainer.Panel1/2
8644          will not be expandable. We should be nested components-friendly now.
8645
8646 2008-01-21  Andreia Gaita <avidigal@novell.com>
8647
8648         * WebBrowserBase.cs: Check if control was loaded properly, 
8649         don't bind if it wasn't.
8650
8651         * HtmlDocument.cs: Implement CreateElement, Equals, Focus, 
8652         GetElementFromPoint, equality operators, OpenNew, Write.
8653         Remove extra set_Body
8654
8655 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
8656
8657         * ContainerControl.cs, Control.cs: Apply patch from James Purcell
8658         that makes our AutoScale* stuff more tolerant to different orders
8659         of being set.  [Fixes bug #354669]
8660
8661 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
8662
8663          * PropertyGridView.cs, PropertyGridTextBox.cs: 
8664          Drop WM_LBUTTONDOWN msg sending and use focusing instead.
8665          [Fixes #339005 and #348209]
8666
8667 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
8668
8669          * PropertyGridView.cs: Hide the grid text box before adjusting it
8670          for the newly selected GridItem.
8671          [Fixes #338999]
8672
8673 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
8674
8675         * Form.cs: Give MDI children the opportunity to cancel the parent form
8676         attempting to close.  Ensure that all [Form]Clos[ing,ed] events get called
8677         properly for both the parent and child.
8678         * Application.cs: Signature of internal method changed, pass the previous
8679         default of false.
8680         [Fixes bug #354286]
8681
8682 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
8683
8684         * PropertyGridView.cs: Set the property value only if it has changed.
8685         [Fixes bug #338997]
8686
8687 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
8688
8689         * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
8690         If the mouse hasn't actually moved, ignore these messages so the currently
8691         highlighted menuitem isn't reset to the one under the mouse.
8692         [Fixes bug #333668]
8693
8694 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
8695
8696         * PropertyGridView.cs: When the property changes Invalidate the GridItem
8697         in order for the properties with UITypeEditor.GetPaintValueSupported == true
8698         to reflect the change visually.
8699         [Fixes bug #338998]
8700
8701 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
8702
8703         * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
8704         to 2.0 button drawing.
8705         * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw 
8706         the button text is tall enough for one line.  LineLimit says it will
8707         always draw at least one line, but it is a lie.
8708         [Fixes bug #324941]
8709
8710 2008-01-17  Atsushi Enomoto  <atsushi@ximian.com>
8711
8712         * XplatUIStructs.cs, X11Keyboard.cs :
8713           added some more VK_* keys to be handled.
8714
8715 2008-01-16  Andreia Gaita <avidigal@novell.com>
8716
8717         * Control.cs: Check if there is a container before setting or getting
8718         the validation flag.
8719
8720 2008-01-16  Andreia Gaita <avidigal@novell.com>
8721
8722         * ContainerControl.cs: Add flag to track if a control cancels validation, 
8723         so we don't fire click events.
8724
8725         * Control.cs: 
8726         - (HandleClick) Check if validation was cancelled before  firing the click
8727         events (doubleclicks are fired, but not clicks)
8728         - (WmLButtonDown) Reset validation flag. The flag is normally reset on 
8729         ContainerControl.set_ActiveControl, but in the case of non-selectable
8730         controls, like a Label, activecontrol is not set. 
8731
8732         * ButtonBase.cs: Only fire clicks if validation passes.
8733         
8734         Fixes #353310
8735
8736 2008-01-16  Geoff Norton  <gnorton@novell.com>
8737
8738         * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
8739         trunk
8740
8741 2008-01-16  Jonathan Pobst  <monkey@jpobst.com>
8742
8743         * FolderBrowserDialog.cs: If we cannot interpret the user's requested
8744         SelectedPath, just display the default dialog instead of crashing.
8745         [Fixes bug #348989]
8746
8747 2008-01-16  Geoff Norton  <gnorton@novell.com>
8748
8749         * XplatUICarbon.cs:  Flicker be gone!  Generate our messages in
8750         AddExpose instead of trusting apples compositing manager which doesn't
8751         work for our use case.  Remove some dead code causing warnings and 
8752         redecorate some other code to prevent warnings.
8753
8754 2008-01-16  Geoff Norton  <gnorton@novell.com>
8755
8756         * XplatUICarbon.cs:  Avoid some unecessary invalidation calls when
8757         carbon signals us to redraw.  Fixes another portion of the flickering bug
8758
8759 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8760
8761         * Form.cs: Prevent the MdiParent property to be set when value is the same
8762         as value already set. Fixes bug #328019.
8763
8764 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8765
8766         * Form.cs: Don't set mdi_parent as null when mdi window close is prevented, 
8767         it prevents NRE when closing mdi child windows. Fixes bug #325211.
8768
8769 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8770
8771         * InternalWindowManager.cs: Invalidade close button after mouse up when 
8772         mdi form is prevented to close.
8773
8774 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8775
8776         * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
8777         thanks to Andy Hume. Fixes bug #325433.
8778
8779 2008-01-16  Andreia Gaita <avidigal@novell.com>
8780
8781         * LinkLabel.cs: Reset focused_index when resellecting the control.
8782         Fixes #323190
8783
8784 2008-01-15  Geoff Norton  <gnorton@novell.com>
8785
8786         * XplatUICarbon.cs:  Rework Grab/Ungrab handling to send some needed 
8787         messages.
8788
8789 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
8790
8791         * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
8792         of truncate.
8793
8794 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
8795
8796         * ContainerControl.cs: Setting AutoScaleMode to anything should set
8797         Form.AutoScale to false.
8798         * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
8799         AutoScaleBaseSize should be changed on Font change unless it has been
8800         explicitly set.
8801         [Fixes bug #353827]
8802
8803 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
8804
8805         * MenuAPI.cs: On instance of MenuTracker check if source control is
8806         ToolStripOverflow and use properly method to find form.
8807         [Fixes bug #338511]
8808
8809 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
8810
8811         [Fixes bug #323241 Transparent toolbar support]
8812
8813         * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
8814         is flat.
8815
8816         * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
8817         defined in control style to mimic win32 behavior.
8818
8819         * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar, 
8820         it will be transparent.
8821
8822 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
8823
8824         * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
8825         CreateParams for ToolBar controls.
8826
8827 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8828
8829         * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
8830         FixedToolWindow, SizeableToolWindow, or None for border styles have
8831         different minimum sizes than regular forms.  Implemented to fix
8832         regression in PDN with toolbox being too wide.
8833
8834 2008-01-14  Andreia Gaita <avidigal@novell.com>
8835
8836         * HtmlElementCollection.cs: Implemented
8837
8838         * HtmlElement.cs: Implemented:
8839           - All
8840           - InnerHtml
8841           - InnerText
8842           - Id
8843           - Name
8844           - FirstChild
8845
8846         * HtmlDocument.cs: Implemented GetElementsByTagName.
8847
8848 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8849
8850         * Screen.cs: Stub BitsPerPixel to always return 32.
8851
8852 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8853
8854         * Form.cs: Implement RestoreBounds.
8855
8856 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8857
8858         * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
8859         Sebastien and his fabulous magical problem-finding machine:
8860         Gendarme.  Also put a MonoTodo on AutoWordSelect since we don't
8861         respect the value set.
8862
8863 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
8864
8865         * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
8866         minimized. Fixes bug #325122 for Win32. Thanks  Srikanth Madikeri.
8867
8868 2008-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8869
8870         * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
8871         messages (to match .Net), we need to remove the capture ourselves.
8872
8873 2008-01-11  Jonathan Pobst  <monkey@jpobst.com>
8874
8875         * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
8876         will process the message and close our window.
8877         [Fixes bug #324328]
8878
8879 2008-01-10  Geoff Norton  <gnorton@novell.com>
8880
8881         * XplatUICarbon.cs:  Clip the Graphics context to the invalid area
8882         tracked in the Hwnd.  Only invalidate the dirty region to the Carbon
8883         window manager.
8884
8885 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8886
8887         * Form.cs: Enforce the Form minimum size in SetBoundsCore.  Fixed
8888         failing test.
8889
8890 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8891
8892         * XplatUIX11.cs: Set a minimum window size and enforce it.  Even though
8893         Linux doesn't care, having a minimum matches MS and keeps the window
8894         from becoming too small to use window decorations.
8895         [Fixes bug #338996]
8896
8897 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8898
8899         * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
8900         ShowFocusCues.  Make focus rectangles fit the text instead of the whole
8901         control.  [Fixes bug #325419]
8902
8903 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8904
8905         * ComboBox.cs: Guard against an NRE if the user open a new form from a
8906         SelectedIndexChanged event.  This closes the combobox dropdown, and we
8907         were trying to dispose it.  [Fixes bug #352830]
8908
8909 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
8910
8911         * Control.cs, Form.cs: Implement the necessary semantics for
8912         ShowFocusCues.  All paint code will need to check Control.ShowFocusCues
8913         to determine if a focus rectangle should be drawn.
8914         * PropertyGrid.cs: Fix property visibility to match override.
8915         * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
8916
8917 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
8918
8919         * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
8920         [Fixes bug #323552]
8921
8922 2008-01-09  Geoff Norton  <gnorton@novell.com>
8923         
8924         * XplatUICarbon.cs: Scroll windows in the correct direction.
8925
8926 2008-01-09  Geoff Norton  <gnorton@novell.com>
8927
8928         * XplatUICarbon.cs: Track all created utility windows so we can hide them
8929         when the app is deactivated or spaces is enabled.
8930
8931 2008-01-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8932
8933         * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
8934         extra separation pixel for the label rect origin if SmallImageList is
8935         null, and thus we don't need that separation between icon and label
8936         rects.
8937         Patch by Ernesto Carrea.
8938         Fixes # 340195.
8939
8940 2008-01-08  Jonathan Pobst  <monkey@jpobst.com>
8941
8942         * StatusStrip.cs: Invalidate after completing a layout.  The base
8943         OnLayout does this, but we don't call the base.
8944         * ToolStripItem.cs: Revert the previous change to invalidate after
8945         the item moves.
8946         [Fixes bug #351341 better.]
8947
8948 2008-01-07  Geoff Norton  <gnorton@novell.com>
8949
8950         * XplatUICarbon.cs:  WM_DESTROY is a teardown of a single window
8951         not a notification to exit the application.  Listen for WM_QUIT
8952         instead.
8953
8954 2008-01-07  Andreia Gaita <avidigal@novell.com>
8955
8956         * HtmlDocument.cs: Fix case on GetElementById (interface changed)
8957
8958 2008-01-07  Jonathan Pobst  <monkey@jpobst.com>
8959
8960         * ToolStripItem.cs: If the bounds of an item changes, invalidate it
8961         so it can repaint at the correct location.
8962         [Fixes bug #351341]
8963
8964 2008-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8965
8966         * ListControl.cs: SelectedValue should return a null value if
8967         SelectedIndex is -1. Also, when setting it, it should throw an
8968         ArgumentNullException if the value is null, as well as taking
8969         into account the String.Empty value, instead of ignoring it (we have
8970         tests for that now).
8971         Fixes part of #324286.
8972
8973 2008-01-06  Jonathan Pobst  <monkey@jpobst.com>
8974
8975         * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
8976         SelectionStart is updated after pressing enter.  Fixes bug #351918.
8977
8978 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8979
8980         * TextControl.cs: Revert a piece r92316 that prevented the fix
8981         from working when there were multiple tags in the text box.
8982         Fixes bug #351881.
8983
8984 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8985
8986         * TextControl.cs: Apply patch from Luke Page that prevents an
8987         NRE when determining the beginning of a paragraph.
8988         Fixes bug #351886.
8989
8990 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8991
8992         * TextBoxBase.cs: Apply patch from Luke Page that ensures the
8993         caret gets moved with clicking away from a selected block of
8994         text.  Fixes bug #351885.
8995
8996 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8997
8998         * TextControl.cs: Apply patch from Luke Page that takes line
8999         alignment into account for mouse selection, so that center and
9000         right aligned text can be selected.
9001         Fixes bug #351881.
9002
9003 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
9004
9005         * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
9006         issues after loading an RTF file by using the correct line feeds.
9007         Fixes bug #351841.
9008
9009 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
9010
9011         * TextControl.cs: When deleting multiple line selections, we need
9012         to invalidate every line beginning at the first line of the selection.
9013         Patch from Luke Page fixes bug #351791.
9014
9015 2008-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9016
9017         * ListControl.cs: When getting a CurrencyManager.PositionChanged
9018         event, don't set SelectedIndex if the number of items is 1. This is
9019         because, for the first item, PositionChanged is fired _before_
9020         ItemChanged (the place where we actually populate the items), and
9021         leave us in a temporary invalid state (since items collection is
9022         empty).
9023         Fixes #349655.
9024
9025 2008-01-04  Geoff Norton  <gnorton@novell.com>
9026
9027         * XplatUICarbon.cs:  Create native toolwindows instead of
9028         the managed drawing ones.
9029
9030 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
9031
9032         * LineTag.cs: If the line doesn't have any characters, return
9033         0 for GetCharIndex.  Fixes an AOORE exception after certain
9034         caret movements.  Fixes bug #351683.  Patch by Luke Page.
9035
9036 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
9037
9038         * TextBoxBase.cs: Apply patch from Luke Page so when backspace
9039         is hit when there is selected text, only the selected text gets
9040         deleted, not the character in front of the selection as well.
9041         Fixes bug #351578.
9042
9043 2008-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9044
9045         * ComboBox.cs: When the values are displayed, calculate the
9046         ComboListBox scrollbar's LargeChange based on the visible area's
9047         height and  the actuall ItemHeight, instead of calculating it
9048         based on MaxDropItems value, since it's not used by our _current_ 
9049         2.0 profile.
9050         Fixes #332366.
9051
9052 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
9053
9054         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
9055         Patch from Luke Page that fixes issues with font colors and styles
9056         not showing up in a readonly RichTextBox.  Fixes bug #324354.
9057
9058 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
9059
9060         * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
9061         from Luke Page.  This one fixes bug #349926.
9062
9063 2007-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9064
9065         * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
9066         an item in the IBindingList source changes with
9067         ListChangedType.ItemAdded. Ignore for now firing the event for other
9068         changes, since we want to have tests for those cases as well.
9069
9070 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
9071
9072         * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
9073         created.
9074
9075 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
9076
9077         * TextBoxTextRenderer.cs: Implement a cache for measuring each
9078         character.  This is effective because the typical usage of a
9079         TextBox is with a limited amount of fonts and characters, and
9080         the current implementation of TextBox measures everything one
9081         character at a time.  Another second or two speedup for bug #347238.
9082
9083 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
9084
9085         * Control.cs: Rewrite the Font getter to only query the parent's
9086         Font property once instead of twice.  Since this operation is
9087         recursive, the queries were growing exponentially as the control
9088         tree got deeper.  Another second or two speedup for bug #347238.
9089
9090 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
9091
9092         * Control.cs: Avoid setting a parent (and more importantly, updating
9093         the zorder of all its children) if the parent is already correct in
9094         WmShowWindow.  Decreases the startup time of the test case on bug
9095         #347238 from 35 seconds to 11 seconds.
9096
9097 2007-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9098
9099         * X11Dnd.cs: When the dnd operation has started and we are 
9100         in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
9101         This is done to match .Net, which doesn't send those messages after
9102         dnd operation was completed/cancelled.
9103         Fixes #349922.
9104
9105 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
9106
9107         * ToolStrip.cs: Previous change should be != null, not == null.
9108         Thanks Gert!
9109
9110 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
9111
9112         * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
9113         user may have moved the mouse off the current item during the event.
9114
9115 2007-12-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9116
9117         * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
9118         calling GetItemAt for every MouseMove event by also taking into
9119         account whether any mouse button is pressed (probably dragging); 
9120         if so, we can call GetItemAt, and if not, try to not call it 
9121         (GetItemAt can be quite expensive when used with a large number of items).
9122
9123 2007-12-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9124
9125         * ListView.cs: Implement -finally- support for dnd, by calling
9126         OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
9127         authors list ;-).
9128         * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
9129         simple calculation of distances for all the items in the owner
9130         listview.
9131
9132 2007-12-21  Geoff Norton  <gnorton@novell.com>
9133
9134         * XplatUICarbon.cs:  Ensure that we create WindowMapping handles
9135         for windows that are originally created as invisible.  Fixes missing
9136         main window in paint-mono.
9137
9138 2007-12-21  Geoff Norton  <gnorton@novell.com>
9139
9140         * XplatUICarbon.cs:  Register our D&D handler.  Register our custom
9141         subclass handler for com.novell.mwfview subclassing HIView.  Implement
9142         Pasteboard and Dnd methods.
9143
9144 2007-12-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9145
9146         * ListBox.cs: When we got focus, give focus to first item if there
9147         wasn't any pervious focused item. Also update navigation to depend on
9148         SelectedIndex rather than FocusedItem, just as .Net does.
9149         Fixes #349174.
9150
9151 2007-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9152
9153         * ListBox.cs: Both FindString and FindStringExact methods must do an
9154         case insensitive search, should allow the last valid index to be
9155         passed in the overload taking an initial index, and should also
9156         continue searching from the top back to the specified index when it
9157         reaches the bottom.
9158
9159 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9160
9161         * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
9162         redraw issue, and allows RichTextBox to draw colored text even while
9163         disabled or readonly.
9164
9165 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9166
9167         * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
9168         disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
9169         and doesn't grey text in a disabled RichTextBox.
9170
9171 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9172
9173         * RichTextBox.cs: Apply patch from Luke Page that adds better support
9174         for many RTF commands: quad alignment, separate formatting for blocks
9175         inside groups, and ParDef support.  Makes the test case from bug #324589
9176         look much better.
9177
9178 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9179
9180         * LineTag.cs: Fix an error in the new Draw method that caused
9181         a crash when rendering the document on bug #324589.
9182
9183 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9184
9185         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
9186         TextControl.cs: Apply patch from Luke Page that adds support
9187         for URL links in RichTextBox.
9188         [Fixes enhancement #342516]
9189
9190 2007-12-18  Everaldo Canuto  <ecanuto@novell.com>
9191
9192         * MenuItem.cs: When cloning menuitem clone also name and tag properties for
9193         2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
9194
9195 2007-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9196
9197         * ListBox.cs: When a key gets pressed, try to find a string
9198         if the key is a character or a digit.
9199         Fixes #343971.
9200
9201 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
9202
9203         * TableLayoutPanel.cs: Remove some unused variables.
9204
9205 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
9206
9207         * DateTimePicker.cs: Commit patch from Luke Page that ensures
9208         we don't end up at an invalid date when we click the up/down
9209         spinner to change the month or year.  Fixes bug #348682.
9210
9211 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
9212
9213         * Application.cs: Calling Exit in 2.0 should chain to the
9214         Exit (CancelEventArgs) version so it can be cancelled.
9215         * Form.cs: Create a flag to allow raising the Closing
9216         events to be skipped.  We raise them once in Application.Exit
9217         and don't want to raise them again when the Form is actually
9218         closed.  [Fixes bug #349073]
9219
9220 2007-12-16  Jonathan Pobst  <monkey@jpobst.com>
9221
9222         * ToolStripDropDown.cs: Guard against an NRE when there
9223         hasn't been a mainform set in the application context.
9224         [Fixes bug #349108]
9225
9226 2007-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9227
9228         * ListBox.cs: When SetBoundsCore gets called, besides
9229         calling UpdateScrollBars, update the value of
9230         last_visible_index, since we could need to show more items
9231         than before, and we need to let the paint routines know that.
9232         Fixes #344445.
9233
9234 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9235
9236         * ListView.cs: Add DesignerSerializationVisibility attribute to
9237         InsertionMark property.
9238         * ListViewItem.cs: Add same attribute to Position property.
9239
9240 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9241
9242         * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
9243         is 2.0 only.
9244
9245 2007-12-14  Jonathan Pobst  <monkey@jpobst.com>
9246
9247         * ThemeWin32Classic.cs: Don't draw the background on a
9248         flat button if there is a background image.
9249         [Fixes bug #348649]
9250
9251 2007-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9252
9253         * ListBox.cs: If we remove the item currently selected,
9254         remove it not only from SelectedItems, but also
9255         resetting selected_index. Moreover, set focused_item to Items.Count - 1 if 
9256         the items count decreased and focused_item has bigger value than that.
9257
9258 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
9259
9260         * Control.cs: Perform our layout after we resize ourselves
9261         if we had to adjust our AutoSize.  Missed commit for bug
9262         #346246.
9263
9264 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
9265
9266         * TableLayoutPanel.cs: Override GetPreferredSizeCore so
9267         we can provide an implementation of AutoSize.
9268         [Fixes bug #346246]
9269
9270 2007-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9271
9272         * ListBox.cs: Add the internal overload Sort (bool paint),
9273         to indicate whether we actually need a paint or we will
9274         call Refresh ourselves. This way we don't request a paint
9275         _before_ having an updated and valid layout.
9276         Fixes #347233.
9277
9278 2007-12-12  Andreia Gaita <avidigal@novell.com>
9279
9280         * XPlatUIX11.cs: Send paint messages when updating a systray icon
9281         * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
9282         properly invalidated. 
9283         Fixes #324237
9284
9285 2007-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9286
9287         * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
9288         don't simply assign it to our internal group field, but instead 
9289         use our Group property, which should do all the neccessary work
9290         required to support groups. Fixes an issue reported to me (mail) by a 
9291         guy using this new feature.
9292
9293 2007-12-11  Jonathan Pobst  <monkey@jpobst.com>
9294
9295         * Control.cs: Use Scale instead of ScaleControl to ensure the
9296         whole hierarchy gets scaled.
9297         [Fixes bug #347282]
9298
9299 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
9300
9301         * DateTimePicker.cs: Don't set the internal MonthCalendar's
9302         Parent property.  Doing this causes the control to be hosted by
9303         the Form instead of being a popup window.
9304         [Fixes bug #347665]
9305
9306 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
9307
9308         * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
9309         at an index higher than Count, just use Add instead of Insert.
9310         [Fixes bug #347669]
9311
9312 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
9313
9314         * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
9315         DrawPictureBox, this is handled by Control.PaintBackground.
9316         [Fixes bug #347276]
9317
9318 2007-12-10  Everaldo Canuto  <ecanuto@novell.com>
9319
9320         * MenuAPI.cs: When process menu keys return true by default only if menu is
9321         active. Fixes bug #342892.
9322
9323 2007-12-09  Andreia Gaita <avidigal@novell.com>
9324
9325         * Control.cs: check if windows are actually mapped before
9326         trying to zorder. Fixes #342509, #346955
9327
9328 2007-12-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9329
9330         * ListView.cs:
9331         * ListViewInsertionMark.cs:
9332         * ThemeWin32Classic.cs: Implement the drawing side of the
9333         new 2.0 ListView.InsertionMark property.
9334
9335 2007-12-07  Jonathan Pobst  <monkey@jpobst.com>
9336
9337         * CurrencyManager.cs: Silence some debug spew.
9338
9339 2007-12-07  Geoff Norton  <gnorton@novell.com>
9340         
9341         * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
9342         masks for our children as well as siblings to avoid having to query
9343         Quartz for this information.
9344         * XplatUICarbon.cs: Implement a delegate based system to pass
9345         information to System.Drawing.  Implement Async methods.  Remove
9346         the hack for the resize thumb and imlpement a transparent Grow Box.
9347         Rework the messaging system to proplery create window's and messages,
9348         fixes TabControl.
9349
9350 2007-12-06  Andreia Gaita <avidigal@novell.com>
9351
9352         * X11Keyboard.cs: Use Xutf8LookupString to support international 
9353         characters under alternate codepages. Patch from #340878
9354
9355 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9356
9357         * ListView.cs: When doing layout computations, set position in the
9358         ListView instances (we cache the position just as .Net does).
9359         * ListViewItem.cs: New internal setter method for Position. Also set
9360         position field as also available in 1.1, since we are going to use it
9361         now in the common case.
9362
9363 2007-12-06  Andreia Gaita <avidigal@novell.com>
9364
9365         * Control.cs: When removing controls, get the actual container
9366         to notify about active control changes. Fixes 341314.
9367
9368 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9369
9370         * ListViewItem.cs: Forgot to add Font to our serialization stuff.
9371
9372 2007-12-05  Andreia Gaita <avidigal@novell.com>
9373
9374         * Control.cs: When updating the zorder, ignore windows that are not
9375         mapped. Fixes #342509
9376
9377 2007-12-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9378
9379         * ListViewItem.cs: Actually implement serialization on this class.
9380
9381 2007-12-05  Gert Driesen  <drieseng@users.sourceforge.net>
9382
9383         * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
9384         LinkCollection. Spaces to tabs, and removed extra tabs.
9385
9386 2007-12-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9387
9388         * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
9389           tests to fail (hopefully).
9390
9391 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
9392
9393         * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
9394         the image margin so custom renderers can correctly place it.
9395
9396 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
9397
9398         * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
9399         so custom renderers can correctly place it.
9400
9401 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
9402
9403         * Application.cs: Let WM_CHAR messages flow through to controls
9404         hosted in Strips.  [Fixes bug #343972]
9405
9406 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
9407
9408         * ToolStripManager.cs: Guard against an NRE I ran into.
9409
9410 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
9411
9412         * LinkLabel.cs: Apply patch from George to fix bug 344012.  If
9413         a Link is manually added to the Links collection, we need to set
9414         its owner, so it can invalidate properly.
9415         [Fixes bug #344012]
9416
9417 2007-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9418
9419         * ListView.cs: When changing ListViewItem.Position (which calls
9420         ListView.ChangeItemLocation), invalidate not only the area
9421         corresponding to the main item, but also to the area occupied
9422         by the items being moved.
9423
9424 2007-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9425
9426         * ListView.cs: When changing the position of a given item,
9427         don't use item bounds, but item areas (which includes the item spacing
9428         between them). Also, use first/last position if the requested
9429         position is outside bounds (as .Net does). Invalidate the previous and
9430         new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
9431         in a specific position, instead of directly accessing Items collection
9432         (this is done to get the right item - remember an Item can have a
9433         different position in the grid than in the Items collection).
9434
9435 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
9436
9437         * MessageBox.cs: Calculate text area instead of just top left, this rect 
9438         area will be used in DrawString. Fixes bug #343364.
9439
9440 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
9441
9442         * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
9443         screen width. Partially fixes bug #343364.
9444
9445 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
9446
9447         * NotifyIcon.cs: Remove duplicated code before call realculate and put this
9448         code inside recalculate, it makes code more simple.
9449
9450 2007-11-22  Everaldo Canuto  <ecanuto@novell.com>
9451
9452         * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
9453         between update or add icon. Fixes bug #324344.
9454
9455 2007-11-21  Andreia Gaita <avidigal@novell.com>
9456
9457         * XPlatUIX11.cs: Do not treat tool windows as if they have no 
9458         window manager, since that stretches the drawing area to include
9459         the window decorations, and they get hidden. Reverts r84444 and fixes
9460         #335849 and #342790 (mdi and pdn3 regression)
9461
9462 2007-11-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9463
9464         * ListView.cs: When setting focused item, try to give focus to the
9465         previous one _only_ if the previous one remains valid. 
9466         Fixes #342504.
9467
9468 2007-11-20  Jonathan Pobst  <monkey@jpobst.com>
9469
9470         * Application.cs: Revert r89650, as it broke a common case to fix
9471         an obscure case.  Fixes bug #342606.
9472
9473 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
9474
9475         * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
9476
9477 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
9478
9479         * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal 
9480         alignment. [Fixes #324228]
9481
9482 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
9483
9484         * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
9485         [Fixes bug #342123]
9486
9487 2007-11-19  Everaldo Canuto  <ecanuto@novell.com>
9488
9489         * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
9490         it prevent problems when empty captions. [Fixes #342141]
9491
9492 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
9493
9494         * Label.cs: Use Size instead of None.  Fixes bug #342077.
9495
9496 2007-11-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9497
9498         * ListViewItem.cs: Implement 2.0 FindNearestItem method.
9499
9500 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
9501
9502         * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
9503         but there isn't a MdiContainer.
9504         [Fixes bug #342358]
9505
9506 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
9507
9508         * TextControl.cs: Don't recalculate document if the recalc_start and
9509         recalc_end hasn't changed.
9510         [Fixes bug #342505]
9511
9512 2007-11-17  Gert Driesen  <drieseng@users.sourceforge.net>
9513
9514         * DataGridViewTextBoxCell.cs: Removed CWL.
9515
9516 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9517
9518         * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
9519
9520 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
9521
9522         * TextControl.cs: Missed some code for bug 341534 to trigger a
9523         recalculation when the font changes.
9524
9525 2007-11-16  Andreia Gaita <avidigal@novell.com>
9526
9527         * Control.cs: When updating the zorder, check if the child to update is
9528         the same control that is set to always be on top (i.e., scrollbars), and 
9529         just put it on top directly. Fixes BadMatch error on pdn3
9530
9531 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9532
9533         * ListView.cs: Throw the needed exceptions for FindNearestItem.
9534
9535 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
9536
9537         * Control.cs: Don't perform a new layout when a label changes its text,
9538         cause label handles its own autosizing.
9539         [Fixes bug #342077]
9540
9541 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9542
9543         * ListView.cs: Implement 2.0 FindNearestItem methods.
9544
9545 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
9546
9547         * ToolStripPanel.cs: Make Join at least add the control to the panel,
9548         even if the rest of what Join does isn't supported.  Add some more
9549         support for vertical toolbars.
9550         * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
9551         [Fixes the application breaking parts of bug #341998]
9552
9553 2007-11-15  Jonathan Pobst <monkey@jpobst.com>
9554
9555         * ToolStripItem.cs: When determining if we have a check/image margin,
9556         we need to look at ShowCheckMargin as well as ShowImageMargin.
9557
9558 2007-11-15  Geoff Norton  <gnorton@novell.com>
9559
9560         * XplatUIOSX.cs: Rename to...
9561         * XplatUICarbon.cs: and refactor all event handling out to the new event handling
9562         system in System.Windows.Forms.CarbonInternal.  Lots of code cleanup as well.
9563
9564 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
9565
9566         * KeysConverter.cs: The default values should be an array of Keys, not
9567         strings.  Also, the array has more values for 2.0.
9568         [Fixes bug #341851]
9569
9570 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
9571
9572         * Application.cs: Change ExecutablePath to use 
9573         Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
9574         [Fixes bug #323552]
9575
9576 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
9577
9578         * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
9579         When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
9580         * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
9581         be ignored.  Create a new GetLineEnding that can specify which types of
9582         line endings to look for.  On Insert, only create new lines for \n and \r\n.
9583         [Fixes bug #324274]
9584
9585 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
9586
9587         * TextBoxBase.cs: As we loop through each line changing the font, tell
9588         the document that the line needs to be recalculated.  Fixes bug #341534.
9589
9590 2007-11-13  Jonathan Pobst  <monkey@jpobst.com>
9591         [Another round of refactoring]
9592         * Line.cs: Add DeleteCharacters.
9593         * LineTag.cs: Add Delete.
9594         * TextBoxBase.cs: Update to use new methods.
9595         * TextControl.cs: Refactor the Delete* methods.
9596
9597 2007-11-13  Everaldo Canuto  <ecanuto@novell.com>
9598
9599         * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
9600         the patch. [Fixes #324856]
9601
9602 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9603
9604         * ListView.cs:
9605         * ListViewItem.cs: Add an initial implementation of
9606         2.0 ListViewItem.Position getter.
9607
9608 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9609
9610         * ListView.cs: Add a reordered_items_indices array, to allow us
9611         to have a different sorting than that of Items (the sorting in Items
9612         could not match the actual sorting in screen). This is needed to
9613         implement a pair of 2.0 features.
9614         * ListViewItem.cs: Add a DisplayIndex property to keep track of the
9615         actual position in the ListView grid, since it could have a position
9616         different than its Index (position in ListViewItemCollection). 
9617
9618 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
9619
9620         * Label.cs: Add StringFormatFlags.LineLimit.  This tells DrawString to
9621         not draw partial lines.
9622         * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
9623         LineLimit flag from the base is preserved.
9624         Fixes the windows part of bug #338965.
9625
9626 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
9627
9628         * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
9629         so that it can be canceled in KeyPress.
9630         Fixes bug #340078.
9631
9632 2007-11-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9633
9634         * ListView.cs: In ItemControl, reset mouse-handling related
9635         fields even if we dont' have items (we still should reset them when
9636         we had items but then called Items.Clear). Partially based in a patch
9637         by George Giolfan.
9638         Fixes #338399.
9639
9640 2007-11-08  Gert Driesen  <drieseng@users.sourceforge.net>
9641
9642         * Application.cs: In ProductVersion first try AssemblyFileVersion
9643         before falling back to assembly version. Fixes bug #339787.
9644
9645 2007-11-08  Andreia Gaita <avidigal@novell.com>
9646
9647         * HtmlElement.cs: Implement InnerText setter.
9648         * WebBrowserBase.cs: Implement Navigated event support.
9649         Add flag to track when the browser "document" is ready to be retrieved.
9650         * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
9651         Make sure browser document is ready before retrieving it.
9652         Clean up cached objects (document) when moving to a new page through
9653         any of the navigation methods.
9654         Use the new Mono.WebBrowser.INavigation interface to control navigation.
9655         Implement OnNavigated event.
9656
9657 2007-11-07  Jonathan Pobst  <monkey@jpobst.com>
9658
9659         * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
9660         DrawLinkLabel, this is handled by OnPaintBackground.
9661         Fixes bug #339565, part II.
9662
9663 2007-11-07  Andreia Gaita <avidigal@novell.com>
9664
9665         * Control.cs: Revert r88915. Selecting text on a textbox depends on
9666         getting a Select call on click, so this call needs to be here for now.
9667         Unfixes #325809
9668
9669 2007-11-07  Geoff Norton  <gnorton@novell.com>
9670
9671         * OSXStructs.cs: Add the kEventClassApplication constants.
9672         * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the 
9673         application is deactivated otherwise Menu overlays linger on top of
9674         other application windows.
9675
9676 2007-11-07  Geoff Norton  <gnorton@novell.com>
9677
9678         * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
9679         dont support cursors yet anyways.  This allows Reflector to run.
9680
9681 2007-11-07  Geoff Norton  <gnorton@novell.com>
9682
9683         * XplatUIOSX.cs: Implement DragSize.
9684
9685 2007-11-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9686
9687         * ListView.cs: When we receive a WM_LBUTTONDOWN message in
9688         ItemControl, request the focus, as .Net does. This is needed after 
9689         Control does not request focus anymore when it receives a
9690         WM_LBUTTONDOWN.
9691
9692 2007-11-06  Jonathan Pobst  <monkey@Jpobst.com>
9693
9694         * Label.cs: Make DrawImage internal so it can be called from Theme code.
9695         Remove the DrawImage call from OnPaint.
9696         * LinkLabel.cs: Remove the DrawImage call from OnPaint.
9697         * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
9698         but before we draw the text for DrawLabel and DrawLinkLabel.
9699         Fixes bug #339565.
9700
9701 2007-11-05  Andreia Gaita <avidigal@novell.com>
9702
9703         * Control.cs: Remove select call on click. Fixes #325809
9704
9705 2007-11-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9706
9707         * ListViewItem.cs: Add 2.0 Position property getter.
9708
9709 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9710
9711         * ListView.cs: Add 2.0 BackgroundImageTiled property.
9712         Also, to make it work properly, change item's BackColor and
9713         BackgroundImageLayout as needed.
9714         * ThemeWin32Classic.cs: Don't fill any background rectangle 
9715         in ListView.ItemControl when drawing items; just let the Control
9716         base implementation fill it.
9717
9718 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9719
9720         * ListViewGroup.cs: Adda TypeConverter attribute for this class,
9721         as well as adding a custom 'dummy' Converter, as .net does.
9722
9723 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9724
9725         * PropertyGridView.cs: When clicking drop-down button,
9726         select an index in the listbox only if our standard values collection 
9727         has one or more items.
9728
9729 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9730
9731         * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
9732         property.
9733
9734 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
9735
9736         * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
9737         the value is not changed. This ensure a pushed button remains in that
9738         state when clicked again. When switching the value of PropertySort
9739         between Categorized and CategorizedAlphabetical, do not update the
9740         grid items and do not fire a PropertyChangedEvent. When clicking the
9741         sorting buttons, do not modify the PropertySort value when switching
9742         between Categorized and CategorizedAlphabetical but only update the
9743         button state.
9744
9745 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
9746
9747         * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
9748         formatting.
9749         * PropertyGrid.cs: Also put Categorized button in pushed state when
9750         PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
9751         for help description label.
9752
9753 2007-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9754
9755         * ListView.cs: When calculating the biggest item for a given column,
9756         take into account 2.0 LIstViewItem.IndentCount, since it directly affects
9757         the item's width.
9758
9759 2007-11-03  Gert Driesen  <drieseng@users.sourceforge.net>
9760
9761         * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
9762         value for PropertySort on 1.0 profile. PropertySortChanged event
9763         should only be fired on 2.0 profile. Fixed NullReferenceException
9764         in UpdateSortLayout when PropertyGrid contains no items.
9765
9766 2007-11-02  Jonathan Pobst  <monkey@jpobst.com>
9767
9768         * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
9769         [Fixes bug #338554]
9770
9771 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9772
9773         * ListViewItem.cs: Implement 2.0 IndentCount property.
9774
9775 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9776
9777         * X11Dnd.cs: When sending status in a dnd operation, compare current
9778         effect with the 'allowed' field instead of 'drag_data.Allowed', since
9779         the later is only created when a Winforms application is both the
9780         source and the target, but not when we are the target only.
9781         Fixes part of #324251.
9782
9783 2007-11-01  Geoff Norton  <gnorton@novell.com>
9784
9785         * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
9786         order of Z-Order.
9787         * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling 
9788         children out of the drawing view on mac.
9789         * XplatUIOSX.cs: Code cleanup.  Handle more window grab cases.  Fix SetParent
9790         to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
9791         
9792 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
9793
9794         * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
9795         on the non-hosted-control part of it shouldn't do anything.
9796         Fixes part of bug #327498.
9797
9798 2007-11-01  Andreia Gaita <avidigal@novell.com>
9799
9800         * WebBrowserBase.cs: revert previous change, resize can be called anytime
9801
9802 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
9803
9804         * Application.cs: When a toolstrip has the keyboard input loop, let messages
9805         it does not use flow through to controls that are hosted in menus.
9806         Same with mouse clicks.
9807         * Form.cs: Don't close all menus on click if the click is on a
9808         control hosted in a menu.
9809         Fixes part of bug #327498, and part of bug #325969.
9810
9811 2007-10-31  Andreia Gaita <avidigal@novell.com>
9812
9813         * WebBrowserBase.cs: Only call resize on gluezilla when it is active
9814
9815 2007-10-31  Jonathan Pobst  <monkey@jpobst.com>
9816
9817         * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
9818         Addresses an issue raised in bug #336218.
9819
9820 2007-10-30  Jonathan Pobst  <monkey@jpobst.com>
9821
9822         * Form.cs: Patch from George that moves the conversion of ClientSize->Size
9823         for PreferredSize from OnLayout to PreferredSize.  Fixes bug #325242.
9824
9825 2007-10-30  Andreia Gaita <avidigal@novell.com>
9826
9827         * ContainerControl.cs: Check if the active control is a
9828         child of a removed control and update active_control accordingly.
9829         Fixes #329718
9830
9831 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9832
9833         * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
9834         or the MaxDate.  Fixed bug #337693.
9835
9836 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9837
9838         * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
9839         after calling SetWindowLong for a form, to force an immediate NC refresh.
9840         Fixes first part of bug #325150.
9841
9842 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9843
9844         * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
9845         simple.  Fixes the last part of bug #322668.
9846
9847 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9848
9849         * MessageBox.cs: If the owner is TopMost, then the MessageBox form
9850         needs to be TopMost as well, or else the MessageBox is under the form.
9851         Patch by George fixes bug #325300.
9852
9853 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9854
9855         * X11Dnd.cs: When starting a new drag operation, reset the static
9856         'dropped' field to false (previously the implementation didn't reset
9857         it and got confused after the first drag).
9858         Fixes #325071.
9859
9860 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9861
9862         * PropertyGrid.cs: When PropertySort changes, re-organize the grid
9863         items instead of re-creating them all. For this purpose we now cache
9864         both CategoryGridEntry items and the GridEntries for the main object's
9865         properties.
9866         * GridItem.cs: Make SetParent method abstract.
9867         * GridEntry.cs: Override the SetParent method (already there, but now
9868         we override it).
9869         Fixes #324866.
9870
9871 2007-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9872
9873         * PropertyGridView.cs: Set the plus/minus bounds of a grid item
9874         depending on its depth (as .Net does). Update the needed values in
9875         MouseDown handler. Also draw the plus/minus rect after the label,
9876         so we don't draw on top of it.
9877
9878 2007-10-24  Everaldo Canuto  <ecanuto@novell.com>
9879
9880         * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
9881         processed by forms or controls when menu is active. [Fixes #333548]
9882
9883 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
9884
9885         * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
9886         parent doesn't have focus.  This was causing ToolStripTextBoxes to take
9887         focus on mouse over.
9888
9889 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
9890
9891         * TextControl.cs: Code cleaning, simplifying.
9892
9893 2007-10-24  Geoff Norton  <gnorton@novell.com>
9894
9895         * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
9896         * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
9897
9898 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
9899
9900         * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
9901         the cap is maxvalue, not actually 0.  [Fixes bug #336218]
9902
9903 2007-10-24  Andreia Gaita <avidigal@novell.com>
9904
9905         * SendKeys.cs: apply jpobst's patch to bug #332409
9906
9907 2007-10-23  Andreia Gaita <avidigal@novell.com>
9908
9909         * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the 
9910         Windows 2000 gdi DrawText call doesn't draw if it's higher than that
9911         for some reason
9912
9913 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9914
9915         * PropertyGridView.cs: If a property has an UIEditor available,
9916         make the drop-down/editor button available only if the property
9917         is _not_ read only.
9918
9919 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9920
9921         * PropertyGridView.cs: Don't make the grid item textbox 
9922         editable when a drop-down control is available, but 
9923         CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
9924         true. The same bur the color of the grid item value's label.
9925
9926 2007-10-22  Geoff Norton  <gnorton@novell.com>
9927
9928         * OSXStructs.cs: Add the needed constants for keyboard modifiers.
9929         * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
9930         * XplatUIOSX.cs: New reversible frame support.  Wire in the new keyboard
9931         driver.  Padd the bottom of all real windows so the resize thumb doesn't
9932         obscure scroll/status bars.
9933
9934 2007-10-22  Jonathan Pobst  <monkey@jpobst.com>
9935
9936         * WindowsFormsSection.cs: Implement.
9937
9938 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
9939
9940         * MdiClient.cs: Maximize new active mdi child when a maximized child is 
9941         closed see #325434 patch.
9942
9943 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
9944
9945         * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
9946         see #325434 patch.
9947
9948 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9949
9950         * PropertyGridView.cs: When showing the textbox for a grid item,
9951         have two local variables to store the read-only and non-editable
9952         status of a grid item (we were previously using just one variable
9953         to do this, when actually they are slightly different).
9954         Fixes part of #325023.
9955
9956 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9957
9958         * PropertyGridView.cs: When showing a drop-down list, try to get the
9959         values using TypeConverter.ConvertTo (to convert to a string). Fixes
9960         part of #325023.
9961
9962 2007-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9963
9964         * PropertyGrid.cs: When updating a property and populating sub grid
9965         items, remove the previous ones, and invalidate the specific area.
9966         * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
9967         area behind a grid item.
9968         * GridItemCollection.cs: Add an internal Clear method, to allow us to
9969         clean the items if needed (specially for controls implementing 
9970         ICustomTypeDescriptor and returning a variable number of properties).
9971         Fixes #324865.
9972
9973 2007-10-19  Jonathan Pobst  <monkey@jpobst.com>
9974
9975         * TextControl.cs: Clean up and document the Insert function.
9976
9977 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9978
9979         * TextControl.cs: Make sure we know our start point for updating the view
9980         in ReplaceSelection.  Fixes an issue where pasting multiline text wouldn't
9981         update the view.
9982
9983 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9984
9985         * ListView: Couple of corcompare fixes.
9986
9987 2007-10-17  Geoff Norton  <gnorton@novell.com>
9988
9989         * XplatUIOSX.cs: Implement support for window icons in the dock.  Set
9990         the title caption of real window.
9991
9992 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9993
9994         * ErrorProvider.cs: Add the error provider's internal window to a 
9995         containercontrol when the parent changes.  [Fixes bug #329714]
9996
9997 2007-10-17  Geoff Norton  <gnorton@novell.com>
9998
9999         * XplatUIOSX.cs: Implement ScrollWindow.  Properly create TOOLWINDOWs.
10000         When we make a new window; restore the old active window - fixes dialogs.
10001
10002 2007-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10003
10004         * PropertyGridView.cs: Look for RefreshPropertiesAttribute
10005         when modifying a property, and if found then invalidate as
10006         requested.
10007         Fixes part of #324865.
10008
10009 2007-10-17  Geoff Norton  <gnorton@novell.com>
10010
10011         * XplatUIOSX.cs: Re-enable the native driver on the Mac.  This is still
10012         highly experimental.  Fixed coordinate translation.  Fixed window locations.
10013         Initial support for clipping. Implemented NC areas and menus.  Support for
10014         launching from command line from Will Johansson (wjohansson@atacomm.com).
10015         * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
10016         wjohansson@atacomm.com)
10017         * Hwnd.cs: Add some internal structures for tracking Mac cursors.
10018         Hwnds now track the existence of all of their children for Mac clipping.
10019     * XplatUI.cs: Re-enabled the native driver on the Mac.
10020
10021 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
10022
10023         * Line.cs: Move the InsertString function to here.
10024         * TextControl.cs: Cleanup some duplicate code, move some InsertString
10025         functionality to Line.
10026
10027 2007-10-17  Geoff Norton  <gnorton@novell.com>
10028
10029         * ComboBox.cs: Destroy the popup after hiding it.  Fixes #322582
10030
10031 2007-10-16  Gert Driesen  <drieseng@users.sourceforge.net>
10032
10033         * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
10034         always setting value to true.
10035         * Form.cs: When changing AcceptButton, notify new and original button.
10036
10037 2007-10-16  Jonathan Pobst  <monkey@jpobst.com>
10038
10039         * Form.cs: Guard against an NRE when the user sets the AcceptButton to
10040         a custom control that implements IButtonControl instead of an actual
10041         button.  [Fixes bug #334244]
10042
10043 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
10044
10045         * Form.cs: Change SelectActiveControl to internal, we need to call it in
10046         MdiWindowManager.
10047         
10048         * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
10049         active control when activate a new mdi window.
10050         
10051         [Fixes bug #330495]
10052
10053 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
10054
10055         * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
10056         is already added.
10057         [Fixes bug #333617]
10058
10059 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
10060
10061         * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
10062         to MaxValue and recalc_end to MinValue.  Currently, recalc_start is always 1,
10063         so we always recalculate the whole document instead of just the new part.
10064         [Fixes bug #325082]
10065
10066 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
10067
10068         * LineTag.cs: Fix a case where the GetCharIndex would not return 0
10069         when the mouse was to the left of the first character in the line.
10070
10071 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
10072
10073         * TextBox.cs, TextBoxBase.cs: When setting the document's password
10074         character, use the property instead of the variable so that the
10075         UseSystemPasswordChar property is taken into account.
10076         [Fixes bug #333748]
10077
10078 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10079
10080         * FolderBrowserDialog.cs: When a node is right clicked and the "New
10081         folder" contex menu appears, actually add the new folder to it, even
10082         if the node is not currently selected. Still use SelectedNode in case 
10083         there wasn't found a node under the pointer.
10084         Fixes #325452.
10085
10086 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10087
10088         * ListViewItem.cs: When retrieving the focused state, the index check
10089         should be done only when ListView is in virtualmode, as it is an
10090         expensive check for normal mode.
10091
10092 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10093
10094         * ListViewItem.cs: Make the focus state information be stored
10095         in the ListView, not in the items. This is done to match the MS
10096         behaviour for items that are not yet part of a ListView control;
10097         besides that, since just one item can be focused at the same time,
10098         we save a little space in our items.
10099         Fixes part of #331643.
10100
10101 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
10102
10103         * ComboBox.cs: When focus is lost, deselect the text. When setting
10104         text of control, select all text. Do not hide selection when control
10105         does not have focus. Fixes bug #333663.
10106
10107 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
10108
10109         * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
10110         instead of ArgumentException when SelectionLength is set to negative
10111         value. Added same check to SelectionStart. Code formatting.
10112
10113 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
10114
10115         * TextBoxBase.cs: Invalidate selection before changing SelectionLength
10116         or SelectionStart. Code formatting.
10117
10118 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10119
10120         * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
10121         indicating that there was not a previous drag-and-drop operation going
10122         on.
10123         Fixes part of #325071.
10124
10125 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10126
10127         * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
10128         AllowedEffect, don't let the drop operation happen. 
10129         Fixes #32580.
10130
10131 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
10132
10133         * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
10134
10135 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
10136
10137         * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
10138         is called.
10139
10140 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
10141
10142         * Line.cs: Add a method that finds the tag that contains an x-coord.
10143         * LineTag.cs: Add a method that finds the character at an x-coord using
10144         a binary search, the old way was a linear search.
10145         * TextControl.cs: Change FindCursor to use the above new methods.
10146
10147 2007-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10148
10149         * DragEventArgs.cs: Allow Effect to have a non allowed value (a
10150         value different than AllowedEffect). This should be possible to
10151         indicate that dragging is not possible in some control/area.
10152
10153 2007-10-11  Jonathan Pobst  <monkey@jpobst.com>
10154
10155         * LineTag.cs: Encapsulate all variables with properties.  Calculate ascent/
10156         descent internally when font changes instead of outside code being responsible
10157         for setting it.
10158         * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
10159         instead of accessing internal variables.
10160
10161 2007-10-09  Everaldo Canuto  <ecanuto@novell.com>
10162
10163         * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
10164         remove special treatment for ArrangeIcons since it is already arranged.
10165
10166 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
10167
10168         * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
10169         the Win32 backend uses Color.
10170         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
10171         Refactor to store a Color instead of a Brush for Color.
10172
10173 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
10174
10175         * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
10176         away.  I didn't realize I needed this when I refactored these earlier.
10177
10178 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
10179
10180         * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
10181         store a Color structure and use the ResPool for back color instead of
10182         holding onto brushes.
10183
10184 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
10185
10186         * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
10187         [Fixes bug #325592]
10188
10189 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10190
10191         * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
10192         to recalculate its size.  Fixes a part of bug #331052.
10193
10194 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10195
10196         * NotifyIcon.cs: Set the correct mouse button when handling right mouse
10197         button.  Fixes a part of bug #331052.
10198
10199 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10200
10201         * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
10202         the CreateParams.
10203         * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
10204         decorations.
10205         [Fixes bug #330986]
10206
10207 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10208
10209         * TextBoxTextRenderer.cs: Don't make this a static class, as static
10210         doesn't exist in 1.1.  (Thanks jb!)
10211
10212 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10213
10214         * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
10215         class to allow us to use different backends on different platforms.
10216         Linux uses the current [Draw|Measure]String backend.  Windows uses
10217         the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
10218         of GDI+.  This leads to better looking text and more accurate measurements
10219         on Windows, fixing many of the reported issues.
10220         * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
10221
10222 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10223
10224         * FolderBrowserDialog.cs: When running on Windows,
10225         try to detect paths such "C:" and add Path.DirectorySeparatorChar,
10226         since we must match both "C:" and "C:\" forms. A little hackish, but
10227         works.
10228         Fixes #325247.
10229
10230 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10231
10232         * ListView.cs: When calling EndEdit (after editing an item),
10233         create a new instance of LabelEditEventArgs to keep clean the fields
10234         in case we get a new call to BeginEdit; also do Application.DoEvents
10235         to have focus in synch. This is a fix similar to TreeView's #325244.
10236
10237 2007-10-07  Andreia Gaita <avidigal@novell.com>
10238
10239         * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
10240         * WebBrowserBase.cs: Added dialog support, calling the
10241           WebBrowserDialogs classes for each specific dialog type.
10242
10243 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10244
10245         * ListView.cs: When the last item is focused and is removed,
10246         move the focus to the previous item (in Items order). This is what MS
10247         does.
10248         Fixes #330415.
10249
10250 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10251
10252         * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
10253         instead of the opposite (RemoveAt call Remove). This is a better
10254         approach since we don't need to to a pair of traversals when using
10255         RemoveAt.
10256
10257 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10258
10259         * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
10260         check that the node actually has nodes, and if not, move to the
10261         parent node instead. 
10262         Fixes #325265.
10263
10264 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10265
10266         * TreeView.cs: Move the previous change to the general case (to
10267         call Application.DoEvents in cases where the method was called by
10268         different places).
10269
10270 2007_10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10271
10272         * TreeView.cs: When calling EndEdit and we need to hide the textbox,
10273         call Application.DoEvents. This is neccessary when we get a call to
10274         BeginEdit from an AfterLabelEdit handler, because the focus always
10275         goes to the TreeView, even if we try to give it to our
10276         LabelEditTextBox. The call do Application.DoEvents seems to
10277         synchronize the focus, basically.
10278         Fixes #325244.
10279
10280 2007-10-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10281
10282         * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
10283         should be false. This also removes some nasty recursive paths. Fixes
10284         part of #325244.
10285
10286 2007-10-04  Everaldo Canuto  <ecanuto@novell.com>
10287
10288         * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
10289         state to normal. Also resize window when cascading. Fixes #325433. 
10290
10291 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
10292
10293         * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
10294         DefaultForeColor, as drawing empty colored lines isn't very useful.
10295         [Fixes the not drawn lines part of bug #324358]
10296
10297 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
10298
10299         * TextControl.cs: Move Line and LineTag classes into separate files to
10300         make things easier to find.
10301         * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
10302         * RichTextBox.cs: Capitalize LineTag.Length property access.
10303         - This is purely an organizational/formatting change, no logic changed. -
10304
10305 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10306
10307         * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
10308         text is empty.
10309
10310 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10311
10312         * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
10313         text is empty.
10314
10315 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10316
10317         * ComboBox.cs: On contructor use backgound_color instead of BackColor to
10318         prevent calling of OnBackColorChanged. Fixes #325321.
10319
10320 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10321
10322         * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
10323         because control can be disabled because owner is disabled.
10324
10325 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
10326
10327         * ComboBox.cs: For the 1.1 profile, the default SelectedText is
10328         string.Empty, test failed from previous change.
10329
10330 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
10331
10332         * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
10333         is null, not String.Empty.  See bug #323038.
10334
10335 2007-10-01  Jonathan Pobst  <monkey@jpobst.com>
10336
10337         * TextControl.cs: Change the margins to match MS a little better.
10338         Still not perfect for X11 due to some DrawString differences, but
10339         is still an improvement over the old stuff.
10340         Partially fixes #324467.
10341
10342 2007-09-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10343
10344         * FolderBrowserDialog.cs: When using MyComputer as 
10345         RootFolder, let absolute paths be considered as valid ones. Also, use
10346         Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
10347         for Windows compatibility.
10348         Partially fixes #325247.
10349
10350 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10351
10352         * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
10353         Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
10354         method, since it causes the dialog to not select folders directly
10355         under the root path (when setting SelectedPath property).
10356
10357 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10358
10359         * TreeNode.cs: When calling Expand/Collapse and need to call 
10360         ExpandBelow/CollapseBelow respectively, take into account
10361         partially visible nodes (previously Expanding/Collapsing
10362         a partially visible node in the bottom was not updating its +- sign).
10363
10364 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10365
10366         * TreeView.cs: When calling Expand on a TreeNode, and we need to
10367         expand nodes below (ExpandBelow), scroll the entire Viewport
10368         area if the node is above it and not visible (instead of scrolling
10369         the area from node's Bottom, which applies only when the node is
10370         visible).
10371         Fixes #325266.
10372
10373 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10374
10375         * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
10376         node in the bottom area (as .Net does). This is done to preserve the
10377         scroll position when ExpandAll is called before handle is created for
10378         the 1.1 profile (bottom area, as opposed to top area in 2.0).
10379         Fixes #324103.
10380
10381 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10382
10383         * TreeView.cs: When calling ExpandAll, don't move the scroll to the 
10384         bottom area if we are in fact not using the vertical scroll bar.
10385         Fixes #324824.
10386
10387 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
10388
10389         * Control.cs: Comment out a double buffering optimization that doesn't
10390         take into account invalidates created in OnPaint, causing the control
10391         to never be redrawn.  It would take quite a bit of work to work around
10392         this, but I left it commented with an explanation for later possible
10393         optimization.
10394         [Fixes bug #328681]
10395
10396 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
10397
10398         * Control.cs: Ask parent to perform a layout if control is AutoSize and
10399         the text changes.
10400         * RadioButton.cs: Implement GetPreferredSizeCore.
10401         [Fixes bug #328672]
10402
10403 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
10404
10405         * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
10406         corcompare stuffs.
10407
10408 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
10409
10410         * Application.cs: Move the sync context stuff to Run instead of RunLoop
10411         so that it doesn't get uninstalled on modal forms.
10412         * Control.cs: Install a sync context when a control is created.
10413         * WindowsFormsSyncronizationContext.cs: Create a private static control
10414         to invoke on.  This is easier than trying to find a created control we
10415         can use.
10416         [Fixes bug #327608]
10417
10418 2007-09-25  Jonathan Pobst  <monkey@jpobst.com>
10419
10420         * Application.cs: Install a WindowsFormsSynchronizationContext in the
10421         run loop, and uninstall it when done.
10422         * WindowsFormsSynchronizationContext.cs: Implement.
10423         [Fixes the common case in bug #327608]
10424
10425 2007-09-23  Gert Driesen  <drieseng@users.sourceforge.net>
10426
10427         * DataGridViewCellCollection.cs: Added argument checks for indexers.
10428         Use case-insensitive lookup of column name in indexer. Code
10429         formatting.
10430
10431 2007-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10432
10433         * TreeNode.cs: When collapsing or expanding a node, check whether its
10434         change will affect the visible area (we were previously doing a
10435         IsVisible check, but that check is not enough since children nodes
10436         could be still visible). Fixes part of #325266.
10437
10438 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
10439
10440         * TreeView.cs: Always select the first node when the TreeView gets
10441         focus if there is no currently selected node.
10442         [Fixes bug #324279]
10443
10444 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
10445
10446         * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
10447         node being selected is null.
10448         [Patch from Yves Bastide fixes bug #326858]
10449
10450 2007-09-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10451
10452         * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
10453         whether all the parent nodes are expanded.
10454         * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
10455         call RecalculateVisibleOrder if all previous nodes are expanded.
10456         Before that we were doing a IsVisible check, but sometimes the node
10457         is not in the visible area, but _should_already be ready, because of
10458         all previous nodes are expanded. Fixes #325259.
10459
10460 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10461
10462         * ToolStripSplitButton.cs: Call the ButtonClick event if the button
10463         portion of the item is clicked.
10464
10465 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10466
10467         * TextControl.cs: Do not tell the system to move the cursor if the
10468         textbox isn't focused.  Fixes part of bug #322668.
10469
10470 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10471
10472         * ComboBox.cs: When there are no items, do not show the dropdown if
10473         the down arrow is clicked.  Fixes part of bug #322668.
10474
10475 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10476
10477         * ToolStripComboBox.cs: Manually set the size of this control in the
10478         constructor, as it doesn't seem to be the same as DefaultSize.
10479         Fixes a failing monobuild test.
10480
10481 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
10482
10483         * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
10484         change it to DateTimePicker.MinDateTime.  [Fixes bug #326609]
10485
10486 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
10487
10488         * Theme.cs: FileDialogs should be using DesktopDirectory instead of
10489         Desktop.  This lets it work for people who have moved their desktops
10490         from the default location on windows.  For people who have not, both
10491         values are the same, so it shouldn't hurt anything.  [Fixes bug #325270]
10492
10493 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10494
10495         * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
10496         but when the base constructor sets this, the control is null.  Set it
10497         again in the constructor.  Fixes a failing monobuild test.
10498
10499 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10500
10501         * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
10502         get called.
10503         * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
10504         called.
10505
10506 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10507
10508         * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
10509         will handle it themselves.
10510         * ToolStripItem.cs: When deciding what the text of a tooltip should
10511         be, use the Text property instead of the text field.
10512         * ToolStripTextBox.cs: Handle tooltips.
10513         [Fixes bugs #325417 and #325973]
10514
10515 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10516
10517         * ToolStripDropDownButton.cs: Only drop down overflow menu with a
10518         left click.  Fixes the easy part of bug #325969.
10519
10520 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10521
10522         * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
10523         bug #325406, but set a minimum for StatusStrip to 22 to keep
10524         bug #325390 fixed.  I think this minimum would have been figured
10525         up automatically if the grip was actually a ToolStripItem, but it
10526         currently is not.
10527
10528 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10529
10530         * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
10531         as this is apparently the actual value used by .Net. Also apply
10532         ItemPadding in Details view only, and decrease the general width padding,
10533         to have only the needed. This should fix #324340 in Windows too.
10534
10535 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10536
10537         * ListViewItem.cs: Don't Invalidate item if parent is inside
10538         a BeginUpdate/EndUpdate block. This prevents to have differences
10539         between the ListView and items state, as well as avoid some exceptions
10540         there.
10541         * ListView.cs: Make 'updating' field internal.
10542
10543 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10544
10545         * ToolStripControlHost.cs: Realign control when ControlAlign changes.
10546         * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
10547         size if appropriate.
10548         Fixes reopened bug #325414.
10549
10550 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10551
10552         * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
10553         * ToolStripItem.cs: Invalidate before and after our new autosize when
10554         text changes.
10555         Fixes reopened bug #325390.
10556
10557 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10558
10559         * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
10560         mnemonics can be drawn or undrawn correctly.  Fixes reopened bug 
10561         #325044.
10562
10563 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10564
10565         * Control.cs: Do WM_CONTEXTMENU before OnMouseUp.  [Fixes bug #325535]
10566
10567 2007-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10568
10569         * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
10570         instead of EllipsisWord (by equistango at gmail.com). Fixes part of
10571         #82734.
10572
10573 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
10574
10575         * ToolStrip.cs: Make ToolStrip selectable when TabStop = true.  Find an
10576         item to select when the ToolStrip is selected.
10577         * ToolStripControlHost: Realign the control when the bounds or visibility
10578         change.
10579         * ToolStripItem.cs: When selected, if it's a control host, focus the control.
10580         * ToolStripOverflow.cs: When laying out the drop down, respect the item's
10581         preferred height.
10582         * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
10583         base.OnPaint.  Was causing text not to be drawn.
10584
10585 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
10586
10587         * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
10588
10589 2007-09-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10590
10591         * TreeView.cs: When creating the label edit text box,
10592         set is initially to Visible = false. This is done to
10593         prevent a confusion in the layout which makes it to lose
10594         focus when shown the first time. Fixes part of #82592.
10595
10596 2007-09-13 Andreia Gaita <avidigal@novell.com>
10597
10598         * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
10599
10600 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10601
10602         * ToolStrip.cs: Take Margin into account when calculating preferred
10603         size.  Also, allow preferred size to get smaller than the explicit
10604         size.
10605         * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
10606         First step towards fixing bug #82747.
10607
10608 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10609
10610         * TreeView.cs: Applied patch from latency@gmx.de to not paint the
10611         full row select background over the plus/minus glyph.  Also, turn
10612         off the focus rectangle for full row select since MS doesn't seem
10613         to ever paint it.  [Fixes bug #81839]
10614
10615 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10616
10617         * ToolStrip.cs: Don't FocusInternal if there is no selected item.
10618         This was causing keyboard opened dropdowns to lose focus.
10619         [Fixes bug #82803]
10620
10621 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10622
10623         * Control.cs: If Rectangle.Empty is passed to Invalidate, use
10624         ClientRectangle instead.  [Fixes bug #82838]
10625
10626 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10627
10628         * SplitContainer.cs: We can't reset Visible on every layout because
10629         someone may have set Visible = false explicitly on a SplitterPanel.
10630         Make sure when we switch orientation the SplitterDistance does not
10631         change.  Fixes two failing tests.
10632
10633 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10634
10635         * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
10636         TextRenderer, since the latter is only available in 2.0.
10637
10638 2007-09-13  Ivan N. Zlatev <contact@i-nz.net>
10639
10640         * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
10641         * SplitContainer.cs: Implement FixedPanel layouting.
10642
10643 2007-09-12  Andreia Gaita  <avidigal@novell.com>
10644
10645         * WebBrowserBase.cs: setup shutdown routine
10646
10647 2007-09-12  Andreia Gaita  <avidigal@novell.com>
10648
10649         * Application.cs: Let keyboard events that are targetted 
10650                 to non-mwf windows hosted inside mwf (as in, webbrowser),
10651                 propagate properly. Fixes keyboard handling on the webbrowser.
10652
10653 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10654
10655         * ListView.cs: When handling MouseUp event and we are 
10656         highligting a node with the mouse right button, don't trigger
10657         Before/AfterSelecting event, since we are not actually selecting
10658         the node.
10659
10660 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10661
10662         * TreeView.cs: When editing a node, modify the edit text box
10663         depending on the text length (as you are typing), like MS does.
10664
10665 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
10666
10667         * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars. 
10668         Override GetPreferredSizeCore to perform calculations.  Remove custom
10669         autosize logic.  [Fixes bug #82739]
10670
10671 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
10672
10673         * TextBoxBase.cs: Modified should default to false.
10674
10675 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10676
10677         * Control.cs: Update the anchoring distances even when layout is supspended.
10678         Patch provided by George fixes bug #82805.
10679
10680 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10681
10682         * Control.cs: Provide a setter for ExplicitHeight.
10683         * TextBoxBase.cs: Now that we have the implementation for explicit heights,
10684         remove the hacks in here for requested_height.
10685         [Fixes bug #82749]
10686
10687 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10688
10689         * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
10690         Maximum to lower that its current Value caused an ArgumentException by setting
10691         the Value to the new Maximum.
10692
10693 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10694
10695         * ThemeWin32Classic.cs: Math is hard!  Fix some math so that the TrackBar
10696         handle moves to the closest tick when it is being dragged.
10697         [Fixes bug #82751]
10698
10699 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10700
10701         * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
10702         can't let them count as real items when calculating where to merge in the
10703         user's items.  [Fixed bug #82786]
10704
10705 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10706
10707         * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
10708         who want to add a menu item directly onto a toolstrip.
10709         [Fixes bug #82775, part II]
10710
10711 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10712
10713         * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
10714         * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
10715         don't set it to available.
10716         * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
10717         [Fixes bug #82727, part II]
10718
10719 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10720
10721         * StatusStrip.cs: Change item placement to None if not visible.
10722         * ToolStripItem.cs: Invalidate when InternalVisible changes.
10723         These should have been committed to fix 82723, but I missed them.
10724
10725 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10726
10727         * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
10728         Click, and that it is only called once.
10729         * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
10730         * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
10731         dropped down.
10732         [Fixes bug #82775]
10733
10734 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10735
10736         * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
10737         to match .Net.
10738         * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
10739         instead of 8, just like above. Partially fixes #82734.
10740
10741 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10742
10743         Patch by Ernesto Carrea <equistango at gmail.com>. Partially 
10744         fixes #82734.
10745
10746         * ListView.cs: Remove extra space between rows in Details view (match
10747         .Net). 
10748         * ThemeWin32Classic.cs: Header text should use ListView.Font, not
10749         the DefaultFont.
10750
10751 2007-09-08  Gert Driesen  <drieseng@users.sourceforge.net>
10752
10753         * Application.cs: Modified ProductVersion to return value of
10754         AssemblyInformationVersion if available, and fallback to assembly
10755         version. Fixes bug #82746. Code formatting.
10756         * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
10757         instead.
10758
10759 2007-09-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10760
10761         * Control.cs: When updating ZOrder for a child control,
10762         take into account the implicit ones (we need it in our controls
10763         using them). Fixes #82642.
10764
10765 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
10766
10767         * ToolStripItem.cs: Add support for animated images.
10768         [Fixes bug #82726]
10769
10770 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
10771
10772         * ToolStrip.cs: Make sure we aren't drawing anything that isn't 
10773         visible.  [Fixes bug #82727]
10774
10775 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10776
10777         * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
10778         so we repaint using the new size.  [Fixes bug #82723]
10779
10780 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10781
10782         * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
10783         option.  [Fixes bug #81779]
10784
10785 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10786
10787         * TreeView.cs: Override HandleClick because the StandardClick style is
10788         set to false.  According to MSDN (and testing), the click events should
10789         only be raised when the click occurs on a TreeNode.  [Fixes bug #81739]
10790
10791 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10792
10793         * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
10794         the border will disappear.  Fixes reopened #82653.
10795
10796 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10797
10798         * Control.cs: If the control is autosize, and its preferred size changes
10799         when it lays out its children, tell its parent so it can be re-layed out.
10800         Fixing some of the fallout from r85433.
10801
10802 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10803
10804         * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
10805         and CheckBox share some code.
10806
10807 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10808
10809         * TrackBar.cs: Only call OnScroll if we actually changed the Value of
10810         the TrackBar, not every mouse move.  [Fixed bug #82718]
10811
10812 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10813
10814         * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
10815         under 2.0 rendering.  [Fixes bug #82657]
10816
10817 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10818
10819         * TreeView.cs: If we found a TreeNode to display a context menu, but
10820         it doesn't have one to show, let the TreeView display its menu
10821         instead.  [Fixes bug #82680]
10822
10823 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10824
10825         * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
10826         OnPaintInternal instead.  Give the internal TextBox a Border property
10827         so it can draw itself more correctly.  [Fixes bug #82653]
10828
10829 2007-09-06  Zoltan Varga  <vargaz@gmail.com>
10830
10831         * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
10832
10833 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
10834
10835         * ComboBox.cs: Adjust combobox button state to reflect current state when
10836         back to enabled = true. Fixes first issue of #82654.
10837
10838 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
10839
10840         * Control.cs: Fix last patch regression, prevent forms to update zorder when
10841         setting visible property.
10842
10843 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
10844
10845         * Control.cs: Update zorder after control creation in SetVisibleCore, it 
10846         fix zorder for controls initially created as non visible. Fixes #82667.
10847
10848 2007-09-04  Everaldo Canuto  <everaldo@simios.org>
10849
10850         * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
10851         mimic win32 look. Fixes #82656.
10852
10853 2007-09-01  Zoltan Varga  <vargaz@gmail.com>
10854
10855         * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs: 
10856         Stubs for new net 3.5 classes.
10857
10858 2007-08-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10859
10860         * ListViewItem.cs: In ListViewItemCollection operations calculate
10861         Layout for owner as well as invalidate it. Fixes part of #82642.
10862
10863 2007-08-31  Jonathan Pobst  <monkey@jpobst.com>
10864
10865         * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
10866         when returning Enabled.  [Fixes bug #82651]
10867
10868 2007-08-30  Everaldo Canuto  <everaldo@simios.org>
10869
10870         * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
10871
10872 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10873
10874         * ListView.cs: Put item padding info in a single place
10875         (Theme.ListViewItemPaddingWidth) to have working AutoResize on
10876         columns again.
10877         * ThemeWin32Classic.cs:
10878         * Theme.cs: Likewise.
10879
10880 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10881
10882         * ListView.cs: When a ListViewSubItem instance is invalidated,
10883         invoke Invalidate on parent ListViewItem, not parent ListView.
10884         Fixes #81570.
10885
10886 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
10887
10888         * ListView.cs, ListViewItem.cs: corcompare stuffs.
10889
10890 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
10891
10892         * BindingMemberInfo.cs: Implement == and != operators.
10893
10894 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
10895
10896         * HtmlElementEventArgs.cs: Implement properties.
10897
10898 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10899
10900         * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
10901
10902 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10903
10904         * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
10905         Add (string,string,string) to implement the imagekey.  It turns out, we
10906         use the requested imagekey whereas .Net does not.  So I broke ours to match
10907         theirs.  :(
10908
10909 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10910
10911         * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
10912
10913 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10914
10915         * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
10916
10917 2007-08-29  Gert Driesen  <drieseng@users.sourceforge.net>
10918
10919         * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
10920         up-to-date. Fixes bug #82618.
10921
10922 2007-08-29  Everaldo Canuto  <everaldo@simios.org>
10923
10924         * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
10925         reflect document changes. Fixes #82367.
10926
10927 2007-08-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10928
10929         * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
10930         as well as add new ones. This should make work the BackgroundImage
10931         property for ListView again.
10932
10933 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10934
10935         * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
10936         DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
10937         DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
10938
10939 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10940
10941         * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
10942         IsKeyLocked.
10943
10944 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10945
10946         * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
10947         * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
10948
10949 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10950
10951         * RadioButton.cs: Use 2.0 rendering.  Use base implementation of TextAlign.
10952         * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
10953
10954 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
10955
10956         * CursorConverter.cs: Implement conversion to InstanceDescriptor.
10957
10958 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
10959
10960         * GridEntry.cs: Implement GetService.
10961
10962 2007-08-27  Jonathan Pobst  <monkey@jpobst.com>
10963
10964         * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
10965         for label editting, make sure we focus back on the TreeView.
10966         [Fixes bug #82590]
10967
10968 2007-08-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10969
10970         * ListView.cs: Add some 2.0 overrides.
10971
10972 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
10973
10974         * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
10975         because getter dont returns right value before handle creation. Thanks 
10976         to George. Fixes #82569.  
10977
10978 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
10979
10980         * Theme.cs: Revert last patch, it causes error under win32. 
10981
10982 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
10983
10984         * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of 
10985         Environment.SpecialFolder.Desktop in Places method, Desktop returns the 
10986         logical Desktop rather than the physical file system location. Fixes #82603. 
10987
10988 2007-08-26  Everaldo Canuto  <ecanuto@novell.com>
10989
10990         * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
10991         for the patch. Fixes #82568.
10992
10993 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10994
10995         * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
10996         methods.
10997
10998 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10999
11000         * ListViewInsertionMark.cs: New stubbed class.
11001
11002 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
11003
11004         * FolderBrowserDialog.cs: When adding folder, immediately create the
11005         directory with temporary name and rename the directory when editing
11006         finishes. This matches MS. Ensure the node for the new folder is 
11007         selected and LabelEdit is disabled, when editing is either finished
11008         or cancelled.
11009
11010 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
11011
11012         * TreeView.cs: When editing label of node, ensure node is visible.
11013
11014 2007-08-25  Ivan N. Zlatev  <contact@i-nz.net>
11015
11016         * PropertyGridView.cs: Set the value only if it has changed.
11017
11018 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11019
11020         * ListView.cs: Some more code refactoring to add support sorting
11021         with groups (now for Details view). Remove unused code also.
11022
11023 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
11024
11025         * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
11026         Not a big fan of reacting immediately to a field in an EventArg, but that's
11027         the way it's done.  (This is part of the previous commit that got left out.)
11028
11029 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
11030
11031         * FolderBrowserDialog.cs: Removed need for separate description field.
11032         Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
11033         has focus when dialog box is displayed again, regardless of what
11034         button was pressed the previous time. Set RootFolder and SelectedPath
11035         each time dialog box is displayed. This ensures the treeview is
11036         refreshed, and fixes bug #82579. Do no hide selected node in TreeView
11037         when it does not have focus. Added support for more special folders.
11038
11039 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
11040
11041         * TreeView.cs: Create a CancelEdit method.  Clone the edit_args in EndEdit
11042         before calling AfterLabelEdit.  If the user calls BeginEdit in that event,
11043         it resets the edit_args.
11044         * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
11045         [Fixes bug #82577]
11046
11047 2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
11048
11049         * FolderBrowserDialog.cs: Modifies form caption and text of new folder
11050         button to match MS. Provide more meaningful exception message for
11051         invalid RootFolder value. Use zero-length string when SelectedPath
11052         is set to null. Allow non-rooted paths in SelectedPath, but ignore
11053         them in FolderBrowserTreeView. Allow folders to be created in
11054         RootFolder. Fixes bug #82576.
11055
11056 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11057
11058         * ListView.cs: Correctly compute the layout_ht (height) when using groups,
11059         since we need to take into account the group headers and the margin
11060         between them.
11061         * ListViewGroup.cs: Add a rows field to store the number of rows per
11062         group.
11063
11064 2007-08-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11065
11066         * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
11067           Anyways, let's just follow the lead.
11068
11069 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
11070
11071         * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
11072         * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored 
11073         controls in GetPreferredSizeCore.
11074         * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
11075         [Fixes bug #82488]
11076
11077 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
11078
11079         * PrintDialog.cs: Need to instantiate the form variable here too.
11080
11081 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11082
11083         * ListView.cs: Do some reorganization to support sorting in groups,
11084         by doing the layout sequentially in ListView.Items. Also add support
11085         for the Default Group, which should be available for items with no
11086         group assigned.
11087         * ListViewGroup.cs: Add support for DefaultGroup. Include new members
11088         for storing layout info also.
11089         * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
11090         collection, as well as providing internal members to do a traversal
11091         including the default group (needed when doing layout/drawing).
11092         * ThemeWin32Classic.cs: When drawing group headers use internal
11093         ListViewGroupCollection members to take into account the default
11094         group.
11095
11096 2007-08-23  George Giolfan  <georgegiolfan@yahoo.com>
11097
11098         * FlowLayoutPanel.cs: Add GetPreferredSizeCore.  [Fixes bug #82537]
11099
11100 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
11101
11102         * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
11103         been created.  If handle is created, we want arror keys.  If we are editing
11104         a node, we want things like enter, esc, home, end, page up, page down.
11105         Allows Esc to work for FolderBrowserDialog.
11106
11107 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
11108
11109         * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
11110         they close when ESC is pressed.  Thanks Andy!
11111
11112 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
11113
11114         * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
11115         This way we can tell if this is a CommonDialog provided with mono, or one
11116         that is being implemented outside by a developer.  If it is an external one,
11117         the developer is responsible for showing their own form.  We were showing
11118         our blank form after the developer showed his.
11119         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
11120         PageSetupDialog.cs: Instantiate form variable in our constructor.
11121         [Fixes bug #82531]
11122
11123 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
11124
11125         * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
11126         and always return true.  [Fixes bug #81616]
11127
11128 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
11129
11130         * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
11131         TextBox.  [Fixes bug #82549]
11132
11133 2007-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
11134
11135         * FileDialog.cs: When Save/Open is clicked and no filename is selected
11136         or entered then do not close the dialog. Fixes bug #82539. Removed
11137         CWLs.
11138
11139 2007-08-22  Everaldo Canuto  <ecanuto@novell.com>
11140
11141         * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
11142         code to this method. It is calling every time filter changes. This method
11143         will help to fix the bug #80887.
11144
11145 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
11146
11147         * CheckBox.cs: Implement AutoSize calculation.
11148
11149 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
11150
11151         * CheckBox.cs: Use new 2.0 rendering for 2.0.
11152         * Theme.cs: Method declarations for 2.0 rendering path.
11153         * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
11154
11155 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11156
11157         * ListViewGroupCollection.cs: Fix a typo of the previous patch.
11158
11159 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11160
11161         * ListViewGroupCollection.cs: Implement AddRange the right way, to
11162         only call Redraw on the parent one time.
11163
11164 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11165
11166         * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
11167           GetClipboardContent.
11168         * DataGridViewCell.cs: Implemented GetClipboardContent,
11169           GetEditedFormattedValue, GetFormattedValue.
11170         * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
11171
11172 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
11173
11174         * TableLayoutStyleCollection.cs: corcompare fix.
11175
11176 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11177
11178         * DataObject.cs: Implemented retrieval of convertible / not convertible
11179           objects.
11180
11181 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
11182
11183         * ToolStripItem.cs: When changing the item's text, invalidate before we resize
11184         ourselves.  This ensures the entire old bounds are repainted, in case our new
11185         size is smaller.  [Fixes bug #82518]
11186
11187 2007-08-20  Everaldo Canuto  <ecanuto@novell.com>
11188
11189         * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
11190         flag to make fast handle of mouse events, without this the mouse move is
11191         handled in some manner, whether it is a mouse move or not. Fixes #81588.
11192
11193 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11194
11195         * ListView.cs: When doing layout calculations don't use a ref
11196         param to keep the current item; instead use its Index value (this 
11197         is specially important when doing the layout with Groups
11198         and Items being sparse). Also don't take into account items added to
11199         the Group but not yet added to the main ListView.Items collection.
11200
11201 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11202
11203         * ListViewGroupCollection.cs: Forgot to mimic an issue
11204         in the indexer (don't assign the ListView owner for new values).
11205
11206 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11207
11208         * ListViewGroupCollection.cs: Make the string indexer use
11209         the int based indexer to re-use code, instead of duplicate the code.
11210         Also Redraw as needed and take into account null values.
11211
11212 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
11213
11214         * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
11215         [Fixes bug #82481]
11216
11217 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
11218
11219         * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
11220         when other buttons are clicked or navigated to.
11221
11222 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11223
11224         * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
11225           it's XplatUIX11 that attaches them.
11226
11227 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11228
11229         * DataGridView.cs: If a column has been added, recreate the editing row.
11230           Fixes #82226.
11231
11232 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11233
11234         * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
11235           of the tag to draw. Makes disappearing text show up again.
11236
11237 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11238
11239         * StatusBar.cs: Take into account any icons when a panel has AutoSize =
11240           Contents. Fixes #82487.
11241
11242 2007-08-19  Andreia Gaita  <avidigal@novell.com>
11243
11244         * Added HtmlElement.cs, HtmlElementCollection.cs, 
11245           HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
11246           
11247 2007-08-19  Andreia Gaita  <avidigal@novell.com>
11248
11249         * BindingSource.cs: Implement this, dispose and getenumerator.
11250         * DataGridViewRowCollection.cs: Move the InvalidOperationException
11251         out of AddInternal, throw it only on public Add calls. The 
11252         UsingWebBrowser sample was blowing up with this when setting the
11253         DataSource after adding DataBindings, so it's likely that .net
11254         only throws this exception when Add is called directly. 
11255         
11256         * ToolStripControlHost.cs: Return the hosted control's text
11257         property, and not the ToolStripItem one (it would always return
11258         the initial value).
11259         
11260         * HtmlDocument.cs: Implement GetElementById and All
11261         * WebBrowser.cs: Remove exception on set_DocumentStream.        
11262
11263 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11264
11265         * Form.cs: Fix the max and min value for opacity (0~1).
11266
11267 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11268
11269         [Fixes #80118]
11270         * DataGridTableStyle.cs: Default header font is now null, on getter it 
11271         returns datagrid font when is null. On setter permits null.
11272
11273         * DataGrid.cs:
11274         - When ResetHeaderFont set header font to null.
11275         - On EndInit set grid_style.DataGrid.
11276
11277 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11278
11279         * TabControl.cs: Fix regression in default padding x.
11280
11281 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11282
11283         * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
11284
11285 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11286
11287         * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
11288         not 2. Fixes #82229.
11289
11290 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11291
11292         * TabControl.cs: Fix tab size when image height is less than text height.
11293         Partially fixes #81837.
11294
11295 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11296
11297         * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using 
11298         "alt + tab". It works only for Win32, for X11 theres no way to remove window
11299         from taskbar and keep it on "alt_tab". Fixes #81722.
11300
11301 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11302
11303         * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
11304         and DrawReversibleLine, also apply same behavior to FillReversibleRectangle. 
11305         Fixes #80877 and #79418.
11306
11307 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11308
11309         * MenuAPI.cs: Fix popup menu position when the size is larger than distance 
11310         between position and one of the screen borders. Fixes #82349.
11311
11312 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11313
11314         * MessageBox.cs: When there is no form that invoked the MessageBox, shows
11315         the MessageBox in the taskbar. Fixes #82457.
11316
11317 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11318
11319         * MessageBox.cs: Fix form size when icon is set and text height is bigger
11320         than icon. Fixes #82468.
11321
11322 2007-08-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11323
11324         * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
11325         * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
11326           if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
11327           Refactored HandleNCCalcSize somewhat to avoid code duplication.
11328         * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
11329           FormBorderStyle to decide if we're calculating a new size from the
11330           client size or not. CreateParams: Don't fake tool windows, only the X11
11331           backend manages toolwindows manually.
11332
11333 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11334
11335         * Form.cs: Only reset is_visible if !IsDisposed to prevent an
11336         ObjectDisposedException.
11337
11338 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11339
11340         * Form.cs: Reset is_visible back to true after OnLoad.  Setting this
11341         in OnLoad should not have any effect.  [Fixes bug #82470]
11342
11343 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11344
11345         * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
11346         paint for controls that create their own ToolTipWindow instead of
11347         going through ToolTip.
11348
11349 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11350
11351         * ToolTip.cs: Make Hide internal instead of public to match MS API.
11352
11353 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11354
11355         * ListViewGroupCollection.cs: Use generic List instead of an
11356         ArrayList, since this collection is 2.0 only.
11357
11358 2007-08-17  Jeffrey Stedfast  <fejj@novell.com>
11359
11360         * ToolTip.cs (Hide): Made public to make the build work (should
11361         this not be public?).
11362
11363 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11364
11365         * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
11366         ToolTipWindow.
11367         * ToolTip.cs: Add an internal Visible property to facilitate transition.
11368
11369 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11370
11371         * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
11372         PopupEventHandler.cs: Make these internal for 1.1.
11373         * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
11374         use ToolTipWindow internals.
11375         * ToolTip.cs: Add 2.0 modal Show methods.  Had to move a lot of stuff around to
11376         support this.  A lot of stuff in the ToolTipWindow got moved to the ToolTip.
11377
11378 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11379
11380         * X11Dnd.cs: Add a null check.
11381
11382 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11383
11384         * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
11385           nothing else succeeds. Fixes #82453.
11386
11387 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11388
11389         * XplatUIWin32.cs: PaintEventStart: validate the entire source client
11390           rectangle if we're painting to another window than the one the paint
11391           message was generated on. Simplify the code somewhat, which makes
11392           PaintEventEnd also simpler.
11393
11394 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11395
11396         * Control.cs: When changing parent of a form, let the form decide whether
11397           XplatUI.SetParent should be called or not.
11398         * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
11399           recreating the handle. If the new parent's handle isn't created, don't
11400           recreate our handle, just destroy it. CreateParams: Check if the
11401           parent's handle is created before fetching it.
11402
11403 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11404
11405         * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
11406           Update calls to PaintEventStart/End to take a Message argument.
11407         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
11408           take a Message argument.
11409         * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
11410           Message argument, and handle the case where we don't paint to the window
11411           for which the paint message was generated.
11412
11413 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11414
11415         * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
11416           Marshal.GetLastWin32Error. Plug nasty memory leak in
11417           PaintEventStart/End, we were creating a DC we weren't releasing.
11418
11419 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11420
11421         * ListView.cs: Add Groups support in Details view. Also have a small
11422         method to do the layout of the group header. Don't use a separate
11423         method to do the groups calculation in Icons view, since our methods
11424         are now a little simpler.
11425         * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
11426         `Bounds'.
11427         * ThemeWin32Classic.cs: Likewise.
11428
11429 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
11430
11431         * Application.cs: Add FilterMessage method and rework our message loop
11432         logic to use it.
11433
11434 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
11435
11436         * Application.cs: Add some methods and stub a few methods that are
11437         pretty much never used.
11438
11439 2007-08-15  Jonathan Pobst  <monkey@jpobst.com>
11440
11441         * TreeNode.cs: Add some serialization methods.
11442
11443 2007-08-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11444
11445         * ListView.cs: In ListViewItemCollection have a 
11446         'is_main_collection' field to not modify ListViewItem.ListView
11447         when using it as ListViewGroup.Items (and not ListView.Items)
11448         and also don't modify selection state (.Net behaviour). 
11449         Instead, set group for items contained in a ListViewGroup.Items collection.
11450         * ListViewItem.cs: Simplify some code in Group setter.
11451         * ListViewGroup.cs: use the new .ctor to pass the current instance
11452         to the ItemsCollection.
11453         * ListViewGroup.cs: Set the ListView property for ListViewGroup
11454         instances when adding/removing. Also make Remove use RemoveAt, which
11455         should perform better.
11456
11457 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
11458
11459         * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
11460         that crept into the 1.1 profile.
11461
11462 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
11463
11464         * ToolBarButton.cs: Implement ImageKey.
11465
11466 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
11467
11468         * ToolBar.cs: Implement ScaleControl/ScaleCore.
11469
11470 2007-08-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11471
11472         * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
11473           created, it might have gotten destroyed since we last checked. Fixes
11474           #82405.
11475
11476 2007-08-11  Jonathan Pobst  <monkey@jpobst.com>
11477
11478         * ToolTip.cs: Remove mouse in control check from mouseleave handler so
11479         tooltip will hide when mouse is moved off the control.
11480         [Fixes bug #82407]
11481
11482 2007-08-11 Andreia Gaita <avidigal@novell.com>
11483
11484         * WebBrowserBase.cs, WebBrowser.cs: add implementation
11485         using Mono.Mozilla for loading and navigating webcontrol
11486         with xulrunner.
11487         The initial implementation was done on 
11488         /trunk/mozembed/tests/browser , and copied here.
11489
11490 2007-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
11491
11492         * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
11493         ToolTipWindow for drawing the tooltip. Fixes bug #82408.
11494
11495 2007-08-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11496
11497         * DataGridView.cs: Add support for an editing row. Fixes #82226.
11498           RowTemplateFull: throw an exception if a column doesn't have a template.
11499         * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
11500           add the row just before it.
11501         * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
11502           selected.
11503         * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
11504           DataGridView field to be able to reach the grid's editing row.
11505
11506 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
11507
11508         * ToolTip.cs: If the control's handle hasn't been created when it has a
11509         tooltip set on it, don't check to see if we need to show the tooltip.  This
11510         check was causing the control's handle to be created.
11511         [Fixes bug #82399]
11512
11513 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
11514
11515         * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
11516                                         1.1             2.0
11517         Handle Not Created      -1              0
11518         Handle Created          0               0
11519         [Fixes bug #82371]
11520
11521 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
11522
11523         * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
11524         [Fixes bug #82348]
11525
11526 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
11527
11528         * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
11529         * ToolTip.cs: Implement some properties and owner draw.
11530
11531 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11532
11533         * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
11534           show them again, since setting visibility causes a paint, causing an
11535           endless loop (instead use a temporary and set it all when it's known if
11536           they should be shown or not). Fixes #79265.
11537
11538 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11539
11540         * DataGridView.cs: Only do a full column/row selection if a header was
11541           clicked and we're in Column/RowHeader selection mode. If shift and ctrl
11542           isn't pressed, deselect everything before selecting something.
11543
11544 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11545
11546         * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
11547           behaviour according to bug #81075 - they are returned in the order they
11548           are selected. Fix HitTest to check if the point is within any of the
11549           headers. Allow for row/column selection when in ColumnHeader or
11550           RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
11551           the row and column to call when their selected state changes, and
11552           updated selected_[rows|columns] whenever SetSelected* is called.
11553         * DataGridViewBand.cs: Initialize isRow correctly. Call
11554           SetSelected[Row|Column]CoreInternal when the selected state changes, and
11555           add a SelectedInternal to avoid StackOverflows.
11556         * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
11557           ReadOnly no matter what.
11558         * DataGridViewSelectedColumnCollection.cs,
11559           DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
11560           the items in reverse order (just as MS does...)
11561
11562 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
11563
11564         * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
11565         itself, not part of a mnemonic.  [Fixes bug #82378]
11566
11567 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11568
11569         * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
11570         * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
11571           the DGV, the column, the row, or the cell itself is readonly.
11572
11573 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
11574
11575         * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
11576         OSVersion.Platform.
11577         * FileDialog.cs: Same.
11578         * TextRendered.cs: Same.
11579         * FolderBrowserDialog.cs: Same.
11580         * TextBoxBase.cs: Same.
11581         * Application.cs: Same.
11582         * Cursors.cs: Same.
11583         * ThemeClearLooks.cs: Same.
11584
11585 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
11586
11587         * XplatUI.cs: Added RunningOnUnix property to be used by controls
11588         instead of duplicating these checks everywhere.
11589         * FileDialog.cs: Use case-insensitive comparison for populating the
11590         DirComboBox when not running on unix. Fixes bug #82385.
11591         * OpenFileDialog.cs: to match MS, change label of DirComboBox to 
11592         "Look in".
11593
11594 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11595
11596         * DataGridView.cs: SelectedRows: we need to check if selectionMode is
11597           FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
11598           BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
11599           cell and column selection with ctrl and shift pressed. Call the correct
11600           BeginEdit/EndEdit whenever we start/end editing. Move painting code to
11601           the corresponding virtual method (PaintBackground to paint background,
11602           etc).
11603         * DataGridViewCell.cs: Implement Selected correctly, we're selected if
11604           either the column, row or the cell itself is selected.
11605         * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
11606           OnRowsAdded.
11607         * DataGridViewRow.cs: Moved some of the painting code from DataGridView
11608           here. When the row is selected, don't select all cells. Each cell now
11609           queries the row to see if the row is selected.
11610
11611 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11612
11613         * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
11614           SelectionMode.
11615
11616 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11617
11618         * ListView.cs: In ListViewItemsCollection check that owner is
11619         not null before trying to access it (this happens quite often
11620         using Groups). Also don't duplicate calls by calling CollectionChanged
11621         method.
11622
11623 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
11624
11625         * ToolStrip.cs: Record if we were activated by mouse or keyboard.  Redraw
11626         when we are dismissed to clear keyboard mnemonics.
11627         * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs, 
11628         ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
11629         * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
11630         was activated by keyboard or the OS tells us to always draw them.
11631         * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
11632         [Fixes bugs #82376, #82377]
11633
11634 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
11635
11636         * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a 
11637         shot at having it because Alt was pressed.
11638         * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
11639         the first real menu item.
11640         * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
11641         a mnemonic if Text is null.
11642         [Fixes bug #82374]
11643
11644 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11645
11646         * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
11647         search do check whether the item is already contained in the
11648         collection or not; instead check if the owner of the item is the same
11649         as ours. Also, remove a redundant check in the same method. 
11650
11651 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
11652
11653         * Control.cs: Allow the clip region to be set back to null.
11654         * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
11655         [Fixes button still showing up in bug #82370 when Show Through is turned off]
11656
11657 2007-08-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11658
11659         * GridEntry.cs: Add a null check.
11660         * PropertyGrid.cs: When checking for existing grid entries, ignore category
11661           entries. Fixes #82297.
11662
11663 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
11664
11665         * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
11666         for 2.0.
11667
11668 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
11669
11670         * ListBox.cs: Implement ScaleControl.
11671
11672 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11673
11674         * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
11675           have a menu strip.
11676         * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
11677           parent has a menu strip. Fixes #81689.
11678
11679 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11680
11681         * ToolTip.cs: We don't get mouse events on all platforms in the exact same
11682           moments, so apply some fuzzy logic to determine if the mouse is still
11683           inside a control or not. Fixes #82288 (for the third time).
11684
11685 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11686
11687         * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
11688           Don't create the child if it has been disposed already (may happen if
11689           the user closes the form the Load event).
11690
11691 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11692
11693         * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
11694           #82288.
11695
11696 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11697
11698         * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
11699           might call us after we've been destroyed, in which case our own private
11700           parent field is null. Fixes #82326.
11701
11702 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
11703
11704         * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
11705         check for setting the dropdown's owner.
11706
11707 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
11708
11709         * MdiClient.cs: Fix some failing tests on X11 by adding a null check
11710         before removing system menu items.
11711
11712 2007-08-02  Jonathan Pobst  <monkey@jpobst.com>
11713
11714         * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
11715         folding.
11716         * MdiControlStrip.cs: Added.  These are the menu items used in mdi
11717         folding.
11718         * ToolStrip.cs: Add a null check to mnemonics.
11719         * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
11720         no ConnectedArea.
11721         [Fixes most of bug #81689]
11722
11723 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11724
11725         * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
11726
11727 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11728
11729         Use InitialDelay if ReshowDelay is zero. Fixes #82288.
11730
11731 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11732
11733         * DataGridViewCell.cs: EditType: returns
11734           DataGridViewTextBoxEditingControl always.
11735
11736 2007-08-01  Jonathan Pobst  <monkey@jpobst.com>
11737
11738         * TextRenderer.cs: Remove the LineLimit string format flag from the
11739         DrawString fallback method so that things like buttons that aren't
11740         tall enough to draw a full line will still draw part of the text.
11741         [Fixes part of bug #82272]
11742
11743 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11744
11745         * DataGridView.cs: Implemented AutoResizeColumn(s).
11746         * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
11747           according to the Alignment.
11748         * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
11749           Implement alignment and padding when painting.
11750         * DataGridViewRow.cs: SetValues: Don't create a cell if it already
11751           exists.
11752         * DataGridViewCell.cs: Implement BorderWidths in the most primitive
11753           way.
11754         * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
11755           a column is added.
11756
11757 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
11758
11759         * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
11760         which is internal.
11761
11762 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
11763
11764         * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
11765         hide GetPreferredSize from public API.
11766         * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
11767         * ToolStripItem.cs: Stub out drag and drop methods and events.
11768         * ToolStripManager.cs: Stub out Save/LoadSettings.
11769         * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
11770         * ToolStripPanel.cs: Fix corcompare error.
11771         * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
11772         * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
11773         * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
11774
11775 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
11776
11777         * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
11778         bounds height instead of PreferredHeight.  Puts things back the way 
11779         they were for height while still fixing the width.  Fixes broken unit
11780         tests.
11781
11782 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11783
11784         * Binding.cs: Implement 2.0 constructors and add a null check.
11785
11786 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11787
11788         * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
11789           and fix row index (off by one).
11790
11791 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11792
11793         * PropertyGridView.cs: Remove debug output.
11794
11795 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11796
11797         * Control.cs: We need to reset the is_created flags when the handle is
11798           destroyed. Fixes #82187.
11799         * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
11800           client coordinates if the window doesn't have a parent.
11801           Win32GetParent returns the parent or the owner, and for top-level
11802           windows with no parent (but with an owner) we were calculating the
11803           location from the location of the owner.
11804         * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
11805           form has been disposed.
11806         * MdiClient.cs: Add a null-check.
11807
11808 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
11809
11810         * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
11811         actually do auto-sizing.  Override the internal GetPreferredSizeCore 
11812         so we can provide an implementation that returns the current width
11813         and preferred height.  Allows anchor = right to work with TextBox 2.0.
11814         [Fixes bug #82233]
11815
11816 2007-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11817
11818         * ListView.cs: Add support for navigating items in Groups mode, by
11819         creating a big matrix containing all rows and cols of all groups. When
11820         are in other mode than Details, pressing Up should have a similar
11821         behaviour as that one of Down (moving to the next available column if
11822         current one doesn't have an item in the requested row). Also, don't
11823         proceed to use groups if ShowGroups is false.
11824         * ListViewGroup.cs: Add an internal int field to store the starting
11825         row of the group (used by the big matrix used for navigating the
11826         ListView).
11827         * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
11828         false.
11829
11830 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
11831
11832         * ToolStripDropDown.cs: When we do Show, start with the 
11833         DefaultDropDownDirection, but if our popup menu is going to off-screen,
11834         modify the direction to keep it on screen.  [Fixes bug #82210]
11835
11836 2007-07-29  Gert Driesen  <drieseng@users.sourceforge.net>
11837
11838         * FileDialog.cs: Accept any FilterIndex value, and store it
11839         unmodified. When FilterIndex is less than 1, or greater than number
11840         of filters, then default to first filter. Only add filter extension to
11841         file if user did not specifiy an extension. When type of dialog is
11842         OpenFileDialog and DefaultExt is set, then only use filter extension
11843         if: CheckFileExists is true and no file wih the default extension
11844         exists, or CheckFileExists is false, and user specified file does not
11845         exist. When CheckFileExists is true, then add first extension of 
11846         selected filter that matches existing file. Perform checks for
11847         existing file, overwrite and create after extension has been added to
11848         file name. When CheckFileExists is true and type is SaveFileDialog,
11849         then only consider first filter extension if DefaultExt is set.
11850         When CheckFileExists is true, then ignore DefaultExt if file with that
11851         extension does not exist. Also perform check for existing file when
11852         type is SaveFileDialog. Changed some field to constants.
11853
11854 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11855
11856         * ListView.cs: Take into account the region used by header
11857         control when doing the vertical scroll (this way we invalidate
11858         the precise area, and don't get any dirty one).
11859
11860 2007-07-27  Everaldo Canuto  <ecanuto@novell.com>
11861
11862         * FileDialog.cs: Check for valid filterIndex on button open/save. 
11863         Fixes #82184.
11864
11865 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11866
11867         * ListView.cs: Update some layout calculations in details view
11868         and clean the code in a pair of assignations.
11869
11870 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
11871
11872         * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
11873         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
11874         MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
11875         ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
11876
11877 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
11878
11879         * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
11880         performance of thread-safe Graphic methods.  (Thanks rolf!)
11881
11882 2007-07-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11883
11884         * ListView.cs: When doing the layout calculations, don't calculate
11885         scroll bars before handle is created. This is unnecessary and also
11886         calculating them before handle creation item causes a number of random
11887         bugs (which begin to appear after Chris' big patch for handle creation
11888         fixes). 
11889
11890 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
11891
11892         * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
11893         for things that don't have a Graphics object.  Currently, things just use
11894         the static Hwnd.bmp_g which is not thread safe.
11895
11896 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11897
11898         * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
11899           dialog. Fixes #82187.
11900
11901 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11902
11903         * DataGridViewElement.cs: Initialize state.
11904         * DataGridView.cs: Forward a few Mouse events to cells. Add
11905           GetRowInternal and GetCellInternal that doesn't unshare rows.
11906           Implement GetCellDisplayRectangle. HitTest: if the row is shared,
11907           don't use the index, but look it up. Add
11908           DataGridViewControlCollection.RemoveInternal to remove controls
11909           that Remove won't remove (scrollbars, edit control).
11910         * DataGridViewColumn.cs: Initialize State correctly.
11911         * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
11912           DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
11913           implementing this.
11914         * DataGridViewRowCollection.cs: Implemented shared rows.
11915         * DataGridViewRow.cs: Throw exceptions as MS do.
11916         * DataGridViewCell.cs: A few properties are implemented by a
11917           Get<Property> method, so move implementation there and remove the
11918           NIEX in the method. Add a bunch of OnXInternal that DataGridView
11919           calls when necessary.
11920         * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
11921           complicates matters.
11922         * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
11923           unshare any rows.
11924
11925 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
11926
11927         * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
11928         the children controls.  Instead, we will just set up the proper docking for the
11929         children controls so we don't have to worry about it.  [Fixes bug #82188]
11930
11931 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
11932
11933         * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
11934         canceling and correct Before/AfterLabelEdit properties as layed out in bug
11935         81847.  [Fixes bug #81847]
11936
11937 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
11938
11939         * Label.cs: If AutoSize = true and a width or height is set, ignore it and
11940         redo the autosize.  VS2005 defaults to setting the AutoSize, and then setting
11941         an explicit size based on the design-time size of the text.  Since our fonts
11942         may not match this explicit size, we tend to cut off the ends of people's labels.
11943
11944 2007-07-24  Jonathan Pobst  <monkey@jpobst.com>
11945
11946         * Menu.cs: Add some missing methods to MenuItemCollection.
11947
11948 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11949
11950         * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
11951         * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
11952         * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
11953         * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
11954         * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
11955         * DataGridViewElement.cs: State defaults to Visible.
11956         * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
11957         * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
11958
11959 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11960
11961         * Control.cs: Minor 1.1 corcompare fix.
11962
11963 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
11964
11965         * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
11966         TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
11967
11968 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11969
11970         * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
11971           DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
11972           DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
11973           DataGridViewSelectedColumnCollection.cs,
11974           DataGridViewSelectedRowCollection.cs: Corcompare work.
11975
11976 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
11977
11978         * PrintDialog.cs: Stub UseEXDialog.  I chose to stub this because
11979         it is autoset by VS2005 designer and the effect is barely noticeable.
11980
11981 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
11982
11983         * TreeView.cs: Implement HitTest.
11984
11985 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11986
11987         * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
11988           manually adding and removing the control from the Controls
11989           collecftion.
11990         * DataGridView.cs: Implement DataGridViewControlCollection. Add an
11991           EditingControlInternal property that tracks the editing control.
11992           Always keeping the scrollbars in the Controls collection, as MS
11993           testing confirms is the right behaviour.
11994
11995 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11996
11997         * ScrollableControl.cs: Fix implementation of AutoScrollPosition
11998           according to MSDN and new test.
11999
12000 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
12001
12002         * TreeNode.cs: Implement ToolTipText.
12003         * TreeView.cs: Implement tooltips, NodeMouse* events.
12004
12005 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
12006
12007         * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
12008
12009 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
12010
12011         * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
12012         * TreeView.cs: Use the node's contextmenu[strip] if applicable.
12013
12014 2007-07-20  Ivan N. Zlatev  <contact@i-nz.net>
12015
12016         * Control.cs, Form.cs, ContainerControl.cs,
12017         ScrollableControl.cs, ButtonBase.cs:  Added ShouldSerialize
12018         for misc properties.
12019
12020 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
12021
12022         * TreeNode.cs: Implement StateImageIndex and StateImageKey.
12023         * TreeView.cs: Implement StateImageList.
12024
12025 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12026
12027         * Form.cs: Don't check if the current form is the active form before
12028           activating it. Fixes #81904.
12029
12030 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12031
12032         * Form.cs: Don't check if the current form is the active form before
12033           activating it. Fixes #81904.
12034
12035 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12036
12037         * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
12038
12039 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12040
12041         * Form.cs: Don't try to position the form after loading if the form was
12042           disposed. Fixes #81969.
12043
12044 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12045
12046         * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
12047           properties. Had to change ToolBar into ToolStrip, which required a
12048           few #ifs.
12049
12050 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12051
12052         * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
12053           resized, fixes part of #79829 (vertical lines in toolbar).
12054           PropertyGrid: Refactored Populate* to something that's easier to
12055           follow at least for me, as well as splitting it up into several new
12056           methods, required to update only subitems when something has
12057           changed by a popup editor or listbox. Don't use events to check
12058           when any values are changed, since the events are unreliable (we're
12059           changing the objects the events are registered with, and if the
12060           event handling requires the objects to be immutable (objects stored
12061           in hashtables for instance), the events will never be raised).
12062         * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
12063           everytime we change a value, since events are unreliable.
12064           DropDownButtonClicked: For the same reason don't compare objects to
12065           check if it has changed or not, it would require all objects to
12066           derive Equals. Fix dialog location on windows, MS is doing weird
12067           things when creating parented forms.
12068         * GridEntry.cs: Add a SelectedObject setter.
12069
12070 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
12071
12072         * TreeNode.cs: Add some corcompare attributes.
12073         * TreeNodeCollection.cs: Implement 2.0 stuffs.
12074         * TreeView.cs: Implement some 2.0 stuffs.
12075
12076 2007-07-18  Andreia Gaita  <avidigal@novell.com>
12077
12078         * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
12079         for moma.
12080
12081 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
12082
12083         * ListBox.cs: Implement custom tab offsets.
12084
12085 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12086
12087         * ToolStripContentPanel.cs: Support System renderer.
12088         * ToolStripControlHost.cs: Set RightToLeft to default to No.
12089
12090 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12091
12092         * ScrollableControl.cs: Don't mess up the user's explicit bounds.
12093
12094 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12095
12096         * CheckBox.cs: Chain TextAlign to base implementation instead of
12097         maintaining another one.
12098
12099 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12100
12101         * ButtonBase.cs: Fix an incorrect string constant.
12102
12103 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12104
12105         * TextRenderer.cs: Use the static Graphics context in Hwnd instead
12106         of creating one for measuring strings.
12107
12108 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12109
12110         * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs: 
12111         Implement MaxItemSize.
12112
12113 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
12114
12115         * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
12116         for DeviceContext.  Instead, use the static one available in Hwnd.
12117         Informal tests show this saves about 500k on formtest.exe.
12118
12119 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
12120
12121         * ContainerControl.cs: Implement 2.0 AutoScaling.
12122
12123 2007-07-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12124
12125         * ComboBox.cs: Work around bug #82120 (bug in mcs).
12126
12127 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
12128
12129         * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
12130         Darken the focus color.
12131
12132 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
12133
12134         * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
12135         for the checkbox.
12136         * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
12137         X, Y instead of a rect for drawing text.
12138         - For ControlPaint.DrawCheckBox, center the check a little better when the
12139         checkbox is odd width.  When drawing a flat checkbox, use a white background
12140         when state != inactive.
12141         [Fixes bugs #82097, 82100]
12142
12143 2007-07-16  Gert Driesen  <drieseng@users.sourceforge.net>
12144
12145         * ListControl.cs: When changing CurrencyManager, disconnect event
12146         handlers from previous one. Fixes bug #81771. Code formatting.
12147
12148 2007-07-15  Andreia Gaita <avidigal@novell.com>
12149
12150         * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
12151         full preview invalidation from layout invalidation, and only invalidate
12152         the layout when setting zoom or other properties. Invalidation should
12153         always be done even when resetting properties with the same values as
12154         what is there. Fixes #81744 and #79830.
12155
12156 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12157
12158         * ListView.cs: Implement initial support for Groups. Split some of the
12159         LayoutIcons code to render a partial list of the items (needed by
12160         items contained in ListViewGroup instances). Let the
12161         ListViewItemsCollection.ListView property be modifiable (needed when
12162         using Groups, too).
12163         * ListViewGroup.cs: Use a Bounds property rather than a Location
12164         one. Also invalidate the bounds when they get changed.
12165         * ThemeWin32Classic.cs: When drawing items, also draw the group header
12166         if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
12167         method as well.
12168
12169 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12170
12171         * ListView.cs: When space gets pressed and CheckBoxes is true, 
12172         don't invoke the Begin and EndUpdate methods. We are generating 
12173         a redraw of the entire control without need to do so.
12174
12175 2007-07-13  William Holmes <billholmes54@gmail.com> 
12176
12177         * Control.cs: Changing logic in FindFlatForward and 
12178           FindFlatBackward to handle multiple Controls with 
12179           the same TabIndex.  
12180           This fixes bug 81687.
12181
12182 2007-07-13  Jonathan Pobst  <monkey@jpobst.com>
12183
12184         * OSFeature.cs: Enable IsPresent.
12185
12186 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12187
12188         * Control.cs: Don't do anything in WmShowWindow if the control has been
12189           disposed. We can get WM_SHOWWINDOW after a control is disposed: a
12190           control is created, put on a form, the control is disposed (the
12191           form is never shown), and then we get a MapNotify, triggering a
12192           WM_SHOWWINDOW.
12193         * Form.cs: Exclude the current form when sending Deactivate to all
12194           MdiChildren.
12195         * NativeWindow.cs: Set WindowCreating to null as soon as possible,
12196           there was a race condition because assigning the handle raises
12197           events, we can get more messages, therefore trying to assign the
12198           handle again, which would fail if any of those event handlers
12199           closed/disposed the control.
12200
12201 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12202
12203         * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
12204
12205 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
12206
12207         * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
12208         XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
12209
12210 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12211
12212         * DateTimePicker.cs: If there's no part format specifier, return an
12213           empty string.
12214
12215 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
12216
12217         * FlatButtonAppearance.cs: Throw NotSupportedException for a
12218         Transparent BorderColor.
12219
12220 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12221
12222         * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
12223           MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
12224           X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
12225           LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
12226           LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
12227           TextBoxBase.cs, BindingNavigator.cs, Application.cs,
12228           ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
12229           Remove warnings.
12230         * X11Structs.cs: Remove warnings, add ToString implementations.
12231
12232 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12233
12234         * XplatUIX11.cs: Translate min/max size according to the actual min/max
12235           size, and not the current size. Fixes #81798.
12236
12237 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12238
12239         * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
12240           XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
12241           to the control yet).
12242
12243 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12244
12245         * PropertyGridTextBox.cs: Add a method that sends any forwarded
12246           mousedowns to the contained textbox.
12247         * X11Structs.cs: More ToString implementation.
12248         * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
12249           #81791.
12250
12251 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12252
12253         * PropertyGridView.cs: Add a null-check, fixes a few tests.
12254
12255 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
12256
12257         * TableLayoutPanelCellPosition.cs: TypeConverter.
12258
12259 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12260
12261         [ Fixes #79761]
12262         
12263         * PropertyGridTextBox.cs: Propagate any color changes to all contained
12264           controls.
12265         * PropertyGridView.cs: A few color fixes.
12266
12267 2007-07-10  Jackson Harper  <jackson@ximian.com>
12268
12269         * TextControl.cs: Remove some old unused text formatting stuff.
12270
12271 2007-07-10  Jackson Harper  <jackson@ximian.com>
12272
12273         * TreeView.cs: Update full row select invalidation to match the
12274         newer DrawSelection... method.
12275         - Make sure to invalidate the entire width when selecting a new
12276         node, if we have full row selection enabled.
12277
12278 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12279
12280         * PropertyGridView.cs: Fix for #81800, makes text show up on initial
12281           display of properties again.
12282
12283 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
12284
12285         * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
12286         to existing collections.
12287
12288 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12289
12290         * AccessibleObject.cs, RadioButton.cs: Fix some base classes
12291         that changed between 1.1 and 2.0.
12292
12293 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12294
12295         * PowerStatus.cs: Added.  This is just a data class, it is filled
12296         in by SystemInformation.
12297
12298 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12299
12300         * Message.cs: Add op_Equality and op_Inequality.
12301
12302 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12303
12304         * MenuStrip.cs: Finish corcompare work.
12305
12306 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12307
12308         * LinkArea.cs: Add op_Equality and op_Inequality.
12309
12310 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12311
12312         * Application.cs: Add MessageLoopCallback delegate.
12313
12314 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12315
12316         * ListBox.cs: First set of 2.0 stuffs.
12317
12318 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12319
12320         * Control.cs: Make an internal Height property we can override
12321         without messing up the public API.
12322         * ListBox.cs: Override HeightInternal to always return the size
12323         the user set.  [Fixes bug #80466]
12324
12325 2007-07-08  Jonathan Pobst  <monkey@jpobst.com>
12326
12327         * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
12328         paint cell borders if we haven't calculated where they go yet.
12329         [Fixes bugs #82040 and #82041]
12330
12331 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12332
12333         * ListView.cs: In Details view, set the location of item_control
12334         in the (0,0) position (and the header_control is thus on the
12335         item_control). This way the Bounds of the Items are relative to the
12336         ListView control (before this, they had a Bounds value without the
12337         header_control offset, which wasn't matching .Net). Fixes #82004.
12338
12339 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12340
12341         * ListControl.cs: When DataSource is set to null, pass an empty
12342         array of object to SetItemsCore. This is done to clean the items
12343         in the ListContol children. Fixes #81788.
12344
12345 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12346
12347         * ListControl.cs: Add 2.0 stuffs.
12348
12349 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12350
12351         * Label.cs: Finish up 2.0 stuffs.  Replace calls to Refresh with Invalidate,
12352         Refresh is overkill for just about every repaint request.
12353
12354 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12355
12356         * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
12357         so remove my custom Get method and fix the property getter.
12358
12359 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12360
12361         * Label.cs: DefaultMargin for 2.0.
12362
12363 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12364
12365         * ComboBox.cs: Override IsInputCharInternal and return true.  Fixes 
12366         reported issue where other controls with mnemonics would steal strokes
12367         from a selected ComboBox.
12368
12369 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12370
12371         * ScrollOrientation.cs: Make internal for 1.1.
12372         * ScrollEventArgs.cs: Add 2.0 stuffs.
12373
12374 2007-07-05  Jonathan Pobst  <monkey@jpobst.com>
12375
12376         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
12377         ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
12378         ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
12379
12380 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12381
12382         * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
12383
12384 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12385
12386         * ListView.cs: Implement the so-incredibly broken 2.0 
12387         VirtualItemsSelectionRangeChanged event.
12388
12389 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12390
12391         * ListView.cs: When enter is pressed and selection is non empty,
12392         an OnItemActivate event must be fired.
12393
12394 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12395
12396         * ListView.cs: Store the FocusedItem information as an
12397         int instead of a ListViewItem (needed by VirtualMode).
12398         Update the calls to SetFocusedItem to pass an index instead of
12399         an item.
12400         * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
12401         the Focused state from the owner ListView. 
12402
12403 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12404
12405         * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
12406         property. Also, invalidate previous focused item in the mentioned
12407         property (match .Net).
12408
12409 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12410
12411         * ListView.cs: Implement 2.0 FocusedItem property setter.
12412
12413 2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12414
12415         * ListView.cs: Implement 2.0 TopItem property setter.
12416
12417 2007-07-03  Jonathan Pobst  <monkey@jpobst.com>
12418
12419         * StatusStrip.cs: The default renderer is System.
12420         * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it 
12421         if the user specifies it.
12422         * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
12423         if we are ManagerRenderMode.
12424         * ToolStripMenuItem.cs: Calculate our text color better.
12425         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
12426         from Professional to the base class based off working with the System renderer.
12427         * ToolStripSystemRenderer.cs: Added.
12428
12429 2007-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12430
12431         * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
12432
12433 2007-07-02  Jonathan Pobst  <monkey@jpobst.com>
12434
12435         * ToolTip.cs: Implement 2.0 Tag property.
12436
12437 2007-06-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12438
12439         * ListView.cs: Implement 2.0 HitTest methods.
12440
12441 2007-06-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12442
12443         * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
12444         item is under the pointer or not (sugar). Also remove the TODO
12445         regarding to the cursor changes in OneClick activation.
12446         * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
12447         the subitems use the parent's HotFont if UseItemStyleForSubItems is
12448         true; otherwise don't show the underline style.
12449
12450 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12451
12452         * ListView.cs: In ItemControl.ItemsMouseMove, refactor
12453         the code to retrieve the item at position only one time. Also
12454         change cursor when Activation is ItemActivation.OneClick as well
12455         as invalidate the item if HotTracking is true (to show/hide the
12456         underline style). Add an internal HotItemIndex property to retrieve
12457         the current hot item's index.
12458         * ListViewItem.cs: Add an internal HotFont property to cache the
12459         font used when HotTracking is true and the pointer moves within the
12460         item's borders.
12461         * ThemeWin32Classic.cs: When drawing the item's text, use Font or
12462         HotFont depending on the hot state of the item.
12463
12464 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12465
12466         * ListView.cs: Implement 2.0 HotTracking property.
12467
12468 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
12469
12470         * ToolStripControlHost.cs: If our hosted control never got created,
12471         don't try to dispose it.  [Fixes bug #81909]
12472
12473 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
12474
12475         * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
12476
12477 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
12478
12479         * TableLayoutPanel.cs: Implement CellBorderStyle.  [Fixes bug #81884]
12480
12481 2007-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12482
12483         * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for 
12484         Details view.
12485         * DrawListViewColumnHeaderEventArgs.cs:
12486         * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
12487         using the DrawText () methods.
12488
12489 2007-06-19  Jonathan Pobst  <monkey@jpobst.com>
12490
12491         * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
12492         background which got erased in my changes yesterday.
12493
12494 2007-06-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12495
12496         * ListViewItem.cs: Actually set bounds for subitems in Details view
12497         (2.0 feature).
12498         * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
12499         can invoke from the owner draw routines if we need it. Also, add
12500         support for Owner draw in Details view.
12501
12502 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
12503
12504         * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
12505         ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
12506         ShowImageMargin setting, properly align text in a ToolStripLabel
12507         hosted on a ToolStripDropDown.
12508
12509 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
12510
12511         * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
12512         ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
12513
12514 2007-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12515
12516         * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
12517
12518 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
12519
12520         * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
12521         location to match ToolStripMenuItems.
12522
12523 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12524
12525         * DrawListViewColumnHeaderEventArgs.cs:
12526         * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
12527         column headers in ListView. 
12528
12529 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
12530
12531         * UserControl.cs: Implement AutoSize.
12532
12533 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12534
12535         * DrawListViewItemEventArgs.cs:
12536         * ListView.cs:
12537         * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
12538         ListView.
12539
12540 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
12541
12542         * ToolStripDropDownItemAccessibleObject.cs: Added.
12543         * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
12544         ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
12545         ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
12546         ToolStripTextBox.cs: corcompare work.
12547
12548 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
12549
12550         * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
12551         TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
12552         ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
12553                 corcompare.
12554
12555 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
12556
12557         * OSFeature.cs: Add IsPresent.
12558         * PrintPreviewControl.cs: Add RightToLeft.
12559         * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
12560         * SplitterPanel.cs: Add AutoSizeMode.
12561
12562 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12563
12564         * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
12565         * MdiClient.cs: Add 2.0 ScaleControl.
12566         * NativeWindow.cs: Implement 2.0 interface IWin32Window.
12567         * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
12568
12569 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12570
12571         * Form.cs: Implement some scaling methods, stub some RTL methods,
12572         corcompare work.
12573
12574 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12575
12576         * Control.cs: corcompare work.
12577         * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
12578
12579 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12580
12581         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
12582         ControlPaint 2.0 stuffs.
12583
12584 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12585
12586         * ThreadExceptionDialog.cs: Add 2.0 stuffs.
12587
12588 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12589
12590         * UpDownBase.cs: Add 2.0 stuffs.
12591
12592 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12593
12594         * NumericUpDown.cs: Add 2.0 stuffs.
12595
12596 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12597
12598         * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
12599
12600 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12601
12602         * ErrorProvider.cs: Implement 2.0 stuffs.
12603
12604 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12605
12606         * DomainUpDown.cs: Implement 2.0 stuffs.
12607
12608 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12609
12610         * CheckedListBox.cs: Fix RefreshItems signature.
12611
12612 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12613
12614         * PictureBox.cs: Implement 2.0 stuffs.
12615
12616 2007-06-12  Andreia Gaita  <avidigal@novell.com>
12617         
12618         * TabControl.cs: Check if there are tabpages before checking
12619         the selected index - fix #81802 (font changes raise a ResizeTabs
12620         call on controls.add, which blew up nicely with no tabpages)
12621
12622 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12623
12624         * ListView.cs:
12625         * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
12626
12627 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12628
12629         * ListView.cs:
12630         * ListViewItem.cs: In VirtualMode the selection information
12631         resides in the ListView, rather than in the Items. Also, throw
12632         InvalidOperationExceptions when VirtualMode is being used and
12633         CheckedItemCollection is accessed.
12634
12635 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
12636
12637         * ComboBox.cs: Add ScaleControl.
12638
12639 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
12640
12641         * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
12642
12643 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
12644
12645         * GroupBox.cs: Add 2.0 stuffs.
12646
12647 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
12648
12649         * Panel.cs: Add autosize properties/event.
12650
12651 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
12652
12653         * Control.cs:
12654         - When we remove a control, remove it from the collection before performing the layout.
12655         - Setup an internal property for explicit_bounds.
12656         - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
12657         - Perform a layout when we set a new AutoSizeMode.
12658
12659 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
12660
12661         * ScrollableControl.cs: Add 2.0 stuffs.
12662
12663 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12664
12665         * ScrollBar.cs: Add 2.0 stuffs.
12666
12667 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12668
12669         * Splitter.cs: Add 2.0 stuffs.
12670
12671 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12672
12673         * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
12674         to have BindingContext simply use base implementation.
12675
12676 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12677
12678         * ColumnHeader.cs: corcompare fix.
12679
12680 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12681
12682         * Button.cs: corcompare fixes.
12683         * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
12684
12685 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12686
12687         * Button.cs: Override GetPreferredSizeCore.
12688         * ButtonBase.cs: PerformLayout after changing properties that can affect
12689         AutoSize.  Simplify some mouse/keyboard code.
12690         * Control.cs: PerformLayout after changing Padding if AutoSize = true.
12691         * MouseEventArgs.cs: Make Location internal for 1.1.
12692         * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
12693         * Theme.cs: Add CalculateButtonAutoSize.
12694         * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
12695
12696 2007-06-05  Miguel de Icaza  <miguel@novell.com>
12697
12698         * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
12699
12700 2007-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12701
12702         * ListViewItem.cs: We can't cache Bounds in VirtualMode 
12703         since we can get different item instances every time we retrieve it.
12704
12705 2007-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12706
12707         * ListView.cs: Work around for #81602, since an unkown an pretty
12708         infrequent condition appears only in some systems (old linux boxes, it
12709         seems).
12710
12711 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12712
12713         * Button.cs: Completely reformat and a little refactor to bring
12714         this closer to Mono circa 2007.
12715
12716 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12717
12718         * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
12719         to be ButtonBase.Invalidate.
12720
12721 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12722
12723         * ButtonBase.cs: GetPreferredSize is 2.0 only.  Fixes build.
12724
12725 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12726
12727         * ButtonBase.cs: Completely reformat and a little refactor to bring
12728         this closer to Mono circa 2007.
12729
12730 2007-06-01  Everaldo Canuto  <ecanuto@novell.com>
12731
12732         * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
12733         values for autosize. Fixes #80137.
12734
12735 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
12736
12737         * Control.cs: Don't perform layout when AutoSize changes.
12738         * Form.cs: Perform layout in AutoSize override.  Don't set ClientSize
12739         directly when autosizing, use SetBounds with BoundsSpecified.None.
12740         Fixes unit tests my last commit broke.
12741
12742 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
12743
12744         * Control.cs: Perform layout when AutoSize changes.
12745         * Form.cs: Implement AutoSizing.
12746
12747 2007-06-01  Chris Toshok  <toshok@ximian.com>
12748
12749         * DataGrid.cs: remove the XXX'ed check at the top of
12750         ProcessGridKey.  fixes #80464.
12751
12752 2007-06-01  Chris Toshok  <toshok@ximian.com>
12753
12754         * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
12755         adding idempotent (add/remove in Edit()), and also make sure we
12756         don't add it until after we set the text, so it's not tripped in
12757         Edit().  Fixes unit test regression.
12758
12759 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
12760
12761         * Control.cs: In UpdateBounds, only recalculate anchor distances if the
12762         change is user explicit, not when the layout engine moves stuff.  Fixes
12763         anchoring to bottom and right.  [Fixes bug #81790]
12764
12765 2007-06-01  Andreia Gaita  <avidigal@novell.com>
12766
12767         * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
12768
12769 2007-06-01  Andreia Gaita  <avidigal@novell.com>
12770
12771         * ContainerControl.cs: 
12772         Fire enter event for common ancestor if it is not a ContainerControl.
12773         Send focus to the active_control and not the 'value', the active 
12774         control might have been changed in one of the events fired.     
12775         Definitely fixes #80159.
12776
12777 2007-06-01  Andreia Gaita  <avidigal@novell.com>
12778
12779         * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
12780
12781 2007-06-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12782
12783         * PropertyGrid.cs: Anchor the help description to the bottom of the
12784           help panel and refactor SelectGridItem into a
12785           SelectGridItemInternal that can be set to null (and update it to
12786           clear the help texts when it is set to null). Set root item to null
12787           when there's no SelectedObject. Fixes #80438.
12788         * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
12789           when we're recalculating after a resize (only).
12790
12791 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12792
12793         * ListView.cs: Implement 2.0 RedrawItems method.
12794
12795 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12796
12797         * ListControl.cs: Disconnect PositionChanged and ItemChanged
12798         handlers from previous data manager when DataSource is set to
12799         null. Fixes #81771.
12800
12801 2007-05-31  Jackson Harper  <jackson@ximian.com>
12802
12803         * TextBoxBase.cs: These seem to be the correct values.
12804
12805 2007-05-31  Everaldo Canuto  <ecanuto@novell.com>
12806
12807         * FileDialog.cs: When close dialog with ok set filterindex using combobox
12808         value. Fixes #81784.
12809
12810 2007-05-31  Jonathan Pobst  <monkey@jpobst.com>
12811
12812         * Control.cs: Implement 2.0 scaling methods.
12813
12814 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12815
12816         * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
12817           MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
12818           corcompare issues.
12819
12820 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12821
12822         * ProgressBar.cs: Implemented missing 2.0 members.
12823
12824 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12825
12826         * Control.cs: Corcompare issues.
12827         * MessageBox.cs: Implemented missing 2.0 functions.
12828
12829 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12830
12831         * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
12832           Implemented more 2.0 members.
12833
12834 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12835
12836         * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
12837           null (strange, but it seems to happen when running unit tests).
12838
12839 2007-05-30  Andreia Gaita  <avidigal@novell.com>
12840
12841         * ContainerControl.cs: Set active_control even earlier, before 
12842         firing any events, and undo it if validation returns false.
12843
12844 2007-05-30  Andreia Gaita  <avidigal@novell.com>
12845
12846         * ContainerControl.cs: Raise Validation and Enter/Leave events
12847         even if there is no Form and set active_control earlier, just
12848         before firing Enter events (toshok's patches). Fixes #80647.
12849
12850 2007-05-30  Jackson Harper  <jackson@ximian.com>
12851
12852         * TextControl.cs: Redid the pageup/pagedown a little to simplify
12853         things and fix bug #81311.
12854
12855 2007-05-30  Jackson Harper  <jackson@ximian.com>
12856
12857         * X11Dnd.cs: Now that we have our own event loop, we need to
12858         cancel when we get a mouseup but it won't be accepted.
12859
12860 2007-05-30  Chris Toshok  <toshok@ximian.com>
12861
12862         * DataGrid.cs (set_CurrentCell): guard against negative
12863         column/row.
12864
12865         * DataGridColumnStyle.cs (CheckValidDataSource): just use the
12866         array index syntax instead of looping over the property names.
12867
12868         * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
12869         and set IsInEditOrNavigateMode to false there.
12870
12871 2007-05-30  Jackson Harper  <jackson@ximian.com>
12872
12873         * TreeView.cs: Make sure we don't get a bad visible order when
12874         setting to the top node.  Fixes some misc crashing in
12875         ControlInspector.
12876
12877 2007-05-30  Andreia Gaita  <avidigal@novell.com>
12878
12879         * UserControl.cs: Add 2.0 AutoSizeMode
12880
12881 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12882
12883         * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
12884
12885 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12886
12887         * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
12888         lines. Fixes #80285. 
12889
12890 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12891
12892         * DataGridColumnStyle.cs: Add char trimming column header text format. 
12893
12894 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12895
12896         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
12897         Fixes #80147.
12898
12899 2007-05-29  Jackson Harper  <jackson@ximian.com>
12900
12901         * TreeNode.cs: Fix off by one on calculating whether or not a node
12902         is visible.
12903
12904 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
12905
12906         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
12907         * ScrollableControl.cs: Force an UpdateDistances when we move the
12908         scrollbars.
12909         [Fixes bug #80605]
12910
12911 2007-05-29  Andreia Gaita  <avidigal@novell.com>
12912
12913         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
12914         update the page setup screen.
12915
12916 2007-05-29  Andreia Gaita  <avidigal@novell.com>
12917
12918         * PageSetupDialog.cs: Fix landscape mode.
12919
12920 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12921
12922         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
12923         IconSizeHorizontalSpacing.
12924
12925 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12926
12927         * ListView.cs: The declaration of prev_tooltip_item should be inside
12928         a NET_2_0 conditional (avoid a warning).
12929
12930 2007-05-28  Andreia Gaita  <avidigal@novell.com>
12931
12932         * PageSetupDialog.cs: Implement PrintPreview control to display
12933         the preview thumbnail. Change unit conversion to use 
12934         PrinterUnitConvert methods.
12935         
12936         Note: there is a huge bug in ms.net where the default margins are 
12937         interpreted as centimeters (?), when in fact they are set in inches. When 
12938         loading the page setup dialog initially (ms.net), the default margins 
12939         are set to 1 inch, and the dialog shows them with value 10, when in fact 
12940         it should be 25 (properly converted). Our dialog doesn't have this bug.
12941         
12942         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
12943         RectangleF.
12944         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
12945
12946 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12947
12948         * ListView.cs:
12949         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
12950         items.
12951
12952 2007-05-28  Andreia Gaita  <avidigal@novell.com>
12953
12954         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
12955         an IntPtr on csc (it builds fine on mcs, could it be a compiler
12956         bug?), convert the ptr to Int32 first.
12957
12958 2007-05-28  Jackson Harper  <jackson@ximian.com>
12959
12960         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
12961         recieved, we will exit the dnd tracking loop.
12962
12963 2007-05-28  Jackson Harper  <jackson@ximian.com>
12964
12965         * X11Dnd.cs: Keep tracking until the xdnd finished event is
12966         recieved. TODO: I should probably stick a timer on the dropped
12967         event, and finish the drag if the XDND Finished event never shows
12968         (because some apps don't seem to send it).
12969
12970 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
12971
12972         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
12973         #81733.
12974
12975 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12976
12977         * MonthCalendar.cs: Only mark the keypresses we actually handle as
12978           handled.
12979
12980 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12981
12982         * MonthCalendar.cs: Set the size after initializing all the relevant
12983           variables. Fixes #81742.
12984
12985 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12986
12987         * KeyEventArgs.cs: Fix typo.
12988
12989 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
12990
12991         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
12992         to match MS. Fixed MinDate to only accept value less than or equal
12993         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
12994         Removed TODO's that are now verified by unit tests.
12995
12996 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
12997
12998         * TreeNodeCollection.cs: Minor corrections to exceptions to match
12999         MS.
13000
13001 2007-05-25  Jackson Harper  <jackson@ximian.com>
13002
13003         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
13004         it's own message loop.
13005         * XplatUIX11.cs: Remove some of the dnd hooks
13006
13007 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
13008
13009         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
13010         instead of MinimizedWindowSize.
13011
13012 2007-05-25  Jackson Harper  <jackson@ximian.com>
13013
13014         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
13015
13016 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13017
13018         * KeyEventArgs.cs: Added SuppressKeyPress.
13019         * Control.cs: Added support for SuppressKeyPress.
13020
13021 2007-05-24  Andreia Gaita  <avidigal@novell.com>
13022
13023         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
13024         problems with PieChart. suppress_validation should not be a counter,
13025         if there are several BeginInit calls, the first EndInit will 
13026         activate validation. Fix exceptions thrown by set_Value.
13027         * UpDownBase.cs: ValidateText only if it's the user editing it.
13028
13029 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13030
13031         * ListControl.cs: FilterItemOnProperty should return the filtered
13032         item proeprty even if DataSource is null. The same applies for
13033         GetItemText. Fixes #80427.
13034
13035 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
13036
13037         * Control.cs: If a control doesn't have a parent when it's Dock is
13038         set, but it has children, it needs to do a layout.  Fixes some nested
13039         controls issues.  [Fixes bug #81199]
13040
13041 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13042
13043         * ComboBox.cs: If there are few items in the drop down list, make it
13044           the exact size the items need, no bigger. Fixes #81612.
13045
13046 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
13047
13048         * Application.cs: When we have captured the keyboard for a menu,
13049         check for mouse down events in case we need to close the menu.
13050         * Control.cs, Form.cs: Remove mouse down checks for menus.
13051
13052 2007-05-24  Jackson Harper  <jackson@ximian.com>
13053
13054         * TextControl.cs: Handle tabs in non multiline mode a little
13055         differently.
13056
13057 2007-05-24  Jackson Harper  <jackson@ximian.com>
13058
13059         * TextControl.cs: We need to manually break apart tabbed text and
13060         move the tabs, since the system.drawing tabbing mechanism relies
13061         on tab stops.
13062         * TextBoxBase.cs: Move the caret properly when the user enters a
13063         tab.
13064
13065 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
13066
13067         * ContainerControl.cs: Don't check CanSelect before calling
13068         ProcessMnemonic.
13069         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
13070         release a KeyboardActive on click if it's not ours.
13071
13072 2007-05-23  Andreia Gaita  <avidigal@novell.com>
13073
13074         * ColumnHeader.cs: Add TypeConverter
13075
13076 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13077
13078         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
13079
13080 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13081
13082         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
13083
13084 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13085
13086         * LinkLabel.cs: Implement public Padding property.
13087
13088 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13089
13090         * LinkLabel.cs: Implement public FlatStyle.
13091
13092 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
13093
13094         * Control.cs: Apply patch from George to call parent.PerformLayout
13095         when Visible is changed.  [Fixes bugs #81118, 81718]
13096
13097 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13098
13099         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
13100
13101 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13102
13103         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
13104
13105 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13106
13107         * ContextMenu.cs: Implement Collapse.
13108
13109 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
13110
13111         * ToolBarButton.cs: Implement Name.
13112
13113 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
13114
13115         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
13116         use current_item, it prevents some NRE. Fixes #81675.  
13117
13118 2007-05-22  Andreia Gaita  <avidigal@novell.com>
13119
13120         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
13121         without updating the text.
13122
13123 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
13124
13125         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
13126         without calling DeleteObject.  [Should fix bug #81709]
13127
13128 2007-05-22  Jackson Harper  <jackson@ximian.com>
13129
13130         * RichTextBox.cs: Set the line endings correctly, when flushing
13131         RTF text.
13132
13133 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
13134
13135         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
13136          {Width=0,Height=0}.
13137
13138 2007-05-22  Jackson Harper  <jackson@ximian.com>
13139
13140         * TreeView.cs: Setting top with a null node should set to the very
13141         top.
13142
13143 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13144
13145         * Form.cs: ShowDialog: destroy the handle when message loop is
13146           finished, matches MS behaviour. Refactor parts of WmClose into
13147           RaiseCloseEvents, that only raises events if they haven't already
13148           been raised. Fixes #81688 and #81521.
13149         * Application.cs: Don't call close on the form when exiting a modal
13150           loop, it will raise all the (Form)Closed/Closing events again if
13151           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
13152           which doesn'r raise any events it they have been raised before.
13153
13154 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
13155
13156         * Control.cs: Add OnPrint.
13157         * ToolStrip.cs: Add GetChildAtPoint.
13158         * ToolStripContainer.cs: Add OnRightToLeftChanged.
13159         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
13160
13161 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
13162
13163         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
13164
13165 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13166
13167         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
13168           isn't visible anymore. Fixes #81651.
13169
13170 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13171
13172         * Control.cs: WmShowWindow: Update children's z-order after setting
13173           their parent. SetParent may show the window, thereby corrupting
13174           z-order, since the window will be shown on top.
13175         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
13176           multiple (and redundant) WM_SHOWWINDOW messages.
13177         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
13178           event has already been raised.
13179         * Form.cs: Change is_changing_visible_state to a counter, since
13180           SetVisibleCore can be called recursively. CreateHandle: when
13181           creating mdi children, send (De)Activated events.
13182         * MdiClient.cs: Update use of is_changing_visible_state.
13183         * Application.cs: OnThreadException: Surround exception handling with
13184           try/finally to ensure we always reset the error-handling state
13185           before leaving.
13186
13187 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13188
13189         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
13190           (#81704).
13191
13192 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13193
13194         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
13195         SmallIcon views, now that we have a standarized horizontal spacing.
13196
13197         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
13198         4, just like the other views (Match .Net).
13199
13200 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
13201
13202         * Control.cs: Delay calculating anchor distances until we actually layout.
13203         Always query the WM for the actual size and location it put us at instead of
13204         only when we send negative values.
13205         [Fixes bugs #81694, 81695]
13206
13207 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13208
13209         * Application.cs: Avoid a possible stack overflow when trying to exit
13210           the application.
13211
13212 2007-05-19  Marek Safar  <marek.safar@gmail.com>
13213
13214         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
13215         enum value.
13216
13217 2007-05-19  Andreia Gaita  <avidigal@novell.com>
13218
13219         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
13220         * NumericUpDownAcceleration.cs, 
13221           NumericUpDownAccelerationCollection.cs: Added 2.0
13222           implementation.
13223
13224 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
13225
13226         * RichTextBox.cs: Recalculate the document after the ScrollBars
13227         property is changed. Fixes bug #81681.
13228
13229 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
13230
13231         * DataObject.cs: Implement 2.0 methods.
13232
13233 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13234
13235         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
13236         in the center of the checkbox, not in the left-top corner. 
13237         Fixes #80037.
13238
13239 2007-05-18  Jackson Harper  <jackson@ximian.com>
13240
13241         * RichTextBox.cs: Recalculate the document after the scrollbars
13242         property is changed.
13243         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
13244         81486.
13245
13246 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13247
13248         * CreateParams.cs: Make HasWindowManager marginally faster.
13249         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
13250           into Hwnd so that other drivers can use it as well.
13251         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
13252           the default location from Hwnd. Fixes MDI client windows always
13253           showing up at (0,0) in Windows (Win32 won't set the default
13254           location since the window styles aren't correct).
13255
13256 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
13257
13258         * TreeView.cs: Modified DoubleBuffered to just use the base
13259         implementation.
13260
13261 2007-05-18  Jackson Harper  <jackson@ximian.com>
13262
13263         * TreeView.cs: Set the top node to the last child node when
13264         expanding all
13265         - When we get focus, if there is no selected node, use the top
13266         node.
13267
13268 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
13269
13270         * KeysConverter.cs: Add CanConvertTo.
13271         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
13272         * LinkConverter.cs: Added.
13273
13274 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13275
13276         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
13277         it prevents error when file dont have write access. Fixes #81669 and #81667.  
13278
13279 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13280
13281         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
13282         button text. Fixes #79640.  
13283
13284 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13285
13286         * Control.cs: According to MSDN controls created in the designer theres 
13287         keyboard accelerators visible by default. So included check for design
13288         in ShowKeyboardCuesInternal.  
13289
13290 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13291
13292         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
13293         text. Fixes #81621.  
13294
13295 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13296
13297         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
13298         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
13299
13300 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
13301
13302         * Control.cs: Finish implementation of UI State using WmChangeUIState
13303         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
13304         in some controls to check for show_keyboard_cues to draw accell keys "_".  
13305
13306 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13307
13308         * ListBox.cs: When calculating the horizontal scrollbar
13309         in single column mode, don't use values less than 0 for
13310         Maximum. Fixes #81474.
13311
13312 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13313
13314         * ListBox.cs: Throw the some missing exceptions in
13315         ListBox.ObjectCollection methods.
13316
13317 2007-05-17  Jackson Harper  <jackson@ximian.com>
13318
13319         * TextBoxBase.cs: Recalculate the document when the word wrap
13320         value has changed. This fixes 81488.
13321
13322 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
13323
13324         * Clipboard.cs: Implement missing GetText overload.
13325
13326 2007-05-17  Chris Toshok  <toshok@ximian.com>
13327
13328         * Control.cs (CheckDataBindings): remove the binding_context arg
13329         to binding.Check.
13330
13331         * CurrencyManager.cs (OnItemChanged): fix this now that
13332         BindingManagerBase is fixed. also remove the comment telling where
13333         the fix should go.  We set transfering_data to true/false around
13334         the call to PushData to keep UpdateIsBinding from being called.
13335         (ListChangedHandler): remove the extra OnMetaDataChanged call for
13336         PropertyDescriptorAdded in the 1.1 case.  The extra call is
13337         actually generated by System.Data generating 2 metadata changed
13338         events of its own per column add.  The fix should go there.  Add a
13339         comment to that affect in our test's Assert.Ignore.
13340
13341         * BindingManagerBase.cs: Rework PullData and PushData slightly.
13342         we keep a boolean flag (transfering_data) that keeps us from
13343         calling UpdateIsBinding multiple times if we re-enter either of
13344         them.
13345
13346         * ControlBindingsCollection.cs (AddCore): remove the
13347         binding_context arg to binding.Check.
13348
13349         * Binding.cs (IsBinding): don't check if we're binding here, just
13350         return our cached value.  we update it in UpdateIsBinding.
13351         (Check): don't take the binding_context arg, we'll just use our
13352         control's.  Also, for some reason MS doesn't use the data member
13353         field when getting the bindingmanager for this binding.  it just
13354         uses the datasource.  Make this method callable multiple times,
13355         and only do the is_null_desc stuff if manager.Position != -1 (so
13356         we don't get an exception accessing manager.Current).
13357         (UpdateIsBinding): move the code from IsBinding here.
13358         (PositionChangedHandler): call Check here to we can initialize
13359         things that require a non- -1 position.
13360
13361 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
13362
13363         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
13364         control.
13365
13366 2007-05-17  Andreia Gaita  <avidigal@novell.com>
13367
13368         * TabControl.cs: Add 2.0 methods and events, including
13369         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
13370         * TabPage.cs: Add 2.0 methods
13371
13372 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
13373
13374         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
13375         keyboard_cues is properly handled by message method.  
13376
13377 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
13378
13379         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
13380
13381 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
13382
13383         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
13384
13385 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
13386
13387         * Control.cs: 
13388         - WmUpdateUIState added to handle state changes, it make call to
13389         OnChangeUICues event.
13390         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
13391         SystemInformation.
13392
13393 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
13394
13395         * ImageKeyConverter.cs: Added.
13396         * TreeViewImageKeyConverter.cs: Added.
13397
13398 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13399         
13400         * ToolTips.cs: Update Text if SetToolTip is called for a control
13401         already showing the tooltip, as well as restarting its timer; show
13402         tooltip if we are inside the control bounds by the time of calling
13403         SetToolTip. Inside ShowTooltip remove the check to not show the 
13404         tooltip again for the active control (it is allowed by .Net to 
13405         show the tooltip on the same control multiple times).
13406
13407 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13408
13409         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
13410
13411 2007-05-16  Andreia Gaita <avidigal@novell.com> 
13412
13413         * ContainerControl.cs: only process tab key if there are no 
13414         modifier keys present, otherwise the control does the 
13415         tab processing, if it needs to. Fixes #81622
13416         * TabControl.cs: Fixes calculation for which tab to select on
13417         shift+ctrl+tab.
13418
13419 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13420
13421         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
13422
13423 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
13424
13425         * Control.cs: Make IsInputCharInternal to allow controls to
13426         override it and still match MS API.
13427         * TextBoxBase.cs: Override IsInputCharInternal and always
13428         return true.
13429         [Fixes bug #81616]
13430
13431 2007-05-15  Jackson Harper  <jackson@ximian.com>
13432
13433         * TextBox.cs: Disable some of the menu options when using a
13434         readonly textbox.
13435
13436 2007-05-15  Jackson Harper  <jackson@ximian.com>
13437
13438         * TextBox.cs:
13439         * TextBoxBase.cs:
13440         * RichTextBox.cs: Some new 2.0 methods
13441
13442 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
13443
13444         * FileDialog.cs: On 1.0 profile, do not support multidotted 
13445         extensions.
13446
13447 2007-05-14  Jackson Harper  <jackson@ximian.com>
13448
13449         * TextBoxBase.cs: Implement some of the new 2.0 methods.
13450         * RichTextBox.cs: We need to override these methods on 2.0.
13451         * MaskedTextBox.cs: These are implemented now
13452         * TextControl.cs: This was off by one.
13453
13454 2007-05-14  Jackson Harper  <jackson@ximian.com>
13455
13456         * TextControl.cs: Because the line endings are including in the
13457         text, we don't need to add them in anymore.
13458
13459 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13460
13461         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
13462         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
13463
13464 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13465
13466         * ToolBar.cs: Adjust size to default size when button theres no text and
13467         image, it fixes remaining issues from #81524.
13468
13469 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13470
13471         * ToolBar.cs: 
13472         - When not flat call redraw to recalculate sizes on creare handle to match
13473         win32 behavior.
13474         - Revert 77220 because it causes some regressions in toobar
13475         button.
13476
13477 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13478
13479         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
13480           now actually enters a usable state.
13481
13482 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13483
13484         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
13485         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
13486         3 buttons.
13487
13488 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13489
13490         * ToolBar.cs: Save default_size on create handle to use later for buttons
13491         without text, needed to mimic win32 behavior.
13492
13493 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13494
13495         * ToolBar.cs: Fix button layour to best fit width or height according to
13496         vertical or not. Fixes #81524.
13497
13498 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
13499
13500         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
13501         toolbar size info because different styles theres different sizes.
13502         Fixes #81522.
13503
13504 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13505
13506         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
13507         if we are using checkboxes, checked is true, and we have less
13508         than two images in StateImageList; for the 1.1 in the same scenario
13509         draw the first image if we have at least one image in StateImageList.
13510         Fixes part of #81191.
13511
13512 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
13513
13514         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
13515         the owner's Items collection on merge.
13516
13517 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
13518
13519         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
13520         * ToolStripItemCollection.cs: Lots of fixes to when events get called
13521         and parent/owner gets changed based on gert's unit tests.
13522
13523 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13524
13525         * MaskedTextBox.cs: Started implementing parts of it.
13526
13527 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13528
13529         * ListView.cs: When clicking the checkbox on the items
13530         take into account the double clicks even if we have only
13531         one image in StateImageList (only for 1.0/1.1). Also 
13532         generate an extra change of checked state when we receive
13533         the second click on checkbox (match .Net behaviour). 
13534         Fixes part of #81191.
13535
13536 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
13537
13538         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
13539
13540 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
13541
13542         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
13543         even if OnLoad is overriden and base.OnLoad is not called.
13544         [Fixes bug #81582]
13545
13546 2007-05-10  Andreia Gaita  <avidigal@novell.com>
13547
13548         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
13549         shame. (I blame my ever-persisting and annoying cold)
13550
13551 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13552
13553         * ListView.cs: Don't eat navigation keys.  Let them flow through to
13554         KeyDown/KeyPress routines.  [Fixes bug #81569]
13555
13556 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13557
13558         * ListView.cs: When handling keys for selecting the item based off
13559         keyboard input, do not consider keys pressed with Alt or Control.  Also,
13560         correctly handle keys when the Shift key is down. [Fixes bug #81578]
13561
13562 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13563
13564         * Control.cs: When using UseWaitCursor, we have to store the requested
13565         Cursor to use when UseWaitCursor is turned off.
13566
13567 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13568
13569         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
13570         to false.
13571         * Application.cs: Use PreProcessControlMessage instead of
13572         PreProcessMessage.
13573         * PreProcessControlMessage.cs: Make internal for 1.1.
13574
13575 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13576
13577         * Control.cs: Add InternalContains focus property, which hast the same
13578         functionality of ContainsFocus, but also including implicit controls.
13579         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
13580         since we need to know if the focus is contained in our implicit
13581         ItemControl when calculating Layout. Fixes part of #80888.
13582
13583 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
13584
13585         * ToolTip.cs: Remove center form string alignment as it must be align to
13586         left.
13587
13588 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
13589
13590         * ToolStripItemCollection.cs: Set the new item's parent and owner
13591         in Insert like we do in Add.  [Fixes bug #81568]
13592
13593 2007-05-08  Jackson Harper  <jackson@ximian.com>
13594
13595         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
13596         - Off by one error in SetTop
13597         - Disable DoubeBuffering
13598         
13599 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13600
13601         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
13602           control as much as necessary in order to make it entirely visible,
13603           instead of centering the control in the container (matches MS
13604           behaviour). CalculateCanvasSize: we need to take the current scroll
13605           position into account when calculating the maximum canvas,
13606           otherwise the following scenario will fail: resize so that the
13607           scrollbars appear, use the scrollbars to scroll, resize again
13608           smaller, and now the canvas size is too small. Recalculate: when
13609           showing scrollbars make sure they start off at 0, and try to scroll
13610           the active control into view. Fixes #79540. HandleScrollBar: don't
13611           scroll anywhere if the scrollbar isn't visible.
13612
13613 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13614
13615         * ListView.cs: When focus changed, call Layout/Invalidate
13616         in the focused item to update the selected state (should show
13617         entire label when ListView is focused, and a part of it if is not).
13618         * ListViewItem.cs: When doing layout for LargeIcon, take into account
13619         for displaying the entire label not only the Focused state of the
13620         item, but also the Focused state of the ListView (match .Net
13621         behaviour).
13622
13623 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13624
13625         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
13626         Implement UseWaitCursor. 
13627
13628 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13629         Applying contributed patch from Sergey Volk.
13630
13631         * Clipboard.cs: Implement SetDataObject retry logic and new overload
13632         of SetDataObject.
13633         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
13634
13635 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13636
13637         * Control.cs: Implement DrawToBitmap.
13638
13639 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13640         Applying contributed patch from Stefan Noack.
13641         
13642         * Control.cs: Add [Get|Set]AutoSizeMode.
13643
13644 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13645
13646         * MdiClient.cs: Unmerge menus when the last child is closed.
13647
13648 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13649
13650         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
13651         * ToolStripManager.cs: Call Merge on DropDowns.
13652         [Fixes bug #81477]
13653
13654 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13655
13656         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
13657           uints.
13658         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
13659           visibility. We can't create forms visible, since we have to set the
13660           owner before making the form visible (otherwise Win32 will do
13661           strange things with task bar icons). The problem is that we set the
13662           internal is_visible to true before creating the control, so
13663           is_changing_visible_state is the only way of determining if we're
13664           in the process of creating the form due to setting Visible=true -
13665           this works because SetVisibleCore explicitly makes the form
13666           visibile afterwards anyways. Fixes #80775.
13667
13668 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13669
13670         * ThemeWin32Classic.cs: When drawing ListViewItems,
13671         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
13672         or LargeIcon _and_ item is not focused (match .Net behaviour).
13673
13674 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
13675
13676         * Control.cs, Form.cs: Fix some obsolete method warnings.
13677
13678 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
13679
13680         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
13681         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
13682
13683 2007-05-04  Andreia Gaita  <avidigal@novell.com>
13684
13685         * ContainerControl.cs: Fix active_control attribution when going
13686         up the parent chain so that the first parent container gets the control
13687         and the rest of the parent containers get the child containers (skips
13688         non-containers). Fixes #80729
13689
13690 2007-05-04  Randolph Chung  <tausq@debian.org>
13691
13692         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
13693         [Fixes bug #81499]
13694
13695 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13696
13697         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
13698           takes a size parameter, since the CreateParam's size isn't true for
13699           minimized forms. Fixes #81518,
13700
13701 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13702
13703         * Form.cs: Add OnDeactivateInternal.
13704         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
13705
13706 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13707
13708         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
13709           accessing the parent. Fixes #81508.
13710
13711 2007-05-03  Chris Toshok  <toshok@ximian.com>
13712
13713         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
13714         2.0 block, pass listposition + 1 to ChangeRecordState when a row
13715         was added before the current listposition.  Fixes the
13716         TestInsertRowBeforeCurrent unit test.
13717
13718 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
13719
13720         * Application.cs: Add RaiseIdle.
13721         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
13722         XplatUIX11.cs: Implement RaiseIdle.
13723
13724 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
13725         corcompare work: N - Z
13726         * NotifyIcon.cs
13727         * ProgressBar.cs
13728         * RadionButton.cs
13729         * ScrollableControl.cs
13730         * SplitContainer.cs
13731         * SplitterPanel.cs
13732         * StatusBar.cs
13733         * SystemInformation.cs
13734         * TabControl.cs
13735         * TableLayoutControlCollection.cs
13736         * TableLayoutPanel.cs
13737         * TabPage.cs
13738         * ToolBar.cs
13739         * ToolBarButton.cs
13740         * ToolStrip.cs
13741         * ToolStripComboBox.cs
13742         * ToolStripContainer.cs
13743         * ToolStripContentPanel.cs
13744         * ToolStripDropDown.cs
13745         * ToolStripDropDownItem.cs
13746         * ToolStripDropDownMenu.cs
13747         * ToolStripItem.cs
13748         * ToolStripItemCollection.cs
13749         * ToolStripMenuItem.cs
13750         * ToolStripPanel.cs
13751         * ToolStripSplitButton.cs
13752         * ToolTip.cs
13753         * TreeNode.cs
13754         * TreeNodeCollection.cs
13755         * TreeNodeMouseHoverEventArgs.cs
13756         * TreeView.cs
13757
13758 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
13759
13760         * ContextMenu.cs: Add public method Show with alignment property to 2.0
13761         stuff. Thanks aatdark for the patch. 
13762
13763 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13764
13765         * GridItem.cs: Implement 2.0 Tag property.
13766
13767 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
13768
13769         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
13770         count instead of Nodes.Length.  [Fixes bug #81448]
13771
13772 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13773
13774         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
13775         [Fixes bug #81506]
13776
13777 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13778         corcompare work: A - M
13779         * BindingNavigator.cs
13780         * Button.cs
13781         * ButtonBase.cs
13782         * CheckBox.cs
13783         * Control.cs
13784         * FlowLayoutPanel.cs
13785         * Form.cs
13786         * Label.cs
13787         * LinkLabel.cs
13788         * ListView.cs
13789
13790 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13791
13792         * Application.cs: Give toolstrips a chance to process mnemonics.
13793         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
13794         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
13795         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
13796
13797 2007-05-01  Jackson Harper  <jackson@ximian.com>
13798
13799         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
13800         wider area too.
13801         - Don't set the BoundsSpecified
13802
13803 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
13804
13805         * Application.cs: When using the toolstrip shortcut mechanism, allow the
13806         message to pass through to a regular control if it hosted by a toolstrip.
13807         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
13808         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
13809
13810 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
13811
13812         * TextRenderer.cs: Use the flags argument when using the MeasureString
13813         fallback algorithm.
13814
13815 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
13816
13817         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
13818         the MDI menu item.  [Fixes bug #81483]
13819
13820 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
13821
13822         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
13823         string. When setting Name to null, use zero-length string instead.
13824
13825 2007-04-29  Andreia Gaita  <avidigal@novell.com>
13826
13827         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
13828         DeselectTab). Implement missing 2.0 TabPageCollection methods
13829         (Add, ContainsKey, RemoveByKey, IndexOfKey)
13830
13831 2007-04-29  Pedro Martínez Juliá  <pedromj@gmail.com>
13832
13833         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
13834
13835 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
13836
13837         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
13838         Fixes bug #81479. Include details of exception when LoadFile fails.
13839
13840 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
13841
13842         * DrawListViewSubItemEventArgs.cs: Added missing setter
13843
13844 2007-04-27  Andreia Gaita  <avidigal@novell.com>
13845
13846         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
13847         Hide methods (not complete). Implement missing 2.0 OnPopup event.
13848
13849 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13850
13851         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
13852         removed in ly last commit (it was breaking the Label edit feature).
13853
13854         * ThemeWin32Classic.cs: When drawing a ListViewItem use
13855         StringAlignment.Near for LineAlignment (match .Net).
13856
13857 2007-04-27  Andreia Gaita  <avidigal@novell.com>
13858
13859         * TabControl.cs: Change SetTab so it adds the tabpage to the list
13860         of controls if it isn't already there - was blowing up when doing
13861         tabcontrol.TabPages[i]=new TabPage(). 
13862         SetTab now does a replace by removing the page at the index. 
13863         Add a new InsertTab method that inserts a page in a given index 
13864         instead of replacing. 
13865         Implements TabPageCollection.Insert(int, TabPage).
13866
13867 2007-04-27  Chris Toshok  <toshok@ximian.com>
13868
13869         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
13870         internal handler that can be invoked from our subclasses.)  Also,
13871         add a comment to PushData about how we need to fix it.
13872
13873         * CurrencyManager.cs: tons of changes here.  trying to get things
13874         matching the behavior of .net wrt event orders (ItemChanged,
13875         CurrentChanged, PositionChanged.)  I've implemented a private .net
13876         symbol (ChangeRecordState) that appears in stack traces because
13877         it's actually easier to do this than to effective inline all its
13878         various behaviors at every call site.
13879
13880         * RelatedPropertyManager.cs: guard against an exception here by
13881         not using parent.Current if the position is set to -1 (if the
13882         parent datasource is cleared, for instance).
13883
13884         * Binding.cs: don't parse data in PushData (this might be wrong,
13885         but it jives with MS's behavior.)  Also, don't call PushData when
13886         we get a CurrentChanged event.
13887
13888 2007-04-27  Andreia Gaita  <avidigal@novell.com>
13889
13890         * WebBrowser.cs,
13891           WebBrowserBase.cs,
13892           WebBrowserSiteBase.cs,
13893           HtmlDocument.cs: Added stubbed out classes, no real implementations 
13894           yet.
13895
13896 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
13897
13898         * MainMenu.cs: In draw method without parameters call draw method with 
13899         PaintEvent, another one (just rect) adjust rectangle and we dont need it
13900         as Rect property is already adjusted. Fixes #80694.
13901
13902 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
13903
13904         * Application.cs: Need to handle keyboard menu deselection here.
13905         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
13906         navigation, allowing keyboard to work on X11.
13907         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
13908
13909 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
13910
13911         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
13912         menu bar. It fixes some drawing issues in menu bar.
13913
13914 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
13915
13916         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
13917         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
13918         when <alt> key is pressed.
13919
13920 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
13921
13922         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
13923         example just set visible to false and make this prevent from other problems.
13924         In SystrayAdd always remove pending expose. Fixes #81072.
13925
13926 2007-04-26  Marek Safar  <marek.safar@gmail.com>
13927
13928         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
13929         value is set.
13930
13931 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
13932
13933         * ListView.cs: Added three missing 2.0 events and corresponding
13934         EventHandlers. Added the OwnerDraw property.
13935         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
13936
13937 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
13938
13939         * DrawListViewItemEventArgs.cs
13940         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
13941
13942 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
13943
13944         * TextControl.cs: Fixed typo in constructor
13945
13946 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
13947
13948         * Application.cs: Create a shortcut path so that currently selected
13949         MenuStrips can intercept keyboard events without having focus.
13950         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
13951         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
13952         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
13953         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
13954         generate WM_SYSCOMMAND message in X11 for other platforms.
13955         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
13956         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
13957         * ToolStripSplitButton.cs: Add DefaultItem property.
13958         
13959 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
13960
13961         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
13962         fixes some menu draw problem on Windows with border diferent from default
13963         it also fixes #81403.
13964
13965 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13966
13967         * Form.cs: Refactor WndProc into separate methods, just like Control is
13968           doing it.
13969
13970 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13971
13972         * Control.cs: set_Text: move the call to the driver into a seperate
13973           virtual method so that Form can override it.
13974         * MaskedTextBox.cs: Corcompare fixes.
13975         * Form.cs: Override UpdateWindowText and only update the styles if the
13976           form has been shown (fixes #81405).
13977
13978 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
13979
13980         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
13981         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
13982         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
13983         the form lost focus or another control was clicked.
13984
13985 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
13986
13987         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
13988         fixed.
13989
13990 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13991
13992         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
13993           DrawListViewItemEventHandler.cs,
13994           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
13995           Added.
13996         * X11Structs.cs: More ToString implementation.
13997
13998 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
13999
14000         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
14001         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
14002
14003 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14004
14005         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
14006           handle.
14007         * FormCollection.cs: Don't add a form if it's already in the
14008           collection.
14009         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
14010           according to behaviour and MSDN. The ownerWin32 is the active
14011           window at the moment when we call ShowDialog, not the context's
14012           main form (the context's main form may open another form that opens
14013           a form with ShowDialog, the win32 owner is the second form). Add
14014           and remove forms to the Application.OpenForms in other places to
14015           better match MS behaviour. Add an IsActive property that raises
14016           On(de)Activated only if the active state has changed (we were
14017           raising OnDeactivated before OnActivated while creating forms).
14018         * Application.cs: Refactor Enabling/Disabling of windows for modal
14019           dialog loops out to separate methods, and restore the thread
14020           context when we quit the method. Fixes #81407.
14021
14022 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14023
14024         * ListView.cs: In ItemControl.HandleClicks, also fire 
14025         2.0 MouseClick or MouseDoubleClick events on the parent,
14026         not only the Click/DoubleClick events.
14027
14028 2007-04-24  Andreia Gaita  <avidigal@novell.com>
14029
14030         * TableLayoutSettings.cs: 
14031         - Added a GetControls method and a support structure to help the 
14032         TypeConverter to enumerate the controls for     serialization. 
14033         - Added a new serialization constructor. 
14034         - Added a isSerialized flag initialized to true on the 
14035         serialization constructor so that the TableLayoutPanel.LayoutSettings 
14036         setter does not throw the designed NotSupportedOperation exception
14037         when the object is built through deserialization.
14038         - Implemented GetObjectData
14039         
14040         * TableLayoutPanel.cs: Added check on LayoutSettings.
14041
14042 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14043
14044         * ListView.cs: Report Click and DoubleClick events to the parent
14045         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
14046         from breaking the click count state when using dialog forms (Control
14047         reports the clicks in a similar fashion). In the previous behaviour
14048         the last WM_LBUTTONUP message in a  double click was sent to the
14049         ListView's form, instead of the ListView, which was breaking the click
14050         count for it. Fixes #80387.
14051
14052 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
14053
14054         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
14055
14056 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
14057
14058         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
14059         us from created dropdowns for menu items that do not have subitems.
14060         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
14061         Check HasDropDownItems before calling DropDown so a dropdown will not be
14062         created if it isn't needed.
14063
14064 2007-04-24  Jackson Harper  <jackson@ximian.com>
14065
14066         * TreeView.cs: Set the first node to the selected node when we get
14067         focus if there is no selected node.
14068
14069 2007-04-24  Andreia Gaita  <avidigal@novell.com>
14070
14071         * MimeIcon.cs: remove using blocks so that image streams are
14072         not disposed of. Fixes #80151
14073
14074 2007-04-24  Jackson Harper  <jackson@ximian.com>
14075
14076         * TextBoxBase.cs: Fixup the height of textboxes when the control
14077         is created.
14078
14079 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
14080
14081         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
14082         for each ToolStripItem when the parent's RightToLeftChanged is called.
14083
14084 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14085
14086         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
14087           Fixes #80163.
14088         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
14089           property, so that the setter can be overriden too.
14090         * TextBox.cs: Change GetContextMenuInternal() to use
14091           ContextMenuInternal.
14092
14093 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14094
14095         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
14096           #81406.
14097
14098 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14099
14100         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
14101           #81406.
14102
14103 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14104
14105         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
14106           avoid duplicate work. Mostily skeleton code, it's not working at
14107           all yet.
14108
14109 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
14110
14111         * NotifyIcon.cs : stub for MouseClick event
14112         * Application.cs: stub for SetUnhandledExceptionMode
14113
14114 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
14115
14116         * BindingNavigator.cs : Initial (partial) implementation
14117
14118 2007-04-23  Jackson Harper  <jackson@ximian.com>
14119
14120         * TreeView.cs: Do not create the treeview's handle when setting
14121         the scroll position.
14122         - ExpandAll needs to compute the scrollbars so it knows which
14123         position to set the bar too.
14124         * TreeNode.cs: 
14125         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
14126
14127 2007-04-23  Jackson Harper  <jackson@ximian.com>
14128
14129         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
14130         key. Fixes #81408.
14131
14132 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
14133
14134         * ToolStripItem.cs: Make GetImageSize internal.
14135         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
14136         need to draw an item.  Fixes a reported issue where images on menus
14137         that were not 16x16 were drawing incorrectly.
14138
14139 2007-04-21  Miguel de Icaza  <miguel@novell.com>
14140
14141         * Padding.cs: Use the converter, fixes the resgen2 issue with
14142         XMLNotePad. 
14143
14144 2007-04-21  Jackson Harper  <jackson@ximian.com>
14145
14146         * TreeView.cs: Dont try to unhighlight the selected node if there
14147         isn't a selected node.
14148
14149 2007-04-21  Jackson Harper  <jackson@ximian.com>
14150
14151         * UpDownBase.cs:
14152         * TextBoxBase.cs:
14153         * ListView.cs:
14154         * ListBox.cs:
14155         * TreeView.cs: Use the InternalBorderStyle property to set the
14156         initial border style, this forces the client rectangle to be sized
14157         correctly.
14158
14159 2007-04-20  Jackson Harper  <jackson@ximian.com>
14160
14161         * TreeView.cs: Simplify scrolling to the last node after expanding
14162         all.
14163         - Fix some off by ones with setting the bottom.
14164
14165 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
14166
14167         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
14168         that.  We were incorrectly doing it the other way around.  Also,
14169         update ClientSize if we change the BorderStyle before the control
14170         is created.
14171
14172 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
14173
14174         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
14175         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
14176         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
14177         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
14178         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
14179         Caption to CaptionHeight.
14180         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
14181         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
14182         and FixedFrameBorderSize to return value from current XplatUI driver.
14183         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
14184         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
14185         and FixedFrameBorderSize using win32 API. Renamed Caption to
14186         CaptionHeight.
14187         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
14188         * SystemInformation.cs: Fixed typo in BorderSize.
14189
14190 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
14191
14192         * XplatUI.cs: Added MenuAccessKeysUnderlined.
14193         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
14194         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
14195         returning false.
14196         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
14197         value from XplatUI driver.
14198         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
14199         SystemParametersInfo.
14200         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
14201         override.
14202         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
14203         returning false.
14204
14205 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14206
14207         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
14208
14209 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14210
14211         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
14212
14213 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
14214
14215         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
14216         MenuStrips that contain ToolStripSeparators.
14217
14218 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14219
14220         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
14221           DefineStdCursorBitmap.
14222         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
14223           has been created off a standard cursor. This is used to get a
14224           bitmap of the standard cursor when Draw or DrawStretched is called
14225           in order to draw the cursor.
14226         * X11Structs.cs: Added XcursorImage and XcursorImages.
14227         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
14228           DefineStdCursorBitmap.
14229         * Cursors.cs: Update all relevant creations of Cursor to use the new
14230           internal constructor.
14231
14232 2007-04-19  Jackson Harper  <jackson@ximian.com>
14233
14234         * TextBox.cs: Move the has_been_focused into the base control, so
14235         some of the text adding methods can manipulate it (probably time
14236         for a better name for this flag too).
14237         - Call a new version of selectall that doesn't scroll
14238         * TextBoxBase.cs: When we append text, if the document is empty,
14239         don't scroll.  If the document has text already, we scroll to the
14240         end of the appended text.
14241         - When the text is changed, we reset the has_been_focused, so the
14242         next time the control gets focused, all the text is selected.
14243
14244 2007-04-19  Jackson Harper  <jackson@ximian.com>
14245
14246         * TextControl.cs: Move the margins to the document, add a method
14247         so the margin sizes can be updated.
14248         * TextBoxBase.cs: When the border style is changed, update the
14249         border sizes.
14250
14251 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
14252
14253         * Control.cs: Respect DefaultPadding.
14254         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
14255         padding into account.
14256         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
14257
14258 2007-04-19  Jackson Harper  <jackson@ximian.com>
14259
14260         * TextControl.cs: Oops, we need to use the ClientRect not the
14261         bounds here.
14262
14263 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14264
14265         * ListView.cs: In ItemControl.ItemsMouseDown, take into
14266         account the double clicks when CheckBoxes are used and
14267         the pointer is inside the checkbox. Fixes part of #81191.
14268
14269 2007-04-18  Jackson Harper  <jackson@ximian.com>
14270
14271         * TextControl.cs: Pressing the end key shouldn't move the caret
14272         past the line ending.
14273         * TextBoxBase.cs: We can still delete if we are in the line
14274         ending and the combine will just kill the existing line ending.
14275
14276 2007-04-18  Jackson Harper  <jackson@ximian.com>
14277
14278         * TextControl.cs: We can't move lines, then invalidate their
14279         bounds, we need to get the old bounds and combine that with the
14280         new bounds.
14281         * TextBoxBase.cs: Before combining two lines for a delete, we need
14282         to invalidate the area of the old line, since that will be moved
14283         in the combine operation.
14284
14285 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
14286
14287         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
14288         with transparent background. Fixes #80482.
14289
14290 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
14291
14292         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
14293         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
14294         [Fixes bug #81391]
14295
14296 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14297
14298         * CreateParams.cs: Add a couple of helper methods and do a less string
14299           concatenation in ToString.
14300         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
14301           overload that takes a Control parameter, since this method may be
14302           called before a control is assigned to the hwnd (from
14303           CreateWindow), and update CreateWindow to use the new overload. In
14304           GetMenuOrigin subtract the title bar from the y position if the
14305           form has a window manager (since we're painting it and not X).
14306         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
14307           CreateParams to calculate the origin (since border sizes may vary).
14308           In ScreenToMenu only subtract the title height if we actually have
14309           a title.
14310         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
14311           mdi children never have menus of themselves.
14312         * InternalWindowManager.cs: Implement menu handling like form does.
14313           Added GetMenuOrigin to calculate the menu origin, can't use the
14314           CreateParams from the form like normally since it's lying.
14315         * Hwnd.cs: Implement GetBorderSize better (in the sense more
14316           windows-like) and add Inflate and comparison operators to the
14317           Borders type. When calculating MenuOrigin and it's a form with a
14318           window manager, use the window manager to calculate it.
14319
14320 2007-04-17  Chris Toshok  <toshok@ximian.com>
14321
14322         * Control.cs (CreateControl): turns out in 2.0 we don't need this
14323         OnBindingContextChanged thing here.  It's only generated from
14324         ContainerControl.OnCreateControl.  Fixes a newly written unit test
14325         - BindingTest.BindingContextChangedTest4.
14326         
14327 2007-04-17  Jackson Harper  <jackson@ximian.com>
14328
14329         * ScrollBar.cs: When setting values, make sure the current
14330         position stays within the new values range.
14331
14332 2007-04-17  Chris Toshok  <toshok@ximian.com>
14333
14334         * Control.cs (CreateControl): talk about a bizarre corner case.
14335         Don't emit OnBindingContextChanged here if we're a parentless
14336         control (i.e. if we're a form.).  Fixes
14337         BindingTest.BindingContextChangedTest2.
14338
14339 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
14340
14341         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
14342         from win32. Fixes #81255.
14343
14344 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
14345
14346         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
14347         already present in CalculateButtonTextAndImageLayout.
14348
14349 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14350
14351         * XplatUIX11.cs: When setting min/max size for a window we need to
14352           translate the coordinates to x coordinates. Create an overload of
14353           SetWindowMinMax that takes a CreateParams handling this, and change
14354           SetWMStyles to call this function (can't use Control.FromHandle in
14355           the SetWindowMinMax to get the control/CreateParams from the handle
14356           because the handle might not have been assigned to the control
14357           yet). Fixes #81371.
14358
14359 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14360
14361         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
14362         if StateImageList is non-null and it has less than two items (match MS
14363         behaviour). Also, in HandleNavKeys handle the Space key, calling
14364         the new ToggleItemsCheckState method, which tries to change the
14365         checked state of the selected items. Fixes part of #81191.
14366
14367 2007-04-16  Jackson Harper  <jackson@ximian.com>
14368
14369         * RichTextBox.cs: namespace cleanup.
14370
14371 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
14372
14373         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
14374
14375 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
14376
14377         [Fixes #79447]
14378         * Control.cs: Call invalidate in set_Region.
14379
14380         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
14381         it dont works here.
14382
14383 2007-04-16  Jackson Harper  <jackson@ximian.com>
14384
14385         * TextBoxBase.cs: When enter is pressed, we need to update all
14386         lines below the current.
14387
14388 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
14389
14390         * MdiClient.cs: Implement implicit menu merging for MDI
14391         children.  When a child form is active, if it has a menustrip
14392         and the parent form has a MainMenuStrip, automatically merge
14393         the menus.
14394
14395 2007-04-15  Andreia Gaita  <avidigal@novell.com>
14396
14397         * TabControl.cs: Refactored sizing methods to not repeat
14398         code all over the place. Tab bounds are now calculated
14399         as if alignment is top and single line, and only when 
14400         setting the bounds are the positions adjusted according
14401         to alignment. Replaced hardcoded positions, spacings and
14402         paddings by getting the values the ThemeEngine. 
14403         Fixes #79619.
14404         
14405         * Theme.cs: Change TabControl properties and methods so
14406         that all start with TabControl*. Added more properties
14407         to help remove hardcoded values on tabcontrol.
14408         Add CPDrawBorder3D declaration so the Theming classes
14409         can access it.
14410         
14411         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
14412
14413         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
14414         on the Theming namespace, and call the appropriate methods here.
14415         Change CPDrawBorder3D to public.
14416
14417 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14418
14419         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
14420         the control after firing the OnMouseUp event, instead of sending
14421         the message before the mentioned event. This is so we can match the
14422         MS behaviour. Fixes part of #80385.
14423
14424 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
14425
14426         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
14427         RightToLeft property.
14428
14429 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
14430
14431         * ToolStrip.cs: Add properties and internal methods to support merging.
14432         * ToolStripItem.cs: Add MergeAction and MergeIndex.
14433         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
14434         not trigger reparenting or layouts.
14435         * ToolStripManager.cs: Add Merge and RevertMerge methods.
14436         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
14437         is hosting the overflow menu.
14438
14439 2007-04-13  Jackson Harper  <jackson@ximian.com>
14440
14441         * TextControl.cs: Set the line ending correctly for the first
14442         inserted line.
14443
14444 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
14445
14446         * Theme.cs: Update GetMethod to get the new definition for 
14447         KnownColors.Update (and fix theme color updates).
14448
14449 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
14450
14451         * MessageBox.cs: Fix some test and button position.
14452
14453 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14454
14455         * Form.cs: Consider the implicit controls in
14456         GetRealChildAtPoint. We need it since this method
14457         is called on Form when handling the some messages in
14458         WndProc, and need to consider those implicit ones too.
14459         Fixes #80385.
14460
14461 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
14462
14463         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
14464         if there are no ShortcutKeys set.
14465         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
14466         set, use it when painting.
14467
14468 2007-04-12  Jackson Harper  <jackson@ximian.com>
14469
14470         * TextControl.cs: Fix some off-by-one issues in line duplication
14471         and insertion in the undo manager. Also, overwrite the first tag
14472         of a line on insert, if it is just a zero lengthed tag. This
14473         prevents us from getting an extra stranded tag at the beginning of
14474         the first line.
14475
14476 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
14477
14478         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
14479         to calculated proper size including when handle was not created yet.
14480
14481 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14482
14483         * MdiWindowManager.cs: When moving a form, allow the form to be moved
14484           when the mouse is outside of it's parent's client rectangle. Fixes
14485           #79982 (take 3, part 2).
14486
14487 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14488
14489         * X11Structs.cs: Add a few ToString() overrides.
14490         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
14491           the window location in a window-manager independent way. Reworked
14492           FrameExtents, it now actually works. Reworked AddConfigureNotify
14493           and ReparentNotify handling to use GetTopLevelWindowLocation
14494           instead of the earlier, more hacky solution. Reworked SetWMStyles,
14495           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
14496           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
14497           for all other windows (fixes #81281 part 1), a toolwindow is hidden
14498           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
14499           and generally refactored to do as few calculations as possible
14500           inside the lock.
14501
14502 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
14503
14504         * Theme.cs: Change "reflective-contract" between MWF and SD to 
14505         minimize # of calls, avoid Color serialization and avoid updating 
14506         every "known colors" each time a single one is updated.
14507
14508 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
14509
14510         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
14511         when not readonly and the text is explicitly set. Code style updates.
14512         * DataGridTableStyle.cs: Removed extra line.
14513         * DataGrid.cs: Code style updates. Removed extra whitespace.
14514         * DataGridColumnStyle.cs: Code style updates. Removed extra 
14515         whitespace.
14516
14517 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14518
14519         * XplatUIX11.cs: Added comment that "fixes" #80021.
14520
14521 2007-04-09  Jackson Harper  <jackson@ximian.com>
14522
14523         * TextControl.cs: We don't need this -1 on the line count anymore.
14524
14525 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
14526
14527         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
14528         entered value to underlying type, and convert it back to a string to
14529         apply formatting. Modified GetFormattedValue to use TypeConverter
14530         if available.
14531
14532 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
14533
14534         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
14535         Use SubItems property when we want to ensure there's at least one
14536         subitem. Modified SubItems property to ensure there's always at least
14537         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
14538         the NRE's reported by MS.
14539
14540 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
14541
14542         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
14543         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
14544         Spaces to tabs. Removed extra tabs.
14545
14546 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
14547
14548         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
14549         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
14550
14551 2007-04-06  Jackson Harper  <jackson@ximian.com>
14552
14553         * TextBoxBase.cs: When a delete removes a line, recalculate all
14554         lines below that line (they need to get offsets setup correctly)
14555         and invalidate.
14556
14557 2007-04-05  Jackson Harper  <jackson@ximian.com>
14558
14559         * TextControl.cs: We need to invalidate across the width of the
14560         document when we are invalidating multiple lines.
14561         * TextBoxBase.cs: Don't delete into the line ending.
14562
14563 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14564
14565         * ListView.cs: Restore the check for the MouseHover event
14566         in ListView. It looks like the ListView fires more than one MouseHover
14567         event when HoverSelection is true  _only_ in weird-corner scenarios, but
14568         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
14569         event.
14570
14571 2007-04-05  Mike Kestner  <mkestner@novell.com>
14572
14573         * ListView.cs : raise MouseDown before updating selection.
14574         [Fixes #80373 tab 1&3]
14575
14576 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
14577
14578         * ToolStripRenderer.cs: Add static method to mirror image.
14579         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
14580         and RightToLeftAutoMirrorImage.
14581         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
14582
14583 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
14584
14585         * ToolStripSplitStackLayout.cs: Support Alignment property.
14586         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
14587
14588 2007-04-05  Jackson Harper  <jackson@ximian.com>
14589
14590         * TextControl.cs: Move around the line endings when crossing line
14591         boundaries.
14592         - When combining lines, strip the ending text off the first line.
14593
14594 2007-04-05  Jackson Harper  <jackson@ximian.com>
14595
14596         * TextControl.cs:
14597         * TextBoxBase.cs: Try to never move the cursor into the line
14598         ending.
14599         
14600 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
14601
14602         * ToolStripItem.cs: Make sure we aren't firing mouse events when
14603         the item is disabled.  Also add a few missing methods.
14604
14605 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14606
14607         * ListView.cs: We don't need the MouseEnter/MouseLeave check
14608         to fire just one MouseHover event when HoverSelection is true, since
14609         .Net does fire more than one MouseHover event in that scenario. Also,
14610         fix the selection in HoverSelection, by invoking UpdateMultiSelect
14611         if MultiSelect is true, instead of only setting ListViewItem.Selected.
14612         Finally, we need to reset the Hover logic in MouseMove, even when we
14613         don't have a selected item.
14614
14615 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
14616
14617         * ToolStrip.cs: Add several missing methods, properties, and events.
14618
14619 2007-04-04  Chris Toshok  <toshok@ximian.com>
14620
14621         * DataGridTextBoxColumn.cs: set the bounds of the text box to
14622         (0,0,0,0) in Commit, as MS does.
14623
14624         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
14625         make sure we set CurrentRow on a row header click *before* calling
14626         Select.  This moves the current cell (and the textbox) to the new
14627         row.  The call to Select then hides the textbox, giving us the
14628         correct behavior.  Fixes #80362.
14629
14630         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
14631         (ListChangedHandler): reorder the position/current changed events,
14632         and call UpdateIsBinding in the ItemAdded case.
14633
14634         * GridColumnStylesCollection.cs: add some columns events, one of
14635         which raises the CollectionChanged event.
14636
14637 2007-04-04  Jackson Harper  <jackson@ximian.com>
14638
14639         * TextControl.cs: When we delete multiple selection lines
14640         invalidate the selection area, don't need to do that for single
14641         lines because the final update view will handle it.
14642
14643 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
14644
14645         * Control.cs: When we CreateControl, we need to also create all of the
14646         control's children.  The child's OnLoad must also fire before the parent's
14647         OnLoad.  Fixes the toolbox size in PDN.
14648
14649 2007-04-04  Jackson Harper  <jackson@ximian.com>
14650
14651         * TextBoxBase.cs: When the user presses enter, insert a line
14652         ending into the text. (Maybe this would be a good spot for
14653         Environment.NewLine).
14654         * TextControl.cs: Remove undo manager hack, line endings get
14655         inserted properly now.
14656         
14657 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
14658
14659         * MenuAPI.cs: 
14660         - Remove unneeded parameters in UpdateCursor.
14661         - Fix UpdateCursor to check if menu is active.
14662         - Call UpdateCursor when menu deactivate my click.
14663         [Fixes remaining issues from #80410]
14664
14665 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
14666
14667         * Control.cs: GetRealChildAtPoint method added, it make an
14668         recursive child control search for the point. 
14669
14670         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
14671         menu.
14672
14673         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
14674
14675 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
14676
14677         * Form.cs: Fix mouse position when send back mouse event after closes
14678         menu.
14679
14680 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
14681
14682         * Form.cs: Simplify the BUTTONDOWN for active tracker.
14683
14684 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
14685
14686         * Control.cs: Fix an issue where if a user resized a control inside
14687         a sizing method like OnResize, we would overwrite their explicit
14688         value.  Also, only call DefaultSize once in the constructor instead
14689         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
14690         nothing actually changed.
14691
14692 2007-04-03  Jackson Harper  <jackson@ximian.com>
14693
14694         * TextControl.cs: Don't attempt to copy text for lines with no
14695         text in them (technically this shouldn't happen, but we aren't
14696         always inserting line endings when we should be).
14697
14698 2007-04-03  Jackson Harper  <jackson@ximian.com>
14699
14700         * TextBoxBase.cs: Calculate the scrollbars before calculating the
14701         document, because this sets some of the document size properties
14702         that are needed.
14703
14704 2007-04-03  Jackson Harper  <jackson@ximian.com>
14705
14706         * TextBoxBase.cs: We need to calculate maximums even if this is
14707         not a multiline control, because the maxs are used for scrolling.
14708         - Display the caret after doing a page up/down, we need to
14709         manually display it because a proper CaretMoved event isn't
14710         triggered (this is because of the way the math is done to
14711         determine how far to scroll).
14712
14713 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
14714
14715         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
14716         (ToolBar was relying on SetBoundsCore to default the values sent 
14717         base off of BoundsSpecified.)
14718
14719 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14720
14721         * DateTimePicker.cs: Change Text so that when a null value or empty
14722           string is assigned to the test we always raise ValueChanged and
14723           TextChanged (earlier implementation would only raise ValueChanged
14724           if the current date value was different from DateTime.Now).
14725
14726 2007-04-03  Andreia Gaita <avidigal@novell.com> 
14727
14728         * ButtonBase: Call update after invalidation, fixes #80194
14729
14730 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14731
14732         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
14733           #79335.
14734
14735 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14736
14737         * XplatUIX11.cs: SetWMStyles: If the control is a form with
14738           FormBorderStyle = None, don't give the window any decorations.
14739           Fixes #81276.
14740
14741 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14742
14743         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
14744         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
14745           to check for is a mix of several styles (such as WS_CAPTION for
14746           instance).
14747         * Control.cs: Don't paint an area bigger than the client area when
14748           painting the background colour. Add an internal GetCreateParams.
14749           Update calls to XplatUI.CalculateWindowRect due to API change.
14750         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
14751           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
14752           the size if it hasn't been handled by any windows. When creating
14753           and moving windows, X wants the location of the entire window, but
14754           the size of the client window, so add
14755           TranslateClientRectangleToXClientRectangle,
14756           TranslateWindowSizeToXWindowSIze and
14757           TranslatedXWindowSizeToWindowSize to cope with this, and call them
14758           before every window creation and move. Update CalculateWIndowRect
14759           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
14760           In AddConfigureNotify don't do anything if the hwnd is a zombie
14761           (fixes the BadWindow we were getting while running the tests),
14762           always calculate the offsets when it's a parentless window, not
14763           only when reparented, and translate the window size, since we're
14764           getting the client size of the whole window, excluding entire
14765           window.
14766         * Theme.cs: Added BorderSizableSize.
14767         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
14768           anymore. Update calls to XplatUI.CalculateWindowRect due to API
14769           chang
14770         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
14771           change. Fake the window styles here instead of in XplatUIWin32 so
14772           that all back-ends get the same window styles (and it's Form that's
14773           deciding when to use wm, not the Win32 backend anyways)
14774         * Hwnd.cs: Completely reworked GetWindowRectangle and
14775           GetClientRectangle - they are now passed a CreateParams and they
14776           only use Style and ExStyle to determine the rectangles (they should
14777           now work just like Win32AdjustWindowRectEx - though quite a few
14778           special cases are probably missing). They should also be 100%
14779           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
14780           == rect), and all numbers (borders, menu sizes) are taken from the
14781           current theme. Added a GetBorders helper function that will return
14782           the borders for any given CreateParams (including captions and
14783           menus), and GetBorderSize that returns the given border size only.
14784         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
14785           Hwnd.GetClientRectangle.
14786
14787 2007-04-02  Chris Toshok  <toshok@ximian.com>
14788
14789         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
14790         logic between the values we present to the user and the values
14791         which are stored in the column's property.  Also, don't call
14792         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
14793
14794 2007-04-02  Jackson Harper  <jackson@ximian.com>
14795
14796         * TextBoxBase.cs: Scroll faster!
14797
14798 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
14799
14800         * StatusStrip.cs: Layout fixes for PDN.
14801         * ToolStrip.cs: Set item's available to true, and placement to main when
14802         added.
14803         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
14804         changing in setter before doing any work, add InternalVisible.
14805         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
14806         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
14807         infinite loop.
14808
14809 2007-04-02  Jackson Harper  <jackson@ximian.com>
14810
14811         * TextBox.cs: LBUTTON does not make the textbox select all of it's
14812         text on focus.
14813
14814 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14815
14816         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
14817           Makes ToolStripComboBoxes show up again.
14818
14819 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14820
14821         * ListView.cs: Add a hover_pending field in ListView
14822         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
14823         cycle (we are resetting the MouseHover logic in XplatUI
14824         to handle HoverSelection). Fixes #80429.
14825
14826 2007-04-02  Jackson Harper  <jackson@ximian.com>
14827
14828         * TextControl.cs: Make sure the attributes get set on the last
14829         tag.
14830         - Still have to do the end tag if we have stepped all the ways to
14831         the end.
14832
14833 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
14834
14835         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
14836         on an internal libgdiplus call when the information is already 
14837         available via the public API.
14838
14839 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14840
14841         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
14842           control is removed from a control collecftion.
14843         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
14844           Fixes FormPropertyTest (failed on rare occasions).
14845         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
14846           of Win32SetParent (when changing from no parent to a parent it
14847           might add the new parent's location in screen coordinates to this
14848           window's location).
14849         * Form.cs: Rework ChangingParent once again, now the handle is
14850           recreated whenever a FormWindowManager is added or removed (that is
14851           whenever a normal form is parented or abandoned). Also change
14852           CreateParams so that all non-toplevel windows always get the
14853           specified sice (StartupPosition is never considered for
14854           non-TopLevel forms).
14855         * ContainerControl.cs: Add ChildControlRemoved, the container control
14856           needs to be notified when a control is removed from it's
14857           collection, in the case the removed control is the active control.
14858
14859 2007-04-02  Jackson Harper  <jackson@ximian.com>
14860
14861         * RichTextBox.cs: Use the new methods for setting the font and
14862         color, these methods set the specified attribute without
14863         overriding the other attributes.
14864
14865 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
14866
14867         * ToolStripPanel.cs: Fixes for better layouts in PDN.
14868
14869 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
14870
14871         * TextBox.cs: Added internal ChangeBackColor method to special-case
14872         Color.Empty. Added check for invalid ScrollBars value.
14873         * TextBoxBase.cs: Added internal ChangeBackColor method.
14874         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
14875         internal ChangeBackColor method to special-case Color.Empty. Added
14876         check for invalid ScrollBars value.
14877
14878 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
14879
14880         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
14881
14882 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
14883
14884         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
14885         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
14886         [Based on submitted patch from Olivier Duff.]
14887
14888 2007-03-30  Jackson Harper  <jackson@ximian.com>
14889
14890         * TextBox.cs: Only select all on initial focus if the user has not
14891         specified a selection area.
14892
14893 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
14894
14895         * UserControl.cs: Override CreateParams.
14896
14897 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14898
14899         [ Fixes #80995 ]
14900
14901         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
14902         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
14903           check for is a mix of several styles (such as WS_CAPTION for instance).
14904         * Control.cs: Don't paint an area bigger than the client area when painting
14905           the background colour. Add an internal GetCreateParams. Update calls to
14906           XplatUI.CalculateWindowRect due to API change.
14907         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
14908           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
14909           hasn't been handled by any windows. When creating and moving windows, X
14910           wants the location of the entire window, but the size of the client
14911           window, so add TranslateClientRectangleToXClientRectangle,
14912           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
14913           to cope with this, and call them before every window creation and move.
14914           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
14915           removing DeriveStyles). In AddConfigureNotify don't do anything if the
14916           hwnd is a zombie (fixes the BadWindow we were getting while running the
14917           tests), always calculate the offsets when it's a parentless window, not
14918           only when reparented, and translate the window size, since we're getting
14919           the client size of the whole window, excluding entire window.
14920         * Theme.cs: Added BorderSizableSize.
14921         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
14922           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
14923         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
14924           Fake the window styles here instead of in XplatUIWin32 so that all
14925           back-ends get the same window styles (and it's Form that's deciding when
14926           to use wm, not the Win32 backend anyways)
14927         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
14928           they are now passed a CreateParams and they only use Style and ExStyle
14929           to determine the rectangles (they should now work just like
14930           Win32AdjustWindowRectEx - though quite a few special cases are probably
14931           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
14932           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
14933           sizes) are taken from the current theme. Added a GetBorders helper
14934           function that will return the borders for any given CreateParams
14935           (including captions and menus), and GetBorderSize that returns the given
14936           border size only.
14937         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
14938           Hwnd.GetClientRectangle.
14939
14940 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14941
14942         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
14943           layout of the mdi children is handled by CreateParams. Fixes
14944           #79964,
14945
14946 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14947
14948         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
14949         processed.
14950
14951         * Form.cs: When active tracker mouse down is not processed, send event 
14952         back to control inside mouse position. [Fixes #81227]
14953
14954 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
14955
14956         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
14957         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
14958         stealing focus from the active form on Windows.  (Control will be made
14959         visible in ShowWindow.)
14960
14961 2007-03-29  Mike Kestner  <mkestner@novell.com>
14962
14963         * ImageList.cs : add internal Changed event.
14964         * ListView.cs : hook up to StateImageList.Changed to perform
14965         invalidations when the the state icon list changes. [Fixes #81191]
14966
14967 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
14968
14969         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
14970         to prevent tooltips from stealing focus from the active form on Windows.
14971
14972 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14973
14974         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
14975
14976         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
14977
14978 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14979
14980         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
14981         balloons.
14982
14983 2007-03-29  Jackson Harper  <jackson@ximian.com>
14984
14985         * TextControl.cs: When deleting text from non multiline textboxes,
14986         we need to update the entire document, because line offsets will
14987         be shifting.
14988
14989 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14990
14991         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
14992         added to theme, now we can create themes that uses diferent notify engines
14993         like notification-daemon from galago project or growl for Mac OS.
14994
14995 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
14996
14997         * NotifyIcon.cs: Prevent Balloon to show in task bar.
14998
14999 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
15000
15001         * XplatUIX11.cs: Prevent system to open more than one balloon.
15002
15003         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
15004         some compiler warning messages.
15005
15006 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
15007
15008         [Fixes #79149]
15009
15010         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
15011
15012         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
15013         implemented, this methods is used by NotifyIcon.BalloonWindow class.
15014
15015         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
15016         systems.
15017
15018 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15019
15020         * ListViewItem.cs: Forgot to make Invalidate internal.
15021
15022 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15023
15024         * ListView.cs: Add a InvalidateSelection method to
15025         invalidate methods which are currently selected, and call
15026         it when setting FullRowSelect and HideSelection, instead of
15027         calling Redraw.
15028
15029 2007-03-28  Chris Toshok  <toshok@ximian.com>
15030
15031         * XplatUIX11.cs (UnmapWindow): reindent this block.
15032
15033         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
15034         the selection_start if we're moving the selection (that is, not
15035         extending it). Fixes bug #80461.
15036
15037 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
15038
15039         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
15040         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
15041         create private ControlCollection.
15042
15043 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
15044
15045         * Control.cs: We need to call OnVisibleChanged for our implicit
15046         children as well as our normal children.  Fixes scrollbars in
15047         comboboxes not showing up.
15048
15049 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
15050
15051         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
15052         the check for IsHandleCreated first.  The check in CreateHandle is not
15053         good enough because CreateHandle can be overriden, and the override 
15054         should not be called if the handle is already created.
15055
15056 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
15057
15058         * ToolStrip.cs: Remove MonoTODO for tooltips.
15059         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
15060         * ToolStripContainer.cs: Add custom ControlCollection class.
15061         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
15062         * ToolStripDropDown.cs: Add some missing properties/methods.
15063         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
15064         * ToolStripItem.cs: Remove MonoTODO for tooltips.
15065         * ToolStripManager.cs: Add IsShortcutDefined.
15066         * ToolStripOverflow.cs: Override LayoutEngine.
15067         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
15068         * ToolStripSeparator.cs: Add ImageKey.
15069
15070 2007-03-28  Jackson Harper  <jackson@ximian.com>
15071
15072         * TextControl.cs: If a char delete removes a line ending, we need
15073         to update the ending style.
15074         - Make sure the line ending calcs get called.
15075
15076 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15077
15078         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
15079           it was making the new code not work. Fixed a typo in the new code
15080           as well. Fixes #79826.
15081
15082 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
15083
15084         * XplatUIWin32.cs:
15085         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
15086         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
15087         - SystrayBalloon method implemented.
15088         [Add support for notifyicon balloon on win32, #79149]
15089
15090 2007-03-27  Mike Kestner  <mkestner@novell.com>
15091
15092         * ThemeWin32Classic.cs : update StateImageList selection to mirror
15093         the ms behavior when only one image is added to the list.
15094         [Fixes #81191]
15095
15096 2007-03-27  Jackson Harper  <jackson@ximian.com>
15097
15098         * TextControl.cs: Improvements to non multiline line ending
15099         drawing/measuing.
15100
15101 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
15102
15103         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
15104
15105 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
15106
15107         * NotifyIcon.cs: 
15108         - Balloon message handling added.
15109         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
15110
15111         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
15112         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
15113         to SystrayBalloon to me like other Systray method, also a
15114         handle parameter added.
15115
15116 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15117
15118         * ListView.cs: Show scrollbars even when items.Count == 0
15119         but the columns Width is bigger than the ListView.Width.
15120         Also, when columns.Count == 0 set layout_wd and layout_ht
15121         to the ClientRectangle values, so we don't show any scrollbar
15122         in that case.
15123
15124 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
15125
15126         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
15127
15128 2007-03-27  Jackson Harper  <jackson@ximian.com>
15129
15130         * RichTextBox.cs: The RTF library decodes the text properly for us
15131         now.
15132
15133 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15134
15135         * ListView.cs: Display HeaderControl even when columns.Count == 0.
15136         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
15137         ListView header (HeaderControl), instead of Control.BackColor.
15138
15139 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
15140
15141         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
15142         Fixes tab control issues where controls would not show up because they
15143         never received their OnVisibleChanged call.
15144
15145 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
15146
15147         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
15148         BalloonTipShown).
15149
15150 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
15151
15152         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
15153         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
15154         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
15155         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
15156         the handle.  Fix WindowState by using the internal variable until we are 
15157         sure that we've been shown.
15158         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
15159         max or min.
15160         [Fixes bug #81198]
15161
15162 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15163
15164         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
15165           (at least borders). Fixes #79386 on Linux (with a small difference
15166           in behaviour: when trying to resize a caption-less window metacity
15167           shows the sysmenu. Resizing is still possible though).
15168         * XplatUIWin32.cs: When setting window styles send request an extra
15169           WM_NCCALCSIZE when it's a form without title (due to no text and no
15170           caption), since Win32 seems to calculate it wrong the first time we
15171           get the message, though the second time things work as they should.
15172         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
15173           newly reparented window might show up unparented. Update
15174           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
15175           there's no title text. Fixes #79386.
15176
15177 2007-03-27  Mike Kestner  <mkestner@novell.com>
15178
15179         * ListBox.cs : don't perform invalidations if the handle hasn't been
15180         created.  [Fixes #80753]
15181
15182 2007-03-27  Mike Kestner  <mkestner@novell.com>
15183
15184         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
15185         [Fixes #80428]
15186
15187 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
15188
15189         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
15190         needed to implement Balloon.
15191
15192 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15193
15194         * ListViewItem.cs: In the constructors that take
15195         an array of strings, don't use ListViewSubItemCollection.AddRange
15196         method to add items, since we need to have a different behaviour (in
15197         the constructors we add an item for each null string, opposed to
15198         the behaviour of AddRange, which adds nothing).
15199
15200 2007-03-26  Andreia Gaita  <avidigal@novell.com>
15201
15202         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
15203
15204 2007-03-26  Jackson Harper  <jackson@ximian.com>
15205
15206         * TextControl.cs: Draw and measure line endings when in non
15207         multiline mode.
15208         - When searching the text, count the end of the last line as a
15209         word boundary.
15210
15211 2007-03-26  Jackson Harper  <jackson@ximian.com>
15212
15213         * RichTextBox.cs: The selection_start and selection_end don't
15214         really track the correct tags for the selection. So we'll manually
15215         compute the correct tag here.
15216
15217 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15218
15219         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
15220           and Continuous styles. Fixes #79469.
15221
15222 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
15223
15224         * ToolStrip.cs: Implement Tooltips.
15225         * ToolStripItem.cs: Create internal method for determining tooltip.
15226
15227 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
15228
15229         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
15230
15231 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
15232
15233         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
15234         it prevents a problem thak keeps icon visible after application 
15235         closes on win32.
15236
15237 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
15238
15239         * NotifyIcon.cs: Balloon properties and methods created.
15240
15241         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
15242         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
15243
15244 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
15245
15246         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
15247
15248 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
15249
15250         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
15251         parameter indicates which aspects were explicit/user-set.
15252         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
15253
15254 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
15255
15256         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
15257         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
15258         SmallChange, and Value (2.0).
15259         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
15260
15261 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15262
15263         * ListView.cs: Always set item_control.Width in LayoutDetails
15264         if View is Details. Setting it later in CalculateScrollBars
15265         in a not-so-corner scenario (the sum of columns width is
15266         not bigger than the ListView width when handle is created, and then
15267         that sum gets bigger by increasing the width of the columns)
15268         causes a very weird recursion path (which shouldn't be happening,
15269         since header_control sets it in CalculateScrollBars too). This bug
15270         appeared after Chris' fixes for handle created issues, so probably
15271         it's related to some handle-creation time.
15272
15273 2007-03-23  Chris Toshok  <toshok@ximian.com>
15274
15275         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
15276         case where there's an add row, just so we don't end up in a case
15277         where it's not displayed (this happens when the row is partially
15278         obscured).  Fixes bug #79574.
15279
15280 2007-03-23  Jackson Harper  <jackson@ximian.com>
15281
15282         * TextControl.cs:
15283         * TextBoxBase.cs:
15284         * RichTextBox.cs: Preserve line endings in the lines text buffer,
15285         also added an enum that represents the line ending type. 
15286
15287 2007-03-23  Andreia Gaita  <avidigal@novell.com>
15288
15289         * NumericUpDown.cs: Fix logic so Text and Value properties are not
15290         messed with in every method call, but only from DownButton, 
15291         UpButton, UpdateEditText() and ValidateText. Fixes #80346
15292
15293 2007-03-23  Chris Toshok  <toshok@ximian.com>
15294
15295         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
15296         format objects if the format spec is "".  Fixes bug #80889.
15297
15298 2007-03-22  Miguel de Icaza  <miguel@novell.com>
15299
15300         * ToolStripPanel.cs (Join): added stubs to build PDN3
15301
15302         * Control.cs (AutoScrollOffset): Add.
15303
15304         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
15305         property, its only implemented for Win32, on X11 it defaults to
15306         some hardcoded value.
15307
15308         * ToolStripItem.cs (AllowDrop): Add property
15309
15310 2007-03-22  Mike Kestner  <mkestner@novell.com>
15311
15312         * ListView.cs : in FullRowSelect Details mode, only enable box
15313         selection if the user clicks over the "item" column outside of the
15314         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
15315
15316 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15317
15318         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
15319           handle is not created yet.
15320         * Form.cs: Select: Don't call CreateHandle if the handle is already
15321           created, avoids a stack overflow on Windows when we are recreating
15322           controls.
15323         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
15324           they are made visible, and override AfterTopMostControl to keep
15325           them on top when other controls are brought to front.
15326           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
15327           or force_*scroll_visible is true (old implementation always shows
15328           scrollbars when needed, no matter what auto_scroll was set to).
15329         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
15330           IsHandleCreated check.
15331
15332 2007-03-22  Andreia Gaita  <avidigal@novell.com>
15333
15334         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
15335         row or col separator.
15336         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
15337
15338 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
15339
15340         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
15341
15342 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
15343
15344         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
15345         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
15346         every time. Fixes #80410.
15347
15348 2007-03-22  Chris Toshok  <toshok@ximian.com>
15349
15350         * BindingSource.cs (AddNew): partially implement.
15351
15352         remove a couple of NotImplementedException's
15353         to get bug #81148 closed.
15354
15355 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
15356
15357         [Fixes #80380]
15358         
15359         * Control.cs:
15360         - UpdateCursor method added to update the screen cursor.
15361         - GetAvailableCursor method added to return cursor for enabled tree,
15362         it searches for cursor on control and it's parent's for enabled control.
15363         - Call UpdateCursor method on setter of Cursor property.
15364         - On setter of Enabled call UpdateCursor when it is false, we need to
15365         change cursor to normal (or to this parent cursor) because cursor 
15366         setting theres no effect to disabled controls.
15367         - Some minor source changes to follow the coding style guidelines.
15368
15369         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
15370         controls.
15371
15372 2007-03-22  Chris Toshok  <toshok@ximian.com>
15373
15374         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
15375         generates.
15376
15377 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15378
15379         * XplatUIX11.cs: Implement default locations for forms.
15380         * Form.cs: Completely rework startup location for forms. Fixes #79964.
15381         * Hwnd.cs: Add previous_child_startup_location (to track the current
15382           startup location for any child forms of the current form) and
15383           previous_main_startup_location (to track the startup location for
15384           the current toplevel form).
15385
15386 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
15387
15388         * Control.cs: Don't trigger a layout if an implicit control is added
15389         that isn't visible.  Also, don't notify the owner when an implicit control
15390         is added.  (Owners shouldn't even know about their implicit controls.)
15391
15392 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
15393
15394         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
15395         to save some re-layouts.
15396
15397 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
15398
15399         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
15400         [Fixes #81203]
15401
15402 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
15403
15404         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
15405         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
15406
15407 2007-03-21  Mike Kestner  <mkestner@novell.com>
15408
15409         * ListView.cs : disable selection update for non-left button clicks
15410         with mods and over selected items.  [Fixes #80524]
15411
15412 2007-03-20  Jackson Harper  <jackson@ximian.com>
15413
15414         * TextControl.cs:
15415         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
15416         \r\r\n, \n.
15417
15418 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15419
15420         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
15421           very probably a more complicated calculation there. Update the
15422           textbox' ForeColor and BackColor when the ComboBox' colors are
15423           changed. Change the border change in LayoutComboBox to only affect
15424           the textbox, not all the calculations there. Seems to fix most of
15425           #79436.
15426
15427 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15428
15429         * ComboBox.cs: Handle Home and End keys as well as all combinations of
15430           modifiers + navigation keys as input keys, enables advanced text
15431           selection in the combobox (like Shift+Left Arrow for instance).
15432           ComboTextBox now overrides Focused and returns whatever
15433           ComboBox.Focused returns, since it really should be focused
15434           whenever the ComboBox is. Fixes #80795. Also make the border around
15435           the text box one pixel bigger, as mentioned in #79436.
15436
15437 2007-03-20  Jackson Harper  <jackson@ximian.com>
15438
15439         * TreeView.cs: Don't offset the images, this was causing some
15440         artifacts when expanding/collapsing with images that were the
15441         exact height of the treenode.
15442
15443 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15444
15445         * TrackBar.cs: Query the theme for the correct value when the mouse
15446           moves and the thumb is pressed. 
15447         * Theme.cs: Added TrackBarValueFromMousePosition
15448         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
15449           implementation was updating the trackbar value when drawing, now
15450           the drawing methods only draw. Fixes #80900. Refactored the
15451           calculations out to TrackBarValueFromMousePosition and
15452           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
15453           according to the mouse position whenever it wants to. Changed the
15454           light coloured pen when drawing the thumb from ControlLight to
15455           ControlLightLight, because the ControlLight is the same colour as
15456           the background so the 3D effect is lost. 
15457
15458 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15459
15460         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
15461         defined. Fixes #80784.
15462
15463 2007-03-20  Marek Habersack  <mhabersack@novell.com>
15464
15465         * ContextMenuStrip.cs: align with the change introduced in
15466         revision 74664.
15467
15468 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15469
15470         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
15471         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
15472         in SetTopmost.
15473
15474 2007-03-19  Chris Toshok  <toshok@ximian.com>
15475
15476         * Control.cs (WmPaint): don't make use of the Handle property
15477         after an event is emitted, as the user could have closed the
15478         form/destroyed the control.  Store the Handle in a local variable
15479         and make use of that.  Fixes bug #80768.
15480
15481 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15482
15483         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
15484         behavior in X11 environments.
15485
15486 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15487
15488         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
15489         because on setter of topmost we dont call SetTopmost when handle is not
15490         created.
15491
15492 2007-03-20  Jackson Harper  <jackson@ximian.com>
15493
15494         * TextControl.cs: Need to use SelectionLength () not
15495         selection_length, since that var is reset to -1.
15496         - Draw the caret when we don't have focus.
15497         * TextBox.cs: The selectall actually doesn't occur until the first
15498         focus.
15499         * TextBoxBase.cs: Need to update the caret position after a
15500         selectall.
15501         
15502 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15503
15504         * ListView.cs: Enable scrolling when using Tile view.
15505
15506 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15507
15508         [Fixes #80902]
15509
15510         * XplatUIDriver.cs: Abstract SetOwner method created.
15511
15512         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
15513         must be implemented and was masked as todo.
15514
15515         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
15516         GWL_HWNDPARENT.
15517
15518         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
15519         cheking for null owner to remove transient. The SetTopmost will be change
15520         on a decond step.
15521
15522         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
15523         SetTopmost. Now owned forms will work properly in win32 and X11.
15524
15525 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15526
15527         * MdiWindowManager.cs: Update function name.
15528         * Form.cs: After closing a form MdiParent is always null.
15529         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
15530           better what it should do: necessary book-keeping when the form is
15531           closed, it should not close the form itself.
15532
15533 2007-03-19  Andreia Gaita  <avidigal@novell.com>
15534
15535         * ListViewItem.cs: Fix back and fore color. The subitems only
15536         use their own colors if they are set, otherwise use the listview's
15537         colors. Don't set default colors on constructor for subitem.
15538         Fixes #79315.
15539
15540 2007-03-19  Mike Kestner  <mkestner@novell.com>
15541
15542         * ListView.cs : make box selection for Details views with 
15543         FullRowSelect conform to MS behavior when clicking in the "item" 
15544         column and clicking outside the defined columns.
15545         [Fixes case 5-6 of #80374]
15546
15547 2007-03-19  Chris Toshok  <toshok@ximian.com>
15548
15549         * ScrollableControl.cs: create the controls from within the ctor,
15550         but don't actually add them until our handle is created.  this
15551         fixes a NRE possibility jpobst found (if you override OnLayout in
15552         a subclass, it's called before your ctor).  Also, add a
15553         IsHandleCreated guard to UpdateSizeGripVisibility as well.
15554
15555 2007-03-19  Jackson Harper  <jackson@ximian.com>
15556
15557         * TextBox.cs: Reduce the amount of invalidation we do.
15558         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
15559         some of them are true by default on MS.
15560         - Add some functions to reduce the amount of invalidates we do.
15561         * TextControl.cs: Less invalidation.
15562
15563 2007-03-19  Chris Toshok  <toshok@ximian.com>
15564
15565         [ Fixes #81773, and *seems* to fix #81553 as well ]
15566
15567         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
15568         AccumulateDestroyedHandles.  We need to do it *after* we send
15569         WM_DESTROY, as the user's code can access Control.Handle in
15570         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
15571         move the WM_DESTROY/zombie handling to before the call to
15572         XDestroyWindow.  For some reason without this ordering
15573         FormTest.RecreateHandle hangs.  This ordering is semantically
15574         equivalent, however, as XDestroyWindow is async anyway.
15575
15576 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
15577
15578         * RichTextBox.cs: Reset backcolor_set after setting default.
15579
15580 2007-03-19  Chris Toshok  <toshok@ximian.com>
15581
15582         * ScrollableControl.cs: the scroll position should not effect the
15583         canvas size.  commit patch from georgegiolfan@yahoo.com, which
15584         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
15585         
15586 2007-03-19  Chris Toshok  <toshok@ximian.com>
15587
15588         * ScrollableControl.cs: clean this up a bit.  create the
15589         scrollbars in the ctor and just show/hide them as needed.  Also,
15590         make hscroll_visible/vscroll_visible internal to Recalculate, and
15591         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
15592         everywhere else.  This seems to fix the scrollbars appearing
15593         beneath the content for me (i have *no* idea why that is,
15594         however.)
15595
15596 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
15597
15598         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
15599         some redundacy for stuff in Anchor and Dock that base will take care of.
15600         [Fixes #80762]
15601
15602 2007-03-19  Mike Kestner  <mkestner@novell.com>
15603
15604         * ListView.cs : make box selection for Details views without 
15605         FullRowSelect dependent on the text bounds, not item bounds.
15606         * ListViewItem.cs : add an internal property to obtain the TextBounds
15607         in Details view.  [Fixes case 1-4 of #80374]
15608
15609 2007-03-19  Andreia Gaita  <avidigal@novell.com>
15610
15611         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
15612         we're < 2.0. #78448 && #80316
15613
15614 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
15615
15616         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
15617         have the same style available as the previously selected one.  Also,
15618         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
15619
15620 2007-03-19  Jackson Harper  <jackson@ximian.com>
15621
15622         * TextControl.cs: Add an alignment property that all new lines
15623         will be given.
15624         - Make sure to use the align shift when calculating the line's X
15625         position.
15626         * TextBox.cs: Set the alignment on the document as well as on all
15627         the document lines.
15628
15629 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15630
15631         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
15632           throw if setting the parent of an mdichild that already has an
15633           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
15634           AssemblyProductAttribute in the assembly, use the type's namespace (as
15635           MS seems to do). CreateControl: don't create the handle if the control
15636           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
15637           create handle if the control is not a form. Change FocusInternal to
15638           virtual so that it can be overriden by Form.
15639         * TextBox.cs: Update call to FocusInternal.
15640         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
15641           form is not a toplevel form when it's a mdi child, so update is_toplevel
15642           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
15643           hasn't been created. Show (IWin32Window): Don't allow this overload for
15644           toplevel windows. CenterToParent/CenterToScreen/Select: create the
15645           handle as MS does. SetVisibleCore: if called on a MdiChild and the
15646           parent isn't visible yet, save the visibility and restore it when the
15647           parent is made visible.
15648         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
15649           methods, since the visibility of the scrollbars can be changed from
15650           several places, not only from AutoScroll.
15651           [Fixes #81179]
15652
15653 2007-03-19  Jackson Harper  <jackson@ximian.com>
15654
15655         * RichTextBox.cs: Enable shortcuts by default.
15656         * TextBoxBase.cs: Add conditional shortcuts.  
15657
15658 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
15659
15660         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
15661
15662 2007-03-19  Chris Toshok  <toshok@ximian.com>
15663
15664         [ Fixes bug #80604]
15665         
15666         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
15667         swallow the message we're waiting on, instead of delivering it, as
15668         this is only used for the WM_SHOWWINDOW raised from
15669         MapWindow/UnmapWindow, and the message needs to be generated
15670         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
15671         before doing the Map/Unmap.  Also make sure that the Hwnd is still
15672         alive after the message has been handled.
15673
15674         *before* the window is shown.
15675
15676         * Control.cs (CreateControl): guard a few more things inside the
15677         if (!is_created) block, as we might end up being called again -
15678         yay .net.
15679         (WmShowWindow): call CreateControl if we're showing the control.
15680
15681 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15682
15683         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
15684           controls without a handle if they have any parent with a handle. In
15685           Dispose add a check whether the handle is created or not before
15686           calling BeginInvoke, this removes the need of the extra disposing
15687           parameter (which was bogus anyway since it didn't prevent the
15688           invoke from happening, it only skipped the check for an existing
15689           handle, meaning that the invoke would call on an inexistent
15690           handle).
15691
15692 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
15693
15694         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
15695         appears in taskbar.
15696
15697 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
15698
15699         * MessageBox.cs:
15700         - Fixed a problem that dont show help button for messages with 3 buttons.
15701         - Refactory button size and position calculations, now dont use fixed 
15702         values, also fixed button sizes (#80043) and form's border space.
15703         - AddButton method created, now all other AddButton methods call this one.
15704         - Some other source code cosmetic changes.
15705
15706 2007-03-18  Jackson Harper  <jackson@ximian.com>
15707
15708         * RichTextBox.cs: Don't do this all fonts must match check if
15709         there is only one char selected.
15710
15711 2007-03-18  Jackson Harper  <jackson@ximian.com>
15712
15713         * TreeView.cs: ScrollWindow works properly now, so we don't need
15714         to screw around with the scroll area.  This fixes some artifacts
15715         when expanding and collapsing.
15716
15717 2007-03-18  Jackson Harper  <jackson@ximian.com>
15718
15719         * TextBoxBase.cs: Allow updating the selection position when the
15720         cursor is outside the textarea, but we have a capture.
15721         * TextControl.cs: A special case for when the cursor is outside
15722         the bounds of the TB.
15723         
15724 2007-03-18  Jackson Harper  <jackson@ximian.com>
15725
15726         * TextBoxBase.cs: Remove image pasting code for now.  There is no
15727         way to get an image on the clipboard right now anyways.
15728         * TextControl.cs:
15729         * RichTextBox.cs: Use the new RTF Picture class for pictures.
15730
15731 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
15732
15733         * MessageBox.cs:
15734         - Set window properties in constructor intead of on CreateParams.
15735         - Remove topmost from Window ExStyle.
15736         - Set ShowInTaskbar to false.
15737         - Set form border to FixedDialog.
15738         - Some cosmetic changes and remove unneeded comments.
15739         - It fixes itens 2,3 and 4 of bug #80043.
15740
15741 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
15742
15743         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
15744         none was explicitly set. Fixes part of bug #79949.
15745
15746 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
15747
15748         * ToolStripComboBox.cs: Add AutoComplete*.
15749
15750 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
15751
15752         * ToolStripComboBox.cs: Add FlatStyle.
15753
15754 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
15755
15756         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
15757         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
15758
15759 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15760
15761         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
15762           CheckBox.cs, RadioButton.cs, BindingSource.cs,
15763           DataGridColumnStyle.cs: Remove warnings.
15764
15765 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15766
15767         * Menu.cs: MergeMenu: Check menu argument for null before looping over
15768           it.
15769         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
15770           visibility of mdi child forms. FormSizeChangedHandler: update the
15771           maximized size if size has changed while maximized.
15772         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
15773           creating the handle.
15774         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
15775           avoid creating the handle if not created.
15776         * XplatUI.cs: Update debug output.
15777         * XplatUIStructs.cs: Added ToString's for a couple of structs.
15778
15779 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
15780
15781         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
15782         ProcessCmdKey().
15783         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
15784         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
15785         Implement keyboard shortcuts.
15786
15787 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
15788
15789         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
15790         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
15791         ColorDialog and all derived classes.
15792
15793 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
15794
15795         [ Fixes bug #79828 ]
15796
15797         * ToolBar.cs:
15798         - Rename ToolBarButtonInfor to ToolBarItem.
15799         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
15800         - Maintain an array of ToolBarItem, used instead of ToolBarButton
15801         collection to be able add same button more than one time on a toolbar.
15802         - Refactory all properties and methods to use ToolBarItem. 
15803
15804         * ToolBarButton.cs: 
15805         - Remove all propeties and methods that is now in ToolBarItem.
15806         - Rectangle propery now gets the rectangle from first ToolBarItem to
15807         mimic win32 behavior.
15808         - Size calculation and layout methods also removed.
15809
15810         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
15811         ToolBarItem instead of ToolBarButton to right drawing buttons when
15812         same button/separator was added more than one time to ToolBar.
15813
15814         * ThemeNice.cs: Same as above. 
15815
15816 2007-03-15  Andreia Gaita  <avidigal@novell.com>
15817
15818         * XplatUIX11.cs: Fire extra MouseMove events right after
15819         MouseDown and MouseUp, emulating win32's <censored> behaviour
15820         for apps that rely on it.
15821
15822 2007-03-15  Jackson Harper  <jackson@ximian.com>
15823
15824         * TextControl.cs:
15825         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
15826         it is drawn on the controls client window and there is no NC
15827         area.
15828         - Set the background color to gray on 2.0 when we are readonly.
15829
15830 2007-03-15  Chris Toshok  <toshok@ximian.com>
15831
15832         [ Fixes bug #81144 ]
15833         
15834         * XplatUIX11.cs: implement VirtualScreen independently of
15835         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
15836         property.
15837
15838 2007-03-15  Chris Toshok  <toshok@ximian.com>
15839
15840         * Hwnd.cs: add an internal field for the cached_window_state.
15841
15842         * XplatUIX11.cs: cache the window state, invalidating the cache
15843         (and thus re-querying the X server) only when we see an update to
15844         the _NET_WM_STATE property.
15845
15846 2007-03-15  Chris Toshok  <toshok@ximian.com>
15847
15848         * BindingSource.cs: get a lot of the unit tests working.
15849
15850 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
15851
15852         * Control.cs: Modify UpdateStyles to store distances when bounds >=
15853         0 instead of just bounds > 0.  [Fixes bug #80912]
15854
15855 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
15856
15857         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
15858         and methods.
15859
15860 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
15861         
15862         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
15863         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
15864         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
15865         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
15866
15867 2007-03-15  Chris Toshok  <toshok@ximian.com>
15868
15869         [ Fixes #81101 ]
15870         
15871         * Control.cs: add Ivan's fix for 81101, with a slight modification
15872         - you can set control.Target to null.
15873
15874 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
15875
15876         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
15877         HideDropDown, use Hide instead to prevent an NRE.
15878         [Fixes bug #81147]
15879
15880 2007-03-14  Jackson Harper  <jackson@ximian.com>
15881
15882         * TextBoxBase.cs: Mess with the creation stuff a little. We need
15883         to calculate the document before the handle is created, in some
15884         cases. (Actually just one case).
15885
15886 2007-03-14  Jackson Harper  <jackson@ximian.com>
15887
15888         * TextBoxBase.cs: Need to display the caret after letting the base
15889         wndproc handle the focus methods, because the caret display
15890         methods check the focus state.
15891         - Try to display the caret after updating it's position with SelectWord.
15892         - Don't need to do an immediate update on this recalc, since there
15893         will be an invalidate anyways.
15894
15895 2007-03-14  Jackson Harper  <jackson@ximian.com>
15896
15897         * TreeView.cs: Some workarounds so that we can match event order a
15898         little better.
15899
15900 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
15901
15902         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
15903         #80803. Avoid NullReferenceException when Control does not have
15904         parent. Fixed different blinkstyle issues. Only subscribe to Tick
15905         event a single time. Only draw error icon when control is created and
15906         visible. Fixes failing unit tests.
15907
15908 2007-03-14  Andreia Gaita  <avidigal@novell.com>
15909
15910         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
15911         Selecting events. Fire Leave and Enter events when changing tabs.
15912
15913 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
15914
15915         * TreeView.cs: Add TreeViewNodeSorter.
15916         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
15917
15918 2007-03-14  Chris Toshok  <toshok@ximian.com>
15919
15920         * Form.cs: go ahead and remove the RecreateHandles that jpobst
15921         removed earlier and I had him add back it.  It turns out metacity
15922         *does* in fact handle the MOTIF_WM_HINTS property changing, it
15923         just doesn't redraw the window titlebar until you resize the
15924         window.  This also means we aren't recreating the entire window
15925         hierarchy on X when you change this property.  And it looks better
15926         on windows, too.
15927
15928 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15929
15930         * ListViewItem.cs:
15931         * ListView.cs: Collecting selection information
15932         is now done in SelectedIndexCollection rather than in
15933         SelectedListViewItemCollection. This is done so we can
15934         have the selection information code in one single place
15935         (virtual mode selection information entirely depends on
15936         SelectedIndexCollection).
15937
15938 2007-03-13  Miguel de Icaza  <miguel@novell.com>
15939
15940         * ErrorProvider.cs: Add stubs for ISupportInitialize
15941
15942 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15943
15944         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
15945         in the right order with the right values, from the Checked property, 
15946         just as MS does (instead of triggering them from ListView).
15947
15948         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
15949
15950 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15951
15952         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
15953         the correct handler in OnItemCheck method (ItemCheckEventHandler 
15954         instead of EventHandler). This used to throw an InvalidCastException.
15955
15956 2007-03-13  Jackson Harper  <jackson@ximian.com>
15957
15958         * TextBoxBase.cs: Calculate the document before the handle is
15959         created, so there isn't an extra invalidate called.
15960
15961 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
15962
15963         * Form.cs: Don't set owner in ShowDialog until we are sure
15964         that we aren't going to throw an exception.  [Fixes bug #80773]
15965
15966 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
15967
15968         * TreeView.cs: Make it compile.
15969
15970 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15971
15972         * Control.cs: Another place we don't call SizeFromClientSize.
15973         * Form.cs: Another place we don't call SizeFromClientSize.
15974         [Fixes bug #81125]
15975
15976 2007-03-12  Jackson Harper  <jackson@ximian.com>
15977
15978         * TreeView.cs: Basically emulating some strangness here with
15979         exanding nodes and setting node positions when windows aren't
15980         created.
15981         - Also attempting to walk the node tree less than previously, and
15982         just use visible order calculations for determining offsets.
15983         - oops made scrolling backwards.
15984         * TreeNode.cs: We need to start nodes with a zero visible order,
15985         because the order calcs are based on the first nodes order.
15986
15987 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15988
15989         * Form.cs: Don't exit the program if RecreateHandle is called on
15990         the main form.
15991
15992 2007-03-12  Chris Toshok  <toshok@ximian.com>
15993
15994         * XEventQueue.cs: remove the use of PostQuitState.
15995
15996         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
15997         WM_QUIT message in GetMessage, return false (and if we're in the
15998         nested WaitForHwndMessage, repost the WM_QUIT message).
15999
16000 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
16001
16002         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
16003         or the MaximizeBox properties.  [Part of bug #80640]
16004
16005 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
16006
16007         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
16008         no links.
16009
16010 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
16011
16012         * ToolStripItem.cs: Fix some tests I broke by checking Visible
16013         instead of visible.
16014
16015 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
16016
16017         * FileDialog.cs: Use text of File name combobox to determine what
16018         files the user selected. Added tokenizer to parse the file names.
16019         Fixes bug #81123.
16020
16021 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
16022
16023         * Control.cs: We can't call SizeFromClientSize in the constructor,
16024         but we still need to do the same work, so make an internal version.
16025         [Fixes bug #80621]
16026
16027 2007-03-12  Jackson Harper  <jackson@ximian.com>
16028
16029         * TreeView.cs:
16030         * TreeNode.cs:
16031         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
16032         IsExpanded.
16033
16034 2007-03-12  Jackson Harper  <jackson@ximian.com>
16035
16036         * TextBoxBase.cs: Now that the handles are being created a little
16037         later, we need to make sure that the document is recalculated when
16038         the handle is created.
16039
16040 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
16041
16042         * Theme.cs: GetLinkFont abstract method added.
16043         
16044         * LinkLabel.cs: 
16045         - Remove CalcTrimRectangle, no longer needed.
16046         - Factor also remove, position issues must be fixed in libgdiplus.
16047         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
16048         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
16049         care about font used to draw links.
16050         - Set TabStop to true when control is "Selectable", control is selectable
16051         when have one or more links. Fixes #80501 (test case is also added).
16052         - Set the LinkArea values after links change, LinkArea values must be
16053         based in first link position and size, a test case was created.
16054         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
16055         the attribute must be true LinkArea.Length > 0. The same was applied to
16056         TabStop.
16057         
16058         * ThemeWin32Classic.cs: 
16059         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
16060         in draw method.
16061         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
16062         color change.
16063         - Draw focus rectangle for every parts focused, including parts that 
16064         is on another line, its because regions returns various rectangles
16065         and not only one. Needed to mimic W32 look.
16066         - Uses Graphics.Clip to delimite region painted, it mean that now 
16067         complete text is passed to DrawString, with this we solve layout
16068         issues without create another text renderer.
16069         - Uses Region.Intersect to fix some flickers problems, now only needed
16070         parts will redrawed.
16071         - This changes fixes #79614 and some other unreported issues, on Linux 
16072         some layout problems still remain, the problem is under 
16073         MeasureCharacterRanges but it is an libgdiplus bug.
16074
16075 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
16076
16077         * TextBox.cs: Set for foreground color.
16078         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
16079         this is already done in Control.
16080
16081 2007-03-10  Jackson Harper  <jackson@ximian.com>
16082
16083         * TextBox.cs: Set the background color, but reset the
16084         backcolor_set flag which is just for the user setting the
16085         background color.
16086
16087 2007-03-09  Chris Toshok  <toshok@ximian.com>
16088
16089         * Control.cs: really remove the call to XplatUI.SetVisible from
16090         CreateHandle(), like I said I did when I merged the branch.
16091
16092         * BindingSource.cs: implement some more of this stuff.
16093
16094 2007-03-09  Jackson Harper  <jackson@ximian.com>
16095
16096         * TextBox.cs: Don't explicitly set our background colors.
16097         * TextControl.cs:
16098         * TextBoxBase.cs: Draw readonly text.
16099         - Need to invalidate when backcolor or readonly are changed.
16100         
16101 2007-03-09  Jackson Harper  <jackson@ximian.com>
16102
16103         * TextBoxBase.cs: Don't set the forecolor until the handle is
16104         created.
16105         - Do not raise OnPaint, and removed some old debug code.
16106
16107 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
16108
16109         * ScrollableControl.cs: Fix mouse wheel scrolling.
16110
16111 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
16112
16113         * Control.cs: Wire up MouseDoubleClick event.
16114
16115 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
16116
16117         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
16118         top or bottom.
16119         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
16120         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
16121         item is added.  This logic was moved to ToolStrip.OnItemAdded.
16122         [Fixes bug #81090]
16123
16124 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16125
16126         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
16127
16128 2007-03-08  Jackson Harper  <jackson@ximian.com>
16129
16130         * TreeView.cs: Show the correct image for selected node (this used
16131         to work, not sure how the code got deleted). Also implemented 2.0 feature
16132         SelectedImageKey.
16133
16134 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16135
16136         * ListView.cs:
16137         * ListViewItem.cs: Cache index in items when retrieving them
16138         in VirtualMode.
16139
16140 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
16141
16142         * ToolStripItem.cs: Don't return the explicit_size if we are using 
16143         AutoSize.  Fixes invalidation issue when user has explicitly set a
16144         size and has AutoSize = true.
16145
16146 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
16147
16148         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
16149
16150 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16151
16152         * DataGridView.cs: Remove event handler from DataView when a
16153         DataTable is used as DataSource.
16154
16155 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
16156
16157         * Control.cs: Create internal setter for client_size to allow it to be
16158         set without triggering resizing code.
16159         * Form.cs: Calculate client_size in constructor, only change client_size
16160         in FormBorderStyle property if Handle has been created.
16161         [Fixes #80574, #80791]
16162
16163 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
16164
16165         * SystemInformation.cs: Add TerminalServerSession.
16166
16167 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
16168
16169         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
16170         TreeView code.
16171
16172 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
16173
16174         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
16175         Handle before we were supposed to.  Now checks ActivateOnShow property
16176         in Control.
16177         * Control.cs: Add internal ActivateOnShow property.
16178         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
16179         for ActivateOnShow.
16180         * Hwnd.cs Remove no longer needed no_activate field.
16181
16182 2007-03-07  Jackson Harper  <jackson@ximian.com>
16183
16184         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
16185         2.0 properties
16186         * DrawTreeNodeEventHandler.cs: Add
16187         * DrawTreeNodeEventArgs.cs: Correct default value.
16188         
16189 2007-03-07  Chris Toshok  <toshok@ximian.com>
16190
16191         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
16192         to be called before NativeWindow.WndProc.  Put the HwndCreating
16193         magic there to hook up our Hwnd's to handles.
16194
16195 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
16196
16197         * DataGridView.cs: Comment out debug code.
16198
16199 2007-03-07  Chris Toshok  <toshok@ximian.com>
16200
16201         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
16202         to make the rest of the world happy]
16203
16204         * Control.cs (CreateHandle): there's no need to call
16205         XplatUI.SetVisible here, it's effectively done by
16206         XplatUI.CreateWindow on X now, and always was on windows.
16207
16208         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
16209         shortcircuit out of the loop if we have a message loop running on
16210         this thread.
16211
16212         [Changelog from merge]
16213
16214         2007-03-05  Chris Toshok  <toshok@ximian.com>
16215
16216                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
16217                 causes handle creation.
16218
16219         2007-02-28  Chris Toshok  <toshok@ximian.com>
16220
16221                 * ApplicationContext.cs: Add a flag to make sure we only raise the
16222                 ThreadExit event once (ExitThreadCore can be indirectly called
16223                 from a few places.)  I don't like the additional flag, but it
16224                 makes the event ordering/count correct.
16225
16226                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
16227                 without locking the collection.  An enumerator doesn't give us any
16228                 protection from modification anyway.  Lock the thread hash and
16229                 replace the complicated enumerator loop with a foreach.
16230                 (Application.CloseForms): make internal so it can be called from
16231                 ApplicationContext.  This should probably be moved to MWFThread.
16232                 (Application.ExitThread): don't call MWFThread.Current.Exit()
16233                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
16234                 when the runloop exits (in response to WM_QUIT.)
16235                 (Application.RunLoop): add a comment (and check) for
16236                 context.MainForm being null after setting context.MainForm.Visible
16237                 = true.  This is because you're perfectly free to dispose of a
16238                 form in VisibilityChanged.  Chalk this up to another case where we
16239                 need to synchronously generate WM_ACTIVATE from Control.Show.
16240                 Also, add handling for WM_QUIT here so we'll exit the loop.
16241                 
16242                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
16243                 fact that we don't wait if we're only unmapping the whole_window
16244                 makes me a bit nervous, but it doesn't seem to cause any problems
16245                 yet.
16246
16247                 also, add a comment about the stupid, broken and wrong resetting
16248                 of PostQuitState to false in GetMessage().
16249
16250                 In PostQuitMessage, we need to add a WM_QUIT message to the
16251                 thread's queue.  We use the FosterParent to get the right
16252                 handle/hwnd/queue.
16253
16254                 Lastly, in SetVisible, we need to unmap both windows, since the
16255                 waiting only happens when we're unmapping the client window.  So
16256                 now, the *only* time we unmap just the whole_window is in the hack
16257                 for resizing a control to 0,0.
16258                 
16259         2007-02-21  Chris Toshok  <toshok@ximian.com>
16260
16261                 * Application.cs (CloseForms): rewrite this so that we don't
16262                 modify the list while we're traversing it.
16263
16264         2007-02-20  Chris Toshok  <toshok@ximian.com>
16265
16266                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
16267                 of OnHandleCreated.
16268                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
16269                 handle is created.  otherwise we'll create it here.
16270                 (VerticalScrollEvent): same here.
16271
16272                 * Application.cs (CloseForms): call Form.Dispose, don't post
16273                 WM_CLOSE_INTERNAL.
16274
16275                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
16276                 here. Application should Dispose() of the Form's.
16277
16278                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
16279                 WM_DESTROY as well.
16280                 (MapWindow,UnmapWindow): only actually do the waiting for
16281                 SHOWWINDOW if the control we're dealing with is a Form.
16282                 (CreateWindow): if the control isn't a form, SendMessage
16283                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
16284
16285                 * Control.cs (SetVisibleCore): always use is_visible here, not
16286                 value.  If we use value, we can end up re-setting something
16287                 visible if, for instance, you do Control.Hide() in a delegate
16288                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
16289
16290         2007-02-20  Chris Toshok  <toshok@ximian.com>
16291
16292                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
16293                 the message we need.  PeekMessage returning false should not be a
16294                 condition under which we exit the loop.
16295
16296         2007-02-15  Chris Toshok  <toshok@ximian.com>
16297
16298                 * Control.cs (Refresh): only refresh if we've got a handle and are
16299                 visible.
16300                 (CreateAccessibilityInstance): CreateControl() here.
16301                 (UpdateChildrenZOrder): complicate the code loop even more by
16302                 taking into account controls that haven't had their handle
16303                 created, and those that aren't visible.  But on the flip side,
16304                 simplify the code by splitting it into two loops.  one which
16305                 builds up the list of child controls we're interested in, and the
16306                 other that sets the z order of those children.
16307
16308         2007-02-14  Chris Toshok  <toshok@ximian.com>
16309
16310                 * Control.cs: Control.AccessibilityObject causes the control to be
16311                 created, not just the handle.
16312
16313         2007-02-14  Chris Toshok  <toshok@ximian.com>
16314
16315                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
16316                 problem on X where a window might have its handle created (and be
16317                 visible) while the window is unmapped.  calling XConfigureWindow
16318                 on an unmapped window is bad, and generates X errors.
16319
16320         2007-02-13  Chris Toshok  <toshok@ximian.com>
16321
16322                 * Control.cs (CreateHandle): don't loop over our children setting
16323                 their parent here.  do it when in WndProc when we're shown.
16324                 (UpdateChildrenZOrder): make this internal so we can call it from
16325                 ScrollableControl.
16326                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
16327                 creating its handle.  Also, remove the calls to PerformLayout from
16328                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
16329                 OnVisibleChanged only seems to be called directly here for the
16330                 toplevel control.  It's propagated down the window hierarchy by
16331                 calls to child.OnParentVisibleChanged.
16332                 (OnVisibleChanged): don't do layout here - it's done (oddly
16333                 enough, according to a glance at stack traces on ms.net..) in
16334                 ScrollableControl.
16335                 
16336                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
16337                 z order of our children before calling PerformLayout.
16338
16339         2007-02-12  Chris Toshok  <toshok@ximian.com>
16340
16341                 [big change, fixes #80020]
16342                 
16343                 * AccessibleObject.cs: we need to make owner internal again to fix
16344                 some of ControlAccessibleObject.
16345
16346                 * Control.cs: lots of changes here.  add support for WM_CREATE,
16347                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
16348                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
16349                 we create child controls.  leave the MonoTODO's for the
16350                 accessibility calls, but fix the exceptions so the tests pass.
16351
16352                 Add the InvalidOperationExceptions to Invoke methods, and remove a
16353                 couple of InvokeInternal methods we aren't using.
16354                 
16355                 Also, add a couple of CreateHandle calls in places where we know
16356                 the handles are being created but our code doesn't reference
16357                 .Handle.
16358
16359                 Make SetVisibleCore call OnVisibleChange if the handle isn't
16360                 created.  If the handle is created, we rely on XplatUI.SetVisible
16361                 generating the event synchronously.
16362                 
16363                 Lastly, make sure we don't use this.Handle inside CreateHandle,
16364                 because we can call back into client (and that code can dispose of
16365                 the control).
16366
16367                 * XplatUIStructs.cs: misc/cleanup.
16368
16369                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
16370                 although we don't populate the wParam properly.
16371                 (CreateWindow): generate WM_CREATE.
16372                 (MapWindow,UnmapWindow): make these calls synchronous, at great
16373                 performance expense (particularly in the unmap case), to match
16374                 win32 behavior.
16375
16376                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
16377                 to call it.
16378                 (set_MdiParent): don't recreate the handle unless it's been
16379                 created already.
16380                 
16381                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
16382                 it's created.
16383
16384                 * NativeWindow.cs: this is probably the weirdest part of the
16385                 patch.  We need a way to link up the window being created to the
16386                 WM_CREATE message.  Since we can only be creating one window at a
16387                 time on a given thread, we keep track of a per-thread reference so
16388                 we can dispatch it properly.  We also need to keep track of the
16389                 Hwnd currently being created so that the win32 backend doesn't
16390                 have problems.
16391                 
16392                 * XplatUIWin32.cs: a similar change to the one we made in
16393                 NativeWindow.cs.
16394
16395 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
16396
16397         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
16398         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
16399         to draw the menu shortcut string.
16400
16401 2007-03-07  Jackson Harper  <jackson@ximian.com>
16402
16403         * TreeNode.cs: Add the 2.0 collapse method.
16404
16405 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16406
16407         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
16408
16409 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16410
16411         * DataGridView.cs: Change DataSource will clear column and row
16412         lists. Call Invalidate() to reflect DataSource change.
16413
16414 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16415
16416         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
16417         and a new row is added to it.
16418
16419 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16420
16421         * DataGridView.cs: Add columns when DataSource is en empty list but
16422         is a System.Data.DataView (from a System.Data.DataTable).
16423
16424 2007-03-06  Andreia Gaita  <avidigal@novell.com>
16425
16426         * Label.cs: Implement AutoEllipsis (2.0)
16427
16428 2007-03-06  Jackson Harper  <jackson@ximian.com>
16429
16430         * TreeView.cs: Implement 2.0 TopNode setter property.
16431         - Use a local var instead of the skipped_nodes field for computing
16432         how many nodes to skip.  Otherwise we won't scroll because the
16433         valuechanged handler checks if skipped_nodes is equal to the new
16434         value.
16435         - Implement 2.0 Sort method.
16436         - Add useless 2.0 DoubleBuffer property
16437         - Implement 2.0 LineColors property.  Lets you change the color of
16438         the lines in the tree. Terribly useful for creating non cohesive
16439         desktops.
16440         - Implement 2.0 image key feature.
16441
16442 2007-03-06  Jackson Harper  <jackson@ximian.com>
16443
16444         * TreeView.cs: We can't get the bounds of the nodes before raising
16445         the AfterSelect event, because that event could change the node's
16446         bounds (scrolling, font change, etc).
16447
16448 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16449
16450         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
16451         * Form.cs: Don't recreate handle when creating FormWindowManager, just
16452           update window styles. In CreateParams us VisibleInternal instead of
16453           VIsible to get the actual visible flag set for this form.
16454         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
16455           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
16456           handle the case when the form is already maximized, in which case
16457           it should be restored. Fixes #81043.
16458
16459 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16460
16461         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
16462
16463 2007-03-05  Jackson Harper  <jackson@ximian.com>
16464
16465         * TreeViewHitTestInfo.cs: implement.
16466
16467 2007-03-05  Jackson Harper  <jackson@ximian.com>
16468
16469         * InternalWindowManager.cs: class status fix.
16470
16471 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16472
16473         * InternalWindowManager.cs: All windows that have a parent
16474         are confined to their parent when they're being moved.
16475         Fixes #80822.
16476
16477 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
16478
16479         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
16480         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
16481
16482 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16483
16484         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
16485           buttons invisible before deciding which ones should be visible
16486           (fixes minimize/maximize buttons showing up in toolwindows). Remove
16487           an unused variable.
16488         * InternalWindowManager.cs: Remove warning.
16489
16490 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16491
16492         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
16493         to throw an InvalidOperationException is virtual mode is being used.
16494
16495 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
16496
16497         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
16498         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
16499         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
16500         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
16501         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
16502         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
16503
16504 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16505
16506         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
16507           driver.KeyboardDelay from XplatUI.KeyboardDelay 
16508         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
16509           (patch by Sergey Volk)
16510
16511 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16512
16513         * ToolWindowManager.cs: Added, contains logic for
16514           tool windows.
16515         * CreateParams.cs: Add a few helper methods and an
16516           internal variable to know which control the CreateParams belongs
16517           to.
16518         * Control.cs: Call Form.ChangingParent when the
16519           parent is about to be changed.
16520         * XplatUIX11.cs: DeriveStyles (): Set
16521           caption_height for all windows that have captions and are children.
16522           Update to use ToolWindowManager instead of InternalWindowManager
16523           for ToolWindows.
16524         * XplatUIWin32.cs: Set fake window styles for all
16525           windows that have window managers.
16526         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
16527           now duplicated for mdi windows when they are
16528           maximized, first for the buttons the window itself has, then for
16529           the buttons that appear in the menu bar. Makes things a little
16530           easier). Updated UpdateWindowDecorations, SetWindowState and the
16531           mouse eventhandlers accordingly.
16532         * Form.cs: Add ChangingParent (), contains the
16533           logic of what should happen when the parent changes. In MdiParent
16534           don't set things that ChangingParent () is doing. When handling
16535           WM_CLOSE, we can close the form if there are any other modal forms
16536           and the current form is a descendent of the modal form.
16537         * InternalWindowManager.cs: A lot of refactoring,
16538           the title buttons are now extracted to a separate container class
16539           that takes care of all button code (clicks, tooltips, etc). Moved
16540           Iconic|Maximized|Normal Bounds properties to this class from
16541           MdiWindowManager, so that the window state logic can succeed for
16542           other than mdi wm's. Implemented general window state change logic.
16543           Moved CreateButtons to ThemeWin32Classic, since the theme might
16544           override which buttons are available when as well as the exact
16545           location.
16546         * FormWindowManager.cs: Added, contains logic for
16547           normal forms.
16548         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
16549           which buttons go where (and if they are at all visible). 
16550           Removed special handling of maximized windows, since they aren't special. 
16551           In DrawManagedWindowDecorations don't try to draw the text if it is
16552           empty.
16553         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
16554           use whatever the wm gives us.
16555
16556 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
16557
16558         * ButtonBase.cs: Add 2.0 properties.
16559         * Button.cs: Override Draw for 2.0.
16560         * Control.cs: Add Entered and Selected properties.
16561         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
16562         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
16563         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
16564         buttons.
16565         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
16566
16567 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
16568
16569         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
16570
16571 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
16572
16573         * XplatUIWin32.cs: Register a new class with Windows each time we get
16574         a new ClassStyle.  [Fixes bugs #79432, #80817]
16575         * Controls.cs: Set the correct ClassStyle in CreateParams.
16576         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
16577
16578 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
16579
16580         * ListView.cs: Add fireEvent argument to ReorderColumn since the
16581         ColumnReordered event must not be signaled when modifying DisplayIndex
16582         of a ColumnHeader. Added internal ReorderColumns method which takes
16583         care of drawing, and updating the internal DisplayIndex of the
16584         ColumnHeader. Added AddColumn method which is invoked from
16585         ColumnHeaderCollection when adding or inserting columns, and which
16586         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
16587         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
16588         Recalculated dispay indices after removing a ColumnHeader.
16589         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
16590         match MS. Allows last display index to be returned after ListView
16591         is disposed. Update actual location of ColumnHeader when DisplayIndex
16592         is modified.
16593
16594 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
16595
16596         * LinkLabel.cs: Improve CalcTrimRectangle.
16597         
16598         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
16599
16600 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
16601
16602         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
16603         get rectangle as a result value.
16604
16605 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
16606
16607         * LinkLabel.cs: Theres some diferences between rectangle return from 
16608         MeasureCharacterRanges and the area used for DrawString to fix this 
16609         CalcMeasurementFactor method was created, it calcules the diferences
16610         to be use later to adjust rectangle in draw operations. Fixes #80473.
16611         
16612         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
16613         to adjust draw rectangle.
16614
16615 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
16616
16617         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
16618         text and some other changes to reduce and optimize source code.
16619
16620 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
16621
16622         * RadioButton.cs: Implement 2.0 event.
16623         * RelatedImageListAttribute.cs: Implement new class.
16624
16625 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
16626
16627         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
16628
16629 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
16630
16631         * CheckBox.cs: Implement 2.0 functionality.
16632
16633 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16634
16635         * ListView.cs: Refactor Add and AddRange methods of
16636         ListViewItemCollection, to not update the ListView
16637         everytime an item is added in AddRange. Also move the update
16638         code to a new CollectionChanged method, and call it
16639         from other methods that need it as well (this should also fix some
16640         bugs when Sorting is used).
16641
16642 2007-02-27  Jackson Harper  <jackson@ximian.com>
16643
16644         * TextControl.cs: Try to never let the caret stay in a non-text
16645         tag.
16646         * TextBoxBase.cs: Update the caret.
16647
16648 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
16649
16650         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
16651         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
16652         delete POINT structure, duplicate of one in XplatUIStructs.
16653         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
16654
16655 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
16656
16657         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
16658         edit box since otherwise the Label would immediately be set (even if
16659         the user did not modify the label). In OnKeyDown set Handled to true
16660         if Return or Escape was pressed. In ColumnHeaderCollection unlink
16661         columns that are to be removed. In ListViewItemCollection unlink items
16662         that are to be removed.
16663
16664 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
16665
16666         * TextRenderer.cs: If we set a GDI clip region, we need to clear
16667         it when we are done.  [Fixes bug #80949]
16668
16669 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16670
16671         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
16672
16673 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16674
16675         * ListView.cs: I forgot to commit the changes for ListView 
16676         in my previous patch.
16677
16678 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16679
16680         * Clipboard.cs: Partially implement an overload of SetDataObject.
16681         * Form.cs: Implement ShowWithoutActivation.
16682         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
16683
16684 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16685
16686         This is a first set of changes to make the Virtual mode works,
16687         by avoiding the retrieval of ListViewItem instances until
16688         draw time.
16689
16690         * ListView.cs: Store item position in the ListView instead of the
16691         ListViewItem, this way we don't request the Bounds property of
16692         ListViewItem inside the ListView calculations, as well as cache the item
16693         size in item_size field. Store indexes instead of ListViewItem
16694         instances in the matrix used by icon view. Add a ItemMatrixLocation
16695         struct to hold the row and col info of the matrix info.
16696
16697         * ListViewItem.cs: Don't store the location anymore, and only cache
16698         the rectangles for GetBounds. Use the ListView.GetItemLocation
16699         method to retrieve the actual location.
16700
16701 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16702
16703         * TextRenderer.cs: Add clipping support, thanks to George.
16704         [Fixes bug #80949]
16705
16706 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
16707
16708         * ListViewItem.cs: Cancel label edit when item is removed from 
16709         ListView.
16710         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
16711         event before the edit textbox is displayed.  Added CancelEdit method
16712         which is used end to editing while ignoring the value set by the
16713         user. In EndEdit, set focus to ListView to avoid losing focus to
16714         other controls. In ListViewItemCollection.Clear, cancel editing of
16715         any of the items.  In Remove, cancel editing of item being removed.
16716         Avoid udplicate code by modifing RemoveAt to invoke Remove.
16717
16718 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
16719
16720         * FileDialog.cs: Update FSEntry when move is successful. Fixes
16721         bug #80948.  
16722
16723 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
16724
16725         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
16726         compatible with non X11 systems. Fixes #80901.
16727
16728 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
16729
16730         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
16731         whether the item should be unselected and reselect. We do no want this
16732         when we're starting to edit the label. Do not fire the 
16733         SelectedIndexChanged event from ListView when its already been fired
16734         by modifying ListViewItem.Selected. Fixes bug #80943.
16735
16736 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16737
16738         * TextRenderer.cs: Previos commit logic was backwards.
16739
16740 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16741
16742         * TextRenderer.cs: Don't add padding on MeasureText if we were
16743         sent the NoPadding flag.
16744
16745 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
16746
16747         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
16748         after DrawButton. To prevent image overlaps button borders SetClip and 
16749         ResetClip added before and after draw image. Fixes #79129.
16750
16751 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
16752
16753         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
16754         window size, it fix problem when you run under win32 that theres
16755         Size diferent than ClientSize. Also fix controls size and positions
16756         to mimic Win32. Fixes #80837.
16757
16758 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
16759
16760         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
16761         menu area to fix some problems for non X11 systems. Fixes #80613.
16762
16763 2007-02-22  Jackson Harper  <jackson@ximian.com>
16764
16765         * TreeNode.cs: When a node is expanded, set its is_expanded flag
16766         even if it doesn't have any children.
16767
16768 2007-02-22  Jackson Harper  <jackson@ximian.com>
16769
16770         * TreeView.cs: Calculate the top node 'on the fly', this
16771         eliminates issues where you need to click on the tree before
16772         scrolling it to get the top node computed correctly.
16773         * TreeNodeCollection.cs: We don't need to mess with the top node
16774         anymore.
16775
16776 2007-02-22  Jackson Harper  <jackson@ximian.com>
16777
16778         * DataGridViewRow.cs: Fix typo so height can actually be set.
16779         Patch by Peter Grimm.
16780
16781 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
16782
16783         * FileDialog.cs: Fixed support for renaming files and directories.
16784         * ListView.cs: Do not lose focus when edit is canceled. Process
16785         Escape as regular key (to prevent closing of dialogs).
16786
16787 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
16788
16789         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
16790         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
16791
16792 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
16793
16794         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
16795         did not modify label.
16796         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
16797         modified the text. Reset Label when user presses Escape in edit mode.
16798         Move focus to ListView after having cancelled or finished editing the
16799         label.
16800
16801 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
16802
16803         * ComboBox.cs: Removed unnecessary initializations. Marked items field
16804         private. Clear textbox when Text is set to null and SelectedIndex is
16805         already -1.
16806         * FileDialog.cs: Removed unnecessary initializations. Removed 
16807         workarounds for ComboBox bugs that are now fixed. Modified
16808         DefaultExt, InitialDirectory and Title property to change null to
16809         zero-length string in getters. Avoid directly accessing fields.
16810
16811 2007-02-20  Jackson Harper  <jackson@ximian.com>
16812
16813         * TextControl.cs: Remove RecalAlignments call, that was some
16814         debugging leftovers.
16815         - Don't use the line indent when we shouldn't.
16816         * RichTextBox.cs: Add support for paragraph left indents.
16817
16818 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16819
16820         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
16821         Seems like the class status pages doesn't catch params differences.
16822
16823 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
16824
16825         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
16826
16827 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
16828
16829         * ComboBox.cs: Setting Text should have no effect if item text of
16830         selected item exactly matches value. First lookup text using
16831         case-sensitive comparison, and fallback to case-insensitive comparison.
16832         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
16833         allow startIndex to be last index. Changed ArgumentOutOfRangeException
16834         paramname to match MS. Restart from first item if string is not found
16835         after startIndex. Fixed paramname of ArgumentNullException that is
16836         thrown for null value in ObjectCollection.Contains.
16837
16838 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
16839
16840         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
16841
16842 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16843
16844         * ListControl.cs: In SelectedValue use value.Equals to compare for
16845         equality instead of ==, otherwise it will fail for strings.
16846         Fixes #80794.
16847
16848 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16849         
16850         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
16851         since the caret won't show up unless ShowSelection is true. 
16852         Fixes #80795.
16853
16854 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16855
16856         * Application.cs: When disabling all forms but the main form, do not
16857           disable any descendants of the main form (such as mdi children or
16858           other parented forms). Fixes #80822 on Windows.
16859         * Form.cs: If we have a parent, set the WS_CHILD style.
16860         * Control.cs: Update the window styles if the control whose parent has
16861           changed is a form (the WS_CHILD style has to be switched).
16862
16863 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
16864
16865         * XplatUIStructs.cs: MsgUIState structure added.
16866
16867 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
16868
16869         * FileDialog.cs: Removed need for separate fileName field. On 2.0
16870         profile, do not check filename(s) for illegal character if filename(s)
16871         were set non-interactively but always check on 1.0 profile. Fixed NRE
16872          in DefaultExt and only strip off first leading dot. Improve exception
16873         message when invalid Filter is set. Do not ignore InitialDirectory if
16874         it does no exist. Store specified Title, and if empty use default
16875         title (depending on type of dialog). Added an internal DialogTitle 
16876         property for retrieving dialog title. Fixed logic of displayed dir to
16877         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
16878         string as its buggy.
16879         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
16880         FileName is a zero-length string (it can never be null). Override 
16881         DialogTitle property to set default title of dialog box.
16882         * SaveFileDialog.cs: Override DialogTitle property to set default
16883         title of dialog box.
16884
16885 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
16886
16887         * FileDialog.cs: Modify default text of filename and filetype labels
16888         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
16889         after we've updated the SelectedIndex. Fixes part of bug #80887.
16890         * SaveFileDialog.cs: Set text of filetype label.
16891
16892 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16893
16894         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
16895         label field. Needed by latest Jackson's fixes for ListView.
16896
16897 2007-02-16  Andreia Gaita  <avidigal@novell.com>
16898
16899         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
16900         print preview images.
16901
16902 2007-02-16  Jackson Harper  <jackson@ximian.com>
16903
16904         * ListView.cs: Make AfterLabelEdit work correctly.
16905         * FileDialog.cs: After changing the name of the folder, we have to
16906         make sure that it is created, or that we pop up an error because
16907         it already exists.
16908
16909 2007-02-16  Jackson Harper  <jackson@ximian.com>
16910
16911         * X11Dnd.cs: Implement aliases on mime handlers, so things like
16912         System.String are mapped to text.
16913         - Handle dataobjects, getting all the possible formats out of them
16914         - We dont need the drag event args before we give feedback. This
16915         allows feedback cursors to be immediate before selections have
16916         been converted.
16917
16918 2007-02-16  Jackson Harper  <jackson@ximian.com>
16919
16920         * TextBoxBase.cs: Modified the method for inserting images to
16921         taking a line and position instead of tag and position.
16922         * RichTextBox.cs: Handle PngBlip data by inserting the png image
16923         into the RTF file.
16924         * TextControl.cs: Allow images to be inserted as the first tag of
16925         a line.
16926         - Fix some off by one issues when we assume the first tag is a
16927         text tag, not an image tag.
16928
16929 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16930
16931         * ListView.cs: Set focus to ListView when ItemControl gets a
16932         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
16933         Fixes part of #80467.
16934
16935 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16936
16937         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
16938           validate Text input (if null or empty string reset Value to default
16939           value). Fixes #80830.
16940
16941 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16942
16943         * ListView.cs: Set owner as null for columns and items when
16944         Dispose is invoked. Fixes #80607.
16945
16946 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
16947
16948         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
16949         showing DropDowns, don't show a Grip when doing Flow layout.
16950         [This fixes the toolbox in PDN 2.72.]
16951         * ToolStripItem.cs: Add Anchor property and some internal properties to
16952         reduces needed changes to FlowLayout.
16953         * ToolStripOverflow.cs: Remove unused variable.
16954         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
16955         use it in the layout calculations.
16956
16957 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16958
16959         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
16960         reported in #79640.
16961         
16962         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
16963         size calculation.
16964
16965 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16966
16967         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
16968         MeasureString format, it can make button very large in some cases, it is
16969         strange but is what win32 do.
16970
16971 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16972
16973         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
16974         size calculation.
16975
16976         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
16977         rendering, the value is based on MenuAccessKeysUnderlined.
16978
16979 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16980
16981         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
16982         for most themes.
16983         
16984         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
16985         
16986         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
16987         and use MenuAccessKeysUnderlined instead.
16988
16989 2007-02-13  Andreia Gaita  <avidigal@novell.com>
16990
16991         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
16992         A selected control would not get a Focus call if:
16993                 - the default active control of the container is the same as
16994                   the one that was selected
16995                 - we are switching from one container to another
16996         Under these conditions, the container being selected already has
16997         an active_control, which is the same as the one being activated, 
16998         so set_ActiveControl would always return and not send the Focus
16999         call. Fix to check if the currently active control of the container
17000         is actually focused.
17001
17002 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
17003
17004         * StatusStrip.cs: Implement the spring layout.
17005         * ToolStripControlHost.cs: Make sure the hosted control's visibility
17006         always matches the host.
17007         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
17008         and TextAfterImage.
17009
17010 2007-02-13  Andreia Gaita  <avidigal@novell.com>
17011
17012         * Control.cs: Code reorganization only.
17013           - Reorganize the WndProc cases so that each case has it's own handling method, 
17014           to help with the no-line-numbering stack traces.
17015           - Formatting changes (it's vstudio's fault, really :p)
17016
17017 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17018
17019         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
17020           Thread.CurrentUICulture to match DateTimePicker's (and MS)
17021           behaviour.
17022
17023 2007-02-12  Jackson Harper  <jackson@ximian.com>
17024
17025         * RichTextBox.cs:
17026         * TextBox.cs: By default we have a non multiline document
17027         - use the multiline property instead of the internal variable
17028         * TextBoxBase.cs: Treat multiline and non multiline the same in
17029         most places.
17030         - Use the documents multiline flag instead of tracking it ourself
17031         * TextControl.cs: Attempt at getting multiline to match MS
17032         behavior.  Lines now track an offset, which is either their X or Y
17033         offset depending on whether or not we are in multiline mode.
17034         - Update all the methods to understand that lines have an X value.
17035         - Fix crash in Undo::Duplicate when empty lines are deleted.
17036
17037 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
17038
17039         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
17040         code moved to properties PreferredHeight and PreferredWidth. It solve the
17041         all problems when preferred sizes must be recalculated. Fixes #80801.
17042
17043 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
17044
17045         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
17046         font height when compatible_text_rendering is false. Partially fix #80801.
17047
17048 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
17049
17050         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
17051
17052 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
17053
17054         * Form.cs: Improved exception messages in ShowDialog.
17055
17056 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
17057
17058         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
17059         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
17060         if not set. Fixes bug #80764. Avoid accessing current_settings field
17061         directly.
17062
17063 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
17064
17065         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
17066         false.
17067
17068         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
17069         public in 2.0 and for easy maintenance and dont break compatibility it is 
17070         internal in 1.1.
17071         
17072 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
17073
17074         * ToolStripItem.cs: Implement using images from ImageList.
17075
17076 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17077
17078         * DateTimePicker.cs: Change default date-formatting culture from
17079           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
17080           seems to be the way MS does it.
17081
17082 2007-02-08  Andreia Gaita  <avidigal@novell.com>
17083
17084         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
17085         (the 6 was cut off on the right side)
17086
17087 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
17088
17089         * Form.cs: Tell MenuStrips to close when the form is clicked.
17090         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
17091         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
17092         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
17093         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
17094         support for Overflow, where items that do not fit are automatically
17095         reparented to a drop down menu.
17096         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
17097         Also: fixes bug #80747.
17098
17099 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17100
17101         * ComboBox.cs: Remove warning (unused code).
17102         * ScrollableControl.cs: Remove warning for 1.1 profile.
17103
17104 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17105
17106         * Form.cs: Remove a warning.
17107
17108 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17109
17110         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
17111           'g' specifier, not documented anywhere, but seems to always show up
17112           as a single space (might have something to do with the DateTime 'g'
17113           specifier, which is the era format, but since DateTimePicker can't
17114           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
17115           won't crash if the format has an unmatched quote. Now shows
17116           single-character formats correctly. Fixes #80744.
17117
17118 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
17119
17120         * StatusStrip.cs: Stretch property needs to call base.Stretch,
17121         not this.Stretch to fix stack overflow. [Fixes bug #80760]
17122
17123 2007-02-07  Chris Toshok  <toshok@ximian.com>
17124
17125         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
17126         background color.  it overwrites the background image we've
17127         already painted.  Fixes #80599.
17128
17129 2007-02-07  Chris Toshok  <toshok@ximian.com>
17130
17131         * DataGrid.cs: return immediately from Edit() when there are no
17132         columns.  Fixes #80662.
17133
17134 2007-02-07  Chris Toshok  <toshok@ximian.com>
17135
17136         * MessageBox.cs: fix #80625.  don't always show the Help button in
17137         2.0.  use the displayHelpButton parameter to determine if we
17138         should show it. Also, make the internal show_help field private.
17139
17140 2007-02-07  Chris Toshok  <toshok@ximian.com>
17141
17142         * Control.cs (SetVisibleCore): check in the proposed patch for
17143         80604, and set is_visible before calling CreateControl.
17144
17145 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
17146
17147         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
17148         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
17149         on it.
17150
17151 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
17152
17153         * MenuAPI.cs: hotkey_active internal field added, it is required because
17154         we need to know when hotkeys must be draw, before this change a keystate
17155         Navigating was used but we can have menu in navigating state without
17156         hotkeys. Fixes #80694.
17157         
17158         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
17159
17160 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17161
17162         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
17163           corresponding events and methods to be internal for 1.1 profile and
17164           public for 2.0 profile (required by SizeGrip).
17165         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
17166           implicit control list). Don't set the size nor the location of the
17167           SizeGrip anymore as it's not needed.
17168         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
17169           draw directly on the captured control (fixes #80656). Removed
17170           ShowGrip (it wasn't used anywhere), redraw (always true), added
17171           GetDefaultSize and GetDefaultRectangle to calculate defaults.
17172         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
17173           be called from SizeGrip.
17174
17175 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17176
17177         * Timer.cs: Throw ArgumentException if Interval <= 0.
17178
17179 2007-02-05  Jackson Harper  <jackson@ximian.com>
17180
17181         * TreeView.cs: We need to check scrollbar visibility when window
17182         visibility is updated, because non visible trees don't ever add
17183         scrollbars.
17184         * Cursor.cs: We want the override cursor to be reset to NULL when
17185         we set current cursor to the default cursor.
17186
17187 2007-02-05  Jackson Harper  <jackson@ximian.com>
17188
17189         * TextControl.cs: Don't have crlfs when we are non multiline.
17190         - Consolidate the line position.
17191
17192 2007-02-05  Jackson Harper  <jackson@ximian.com>
17193
17194         * X11Keyboard.cs: BACK+CTRL gets a special char code.
17195
17196 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17197
17198         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
17199           handling LeaveNotify->NotifyUngrab in order to send
17200           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
17201           after calling XUngrabPointer, so we call WindowUngrabbed directly
17202           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
17203         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
17204           MouseCaptureChanged correctly. Also create handles if changing
17205           Capture (matches MS behaviour).
17206
17207 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17208
17209         * SizeGrip.cs: Make the last change 2.0 only.
17210
17211 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17212
17213         * SizeGrip.cs: If resizing and the capture is lost, revert any size
17214           changes to initial size (fixes #80597).
17215
17216 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17217
17218         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
17219
17220 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17221
17222         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
17223           background) and only allow dragging if enabled. This way the
17224           sizegrip can be used to fill the open square that otherwise would
17225           have been shown in the bottom right corner of ScrollableControl
17226           when ScrollableControl is not suppose to support sizing.
17227         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
17228           sizegrip is shown and enabled, and hook up with necessary events.
17229
17230 2007-02-01  Chris Toshok  <toshok@ximian.com>
17231
17232         * DataGridTextBoxColumn.cs: clean up the
17233         GetFormattedString/GetColumnValueAtRow combination of functions.
17234         Also fix UpdateUI, and the initial state of
17235         IsInEditOrNavigateMode.
17236
17237         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
17238         aren't supposed to scroll the textbox here, we're supposed to
17239         scroll the datagrid.
17240
17241 2007-02-01  Chris Toshok  <toshok@ximian.com>
17242
17243         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
17244         setting the position.
17245
17246 2007-02-01  Chris Toshok  <toshok@ximian.com>
17247
17248         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
17249         here, since the most recent focus fixes keep us from generating
17250         the Leave event when our textbox gets focus.
17251         (Edit): we should be passing null for the column style's
17252         instantText parameter.
17253         
17254 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
17255
17256         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
17257         raised.  Fixes menu text/icons not showing up in PDN.
17258
17259 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17260
17261         * Control.cs: Remove code in constructor that makes every
17262         control with WS_CHILD set have initial location -1, -1.
17263
17264 2007-01-31  Jackson Harper  <jackson@ximian.com>
17265
17266         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
17267         XplatUIX11.
17268         * XplatUIX11.cs: Give teh keyboard to teh dnd.
17269
17270 2007-01-31  Jackson Harper  <jackson@ximian.com>
17271
17272         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
17273         - Remove some debug code.
17274
17275 2007-01-31  Jackson Harper  <jackson@ximian.com>
17276
17277         * XplatUIX11.cs: If you set the override cursor during a grab, it
17278         should actually override the grab cursor.  This comes into play
17279         when you are setting custom cursors in a DND feedback method.
17280
17281 2007-01-31  Jackson Harper  <jackson@ximian.com>
17282
17283         * X11Dnd.cs: Add support for handling the QueryContinue and
17284         GiveFeedback events.
17285         - Cancel drag and drop actions when the escape key is clicked.
17286         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
17287         can handle the ESCAPE key.
17288         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
17289         done when dnd events are continued after the button is released.
17290         - Add a new helper method so that dnd can translate key events.
17291
17292 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
17293
17294         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
17295         make it more obvious what is happening.
17296
17297 2007-01-30  Jackson Harper  <jackson@ximian.com>
17298
17299         * XplatUIX11.cs: Don't break when handling button release in drag
17300         and drop operations. We need that BUTTONUP message to get through
17301         so capture is released.
17302         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
17303         this is handled automatically when the mouse is down.
17304
17305 2007-01-30  Jackson Harper  <jackson@ximian.com>
17306
17307         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
17308         is closed, so we need to make sure that we aren't changing the
17309         dialog result when the OK (Open or Save) button has been clicked
17310         and we are closing the window ourselves.  Note we don't need to
17311         worry about the cache being written in this case, because it was
17312         already done in the previous FilOk call.
17313
17314 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17315         
17316         * DateTimePicker.cs: Remove a warning.
17317         * ComboBox.cs: Remove a couple of warnings.
17318
17319 2007-01-29  Chris Toshok  <toshok@ximian.com>
17320
17321         * XplatUIX11.cs: don't crash, and remove the icon if the user has
17322         set one, if SetIcon is passed a null icon.
17323
17324 2007-01-29  Andreia Gaita  <avidigal@novell.com>
17325
17326         * TextBox.cs: Redraw when the password characters changes
17327         * TextControl.cs: Check if textbox has a password char and draw 
17328         a line of password chars instead of the text in the line. LineTag gets 
17329         an extra Draw() method which allows document.Draw to override the text 
17330         that will be drawn. Removes 1024 char limitation on length of passworded 
17331         lines.
17332
17333 2007-01-29  Jackson Harper  <jackson@ximian.com>
17334
17335         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
17336         single chars is not.
17337
17338 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
17339
17340         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
17341         one pixel.  Fix a StackOverflowException caused by an overload wrongly
17342         calling itself.
17343
17344 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
17345
17346         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
17347         also remove ProcessArrowKey and put the code inside ProcessKeys.
17348
17349 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
17350
17351         * PaddingConverter.cs: Added.
17352
17353 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17354         
17355         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
17356         ShowPanels is false (fixes #80600). Only draw up to 127 characters
17357         of text (fixes #80601). For panels clip the text to draw to the
17358         panel (fixes #80603).
17359
17360 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17361
17362         * ComboBox.cs: Fixed implementation of ResetText.
17363
17364 2007-01-25  Jackson Harper  <jackson@ximian.com>
17365
17366         * TextControl.cs: For the last char of a line we need to use the
17367         line size, not that chars width, since it won't actually be
17368         computed since the right side of a char is based on the start of
17369         the left side of the next char, and the next char does not exist.
17370
17371 2007-01-25  Chris Toshok  <toshok@ximian.com>
17372
17373         * Splitter.cs: fix the new unit tests, and reindent some switch
17374         statements.
17375
17376 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17377
17378         * ComboBox.cs: Implemented 2.0 methods and events.
17379         * TextBoxBase.cs: Added OnTextUpdate, so that
17380         ComboBox.ComboTextBox can inform ComboBox of it.
17381
17382 2007-01-25  Jackson Harper  <jackson@ximian.com>
17383
17384         * TextControl.cs: Respect ShowSelection when deciding whether or
17385         not to display the caret, this allows comboboxes to have carets
17386         when the combotextbox does not have focus.
17387
17388 2007-01-25  Jackson Harper  <jackson@ximian.com>
17389
17390         * TextControl.cs: Add a Suspend/Resume for updating, basically the
17391         same as the Suspend/Resume for recalc, except this will do actual
17392         Invalidates.
17393         - New Undo manager, works much like the MS version.
17394         - Implemented Redo
17395         * TextBoxBase.cs: The Cut operation is undoable.
17396
17397 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17398         
17399         * TextBoxBase.cs: Don't antialias text. Makes it look way better
17400         on Windows (no difference on Linux).    
17401
17402 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17403
17404         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
17405         we don't want to activate any windows. Fixes #79433.
17406
17407 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
17408
17409         - ButtonBase.cs: Fix capitalization of parameter: disposing.
17410         [Fixes bug #80609]
17411
17412 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
17413
17414         * FileDialog.cs:
17415         - Move to using System.ComponentModel.EventHandlerList
17416         - Replace Refresh with Invalidate
17417         - Clear the mime filecache on closing
17418         - Some other memory reducing work. After beeing closed FD now uses
17419           only about 300 KB for the fdo mime stuff plus the memory of the
17420           cached icons.
17421         * Mime.cs: Changed coding style and removed unnecessary commented
17422         code. Some more memory memory reducing work.
17423
17424 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17425
17426         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
17427         a few other missing 2.0 properties.
17428         * Theme.cs: Added DrawFlatStyleComboBox.
17429         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
17430
17431 2007-01-24  Chris Toshok  <toshok@ximian.com>
17432
17433         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
17434         wake_waiting flag, not just when there's data to be read.  if we
17435         don't, then future wakeup's won't reach us and we'll be doomed to
17436         wait for the entire 1 second timeout forever (unless there are X
17437         events to be had).
17438
17439 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
17440
17441         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
17442         until you pass Items.Count, not Items.Count - 1 like 1.1.
17443
17444 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
17445
17446         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
17447
17448 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
17449
17450         * ToolStripContainer.cs: The recent Dock fix exposed that I was
17451         adding the panels in the wrong order.
17452
17453 2007-01-24  Jackson Harper  <jackson@ximian.com>
17454
17455         * TextBoxBase.cs: When we move the caret we also need to move the
17456         selection, this fixes some random crashing after doing select
17457         text, unselect, delete a char, paste.
17458
17459 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17460
17461         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
17462
17463 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
17464
17465         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
17466         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
17467         * ToolBar.cs: Force redraw in BackgroundImageChanged.
17468
17469 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
17470
17471         * ToolBar.cs:
17472         - Implement support for vertical toolbars. Fixes #80539;
17473         - Call LayoutToolBar when resize, it fix some other problems in layout.
17474         - Rename requested_height to requested_size, as we can have width on it
17475         when toolbar is vertical.
17476         - Create a private property "Vertical" that uses Dock to verify when 
17477         toolbar is vertical or not.
17478         - Set ControlStyles when change Dock property.
17479         - Refactory in LayoutToolBar to have better variables names and to support
17480         vertical toolbars.
17481         - Fixes default value for ButtonSize when button count is equal zero, size
17482         must be (39, 36) test case writed.
17483
17484 2007-01-23  Chris Toshok  <toshok@ximian.com>
17485
17486         * Control.cs: fix the checks so that they work correctly for mdi
17487         parents/children.
17488
17489 2007-01-23  Chris Toshok  <toshok@ximian.com>
17490
17491         * Control.cs: ControlCollection seems to have super-secret
17492         abstraction breaking knowledge of Mdi containers.  allow MdiClient
17493         to add toplevel controls.
17494
17495 2007-01-23  Chris Toshok  <toshok@ximian.com>
17496
17497         * Control.cs: throw an ArgumentException if a toplevel control is
17498         added to our control collection from ControlCollection.Add, as
17499         well as from ControlCollection.IList.Add.  This fixes the
17500         ControlSetTopLevelTest.TestTopLevelAdd unit test.
17501
17502         Also, in ControlCollection.IList.Add, don't through an
17503         ArgumentNullException, throw an ArgumentException, when value ==
17504         null.  This matches MS.
17505
17506 2007-01-23  Chris Toshok  <toshok@ximian.com>
17507
17508         * BindingSource.cs: initial, incomplete, implementation of
17509         BindingSource.
17510
17511 2007-01-23  Jackson Harper  <jackson@ximian.com>
17512
17513         * TextControl.cs:
17514         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
17515         that I can fix a broken unit test (TextBoxTest::ClearUndo)
17516         
17517 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
17518
17519         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
17520
17521 2007-01-23  Andreia Gaita  <avidigal@novell.com>
17522
17523         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
17524         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
17525         IndexOfKey() for 2.0
17526
17527 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17528
17529         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
17530         to prevent it from changing z-order.
17531         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
17532         leave UI updates in MdiWindowManager.
17533         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
17534         1 sized (NC handling goes weird on Linux otherwise).
17535         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
17536         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
17537         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
17538         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
17539         and SetWindowState(s) to allow for changing the size of an activated child
17540         before activating it (reduces a lot of flicker).
17541
17542 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
17543
17544         * Form.cs: Changing FormBorderStyle has different semantics based
17545         on whether the Form is visible or not.  If not visible, don't change
17546         the Size.  But InvalidateNC needs to be called to force the window
17547         to pick up the changes and redraw itself.  [Fixes bug #80574]
17548
17549 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
17550
17551         [Moma work]
17552         * ContainerControl.cs: ProcessCmdKey.
17553         * ErrorProvider.cs: new constructor.
17554         * Form.cs: fix AutoValidateEvent compiler warning.
17555         * Label.cs: fix OnAutoSizeChanged compiler warning.
17556         * MenuStrip.cs: fix CanOverflow compiler warning.
17557         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
17558         * TextBox.cs: Dispose.
17559         * ToolStrip.cs: CanOverflow, re-enable double buffering.
17560         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
17561         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
17562         * ToolStripItem.cs: Overflow, RightToLeft properties.
17563
17564 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17565
17566         * Form.cs: Move the layout of the main form to MdiWindowManager.
17567         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
17568         do a layout of the main window to update MdiClient's client area to
17569         the right area. Fixes #80533. Remove the calculation of nc size, 
17570         it was just wrong and the correct one is the same as for 
17571         InternalWindowManager. 
17572
17573 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
17574
17575         * Control.cs: Setting Anchor or Dock needs to reset the other
17576         to its default.  [Fixes bug #80556]
17577
17578 2007-01-20  Chris Toshok  <toshok@ximian.com>
17579
17580         * CheckedListBox.cs: class status changes.
17581
17582         * ScrollableControl.cs: same.
17583
17584         * RichTextBox.cs: same.
17585
17586         * ContainerControl.cs: same.
17587
17588         * ListView.cs: same.
17589
17590         * NotifyIcon.cs: same.
17591
17592         * MenuStrip.cs: same.
17593
17594         * RadioButton.cs: same.
17595
17596         * CheckBox.cs: same.
17597
17598         * PrintPreviewDialog.cs: same.
17599
17600         * Form.cs: same.
17601
17602 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
17603
17604         * TreeNode.cs: Apply Alan's patch for Name property.
17605
17606 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17607         
17608         * Form.cs: Implemented SizeGripStyle.
17609         * SizeGrip.cs: Check for minimum and maximum size for the
17610         control being resized and only resize if size has actually
17611         changed.
17612
17613 2007-01-19  Chris Toshok  <toshok@ximian.com>
17614
17615         * DataGridColumnStyle.cs: stop setting _readonly in the
17616         PropertyDescriptor setter.  fixes a unit test failure.
17617
17618         also, rename ParentReadOnly to TableStyleReadOnly, and have it
17619         just consult our table style (if we have one).  We don't need to
17620         consult the datagrid readonly attribute because that's passed in
17621         as the _ro arg to Edit.  this simplifies things a little.
17622         
17623         * DataGrid.cs: use CurrentColumn instead of
17624         current_cell.ColumnNumber just to simplify some of the code.
17625
17626         switch the order of some things in the CurrentCell setter to keep
17627         the previous cell from getting a textbox again -
17628         EnsureCellVisibility causes scrolling to happen, which calls Edit.
17629         So we need to set the new cell before calling it.
17630         
17631         call Edit in OnEnter, as does Microsoft.
17632         
17633         also, make sure the current table style isn't the one we create
17634         initially when checking to see if it's different than the one
17635         we're setting it to in BindColumns (this fixes #80421).
17636
17637         * GridTableStylesCollection.cs: table styles can have "" for a
17638         mapping name.  part of the fix for #80421.
17639
17640         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
17641         Edit significantly.
17642
17643 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17644
17645         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
17646         and less GDI object leaky-er.
17647
17648 2007-01-18  Andreia Gaita  <avidigal@novell.com>
17649
17650         * LinkLabel.cs: Add opaque control style
17651
17652 2007-01-18  Jackson Harper  <jackson@ximian.com>
17653
17654         * TextControl.cs: Calculate width properly.
17655         - Don't store the tag's X offset, this can be figured out very
17656         easily.
17657         - When getting the caret tag make sure to get the last empty tag.
17658
17659 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17660
17661         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
17662         [Fixes bug #79959]
17663
17664         * Control.cs: Color.Empty shouldn't count for previous transparent
17665         redraw changes.
17666
17667 2007-01-18  Jackson Harper  <jackson@ximian.com>
17668
17669         * TextBox.cs:
17670         * RichTextBox.cs:
17671         * TextControl.cs: Starting to merge in some pieces of my older
17672         undo work.  Basically just some slight cleanup of the undo API.
17673
17674 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17675
17676         * TrackBar.cs: Fix signature of RightToLeftLayout.
17677         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
17678         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
17679         * Application.cs: Implemented UseWaitCursor.
17680
17681 2007-01-18  Jackson Harper  <jackson@ximian.com>
17682
17683         * TextControl.cs: We can't skip tags if any part of the tag is
17684         visible.
17685
17686 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17687
17688         * ContainerControl.cs: Override OnLayout.
17689
17690 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17691
17692         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
17693
17694         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
17695         everything else.
17696
17697 2007-01-18  Chris Toshok  <toshok@ximian.com>
17698
17699         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
17700         (leftover from the container_selected days, I'd wager).  fixes bug
17701         #80546.
17702
17703 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17704
17705         * Control.cs: Apply patch from George to fix the new testcase on
17706         bug #80451.  We can't just check for Color.Transparent, we need 
17707         to check if the back color's alpha channel is < 255.
17708
17709 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17710
17711         * Form.cs: Move setting show_icon = true to before the constructor
17712         so that the base constructor has that information when it calculates
17713         the form's size.  Was causing forms to be (6, 6) bigger than they
17714         were supposed to be.  Thanks for catching this Rolf!
17715
17716 2007-01-18  Jackson Harper  <jackson@ximian.com>
17717
17718         * TextControl.cs: When replacing a selection we need to invalidate
17719         from the initial selection start, because selection start is moved
17720         to the end of the replacement.
17721
17722 2007-01-18  Andreia Gaita  <avidigal@novell.com>
17723
17724         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
17725
17726 2007-01-18  Chris Toshok  <toshok@ximian.com>
17727
17728         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
17729         I just added.
17730
17731 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
17732
17733         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
17734         layout methods and properties from ToolBarButton must be available
17735         into ToolBarButtonInfo.
17736
17737 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
17738
17739         * Control.cs: If the control has a transparent background, we
17740         need to refresh it when it moves and when it's parent's background
17741         image changes.  [Fixes bug #80451]
17742
17743 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
17744
17745         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
17746
17747 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
17748
17749         * XplatUIWin32.cs: Implement proper double buffering for Windows.
17750         [Fixes bug #80447, and probably speeds up things as well]
17751
17752 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17753
17754         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
17755         * XplatUIWin32.cs: We need to recalculate NC size after changing 
17756         window style to toolwindow (otherwise the client rectangle will be
17757         3 pixels to small for some reason).
17758         * MdiWindowManager.cs: Revert NC size calculations to match how
17759         they are calculated only based on window styles (to match
17760         Win32AdjustWindowRectEx, since otherwise when setting size or 
17761         location, Control will call Win32AdjustWindowRectEx to update client 
17762         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
17763         calculate a different value of client size causing another paint 
17764         (and flickering))
17765         * InternalWindowManager.cs: When moving or resizing a window only
17766         update size or location if they actually changed.
17767         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
17768         (seems to match Windows behaviour better). Cleaned up 
17769         ManagedWindowDecorations to draw what's needed and nothing else
17770         (was drawing borders and lines where they shouldn't be)
17771         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
17772         (style = 0xFFFF) and takes into account caption height when 
17773         calculating window rectangle.   
17774
17775 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
17776
17777         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
17778         can be added to toolbar multiple times, we need to maintain a list of 
17779         button information for each positions.
17780
17781 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
17782
17783         * ToolBar.cs: Some small stetic changes.
17784
17785 2007-01-16  Jackson Harper  <jackson@ximian.com>
17786
17787         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
17788         that allow us to have nested recalc = false blocks.
17789         - Add paste support for images in the RichTextBox
17790         * RichTextBox.cs: flush the text after the color is changed, so
17791         the change takes effect.
17792         - Use SuspendRecalc
17793         - Some extra debugging info
17794         * TextControl.cs: Tags no longer track their length, it is just
17795         computed from the next tags length, this makes things a little
17796         simpler and reduces places that we have to track length changes.
17797         - Refactored the linetag class a little so we could make it
17798         a base class for different kinds of tags
17799         - Created a image tag, a tag that can have a single image inserted
17800         into it
17801         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
17802         that we can call suspend multiple times.
17803         - Add some debugging methods
17804
17805 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17806
17807         * MdiClient.cs: Add ActivatePreviousChild for 
17808         mdi child window navigation.
17809         * Form.cs: Use MdiClient.ActivateNextChild/
17810         ActivatePreviousChild instead of Form.SelectNextControl
17811         to select the next/previous child since 
17812         SelectNextControl doesn't do it in the same order
17813         as mdi children should do it.
17814
17815 2007-01-16  Chris Toshok  <toshok@ximian.com>
17816
17817         * Control.cs: remove container_selected field.
17818
17819 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17820
17821         * MdiClient.cs: Update main form's ActiveChild when
17822         updating keyboard focus for the mdi child.
17823
17824 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
17825
17826         * Control.cs: PreferredSize fix.
17827
17828         * Form.cs: Add several 2.0 events, properties, and methods.
17829
17830 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
17831
17832         * Form.cs: Provide meaningful message when MdiParent is assigned a
17833         Form that is not an MdiContainer.
17834
17835 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17836
17837         * MdiClient.cs: Update main form's ActiveChild when
17838         activating a mdi child.
17839
17840 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17841
17842         * MdiWindowManager.cs: Fix NRE when merging menus and main form
17843         doesn't have a menu.
17844
17845         * Form.cs: Request NCRecalc after creating a mdi child window.
17846         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
17847         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
17848         
17849         * MdiClient.cs: Add new method SendFocusToActiveChild that either
17850         sends keyboard focus to the active child, or to the MdiClient
17851         if there are no child forms.
17852         
17853 2007-01-15  Chris Toshok  <toshok@ximian.com>
17854
17855         * ListView.cs: drop the *Internal overrides, just do our work in
17856         ItemControl's WndProc instead.
17857
17858         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
17859         of the various controls, and forward the events properly (in the
17860         same manner as MS) from the textbox to the UpDown.  Also the
17861         ActiveControl of the UpDownBase gets set properly now.  Finally,
17862         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
17863
17864         * NumericUpDown.cs: set Text in the ctor.
17865
17866         * DomainUpDown.cs: call UpdateEditText in the ctor.
17867         
17868         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
17869         so even a Selectable = false textbox can be focused if you click
17870         in it.  Go figure.
17871
17872         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
17873         just add their handling in their respective WndProc's.  Also add
17874         an explicit FocusInternal method that doesn't consult CanFocus
17875         before calling Select(this).
17876
17877         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
17878         do our work in WndProc instead.
17879
17880         * TabControl.cs: same.
17881
17882         * ComboBox.cs: same.
17883
17884 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
17885
17886         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
17887         Fixes #80006.
17888
17889 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17890
17891         * ListViewItem.cs:
17892         * ThemeWin32Classic.cs: Don't draw the item text outside
17893         item bounds in Details view, as well as use trimming.
17894         Fixes bug #80376.
17895
17896 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
17897
17898         * Form.cs: Implement Form.ShowIcon.
17899         
17900         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
17901         null, which when combined with the DlgModalFrame window style removes
17902         the icon from the title bar.
17903
17904 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
17905
17906         * Control.cs: Call OnMouseClick after OnClick. (2.0)
17907
17908 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
17909
17910         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
17911         menu when mdi child windows theres a menu, uses insert to get icon
17912         at first position. Partially fix #80006.
17913
17914 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
17915
17916         * Clipboard.cs: Implement 2.0 methods.
17917
17918 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
17919
17920         * Menu.cs: Implement Insert method of MenuItemCollection class
17921         to fix MenuMerge.
17922
17923 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17924
17925         * ListView.cs: Implement 2.0 FindItemWithText method.
17926
17927 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
17928
17929         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
17930         to calculate menu bar size. Fixes #80290.
17931
17932 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
17933
17934         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
17935
17936 2007-01-11  Chris Toshok  <toshok@ximian.com>
17937
17938         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
17939         initial form.
17940
17941 2007-01-11  Chris Toshok  <toshok@ximian.com>
17942
17943         * LinkLabel.cs: make sure to call base.Select in our Select method
17944         if it turns out we're going to be selected (i.e. if we have a link
17945         that is going to receive focus).  That way our container's
17946         ActiveControl is updated properly.
17947
17948 2007-01-11  Chris Toshok  <toshok@ximian.com>
17949
17950         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
17951         they have 1 or more links.  this fixes the crash gert reported.
17952
17953 2007-01-11  Andreia Gaita  <avidigal@novell.com>
17954
17955         * ContainerControl.cs: Remove ContainerSelected flag, not needed
17956         anymore.
17957
17958         * Control.cs (Controls.Add): Check if control to be added to the collection
17959         is a top level control, and throw an ArgumentException if it is.
17960         Remove ContainerSelectedFlag, not needed anymore.
17961
17962         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
17963         top most control doesn't activate the form. This fixes a problem in the
17964         MessageBox, where the default button wouldn't get focus because the form
17965         was activated before being Loaded - when the Owner is set, SetTopMost is
17966         called, and it would activate it.
17967
17968 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
17969
17970         * Button.cs: When clicked and setting the parent form's DialogResult,
17971         use FindForm instead of Parent, since parent could be a container
17972         control and not the Form.  Fixes bug #80495.
17973
17974 2007-01-10  Chris Toshok  <toshok@ximian.com>
17975
17976         * Form.cs: move the call to SendControlFocus into the same
17977         is_loaded check.
17978
17979 2007-01-10  Chris Toshok  <toshok@ximian.com>
17980
17981         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
17982         It breaks in the face of the new ActiveControl stuff, and should
17983         be unnecessary.
17984
17985         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
17986         activecontrol's focus if it's not already set, after we set
17987         ActiveControl, but before we call OnActivated.  Re-fixes #79667
17988         after the previous focus/active control fixes regressed it.
17989
17990         * Control.cs: reindent some code.
17991         
17992 2007-01-10  Chris Toshok  <toshok@ximian.com>
17993
17994         * Splitter.cs: clearing some outstanding changes from my tree.
17995         Replace all accesses (not writes) to the internal dock_style field
17996         with the Dock property.
17997
17998 2007-01-10  Chris Toshok  <toshok@ximian.com>
17999
18000         * Control.cs: make FireEnter, FireLeave, FireValidating, and
18001         FireValidated virtual.
18002
18003         * Form.cs: override and don't chain up calls to FireEnter and
18004         FireLeave.
18005
18006 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18007
18008         * ListView.cs: Add more text padding space when using
18009         auto resize for columns (the previous value didn't work fine).
18010
18011         * ThemeWin32Classic.cs: Update text position inside columns,
18012         to match the appeareance of .Net.
18013
18014         * ColumnHeader.cs: When using auto resize, only the Width should
18015         depend on the sub items, not the Height. Also, set width after
18016         auto resizing (the value of Width should never remain as -1 or -2).
18017
18018 2007-01-10  Chris Toshok  <toshok@ximian.com>
18019
18020         * Application.cs: fix compilation errors when debug is enabled.
18021
18022 2007-01-10  Chris Toshok  <toshok@ximian.com>
18023
18024         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
18025         add some nice ascii art pictures and explanation of the process).
18026         (GetMostDeeplyNestedActiveControl): new utility function we need
18027         because our ActiveControl can refer to a child container with its
18028         own ActiveControl.
18029
18030         * Form.cs (OnActivated): remove the call to SelectActiveControl
18031         from here, since you can override this method and not chain up,
18032         and winforms still sets the active control.
18033         (OnCreateControl): also remove the unnecessary SelectActiveControl
18034         call from here.
18035         (WndProc): it's actually called from the WM_ACTIVATE block, just
18036         before calling OnActivated.
18037
18038         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
18039         inside the else.  the ActiveControl setter will end up setting
18040         focus on @control.  This keeps us from setting it again (and
18041         generating an extra LostFocus/GotFocus pair).
18042         (Select (bool, bool)): reindent.
18043
18044 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
18045
18046         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
18047         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
18048         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
18049         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
18050         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
18051         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
18052         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
18053         ToolStripTextBox.cs: Another wave of corcompare work.
18054
18055 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18056
18057         * ColumnHeader.cs: Implement 2.0 AutoResize method using
18058         the Width property.
18059
18060         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
18061         methods by callling Column.AutoResize method on columns.
18062
18063 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
18064
18065         * Control.cs: Provide proper implementations of PreferredSize
18066         and GetPreferredSize (2.0).
18067
18068 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
18069
18070         * Form.cs: Remove one character (!) to make my previous OnClosing
18071         stuff work for modal windows like MessageBox.
18072
18073 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18074
18075         * ListView.cs:
18076         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
18077         ListView.Columns to get the last displayed column. Fixes #80452.
18078
18079 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
18080
18081         * Label.cs, LinkLabel.cs: Source code identation fixes.
18082
18083 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
18084
18085         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
18086         we dont need to invalidate only borders because when we invalidate four
18087         border lines the invalidate's generates a complete redraw of button, 
18088         because it now invalidate a complete rect some other redraws operations
18089         are fixed. Fixes #80196.
18090         
18091         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
18092         Remove ToolBarInvalidateEntireButton as it is not used.
18093
18094 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
18095         
18096         * Form.cs: Make sure that both OnClosing and OnFormClosing are
18097         called for 2.0 profile.
18098         * CloseReason.cs: Make class internal for 1.1.
18099
18100 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
18101
18102         * ToolStripManager.cs: Implement FindToolStrip functionality.
18103         * ToolStrip.cs: Register and unregister with ToolStripManager.
18104
18105 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
18106
18107         * Control.cs: This was messy.  2.0 moves much of ControlCollection
18108         to ArrangedElementCollection.  Implemented this with as few #if's as 
18109         possible (which is still too many).
18110
18111 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
18112
18113         * Control.cs: Implement SizeFromClientSize() [2.0].
18114
18115 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
18116
18117         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
18118         use Theme.BorderSize to calculate area instead of static value 1, 
18119         by the way use new BorderStaticSize instead     Border3DSize when 
18120         border_static is true. Fixes #79537.
18121         
18122         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
18123         
18124         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
18125         it is not needed.
18126
18127 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
18128
18129         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
18130
18131 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
18132
18133         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
18134         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
18135         
18136         * Hwnd.cs: 
18137         - border_static field added, it will used to define when a control 
18138         theres 3D border but it must be static (thin).
18139         - In GetWindowRectangle use Theme.BorderSize to calculate area 
18140         instead of static value 1, by the way use new BorderStaticSize instead
18141         Border3DSize when border_static is true.
18142
18143         * XplatUIX11.cs, XplatUIOSX.cs: 
18144         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
18145         
18146         * Theme.cs: BorderStaticSize field added.
18147
18148 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
18149
18150         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
18151
18152 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
18153
18154         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
18155         mimic same behavior than win32 that set border only in CreateParams,
18156         it fix problems under CreateParams overrides. Fix #79442 and partial
18157         fix #79537.
18158         
18159         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
18160         of thi control you must call recreate handle. 
18161         
18162         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
18163         need to do anything as RecreateHangle will take care about borders.
18164
18165 2007-01-05  Mike Kestner  <mkestner@novell.com>
18166
18167         * ListView.cs: hack to eliminate Lost/Got focus notifications on
18168         cycles between the ItemControl and parent.  Fixes #80388.
18169
18170 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
18171
18172         * Control.cs: Lazy init layout engine. Do not directly use 
18173         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
18174
18175 2007-01-05  Chris Toshok  <toshok@ximian.com>
18176
18177         * DataGrid.cs: don't forceably rebind columns in SetDataSource
18178         unless our list manager has changed (i.e. unless we have reason to
18179         believe our columns have changed).  Fixes #80422.
18180         
18181         also, disable the call do BindColumns in
18182         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
18183         1.1 the event isn't raised in response to a column addition on a
18184         table.)
18185
18186 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
18187
18188         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
18189         that inheritors can not call it if they choose.  Fixes bug #80456.
18190
18191 2007-01-05  Andreia Gaita  <avidigal@novell.com>
18192
18193         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
18194         doesn't blow up with a null exception on marshalling.
18195         
18196 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
18197
18198         * Control.cs: Implement several 2.0 protected properties and methods.
18199         Ensure that all necessary events are being called when properties
18200         are set.
18201
18202 2007-01-05  Mike Kestner  <mkestner@novell.com>
18203
18204         * ListView.cs: implement PgUp/PgDn for Details view.  Also
18205         fixes First/LastVisibleIndex to use the item_control.ClientRect 
18206         instead of the parent control.  Fixes #80378.
18207
18208 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
18209
18210         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
18211           determine whether to use yard-pound or not (bug #78399).
18212
18213 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
18214
18215         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
18216         problems. So it is time to bring back the old popupbutton colors.
18217
18218 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18219
18220         * ColumnHeader.cs:
18221         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
18222         property by using the internal information of the
18223         columns order in ListView.
18224
18225 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
18226
18227         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
18228         Add 2.0 Tag properties.
18229
18230         * LinkArea.cs: Add 2.0 ToString method.
18231
18232 2007-01-03  Chris Toshok  <toshok@ximian.com>
18233
18234         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
18235         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
18236         when we're editing, which fixes #80047.
18237
18238 2007-01-03  Chris Toshok  <toshok@ximian.com>
18239
18240         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
18241         #80404.
18242
18243 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
18244
18245         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
18246         property and implementation.
18247
18248         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
18249         for MdiWindowListItem property.
18250
18251         * ToolStripDropDown.cs: Don't consider hidden menu items while
18252         laying out the menu.
18253
18254 2007-01-03  Andreia Gaita  <avidigal@novell.com>
18255
18256         * SendKeys.cs: window handle is not needed in win32, so just
18257         get the active window for X after parsing keys and don't use
18258         it when building the message; it is passed by parameter to the 
18259         Xplat method and used there to build the message instead. Also,
18260         wait for events to be processed on SendWait, as opposed to Send,
18261         which doesn't wait :) Playing with threads and Send() completely 
18262         hangs on ms.net, only SendWait() works.
18263         
18264         XplatUIX11.cs
18265         X11Display.cs: Check for valid window handle.
18266
18267 2007-01-03  Jackson Harper  <jackson@ximian.com>
18268
18269         * TextControl.cs: Need to prevent wrap calculations when replacing
18270         text (this was there before i removed it accidently).
18271         - Don't update the cursor during the positioning, just set it to
18272         selection_start at the end of the operaion.
18273
18274 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18275
18276         * Control.cs:
18277         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
18278         
18279 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18280
18281         * MonthCalendar.cs: Added Click and DoubleClick events again,
18282         but this time they only hide Control's Click and DoubleClick.
18283         
18284 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
18285
18286         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
18287         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
18288
18289 2007-01-02  Jackson Harper  <jackson@ximian.com>
18290
18291         * TextBoxBase.cs: We move the caret with the split now, so we
18292         don't need to explicitly move the caret after splitting.  This
18293         fixes the caret bumping down an extra line on Enter.
18294
18295 2007-01-02  Miguel de Icaza  <miguel@novell.com>
18296
18297         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
18298         2.72). 
18299
18300         * ScrollableControl.cs: Add Scroll event.
18301
18302 2007-01-02  Mike Kestner  <mkestner@novell.com>
18303
18304         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
18305         to fix all hdr height padding codepaths.  Fixes #80207.
18306
18307 2007-01-02  Chris Toshok  <toshok@ximian.com>
18308
18309         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
18310         setting it to the Control defaults anyway, and it being after the
18311         Dock set was screwing up layout.
18312         (set_Dock): don't short circuit out of setting base.Dock.  Also,
18313         no need to call UpdateStatusBar here, as it'll be re-layed out if
18314         it needs to be.
18315
18316 2007-01-02  Mike Kestner  <mkestner@novell.com>
18317
18318         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
18319         to header height for width == -1. Fixes the rest of #80207.
18320
18321 2007-01-02  Mike Kestner  <mkestner@novell.com>
18322
18323         * ListView.cs: rework the mouse event forwarding everaldo added
18324         to translate the coordinates to the parent control not
18325         raise the parent events until after we've done our work. Hover
18326         needs more work, in the case where HoverSelection is on, because
18327         the item control receives more than one MouseHover per Enter
18328         event, so we need to ensure only the "first" hover gets forwarded.
18329         Opening a minor bug for that.
18330
18331 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
18332
18333         * CheckedListBox.cs: Fixed SelectionMode to match MS.
18334         * ListControl.cs: Implemented AllowSelection property. Removed extra
18335         tabs.
18336         * ListBox.cs: Implemented AllowSelection property.
18337
18338 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18339
18340         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
18341         SelectedItem, it prevent for errors when you must disable item
18342         before perform click. Fixes #80409.
18343
18344 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18345
18346         * MenuAPI.cs: Prevent second level and beyond submenus to close
18347         until first level when move out side of popup.
18348         
18349 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18350
18351         * MenuAPI.cs:
18352         - Down submenu positin in three pixels.
18353         - Closes sub menu when mouse leaves from menu. Fixes #80402.
18354
18355 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18356
18357         * ThemeWin32Classic.cs:
18358         - Fix popup menu size adding one pixel on the top.
18359         - Down menu item border from two to one to mimic Win32.
18360         - Some source identation fixes. 
18361
18362 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
18363
18364         * ThemeWin32Classic.cs: Use float numbers to calculate size and
18365         position of menu arrows, it fix wrong arrow size.
18366
18367 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
18368
18369         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
18370         instead of line, it simplify draw operation and fix it using 3D
18371         borders to mimic Win32.
18372
18373 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
18374
18375         * StatusStrip.cs: Add implementation of the sizing grip.
18376
18377         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
18378         StatusStrip rendering.
18379
18380 2006-12-31  Chris Toshok  <toshok@ximian.com>
18381
18382         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
18383         override the layout style (anchor/dock) of the control.  assign to
18384         Dock instead.  Fixes bug #80416.
18385
18386         * ToolStrip.cs: same.
18387
18388 2006-12-31  Andreia Gaita  <avidigal@novell.com>
18389
18390         * ContainerControl.cs: Use ContainerSelected flag to check if 
18391         a Container is directly selected, or if Select is called on a 
18392         non-container. If a container is directly selected, focus events 
18393         should not be raised.
18394         Apply #80411 patch to throw exception on set_ActiveControl if 
18395         control is the same as the current one.
18396         
18397         * Control.cs: Use ContainerSelected flag (see above).
18398         Add invalidation check to raise event but not invalidate if 
18399         dimensions are 0.       
18400         Apply #80411 patch.
18401         
18402
18403 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
18404
18405         * MenuAPI.cs: After click, dont close popup menu when menu is
18406         ContextMenu. Fixes #80399.
18407
18408 2006-12-30  Chris Toshok  <toshok@ximian.com>
18409
18410         * ContainerControl.cs: make sure we throw the exception if the
18411         container control doesn't contain the control we're setting
18412         ActiveControl to.
18413
18414 2006-12-30  Chris Toshok  <toshok@ximian.com>
18415
18416         * Control.cs (SetTopLevel): fix the exception raised by
18417         SetTopLevel for child controls.
18418         (set_Anchor): call UpdateDistances when setting the anchor type.
18419         This fixes bug #80336.
18420
18421 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
18422
18423         * Theme.cs: For now, revert back to 8pt font.
18424
18425 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
18426
18427         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
18428         Fixes #80395.
18429
18430 2006-12-29  Chris Toshok  <toshok@ximian.com>
18431
18432         * Control.cs: reorder the code in OnResize to give the same event
18433         ordering as MS.
18434
18435 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18436
18437         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
18438         TileHorizontally and TileVertically.
18439         
18440 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
18441
18442         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
18443         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
18444         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
18445         Corrected copyright and email adress.
18446
18447 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
18448
18449         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
18450         of Exception in FullPath property if no TreeView is associated with
18451         the TreeNode.
18452
18453 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
18454
18455         * Theme.cs: Marked default_font as private, and initialize it in ctor
18456         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
18457         on 2.0 profile.
18458         * ThemeGtk.cs: Removed default_font intialization.
18459         * ThemeWin32Classic.cs: Removed default_font initialization.
18460
18461 2006-12-28  Chris Toshok  <toshok@ximian.com>
18462
18463         * Control.cs: fix a couple of place where we were creating handles
18464         more aggressively than we should be.  Fixes ControlRefresh unit
18465         tests.
18466
18467 2006-12-28  Chris Toshok  <toshok@ximian.com>
18468
18469         * Control.cs: contrary to what the comment said, Control.Dock does
18470         not supercede Control.Anchor - the last one you assign to decides
18471         the layout behavior.  so we need to keep track of which was the
18472         last set.  Also, fix some of the affected property arguments in
18473         PerformLayout calls, and remove an redundant parent.PerformLayout
18474         call in OnResized.
18475
18476         Add a VisibleInternal property, which returns is_visible.  We
18477         can/should get rid of all the usage of this field elsewhere.
18478
18479 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18480         
18481         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
18482         control style, not DoubleBuffer. Added UseDoubleBuffering property
18483         that indicates whether doublebuffering is enabled and supported.
18484         (comment from and code based on Gert Driesen's patch in #80324).
18485         Fixes #80324.
18486
18487 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18488         
18489         * Control.cs: Fixed a NRE.
18490
18491 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18492
18493         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
18494         for 2.0.
18495
18496 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18497
18498         * Control.cs: Rewrote double buffering, now a seperate
18499         class handles all the buffering, no Graphics is disposed of
18500         until the painting is finished (earlier implementation 
18501         would crash if the control was resized in the OnPaint, 
18502         since it would cause the double buffer to be recreated
18503         and the old one disposed), a separate Graphics is 
18504         created for every paint (MS behaviour and anyways the state
18505         of the Graphics would have to be saved and restored otherwise)
18506         
18507         * XplatUIDriver.cs: 
18508         * XplatUIX11.cs:
18509         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
18510         so that we can get the graphics for the back buffer without
18511         having to create a new one and remove the offscreen_dc parameter
18512         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
18513         
18514 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18515
18516         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
18517         Also make virtual all the key-related methods.
18518
18519         * ListViewItem.cs: Make virtual the key related methods for
18520         ListViewSubItemCollection.
18521
18522 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18523
18524         * ListView.cs:
18525         * ListViewItem.cs:
18526         * ThemeWin32Classic.cs:
18527         * Theme.cs: Initial support for Tile view in ListView,
18528         as well as the implementation of the required bits for it (Item
18529         and Subitem).
18530
18531 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18532
18533         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
18534         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
18535         Provide useful exception messages.
18536
18537 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18538
18539         * TrackBar.cs: Remove a warning.
18540         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
18541         when used by DateTimePicker, fixes #80287. This also requires that 
18542         MonthCalendar implements it's own drawing for the yearly updown control,
18543         otherwise the Capture tracking would be too complicated. Removed the Click 
18544         and DoubleClick events (according to comments they were hiding the base class
18545         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
18546         raise these events, not that they cannot be raised. It is possible to raise 
18547         them by calling OnClick and OnDoubleClick). Added two internal fields in 
18548         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
18549         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
18550         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
18551         event, no longer needed.
18552         
18553 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18554
18555         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
18556         true if new value differs from current value.
18557
18558 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18559
18560         * Control.cs: ControlCollection.Count must be public. Fixed build of
18561         unit tests.
18562
18563 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18564
18565         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
18566
18567 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18568
18569         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
18570
18571 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
18572
18573         * Control.cs: Invalidates control including when Width and Height is 
18574         equal zero or is not visible, only Paint event must be care about 
18575         this. Fixes #79913.
18576
18577 2006-12-26  Chris Toshok  <toshok@ximian.com>
18578
18579         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
18580         more corcompare work.
18581
18582         * DataGridView.cs: fix compiler warning.
18583
18584         * ColumnHeader.cs: some corcompare work, and also take the
18585         opportunity to make the internal fields private.
18586
18587         * ListView.cs: fix the fallout from the above field change.
18588
18589 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
18590
18591         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
18592         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
18593         ToolStripTextBox.cs: Fixes to events and corcompare.
18594
18595 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
18596
18597         * ListView.cs: Call owner.OnMousexx event to propagate events from
18598         item to ListView. Fixes #80367.
18599
18600 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
18601
18602         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
18603         if value is less than one. ItemHeight should not be set to a value
18604         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
18605         Removed extra tabs.
18606
18607 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
18608
18609         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
18610         * ToolStripStatusLabel.cs: Add Spring for Moma.
18611
18612 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
18613
18614         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
18615         Fixed code formatting. Removed debug code.
18616         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
18617
18618 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
18619
18620         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
18621         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
18622         ArgumentOutOfRangeException if ColumnCount is negative. In 
18623         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
18624         less than 4 or higher than 32768.
18625         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
18626         Fixed FormatProvider to return CurrentCulture unless explicitly set.
18627         Fixed IsFormatProviderDefault to return true if FormatProvider has
18628         not been explicitly set.
18629
18630 2006-12-25  Chris Toshok  <toshok@ximian.com>
18631
18632         * Application.cs: add a couple of 2.0 events.
18633
18634 2006-12-25  Chris Toshok  <toshok@ximian.com>
18635
18636         * Control.cs: fix compiler warning.
18637
18638         * AxHost.cs: corcompare fixes.
18639
18640         * ApplicationContext.cs: corcompare fixes.
18641
18642 2006-12-25  Chris Toshok  <toshok@ximian.com>
18643
18644         * Control.cs: only update dist_right/dist_bottom if the
18645         width/height is > 0.  this fixes anchored controls being resized
18646         smaller until they disappear and then resized larger again.
18647
18648 2006-12-25  Chris Toshok  <toshok@ximian.com>
18649
18650         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
18651         since they're nothing more than X/Left and Y/Top, respectively.
18652
18653         Also, move back to a per-control Bitmap/Graphics for
18654         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
18655         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
18656         Height.
18657
18658 2006-12-25  Miguel de Icaza  <miguel@novell.com>
18659
18660         * MessageBox.cs: Implemented overload that takes a new "bool
18661         displayHelpButton" by adding a new internal field "show_help".
18662         When clicked this will raise the HelpRequested on the owner or the
18663         main form. 
18664
18665         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
18666         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
18667
18668         * ListView.cs: Add support ColumnWidthChanged and
18669         ColumnWidthChanging. 
18670
18671         Add support for ColumnReordered event.
18672         (ReorderColumn): Add NET_2_0 specific support for cancelling the
18673         reorder.
18674
18675         Very nice codebase!
18676
18677         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
18678
18679         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
18680
18681 2006-12-24  Chris Toshok  <toshok@ximian.com>
18682
18683         * GridTablesFactory.cs: 2.0 corcompare work.
18684
18685         * ToolStripContainer.cs: add "override" to
18686         ContextMenuStripChanged, and remove the local event object.
18687
18688         * ToolStripDropDown.cs: same with a couple properties.
18689
18690         * ToolStripPanel.cs: same with AutoSizeChanged event.
18691
18692         * TextBoxBase.cs: add "override" to AutoSizeChanged.
18693
18694         * Form.cs: add the remaining 2.0 events, and do some corcompare
18695         attribute work.
18696
18697         * DateTimePicker.cs: add "new" to padding.
18698
18699         * ButtonBase.cs: use Control's use_compatible_text_rendering.
18700
18701         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
18702
18703         * DataGridView.cs: PaddingChanged is overridden.
18704
18705 2006-12-24  Chris Toshok  <toshok@ximian.com>
18706
18707         * Control.cs: corecompare work here too.
18708
18709         * DataGridViewElement.cs, DataGridView.cs,
18710         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
18711         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
18712         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
18713         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
18714         work.
18715
18716 2006-12-24  Miguel de Icaza  <miguel@novell.com>
18717
18718         * Control.cs: Switched the error message on the console for a
18719         todo.  A review of the code will have to cope with this anyways
18720         (since its a large feature, it is in our radar) and it was
18721         producing too much output when running PDN.
18722
18723         * ToolStripComboBox.cs: Set the text when the SelectedIndex
18724         changes.  Applications depend on this (PDN 2.72)
18725
18726 2006-12-23  Chris Toshok  <toshok@ximian.com>
18727
18728         * TableLayoutSettings.cs: finish up the corcompare work for this
18729         class.
18730
18731 2006-12-23  Chris Toshok  <toshok@ximian.com>
18732
18733         * Control.cs: make SetImplicitBounds internal, do some futzing
18734         with LayoutEngine so that it's available in 1.1, and remove the
18735         entire duplicated code mess from PerformLayout.  Use
18736         System.Windows.Forms.Layout.DefaultLayout instead.
18737
18738         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
18739
18740 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
18741
18742         * Form.cs: Add MainMenuStrip property.
18743
18744 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
18745
18746         * Control.cs: Add ContextMenuStrip property and implementation.
18747         Fix ContextMenu implementation to show menu centered on control when
18748         activated using the keyboard instead of showing at screen (0,0).
18749
18750         * ToolStripDropDown.cs: Fix needed overload of Show ().
18751
18752 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18753
18754         * Menu.cs: Name property added for 2.0 profile.
18755         
18756 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18757
18758         * Menu.cs: Update information about FindMenuItem, method to be
18759         implemented soon.
18760
18761 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18762
18763         * MenuAPI.cs: When deselect items deselect also selected subitems.
18764         
18765 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18766
18767         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
18768         FindSubItemByCoord to found itens that is not active, also an
18769         cheking added to FindSubItemByCoord to search for items only 
18770         in visible popup windows. Fixes #80274.
18771
18772 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
18773
18774         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
18775         internal property, it be care about change ExStyle. 
18776
18777 2006-12-22  Andreia Gaita  <avidigal@novell.com>
18778
18779         * ContainerControl.cs: set activeControl for parent forms up the 
18780         tree when the new activecontrol is a container.
18781         When validating the active control, if it is a container, also
18782         raise up the validation for it's active control. Fixes #80280
18783         
18784         * Control.cs: Add internal property flag and check to prevent
18785         Focus events from getting raised when Select() is called for
18786         a ContainerControl. There are still too many focus events being
18787         raised at the moment though.
18788         Cleaned up the code a bit.
18789
18790 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18791
18792         * Control.cs: Added all missing 2.0 events.and
18793         fixed a couple of corcompare issues.
18794         * TrackBar.cs: Implemented missing 2.0 bits.
18795         * MonthCalendar.cs, 
18796         * DateTimePicker.cs, 
18797         * MdiClient.cs: Fixed some corcompare issues.
18798
18799 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
18800
18801         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
18802         SplitterPanel.cs: corecompare work.
18803
18804 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
18805
18806         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
18807         Clean up warnings for BackgroundImageChanged and PaddingChanged
18808         events now that they are implemented in Control.cs.
18809
18810 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
18811
18812         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
18813         
18814         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
18815         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
18816         of TableLayoutPanel and supporting cast.
18817
18818 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18819
18820         * XplatUIWin32.cs: 
18821         - GrabWindow now confines the mouse pointer to the confine window.
18822         - Added Win32ClipCursor and Win32GetClipCursor.
18823
18824         * Control.cs: 
18825         - Added CaptureWithConfine to be able to capture and confine 
18826         mouse pointer.
18827         
18828         * InternalWindowManager.cs: 
18829         - Call CaptureWithConfine instead of Capture if we're an
18830         MdiChild (fixes #79982).
18831
18832 2006-12-21  Chris Toshok  <toshok@ximian.com>
18833
18834         * DataGrid.cs: guard against the initial state of selection, where
18835         selection_start == -1.  make sure we only select from index >= 0.
18836         Fixes bug #80291.
18837
18838 2006-12-21  Chris Toshok  <toshok@ximian.com>
18839
18840         * Control.cs: we don't need to be so draconian with
18841         UpdateDistances, and we thusly don't need to call it before
18842         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
18843
18844 2006-12-21  Daniel Nauck  <dna@mono-project.de>
18845
18846         * ComboBox.cs,
18847         TextBox.cs: Implemented AutoComplete properties.
18848
18849 2006-12-20  Chris Toshok  <toshok@ximian.com>
18850
18851         * DataGridView*.cs: some corecompare work.
18852
18853 2006-12-20  Jackson Harper  <jackson@ximian.com>
18854
18855         * XplatUIX11.cs: We need to hide the caret when deleting it,
18856         otherwise you get carets left lying around everywhere.
18857         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
18858         prevents getting some weird half drawn caret tracers when
18859         scrolling.
18860         * TextControl.cs: Attempt to reduce the number of times we need to
18861         recreate the caret.
18862
18863 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
18864
18865         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
18866
18867 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18868
18869         * DateTimePicker.cs:
18870         - Implemented missing 2.0 bits.
18871         - Changed some default values to match MS.
18872         
18873 2006-12-20  Jackson Harper  <jackson@ximian.com>
18874
18875         * TextBoxBase.cs: When changing the font across the document we
18876         can't recalculate after changing each line, since that will cahnge
18877         the line count.
18878         - PreferredHeight is a little different than i thought.
18879         - When backspacing, move the caret before we do the actual char
18880         delete, because when that delete crosses a wrap boundary the
18881         positional information will change.
18882
18883 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18884
18885         * Control.cs: Added some missing 2.0 bits: 
18886         BackgroundImageLayout, BackgroundImageLayoutChanged, 
18887         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
18888         add IBindableComponent and IDropTarget implementation.
18889         
18890         * MonthCalendar.cs: 
18891         - Added all missing 2.0 features:
18892         BackgroundImageLayout, RightToLeftLayout, 
18893         OnHandleDestroyed, RightToLeftLayoutChanged, 
18894         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
18895         PaddingChanged.
18896         - Rewrote all the BoldDate code, it was completely broken.
18897         - Fixed all the tests (the tests can now be re-enabled, the
18898         problems were not with the tests, but with the control, it was
18899         mostly broken).
18900         
18901         * DateTimePicker.cs: Changed the location where the 
18902         MonthCalendar is shown.
18903         
18904 2006-12-19  Chris Toshok  <toshok@ximian.com>
18905
18906         * DataGridView.cs: add IDropTarget implementation.
18907
18908         * ToolStripPanel.cs: add IDropTarget implementation.
18909
18910 2006-12-19  Jackson Harper  <jackson@ximian.com>
18911
18912         * TextControl.cs: soft now means something different than what it
18913         used to mean, we want to move the caret regardless of whether or
18914         not this break was soft (would we really have wanted the caret
18915         to not move with the break in the old context?)
18916         * TreeView.cs: Make sure we factor in the vert scrollbar when
18917         calculating the horizontal scrollbar's maximum.
18918
18919 2006-12-19  Andreia Gaita  <avidigal@novell.org>
18920
18921         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
18922         check for keywords in alternate casing, close bug #80049.
18923
18924 2006-12-19  Chris Toshok  <toshok@ximian.com>
18925
18926         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
18927         methods (which all do nothing).
18928
18929         * IDropTarget.cs: add the 4 missing methods.
18930
18931 2006-12-19  Chris Toshok  <toshok@ximian.com>
18932
18933         * TableLayoutRowStyleCollection.cs: corcompare work.
18934         
18935         * TableLayoutSettings.cs: same.
18936
18937         * TableLayoutStyle.cs: same.
18938
18939         * TableLayoutColumnStyleCollection.cs: same.
18940
18941 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
18942
18943         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
18944         TableLayoutPanel I've had in my local tree for way too long.
18945
18946 2006-12-19  Miguel de Icaza  <miguel@novell.com>
18947
18948         * TableLayoutSettings.cs: Finish the public API (still needs all
18949         the logic to update on changes). 
18950
18951         * TableLayoutPanelCellPosition.cs: new file.
18952         
18953         * TableLayoutRowStyleCollection.cs,
18954         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
18955         TableLayoutSettings.cs: Track the final 2.0 table api.
18956
18957 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18958
18959         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
18960         and Image List 2.0 members for ColummnHeader.
18961         * ListView.cs: Add key-related 2.0 methods for
18962         ColumnHeaderCollection.
18963
18964 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
18965
18966         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
18967         ArgumentNullException if items argument is null. Ignore null item in
18968         arrays. Removed extra tabs.
18969
18970 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
18971
18972         * MonthCalendar.cs: Fixed InvalidCastException.
18973
18974 2006-12-19  Jackson Harper  <jackson@ximian.com>
18975
18976         * TextControl.cs: Don't increment the position here.
18977         - When calculating char positions only add in the line break size
18978         for hard line breaks.
18979
18980 2006-12-19  Andreia Gaita  <avidigal@novell.org>
18981
18982         * SendKeys.cs: Changed some things to match ms.net behaviour
18983         when parsing shifted capital letters.
18984         
18985         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
18986         Add window handle as parameter to SendInput. X11 needs the 
18987         window handle, and the handle being passed      to it in the keys 
18988         queue is the active control handle (which windows needs), not 
18989         the window handle.
18990         
18991         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
18992         to support SendKeys on X.       
18993         
18994         * X11Keyboard: Implement helper method to lookup a linux keycode
18995         given the virtual keycode. Added table of keycode-2-virtualkey
18996         values to support this.
18997
18998 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18999
19000         * ListView.cs: Add support for SelectedIndexCollection
19001         and SelectedItemCollection 2.0 methods. Implement support
19002         for ImageKey too.
19003         * ListViewItem.cs: Add support for ListViewSubItemCollection
19004         2.0 methods. Also, fix an incorrect behavior of AddRange method
19005         (it shouldn't call Clear).
19006         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
19007
19008 2006-12-19  Jackson Harper  <jackson@ximian.com>
19009
19010         * RichTextBox.cs: 
19011         * TextBoxBase.cs: New args for FormatText
19012         * TextControl.cs: Rewrote the main drawing method, this version
19013         feels a little easier to understand and debug to me.  Hopefully it
19014         does to others also
19015         - Fix FormatText to OR in the new formating values.  Added
19016         FormatSpecified param, basically this works in the same way as
19017         BoundsSpecified in Control.
19018         - Set the caret properties when the caret is positioned.
19019         - When wrapping text make sure that we calculate the width of the
19020         last character
19021         - when calculating alignments we might have wrapped down to the
19022         next line, so don't search for an individual tag, search for the
19023         end of the line
19024         - We need to invalidate the selection area when we replace the
19025         selection.
19026         
19027 2006-12-19  Daniel Nauck  <dna@mono-project.de>
19028
19029         * Application.cs: add Restart () 2.0 support
19030
19031 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
19032
19033         * MenuItem.cs: Invalidate menu item rectangle after change Enable
19034         property. Fixes #80268.
19035         
19036 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
19037
19038         * MenuAPI.cs: Dont trigger select event when closes top menu
19039         item. Fixes #80270.
19040
19041 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
19042
19043         * MenuAPI.cs: When you click on menuitem only trigger onselect
19044         event for top menu itens. Fixes #80271.
19045         
19046 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19047
19048         * MdiWindowManager.cs: Make IconicBounds depend on
19049         the bottom of MdiClient, not the top (fixes #80267)
19050         
19051 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19052
19053         * MdiClient.cs: Added missing 2.0 attribute
19054
19055 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19056
19057         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
19058         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
19059
19060 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
19061
19062         * MenuAPI.cs: Fix click when menuitem is not popup,
19063         this regression was caused by last commit (#80272).
19064
19065 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
19066
19067         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
19068         fire click event or close menu. Fixes #80272.
19069
19070 2006-12-17  Daniel Nauck  <dna@mono-project.de>
19071
19072         * ListViewHitTestInfo.cs: add
19073
19074 2006-12-17  Daniel Nauck  <dna@mono-project.de>
19075
19076         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
19077         * FlatButtonAppearance.cs: add
19078         * DockingAttribute.cs: add
19079
19080 2006-12-17  Chris Toshok  <toshok@ximian.com>
19081
19082         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
19083         and rebind our columns when it does - this way, if you make
19084         changes to the DataTable (or set the Table attribute on a DataView
19085         after setting it as the DataGrid's DataSource, the changes are
19086         made visible.)  Fixes bug #80107.
19087
19088 2006-12-17  Daniel Nauck  <dna@mono-project.de>
19089
19090         * ListViewGroup.cs: add internal Location property for layouting.
19091         * Theme.cs: add abstract ListViewGroupHeight function.
19092         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
19093
19094 2006-12-16  Andreia Gaita  <avidigal@novell.com>
19095
19096         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
19097         Added reset of selected index to 0 when adding first tab page.
19098         Fixes #80264
19099         
19100         * NumericUpDown.cs: Fix NET_2_0 check
19101
19102 2006-12-16  Daniel Nauck  <dna@mono-project.de>
19103
19104         * ListViewGroup.cs: fixed DefaultValueAttribute value
19105
19106 2006-12-16  Daniel Nauck  <dna@mono-project.de>
19107
19108         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
19109
19110 2006-12-15  Miguel de Icaza  <miguel@novell.com>
19111
19112         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
19113         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
19114         ScrollableControl.cs: Add a handful of methods that are
19115         overwritten in 2.0 
19116
19117 2006-12-15  Chris Toshok  <toshok@ximian.com>
19118
19119         * XplatUIWin32.cs: initial implementation of the Reversible
19120         drawing functions.  there are some problems.  DrawReversibleFrame
19121         doesn't seem to work at all for Dashed FrameStyle, and in the
19122         Thick case there are drawing errors at the corners (we probably
19123         need to bind Rectangle instead of doing moveto/lineto's.)
19124
19125 2006-12-16  Andreia Gaita  <avidigal@novell.com>
19126         
19127         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
19128         to send blocks of key messages. Send accumulates keys to send with Flush, 
19129         while SendWait sends all keys immediately.
19130                 
19131         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
19132         XplatUIX11.cs,  XplatUIX11-new.cs:
19133         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
19134         to Win32 SendInput.
19135         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
19136         
19137         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
19138         testing for ms.net on this class is very tricky, as the tests run too fast 
19139         to allow the hook to release, essentially freezing the keyboard and the 
19140         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
19141         category :p
19142
19143 2006-12-16  Daniel Nauck  <dna@mono-project.de>
19144
19145         * Padding.cs: fixed serialization compability to MS ("_var" field names),
19146                         added missing attributes.
19147  
19148 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19149
19150         * ListViewGroup.cs: Added missing attributes.
19151         * ListViewGroupCollection.cs: Added missing attributes.
19152
19153 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19154
19155         * ListViewItem.cs: fixed ListViewSubItem text property.
19156
19157 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19158         
19159         * Control.cs: Added missing 2.0 attributes
19160         
19161 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19162         
19163         * MdiClient.cs: Added missing 2.0 attribute.
19164         * MonthCalendar.cs: Added some missing 2.0 attributes 
19165         and properties.
19166         
19167 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19168
19169         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
19170
19171 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
19172
19173         * MainMenu.cs: Add the new 2.0 constructor to help out people
19174         using the MainMenu in VS2005.
19175
19176 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19177         
19178         * MdiChildContext.cs: Removed it, no longer used.
19179         * MdiClient.cs: Added missing 2.0 attributes.
19180         
19181 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19182         
19183         * InternalWindowManager.cs: Fix a NullRef with previous 
19184         changes for toolwindows.
19185         
19186 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19187
19188         * Control.cs: 
19189         - Added AfterTopMostControl to allow for certain controls 
19190         to always stay on top when normal controls are brought to 
19191         front.
19192         
19193         * XplatUIWin32.cs: 
19194         - (DrawInversibleRectangle): Get window rectangle from Win32 
19195         in stead of from control, since Win32 doesn't calculate
19196         screen coords correctly from control's Location if it 
19197         have docked siblings.
19198         
19199         * MdiWindowManager.cs:
19200         - Correct the control menu popup location when clicked on
19201         the maximized form icon. (fixes #80223.1)
19202         - Don't show moving rectangle if mouse hasn't moved from
19203         the original clicked point.
19204         - Removed FormGotFocus handler (not used).
19205         - Calculate the control buttons location from the main
19206         window's size and not client size (fixes #79770).
19207         - Form is now closed when the form icon is double-clicked
19208         (fixes #79775). 
19209         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
19210         
19211         * InternalWindowManager.cs:
19212         - Moved some MDI-only methods to MdiWindowManager.
19213         - Removed unused properties and methods.
19214         - Unified method naming for methods handling wm messages.
19215         - Moved all message handling to seperate methods for
19216         each message.
19217         
19218         * ThemeWin32Classic.cs:
19219         - DrawManagedWindowDecorations now draws the title bar 
19220         with a gradient brush.
19221         - Add a CPDrawButtonInternal that allows us to specify
19222         light, normal and dark colors for the buttons (control 
19223         buttons for MDI children were drawn with the same light
19224         color as the background, therefore loosing the 3D effect).
19225         
19226         * SizeGrip.cs:
19227         - Add a CapturedControl property that is used to 
19228         determine the control to resize (defaults to parent). 
19229         Needed for MdiClient, since its SizeGrip's parent is
19230         MdiClient, but the control to resize is the main form.
19231         
19232         * MdiClient.cs:
19233         - Set SizeGrip's CapturedControl to the main form in order
19234         to resize the main form and not the MdiClient.
19235         - Override AfterTopMostControl to leave the scrollbars 
19236         always on top.
19237
19238 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19239
19240         * ListView.cs: fixed ListViewItemCollection AddRange and
19241                         implemented ListViewItemCollection AddRange 2.0 support.
19242
19243 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19244
19245         * ListViewGroup.cs: Add.
19246         * ListViewGroupCollection.cs: Add
19247         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
19248         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
19249                                 stub for ImageKey 2.0 support.
19250
19251 2006-12-14  Mike Kestner  <mkestner@novell.com>
19252
19253         * ListView.cs: add text padding to the autocalculation for columns
19254         of width -2.  Fixes #80207.
19255  
19256 2006-12-14  Mike Kestner  <mkestner@novell.com>
19257
19258         * ListView.cs: add some index guarding for partial row navigation 
19259         logic.  Fixes #80250.
19260
19261 2006-12-14  Mike Kestner  <mkestner@novell.com>
19262
19263         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
19264         are added or inserted to the collection.  Fixes #81099.
19265
19266 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
19267
19268         * MenuAPI.cs: Closes menu when right click out side of popup
19269         it fix problem in ContextMenu and MainMenu. Fixes #80252.
19270
19271 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19272
19273         * ListViewItem.cs: Fix dumb error.
19274
19275         * ListView.cs: Add Find and ContainsKey methods in 
19276         ListViewItemCollection, and also return true for IsReadOnly
19277         and IsFixedSize (changes for 2.0). 
19278
19279 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
19280
19281         * Control.cs: Allow Region to be set to null.
19282
19283 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19284
19285         * MdiWindowManager.cs: Remove unused (commented out) code.
19286         * Form.cs: When the MdiChild is maximized, the form needs 
19287         WM_NCMOUSELEAVE, so request it.
19288         * InternalWindowManager.cs: 
19289         - Added tooltips to control buttons.
19290         - Removed duplicated control button handling code.
19291         - Removed unused (commented out) code.
19292         
19293 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
19294
19295         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
19296         was used because we must set cursor without trigger ChangeCursor event
19297         and without change Cursor control property. Fixes #79963.
19298
19299 2006-12-12  Andreia Gaita  <avidigal@novell.com>
19300         
19301         * Control.cs: Check if Region setter value is null, and ignore
19302
19303 2006-12-12  Jackson Harper  <jackson@ximian.com>
19304
19305         * TextControl.cs: We were almost always drawing one more line then
19306         needed, since the GetLineByPixel will return the last line found
19307         at that pixel. In most cases though, we were invalidating up to
19308         the junction between two lines.
19309         - Improve debug code.
19310
19311 2006-12-12  Chris Toshok  <toshok@ximian.com>
19312
19313         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
19314         and FillReversibleRectangle.
19315
19316         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
19317         and FillReversibleRectangle.
19318
19319         * XplatUIWin32.cs: add stubs which do nothing for
19320         DrawReversibleFrame, DrawReversibleLine, and
19321         FillReversibleRectangle.
19322
19323         * XplatUIOSX.cs: add stubs which raise NIE for
19324         DrawReversibleFrame, DrawReversibleLine, and
19325         FillReversibleRectangle.
19326
19327         * XplatUIX11.cs: add working implementation for
19328         DrawReversibleFrame, DrawReversibleLine, and
19329         FillReversibleRectangle.
19330         
19331         * ControlPaint.cs: implement DrawReversibleFrame,
19332         DrawReversibleLine, and FillReversibleRectangle, by calling into
19333         the appropriate XplatUI method.
19334
19335 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19336
19337         * Form.cs: Make MdiClient have the focus even if it's
19338         not selectable, since it should receive WM_KEY* and WM_MOUSE 
19339         messages. Fixes #79907.
19340         
19341 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19342
19343         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
19344         queried after the window is created.
19345         
19346         * XplatUIX11.cs: Added SendParentNotify to implement 
19347         WM_PARENTNOTIFY logic. Fixes #79965.
19348         
19349         * Control.cs: Added MakeParam.
19350         
19351 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19352
19353         * MdiClient.cs: Resume Layout before setting window
19354         states (fixes #80201).
19355
19356 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19357
19358         * MenuAPI.cs: Deselect a menu item after performing
19359         the click (fixes #80197).
19360
19361 2006-12-11  Jackson Harper  <jackson@ximian.com>
19362
19363         * TextBoxBase.cs: We need to cap this value, since Maximum -
19364         ViewPortHeight can be less than zero.
19365         - Only do selection with the left mouse button.
19366         * TextBox.cs: Don't tell the world that we have a context menu.
19367         * Control.cs: New method so that we can control whether or not the
19368         context menu is visible outside MWF.
19369
19370 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
19371
19372         * ToolBarButton.cs: Fix text positon. 
19373
19374 2006-12-11  Miguel de Icaza  <miguel@novell.com>
19375
19376         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
19377
19378         * Control.cs (DoubleBuffered): Add implementation.
19379
19380         * Application.cs (OpenForms): Add.
19381
19382 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
19383
19384         * Form.cs: Use opacity instead of Opactiy to determine if we need
19385         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
19386
19387 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
19388
19389         * Control.cs: Fix NRE if Control.Site was set to null.
19390
19391 2006-12-11  Chris Toshok  <toshok@ximian.com>
19392
19393         * Control.cs: ControlCollection.Remove should return if the arg is
19394         null, and ControlCollection.SetChildIndex should raise a ANE.
19395
19396 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
19397
19398         * Control.cs: Verify value set for Dock property. Code formatting
19399         updates.
19400
19401 2006-12-11  Jackson Harper  <jackson@ximian.com>
19402
19403         * TextControl.cs: Draw the caret and the selection when a flag is
19404         set on the owner.
19405         * TextBoxBase.cs: We want to draw the caret and the selection for
19406         TextBox but not for TextBoxBase.
19407         - If the window is resized and scrolling is no longer needed (the
19408         whole doc is visible) set the scroll position to zero.
19409         - The default SelectWord (the one TextBox uses) should move the
19410         caret to the end of the word.
19411         - SelectAll moves the caret to the end of the selection.
19412         * TextBox.cs: We don't selectall on focus, we just do it when the
19413         control is created.
19414         
19415 2006-12-11  Mike Kestner  <mkestner@novell.com>
19416
19417         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
19418
19419 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19420
19421         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
19422         2.0 support.
19423         * ListViewItem.cs: Add Name 2.0 property.
19424
19425 2006-12-11  Andreia Gaita  <avidigal@novell.com>
19426
19427         * TabControl.cs: Set visibility on selected or default tab 
19428         when tabcontrol handle is created, so that it's contents
19429         actually show up (duh). Fixes #80193
19430         Don't redraw the control if there is no handle created, as
19431         the selected index might be completely invalid. Added some tests
19432         to check for this.
19433
19434 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
19435
19436         * ToolBar.cs: Uses maximun width and height of all buttons as 
19437         button rectangle when ButtonSize specified, it looks strange but
19438         is what happens in Win32. Fixes #80189.
19439
19440 2006-12-11  Jackson Harper  <jackson@ximian.com>
19441
19442         * TextControl.cs: Need to track undo levels ourself, since
19443         compound actions will mess them up.
19444
19445 2006-12-10  Andreia Gaita  <avidigal@novell.com>
19446
19447         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
19448         SelectedIndex value is changed (even if it's not valid).
19449         Reset SelectedIndex to 0 when the handle is created and if
19450         the current index is invalid.
19451         Fixes SelectdeIndex unit tests and #80128
19452
19453 2006-12-08  Chris Toshok  <toshok@ximian.com>
19454
19455         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
19456         calls EndEdit, it needs to be called before we set current_cell to
19457         its new value.  Otherwise, we end up committing the value in the
19458         textbox to the new cell as well.  Fixes bug #80160.
19459
19460 2006-12-08  Chris Toshok  <toshok@ximian.com>
19461
19462         * Form.cs (set_CancelButton): if the button's DialogResult is
19463         None, set it to Cancel.  Fixes bug 80180.
19464
19465 2006-12-08  Jackson Harper  <jackson@ximian.com>
19466
19467         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
19468         to watch ourselves when setting the canvas size and setting the
19469         scrollbar values.
19470
19471 2006-12-08  Chris Toshok  <toshok@ximian.com>
19472
19473         * DataGrid.cs: comment out the two MakeTransparent calls for the
19474         time being so people using trunk (and not 1.2.2) on windows can
19475         actually use the datagrid.  This deals with bug #80151.
19476
19477 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
19478
19479         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
19480         Graphics.DrawImage (image, int, int, int, int) overload instead
19481         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
19482         the dpi difference and was blurring images it drew.
19483         [Fixes bug #79960]
19484
19485 2006-12-08  Chris Toshok  <toshok@ximian.com>
19486
19487         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
19488         rowcnt is 0 (such as with an empty datasource), and make sure we
19489         initialize not_usedarea.Y to cells.Y, so we don't draw over the
19490         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
19491
19492 2006-12-08  Chris Toshok  <toshok@ximian.com>
19493
19494         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
19495         grid.
19496
19497 2006-12-08  Chris Toshok  <toshok@ximian.com>
19498
19499         [ Fixes bug #80167 ]
19500         
19501         * ThemeWin32Classic.cs: don't draw the image if the button's flat
19502         style is FlatStyle.System.
19503
19504         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
19505         ButtonBase.flat_style private, and switch uses of it to the public
19506         property.
19507         
19508 2006-12-08  Chris Toshok  <toshok@ximian.com>
19509
19510         [ Fixes bug #80121 ]
19511         
19512         * ThemeWin32Classic.cs: center the caption text in the datagrid
19513         when we draw it.
19514
19515         * DataGrid.cs: lessen the amount we add to the caption height from
19516         6 to 2.  6 was making it huge.
19517
19518 2006-12-08  Andreia Gaita  <avidigal@novell.com>
19519
19520         * UpDownBase: Handle MouseWheel call directly instead of capturing
19521         the inner textbox's OnMouseWheel. Fixes #80166
19522
19523 2006-12-08  Jackson Harper  <jackson@ximian.com>
19524
19525         * TextControl.cs: We need to invalidate the textbox when we empty
19526         it (how had this not been discovered before?)
19527
19528 2006-12-08  Jackson Harper  <jackson@ximian.com>
19529
19530         * TextBoxBase.cs: Reworked the mouse down code so I could get it
19531         to behave like MS, we now ignore the eventargs.Click and just
19532         track state ourself, which we were already doing anyways.
19533         - Constrain the double click handler to the double click size.
19534         
19535 2006-12-08  Chris Toshok  <toshok@ximian.com>
19536
19537         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
19538         direction if that scrollbar isn't shown.  fixes bug #80158.
19539
19540 2006-12-08  Andreia Gaita  <avidigal@novell.com>
19541
19542         * NumericUpDown.cs: Update value on getter. Fixes #79950
19543
19544 2006-12-08  Chris Toshok  <toshok@ximian.com>
19545
19546         * MenuItem.cs: add back in the event cloning code.  I didn't know
19547         how to do it in the face of the EventHandlerList work i'd done
19548         last week.  Fixes bug #80183.
19549
19550 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
19551
19552         * Control.cs: Add an invalidate to the BackgroundImage setter.
19553         [Fixes 80184]
19554
19555 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
19556
19557         * ToolStrip*: Add some small properties reported by MoMA, fix event
19558         firing and default properties based off of unit tests, and add some
19559         attributes based off of the class status page.
19560
19561 2006-12-07  Jackson Harper  <jackson@ximian.com>
19562
19563         * TextBoxBase.cs: Take HideSelection into account when determining
19564         whether or not to show the selection.
19565         * RichTextBox.cs: After inserting the RTF into the document move
19566         the cursor to the beginning of the document.
19567
19568 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
19569
19570         * Control.cs: Remove static ArrayList "controls" which maintained
19571         a reference to every control created.
19572         * Application.cs: Create a static FormCollection to maintain a reference
19573         to every form created.  Use it in places that formerly enumerated through
19574         the controls one looking for forms.
19575         * Form.cs: Add and remove self from above FormCollection.
19576
19577 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
19578
19579         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
19580           not libgdk (though it makes me wonder why I didn't have any
19581           problems)
19582
19583 2006-12-07  Chris Toshok  <toshok@ximian.com>
19584
19585         [ you had to know this was coming after that last commit...]
19586         
19587         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
19588         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
19589         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
19590         XCopyArea).
19591
19592 2006-12-07  Chris Toshok  <toshok@ximian.com>
19593
19594         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
19595         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
19596         all the behavior we need for double buffering.
19597
19598         * XplatUIDriver.cs: implement the 3 double buffer methods using a
19599         client side Bitmap, just like the old Control-based double buffer
19600         code did.  The methods are virtual, so each XplatUI driver
19601         subclass can replace the implementation to use a faster, platform
19602         specific approach.
19603
19604         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
19605         double buffer code, and clean things up a bit in the process.
19606
19607 2006-12-06  Chris Toshok  <toshok@ximian.com>
19608
19609         * Control.cs: reindent WndProc.
19610
19611 2006-12-06  Chris Toshok  <toshok@ximian.com>
19612
19613         [ I wanna be like BenM when I grow up ]
19614         
19615         * Hwnd.cs: create a single static Graphics object on the static
19616         Bitmap we create.  use this for our text measurements.
19617
19618         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
19619         This was causing us to allocate a backbuffer for every control,
19620         even when it wasn't flagged as double buffered.  Instead use the
19621         single graphics instance.  This might have implications for
19622         multithreaded applications.  If we run into problems we can switch
19623         to creating 1 Graphics per control, on the static Hwnd bitmap.
19624
19625         this change nets us a 7M savings in private dirty mappings when
19626         running FormsTest.exe.
19627
19628 2006-12-06  Chris Toshok  <toshok@ximian.com>
19629
19630         * ListView.cs: the BackgroundImage override is just to set
19631         attributes.  chain up to base.BackgroundImage.
19632
19633         * RichTextBox.cs: same.
19634
19635         * ToolBar.cs: same, but we need to also redraw the toolbar when it
19636         changes, so instead a handler for BackgroundImageChanged.
19637         
19638         * Control.cs: make background_image private.
19639
19640 2006-12-06  Chris Toshok  <toshok@ximian.com>
19641
19642         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
19643         sure we even need this assignment, but roll with it for now.
19644
19645         * Control.cs: make the cursor field private.
19646
19647 2006-12-06  Chris Toshok  <toshok@ximian.com>
19648
19649         * Form.cs: we don't need to explicitly set ImeMode to
19650         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
19651         behavior in the face of ImeMode.Inherit.
19652
19653         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
19654         change the ctor's assignment to use ImeMode instead of ime_mode.
19655
19656         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
19657         ImeModeInherit.  Only check for the parent's imemode (and return
19658         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
19659         This fixes the button unit test, which sets both ImeMode and
19660         DefaultImeMode to ImeMode.Disable.
19661
19662         also make the ime_mode field private.
19663
19664 2006-12-06  Chris Toshok  <toshok@ximian.com>
19665
19666         * Control.cs: make control_style private.
19667
19668         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
19669         setting the styles to true, then setting them to false instead of
19670         reverting to their previous values.
19671
19672         also, call SetStyle on the scrollbars instead of using
19673         control_style directly.
19674
19675 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
19676
19677         * FormCollection.cs: Implement. [2.0]
19678
19679 2006-12-06  Chris Toshok  <toshok@ximian.com>
19680
19681         * Control.cs: make tab_stop private.
19682
19683         * Label.cs: set TabStop, not tab_stop.  reformat some event
19684         add/remove methods to make them more compact.
19685
19686 2006-12-06  Chris Toshok  <toshok@ximian.com>
19687
19688         * RadioButton.cs: fix TabStop handling.
19689
19690 2006-12-06  Chris Toshok  <toshok@ximian.com>
19691
19692         * TextBox.cs: remove the explicit assignments to has_focus.
19693         Control does that.
19694
19695         * ButtonBase.cs: remove the assignment to has_focus.  Control will
19696         manage that.
19697         
19698 2006-12-06  Chris Toshok  <toshok@ximian.com>
19699
19700         * ButtonBase.cs: remove all uses of is_enabled from this code.
19701         it's always true when any of the code containing the checks is
19702         executed.
19703
19704 2006-12-06  Chris Toshok  <toshok@ximian.com>
19705
19706         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
19707         with different semantics (some are present in both 1.1 and 2.0
19708         profiles) so that we match MS's behavior in our unit tests.
19709
19710 2006-12-06  Jackson Harper  <jackson@ximian.com>
19711
19712         * TextControl.cs: Make this operation undoable.
19713         * TextBoxBase.cs: Factor the border width into the preferred
19714         height.
19715         - implement Modified as per the spec.
19716
19717 2006-12-06  Chris Toshok  <toshok@ximian.com>
19718
19719         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
19720
19721 2006-12-06  Chris Toshok  <toshok@ximian.com>
19722
19723         * Control.cs: make right_to_left and context_menu fields private.
19724
19725 2006-12-06  Chris Toshok  <toshok@ximian.com>
19726
19727         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
19728         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
19729         Control.child_controls private.  switch all uses over to
19730         Control.Controls.
19731
19732 2006-12-06  Chris Toshok  <toshok@ximian.com>
19733
19734         * System.Windows.Forms/GroupBox.cs,
19735         System.Windows.Forms/AccessibleObject.cs,
19736         System.Windows.Forms/ErrorProvider.cs,
19737         System.Windows.Forms/Control.cs,
19738         System.Windows.Forms/UpDownBase.cs,
19739         System.Windows.Forms/ScrollBar.cs,
19740         System.Windows.Forms/DateTimePicker.cs,
19741         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
19742         System.Windows.Forms/ToolTip.cs,
19743         System.Windows.Forms/RadioButton.cs,
19744         System.Windows.Forms/LinkLabel.cs,
19745         System.Windows.Forms/Splitter.cs,
19746         System.Windows.Forms/TextBoxBase.cs,
19747         System.Windows.Forms/ToolStripTextBox.cs,
19748         System.Windows.Forms/ContainerControl.cs,
19749         System.Windows.Forms/ThemeWin32Classic.cs,
19750         System.Windows.Forms/SizeGrip.cs,
19751         System.Windows.Forms/ToolStripDropDown.cs,
19752         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
19753         private.  switch all uses over to Control.Parent.
19754
19755 2006-12-06  Chris Toshok  <toshok@ximian.com>
19756
19757         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
19758         Control does this before calling emitting these events.
19759
19760         * TabControl.cs: same.
19761
19762         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
19763         Control.client_rect.
19764
19765         * ButtonBase.cs: use the ClientSize property instead of the
19766         client_size field.
19767
19768         * ScrollableControl.cs: same.
19769
19770         * Control.cs: another pass at making properties private.  also,
19771         move the initialization of tab_stop to the ctor.
19772
19773 2006-12-05  Andreia Gaita <avidigal@novell.com>
19774
19775         * TabControl.cs: Let the selected index be set freely if the 
19776         control handle is not yet created.
19777
19778 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
19779
19780         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
19781         internal until I can rewrite DefaultLayout.
19782         * ToolStrip.cs: Fix build error and some general cleaning.
19783         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
19784         Fix build errors caused by making some of Control's fields private.
19785
19786 2006-12-05  Jackson Harper  <jackson@ximian.com>
19787
19788         * TextControl.cs: Redo Insert a little so that it use IndexOf
19789         instead of Split, this prevents it from messing up on things like
19790         \n\n\n. Also more effecient since the split array doesn't need to
19791         be created.
19792         * TextBoxBase.cs: AppendText doesnt handle multiline and non
19793         multiline text differently, this is the first of many fixes that
19794         will make multiline/non-multiline the same thing as far as the
19795         TextBoxBase is concerned.
19796         - Don't split the text and insert lines, this can lose some line
19797         endings (like is the last line a soft or hard break). Instead use
19798         the new Insert.
19799         - Fix an off by one when combining all the lines in the Text
19800         getter.
19801         - Remove separate multiline handling from the Text getter/setter.
19802
19803 2006-12-05  Chris Toshok  <toshok@ximian.com>
19804
19805         * ButtonBase.cs: a few changes:
19806
19807         - don't reinitialize internal Control fields in the ctor when they
19808         have the same values as Control sets them.
19809
19810         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
19811         this before calling those methods.
19812
19813         - we don't need to call Refresh for anything.  use Invalidate
19814         instead.
19815
19816         - OnEnabledChanged doesn't need to redraw at all - Control.cs
19817         calls Refresh in its OnEnabledChanged.
19818         
19819         - several of the events we were registered for in the ctor to
19820         redraw ourselves already include calls to Invalidate in the
19821         property setters that raise the events.  remove the extra
19822         invalidation.
19823
19824         - reformat a switch statement that was 83274658 columns wide.
19825         
19826 2006-12-05  Mike Kestner  <mkestner@novell.com>
19827
19828         * ComboBox.cs: fix a unit test regression from a TextBox
19829         SelectionLength return of -1 when there's no selection.  
19830
19831 2006-12-05  Chris Toshok  <toshok@ximian.com>
19832
19833         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
19834         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
19835         cleaning up some of the internal Control fields being used by
19836         subclasses.
19837
19838 2006-12-05  Mike Kestner  <mkestner@novell.com>
19839
19840         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
19841         listbox after AddImplicit calls since it defaults to hidden. Add a 
19842         hack to preserve requested heights across DropDownStyle changes.
19843
19844 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
19845
19846         * PropertyGrid.cs: Hide FindFirstItem method from public API.
19847
19848 2006-12-05  Chris Toshok  <toshok@ximian.com>
19849
19850         * DataGridView.cs: fix compiler warnings.
19851
19852         * PrintControllerWithStatusDialog.cs: same.
19853
19854         * ToolBar.cs: same.
19855
19856         * FolderBrowserDialog.cs: same.
19857
19858         * Splitter.cs: same.
19859
19860         * DataGridViewComboBoxCell.cs: same.
19861
19862         * XplatUIWin32.cs: same.
19863
19864         * PictureBox.cs: same.
19865
19866         * Win32DnD.cs: same.
19867
19868         * PageSetupDialog.cs: same.
19869
19870         * FileDialog.cs: same.
19871
19872         * PrintDialog.cs: same.
19873
19874         * DataGridTextBoxColumn.cs: same.
19875
19876         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
19877
19878 2006-12-05  Chris Toshok  <toshok@ximian.com>
19879
19880         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
19881         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
19882         System.ComponentModel.EventHandlerList work.
19883
19884 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
19885
19886         * DrawTreeNodeEventArgs.cs: Added.
19887
19888 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19889         
19890         * InternalWindowManager.cs: Remove an unused field.
19891         
19892 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19893
19894         * InternalWindowManager.cs:
19895         - Save the point where the title bar is clicked.
19896         
19897         * MdiWindowManager.cs:
19898         - Only allow moving of the window as long as the 
19899         clicked point on the title bar does not get out of
19900         MdiClient's rectangle. Fixes #79982.
19901         
19902         * MdiClient.cs:
19903         - Added Horizontal/VerticalScrollbarVisible.
19904         - Simplified the scrollbar sizing algorithm.
19905         - Cache the difference in scrolled value in
19906         H/VBarValueChanged and move the calculation out
19907         of the for loop.
19908
19909 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19910
19911         * Control.cs: Make the Console.WriteLine in WndProc 
19912         write more info.
19913
19914 2006-12-05  Chris Toshok  <toshok@ximian.com>
19915
19916         * ToolStripManager.cs, ToolStripButton.cs,
19917         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
19918         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
19919         ToolStripSplitButton.cs, ToolStripSeparator.cs,
19920         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
19921         ToolStripProgressBar.cs, ToolStripContainer.cs,
19922         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
19923         to using System.ComponentModel.EventHandlerList.
19924
19925 2006-12-04  Chris Toshok  <toshok@ximian.com>
19926
19927         * LinkLabel.cs: fix up compiler warnings.
19928
19929         * TableLayoutSettings.cs: same.
19930
19931         * TreeView.cs: same.
19932
19933         * ToolBar.cs: same.
19934
19935         * TabControl.cs: same.
19936
19937         * RichTextBox.cs: same.
19938
19939         * ListViewItem.cs: same.
19940
19941         * PropertyGrid.cs: same.
19942
19943         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
19944
19945         * ToolTip.cs same.
19946
19947         * TextRenderer.cs: fix up compiler warnings.
19948
19949         * Label.cs: same.
19950
19951         * Form.cs: corcompare fixes.
19952
19953         * PictureBox.cs: fix up compiler warnings.
19954
19955         * ImageListStreamer.cs: same.
19956
19957         * TrackBar.cs: corcompare fix.
19958
19959         * Control.cs: fix up compiler warnings.
19960
19961         * SplitterPanel.cs: same.
19962
19963         * NumericTextBox.cs: same.
19964
19965         * ImageList.cs: same.
19966
19967         * StatusStrip.cs: same.
19968
19969         * ProgressBar.cs: corcompare fix.
19970
19971         * ToolStripButton.cs: fix up compiler warnings.
19972
19973         * ToolStripStatusLabel.cs: same.
19974
19975         * ToolStripSplitButton.cs: same.
19976
19977         * ToolStripSeparator.cs: same.
19978
19979         * ToolStripProgressBar.cs: same.
19980
19981         * ToolStripDropDownMenu.cs: same
19982
19983         * ToolStripDropDown.cs: same.
19984
19985         * ToolStripDropDownButton.cs: same.
19986
19987         * ToolStrip.cs: same.
19988
19989         * ToolStripControlHost.cs: same.
19990
19991         * ToolStripContentPanel.cs: same.
19992
19993         * ToolStripDropDown.cs: same.
19994
19995         * ToolStripContainer.cs: same.
19996
19997         * ToolStripPanel.cs: same, and add "new" where we need it to work
19998         with the new ArrangedElementCollection.
19999
20000         * ToolStripItemCollection.cs: add "new" where we need it to work
20001         with the new ArrangedElementCollection.
20002
20003 2006-12-04  Andreia Gaita <avidigal@novell.com>
20004
20005         * TabControl.cs: Fix default tab selection to after TabControl
20006         gets focus and not before. Fixes #80128
20007
20008 2006-12-04  Chris Toshok  <toshok@ximian.com>
20009
20010         * DataGridTableStyle.cs: remove the gross calling of
20011         datagrid.Refresh from here.  It's a broken idea and it doesn't
20012         work anyway.
20013
20014         * DataGrid.cs: instead, just register/unregister from the
20015         DataGridTableStyle events in CurrentTableStyle.  we play it
20016         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
20017         even though some would most likely not require it.  Fixes bug
20018         #80115 (and one portion of #80117 as a side effect).
20019
20020 2006-12-04  Chris Toshok  <toshok@ximian.com>
20021
20022         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
20023         so the textbox (if any) goes away.  Fixes bug #80117.
20024
20025 2006-12-04  Chris Toshok  <toshok@ximian.com>
20026
20027         * DataGridColumnStyle.cs: set the column's readonly property
20028         initially based on the property descriptor's IsReadOnly.  Fixes
20029         bug #80044.
20030
20031 2006-12-04  Chris Toshok  <toshok@ximian.com>
20032
20033         * ComboBox.cs: wrap the dropdown style changing work in
20034         SuspendLayout/ResumeLayout.  Fixes bug #79968.
20035
20036 2006-12-04  Jackson Harper  <jackson@ximian.com>
20037
20038         * TextBoxBase.cs: Fix off by one, since these are one-based.
20039         * TextBox.cs: Select all the text when we get focus.  The TextBox
20040         does this but the RTB does not.
20041
20042 2006-12-04  Chris Toshok  <toshok@ximian.com>
20043
20044         * DataGridTextBoxColumn.cs: remove some spew.
20045
20046         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
20047         but some part of me is saying "it shouldn't be here.."  At any
20048         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
20049         setting the value.
20050
20051 2006-12-04  Chris Toshok  <toshok@ximian.com>
20052
20053         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
20054         to reassign the propertydescriptor.
20055
20056 2006-12-04  Jackson Harper  <jackson@ximian.com>
20057
20058         * TextBoxBase.cs:
20059         * TextControl.cs: Remove some unused variables.  Maybe this will
20060         patch things up between mike and I.
20061         - don't split lines less then one char wide, if the viewport is
20062         that small text won't be visible anyways.
20063         
20064 2006-12-04  Jackson Harper  <jackson@ximian.com>
20065
20066         * TextBoxBase.cs: Default selection length is -1, need to do some
20067         more testing on windows to see when this is used for the property.
20068         - Redid the Lines [] property to that we properly remove soft line
20069         breaks
20070         - added support for preserving carriage returns
20071         -  CanUndo is not a variable like 'is undo enabled' it just returns
20072         true if there is undo operations available.
20073         - AppendText doesn't need to grab the last tag itself anymore,
20074         this happens automatically when we move the cursor.
20075         * TextControl.cs: Add CompoundActions to the undo class. This
20076         allows combining the other operations into one big option.  ie a
20077         paste will combine { delete old, insert new, move cursor }
20078         - Add InsertString undo operation
20079         - New method for deleting multiline text
20080         - Add carriage returns to lines. So we can preserve carriage
20081         returns when text is 'roundtripped'
20082
20083 2006-12-04  Chris Toshok  <toshok@ximian.com>
20084
20085         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
20086         minimum 0.  Fixes the scrollbar exception in bug #80136.
20087
20088 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20089
20090         * MdiClient.cs: 
20091         * MdiWindowManager: Removed unused fields and methods.
20092         
20093 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20094         
20095         * StatusBar.cs: Update all panels when a AutoSize=Contents
20096         panel needs updating.
20097         
20098         * StatusBarPanel.cs: Remove twidth and only use initialize.
20099         Fixes #80031.
20100                 
20101 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20102
20103         * Form.cs: When a form's MdiParent is set add it directly
20104         on top of the z-order in stead of relying on MdiClient's
20105         ActivateChild to do it. Fixes #80135.
20106         
20107         * MdiClient.cs: 
20108         - Remove original_order, mdi_child_list is already doing
20109         the same thing.
20110         - Create mdi_child_list on construction in
20111         stead of first use (avoids a few null checks).
20112
20113         * MenuItem.cs: Use an already existing list of mdi children
20114         to get the correct order of children and remove the other
20115         redundant list.
20116
20117 2006-12-04  Chris Toshok  <toshok@ximian.com>
20118
20119         * PropertyGridView.cs: cached_splitter_location is only used in
20120         !DOUBLEBUFFER code.
20121
20122         * PropertyGrid.cs: implement the ComComponentNameChanged event
20123         using Events, hoping that would fix the warning.  Looks like a
20124         compiler bug instead (#80144).
20125
20126         * PropertyManager.cs: remove unused method.
20127
20128 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
20129
20130         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
20131         include parentesis to fix expression evaluation. Fixes #79634.
20132
20133 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
20134         
20135         * MenuAPI.cs:
20136         - Changes to fix behavior in Menu control, some reported in #80097
20137         and other detected during behavior refactory like a select event
20138         problems.
20139         - Remove unneded "if's" conditions.
20140         - Created an internal to flag when popup is active in control, we need 
20141         it because in .NET you can have menu active but without popup active
20142         when you active menu using popup without visible items.
20143         - Mimic win32 behavior for Select and Popup events.  
20144         - Dont open popup menu when you dont have visible subitems.
20145         - Do nothing when click on disabled menu item.
20146         - Some small changes to follow the coding style guidelines.
20147         - Unselect menu only when another control gives focus. Fixes #80097.
20148         - Remove unused code.
20149         
20150         * MenuItem.cs: internal VisibleItems method to check if menu
20151         theres visible subitems, it will be usefull to fix some 
20152         behavior in Menu control.
20153         
20154 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
20155         
20156         * Timer.cs: Tag property for 2.0 profile.
20157         
20158 2006-12-01  Chris Toshok  <toshok@ximian.com>
20159
20160         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
20161         
20162         * Win32DnD.cs: comment out some unused fields.
20163
20164         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
20165         some unused properties/methods.
20166
20167         * XplatUIX11.cs: fix MousePosition so we override the base class's
20168         property instead of conflicting with it.
20169
20170         * PictureBox.cs: comment out some unused fields
20171
20172         * OSXStructs.cs: make some struct fields public.
20173
20174         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
20175         MousePosition so we override the base class's property instead of
20176         conflicting with it.
20177
20178         * X11Dnd.cs: comment out some unused fields
20179
20180         * X11DesktopColors.cs: fix some struct field visibility to quiet
20181         the compiler.
20182
20183         * X11Dnd.cs: remove some debug code.
20184
20185         * ThemeClearlooks.cs: comment out unused field.
20186
20187         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
20188
20189         * ThemeGtk.cs: comment out some unused pinvokes.
20190
20191         * Timer.cs: remove some unused fields.
20192
20193         * ThemeClearlooks.cs: comment out unused field.
20194
20195         * UpDownBase.cs: comment out unused field.
20196
20197         * DataObject.cs: comment out unused field.
20198
20199         * DataGridBoolColumn.cs: reomve unused field.
20200
20201         * DataGrid.cs: remove unused field.
20202
20203         * Cursor.cs: remove old ToBitmap code.
20204
20205         * ControlPaint.cs: remove unused method.
20206
20207         * ScrollBar.cs: remove unused fields.
20208
20209         * ComboBox.cs: remove unused field, and chain up to
20210         AccessibleObject ctor.
20211
20212         * ListBox.cs: remove unused field.
20213
20214         * ButtonBase.cs: wrap a couple fields in NET_2_0.
20215
20216         * GridEntry.cs: remove unused fields.
20217
20218         * Binding.cs: remove unused fields.
20219
20220         * AxHost.cs: remove unused method.
20221
20222         * ContainerControl.cs: remove unused field.
20223
20224         * ScrollableControl.cs: remove unused fields.
20225
20226 2006-12-01  Chris Toshok  <toshok@ximian.com>
20227
20228         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
20229         the Where/WhereString stuff.  it's easy enough to CWL
20230         Environment.StackTrace.
20231
20232         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
20233         unused private fields.
20234
20235 2006-12-01  Jackson Harper  <jackson@ximian.com>
20236
20237         * TextControl.cs: Do not update the view while inserting multiline
20238         text. If we update the view we might wrap lines, before entering
20239         the new lines, which causes the new line insertion calculations to
20240         be totally fubared.
20241         - Remove an old TODO
20242         - Make debug output a little nicer
20243         
20244 2006-12-01  Chris Toshok  <toshok@ximian.com>
20245
20246         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
20247
20248 2006-12-01  Chris Toshok  <toshok@ximian.com>
20249
20250         [ fix the majority of the CS0108 warnings we've been suppressing ]
20251         
20252         * TreeView.cs: mark BackgroundImageChanged as 'new'.
20253
20254         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
20255         to "LayoutToolBar" to quiet mcs.
20256         
20257         * TabControl.cs: mark our ControlCollection class as 'new'.
20258
20259         * TextBoxBase.cs: mark some events as 'new'.
20260
20261         * Splitter.cs: TabStop is 'new'.
20262
20263         * ControlBindingsCollection.cs: mark a few methods as new since
20264         they change the visibility from protected to public.
20265
20266         * RadioButton.cs: DoubleClick -> base class, and remove unused
20267         HaveDoubleClick.
20268
20269         * MonthCalendar.cs: ImeMode property -> base class, and mark many
20270         events as new.
20271
20272         * NumericUpDown.cs: TextChanged -> base class.
20273
20274         * CheckedListBox.cs: mark our ObjectCollection class as new to
20275         quiet mcs.
20276
20277         * FolderBrowserDialog.cs: make HelpRequest event new and have it
20278         muck with the base class.
20279
20280         * StatusBar.cs: fix some mcs warnings about Update being the same
20281         name as a base class method.
20282
20283         * RichTextBox.cs: mark some events as new, and make them do things
20284         to the base class impl.
20285
20286         * UserControl.cs: mark TextChanged as new, and have it manipulate
20287         base.TextChanged.
20288
20289         * UpDownBase.cs: mark some things new.
20290
20291         * CheckBox.cs: mark DoubleClick "new", and add some text about
20292         what we need to look at.
20293
20294         * Panel.cs: make the events "new", and manipulate the base
20295         version.  these are just here for attributes.
20296
20297         * AccessibleObject.cs: make owner private.
20298
20299         * Control.cs: deal with AccessibleObject.owner being private.
20300         cache our own copy if we need it.
20301
20302         * Button.cs: add "new" to the DoubleClickEvent.
20303
20304         * ListBox.cs: no need to track our own has_focus here.  let
20305         Control.has_focus do it for us.  Also some other work to clear up
20306         warnings about not overriding base class methods of the same name.
20307         
20308         * ComboBox.cs: clear up some warnings about not override base
20309         class methods of the same name.
20310
20311 2006-12-01  Chris Toshok  <toshok@ximian.com>
20312
20313         * Form.cs: flag a few things as "new" to quiet some of the mcs
20314         warnings.
20315
20316         * AxHost.cs: same.
20317
20318         * PrintPreviewDialog.cs: same.
20319
20320         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
20321         now DGV isn't so horrible on the class status page.  also, move
20322         all events to using System.ComponentModel.EventHandlerList.  my
20323         wrists hurt.
20324
20325 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20326
20327         * MdiWindowManager.cs:
20328         - Set form to active mdi child if shown,
20329         and update the active mdi child to the next 
20330         remaining child in the z-order if the form is hidden.
20331
20332         * Form.cs: 
20333         - Track if the form has been visible and if its 
20334         visibility is beeing changed, so that the MdiClient
20335         can properly decide the ActiveMdiChild. The MdiClient 
20336         cannot track this since the form can change visibility 
20337         before MdiClient is created.
20338
20339         * MdiClient.cs:
20340         - Don't activate anything of the parent form is changing
20341         its visibility.
20342         - Rework ActiveMdiChild to only return visible mdi 
20343         children and take into account several other corner 
20344         cases.
20345
20346 2006-12-01  Chris Toshok  <toshok@ximian.com>
20347
20348         * IBindableComponent.cs: new 2.0 interface.
20349
20350 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
20351
20352         * DataGrid.cs: Font for caption area is bold by default.
20353
20354 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
20355
20356         * Menu.cs: Tag property for 2.0.
20357         
20358 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
20359
20360         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
20361         
20362 2006-12-01  Chris Toshok  <toshok@ximian.com>
20363
20364         * TreeView.cs: doh, the Begin* events should be
20365         TreeViewCancelEventHandler.
20366
20367 2006-12-01  Chris Toshok  <toshok@ximian.com>
20368
20369         * Form.cs: Form.ControlCollection already stores off the
20370         form_owner field.  don't access the base class's internal "owner"
20371         field.
20372
20373         * Control.cs: make all the fields in Control.ControlCollection
20374         private.  there's no need for any internal fields here.
20375
20376 2006-12-01  Chris Toshok  <toshok@ximian.com>
20377
20378         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
20379         OnHandleCreated.  Fixes bug #80109.
20380
20381 2006-12-01  Chris Toshok  <toshok@ximian.com>
20382
20383         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
20384         SplitContainer.cs, Control.cs, StatusStrip.cs,
20385         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
20386         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
20387         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
20388         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
20389         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
20390         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
20391         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
20392         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
20393         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
20394         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
20395
20396         do most of the work to convert our code over to use
20397         System.ComponentModel.Component.Events for
20398         adding/removing/dispatching events.
20399
20400
20401 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
20402
20403         * DataGridView.cs: Fix an ArgumentNullException reported 
20404         twice today in IRC.
20405
20406 2006-11-30  Mike Kestner  <mkestner@novell.com>
20407
20408         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
20409         grabbed listbox.  Fixes #80036 and #80101.
20410
20411 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
20412
20413         * Message.cs: Changed ToString() to match MS.
20414         
20415 2006-11-30  Jackson Harper  <jackson@ximian.com>
20416
20417         * TextBoxBase.cs: You can still change the selected text on a read
20418         only textbox.
20419         * TextControl.cs: Lower magic number for wrap calculations. This
20420         lets text get closer to the right (far) edge.
20421
20422 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
20423
20424         * Control.cs: Tweak 2.0 layout properties.
20425         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
20426         * TextRenderer.cs: Add a new overload.
20427         * ToolStrip*: Huge amount of changes and new features.
20428
20429 2006-11-30  Mike Kestner  <mkestner@novell.com>
20430
20431         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
20432         scroll range correct.  Fixes #79994.
20433
20434 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
20435
20436         * MdiWindowManager.cs: Update main form's text when
20437         a form is closed. (fixes #80038)
20438         
20439 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
20440
20441         * ToolBar.cs:
20442         - Fix an regression in ButtonSize.
20443         - Get ImeMode default value change to "Disable".
20444         - Get ShowTooltips default value change to true, default value is 
20445         "false" but after make a test in .NET we get "true" result as default.
20446         
20447 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
20448
20449         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
20450
20451 2006-11-29  Chris Toshok  <toshok@ximian.com>
20452
20453         * XplatUIWin32.cs (GetWindowTransparency): check return value of
20454         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
20455         SetWindowTransparency hasn't been called.
20456
20457 2006-11-29  Chris Toshok  <toshok@ximian.com>
20458
20459         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
20460         if it's supported.
20461         (set_AllowTransparency): reorder things a little so that the
20462         WS_EX_LAYERED style is removed properly.
20463
20464 2006-11-29  Chris Toshok  <toshok@ximian.com>
20465
20466         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
20467         
20468         * Form.cs: only call the XplatUI transparency method (get/set) if
20469         SupportsTransparency says it's supported. Otherwise fallback to
20470         doing nothing (in the set case) or returning the instance field we
20471         cache (in the get case).
20472
20473         * XplatUIStructs.cs: add TransparencySupport flag enum.
20474         
20475         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
20476         change to SupportsTransparency.
20477
20478         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
20479         TransparencySupport.None from SupportsTransparency.
20480
20481         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
20482         TransparencySupport.Set from SupportsTransparency.
20483
20484         * XplatUIWin32.cs: implement GetWindowTransparency calling
20485         GetLayeredWindowAttributes, and implement SupportsTransparency by
20486         checking whether or not both
20487         GetWindowTransparency/SetWindowTransparency are available
20488         entrypoints.  We need to do this since SetWindowTransparency is
20489         available as of win2k, but GetWindowTransparency requires winxp.
20490         yay win32 api.
20491
20492         * XplatUI.cs: Add GetWindowTransparency, and change
20493         SupportsTransparency to allow for either/both Get/Set.
20494
20495 2006-11-29  Chris Toshok  <toshok@ximian.com>
20496
20497         * DataGrid.cs: keep from going into an infinite loop redrawing a
20498         datagrid that has no datasource.  Fixes bug #80033.
20499
20500 2006-11-29  Chris Toshok  <toshok@ximian.com>
20501
20502         * MenuItem.cs: fix the NRE when we assign text (and therefore call
20503         Invalidate) before the mainmenu has been assigned to a control.
20504
20505 2006-11-29  Chris Toshok  <toshok@ximian.com>
20506
20507         * DataGrid.cs: detect when we should be double the double click
20508         row/column autosize stuff, although that codepath has yet to be
20509         written.  part of the work for bug #79891.
20510
20511 2006-11-29  Chris Toshok  <toshok@ximian.com>
20512
20513         * Binding.cs (SetControl): fix unit test.
20514
20515 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20516
20517         * PageSetupDialog.cs: Validate the margins and set them in
20518         PageSettings. 
20519         * NumericTextBox.cs: New class to mimic the behavior of the
20520         textboxes used in the printing dialogs.
20521
20522 2006-11-29  Andreia Gaita  <avidigal@novell.com>
20523         
20524         * Form.cs: Revert previous change (remove call UpdateBounds
20525         from form constructor), because it messes with the handle creation
20526         order, and that one needs lots and lots of love.
20527         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
20528         for valid printer and throw InvalidPrinterException if document
20529         is set but printer not valid), adding a MonoTODO. Once 
20530         handle creation is done properly, we can put this back in.
20531
20532 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
20533
20534         * MenuItem.cs: Create a invalidate method for menu item, to be
20535         calling from set text, it make text changes to imadiate update
20536         on screen. Fixes #80013. 
20537         
20538 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
20539
20540         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
20541         fixes bug #80070 and some other problem on toolbar buttons
20542         layout.
20543
20544 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
20545
20546         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
20547         with dotted brush.      Fixes #79564
20548         
20549 2006-11-28  Andreia Gaita  <avidigal@novell.com>
20550
20551         * Form.cs: Removed call to UpdateBounds on Form
20552         constructor, it was causing a call to CreateHandle
20553         before it was supposed to.
20554         * PrintControllerWithStatusDialog: Applied patch
20555         by Chris Toshok to hide controller when there are
20556         no printers available.
20557         PrintDialog.cs: initialize printer settings to 
20558         null - correct DefaultValues test #5
20559         * PrintPreviewControl.cs: Move PrintController
20560         initialization to GeneratePreview
20561         * PrintPreviewDialog.cs: 
20562         - Remove Preview generation     from Document_set(). It is 
20563         called on OnPaint
20564         - Throw InvalidPrinterException on CreateHandle if
20565         a Document is set but there are no printers or 
20566         printer is not valid.
20567         * ThemeWin32Classic: don't paint PrintPreviewControl
20568         if there is nothing to paint    
20569
20570 2006-11-28  Miguel de Icaza  <miguel@novell.com>
20571
20572         * Form.cs: Add another popular method.
20573
20574         * TabPage.cs: ditto.
20575
20576 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20577
20578         * MenuItem.cs: Fixed a warning.
20579         * InternalWindowManager: Fixed a warning.
20580
20581 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20582
20583         * MenuItem.cs:
20584         - When cloning a menu also clone MdiList and clone the 
20585           window menu items properly (as the forms and menuitems
20586           are kept in an internal hashtable, these need updating 
20587           as well)
20588         - Rewrote the window menu code, menu items are added in the
20589           order the forms were added to their parent, and they are
20590           updated every time the window menu is shown (before the
20591           list was only generated once, in the current order of the
20592           forms, and would never be updated). A checkmark is shown
20593           next to the item corresponding to the active mdi child.
20594
20595 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20596
20597         * XplatUIStructs.cs: 
20598         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
20599         
20600         * XplatUIWin32.cs: 
20601         - Added TME_NONCLIENT to TMEFlags.
20602         - Handles WM_NCMOUSEMOVE in GetMessage to 
20603           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
20604
20605         * MdiWindowManager:
20606         - Now merges mdi child menu to parent menu when maximized.
20607         - Recalculate NC areas of both mdi child and mdi parent. 
20608           Fixes #79757 (4).
20609           on window state and size changes.Fixes #79844 (3).
20610         - Handle WM_NCCALCSIZE to properly calculate borders.
20611
20612         * Form.cs:
20613         - Add/remove to the mdi containers list of mdi children 
20614           in the order they are added.
20615         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
20616           to the maximized mdi child.
20617         
20618         * InternalWindowManager.cs:
20619         - Only execute a click on the control buttons on the mouse up,
20620           not on the mouse down. Show the state of the button 
20621           (was only showing Normal state, never Pressed state). The
20622           pressed button now follows the mouse (if you click the Close 
20623           button and move the mouse over the Maximize button, the 
20624           Maximize button will be shown as pressed). Since Win32 does
20625           not generate WM_NCLBUTTONUP if you release the button outside
20626           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
20627           it as a mouse up.
20628         
20629         * ThemeWin32Classic.cs:
20630         - Draw a missing border around mdi child forms. Fixes #79844 (2).
20631
20632         * MdiClient.cs:
20633         - Added a list of forms which contains the order the forms are
20634           added to the mdi parent.
20635         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
20636         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
20637         - If the active form changes set the scrollbars to the top
20638           of the Z order, otherwise the form could hide them.
20639         - Scrollbars are now sized according to ClientSize, not 
20640           to Size, and they take into account the other scrollbar
20641           to determine maximum.
20642         
20643 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
20644         
20645         * XplatUI.cs:
20646         * XplatUIDriver.cs:
20647         * XplatUIX11.cs:
20648         * XplatUIWin32.cs:
20649         * XplatUIOSX.cs:
20650         - Added RequestAdditionalWM_NCMessages for windows to 
20651           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
20652           Currently only implemented in XplatUIWin32.
20653
20654 2006-11-27  Chris Toshok  <toshok@ximian.com>
20655
20656         * Hwnd.cs: only add the hwnd to the windows hash in
20657         set_WholeWindow and set_ClientWindow if whole_window/client_window
20658         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
20659
20660 2006-11-27  Mike Kestner  <mkestner@novell.com>
20661
20662         * ComboBox.cs: remove redundant OnDropDown call.  It is called
20663         from the ComboListBox.ShowWindow code. Fixes #79969.
20664
20665 2006-11-27  Chris Toshok  <toshok@ximian.com>
20666
20667         * Hwnd.cs: remove the setters for ExposePending and
20668         NCExposePending - noone uses them.
20669
20670 2006-11-27  Jackson Harper  <jackson@ximian.com>
20671
20672         * TextControl.cs: new param for ReplaceSelection which determines
20673         whether we select the new selection, or set the cursor to the end
20674         of the new selection.
20675         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
20676         pasting, select the new text.
20677         * RichTextBox.cs: Use new param for ReplaceSelection.
20678
20679 2006-11-27  Jackson Harper  <jackson@ximian.com>
20680
20681         * TextBoxBase.cs: Set the selection to the caret after the caret
20682         is moved, otherwise they get out of sync.
20683
20684 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
20685
20686         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
20687         it fixes #80015
20688
20689 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
20690
20691         * ThemeWin32Classic.cs: 
20692         - Fix toolbar drop down arrow position.
20693         - Fix drop down appearance when ToolBar.Appearance is normal,
20694         it fixes #80018.
20695         
20696 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
20697
20698         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
20699         * Control.cs: Same.
20700         * UpDownBase.cs: Same.
20701         * ButtonBase.cs: Same.
20702         * ScrollBar.cs: Same.
20703         * TrackBar.cs: Same.
20704         * PictureBox.cs: Same.
20705         * UserControl.cs: Same.
20706         * Label.cs: Same.
20707         * ListControl.cs: Same.
20708         * TextBoxBase.cs: Same.
20709         * ListView.cs: Same.
20710         * RichTextBox.cs: Same.
20711         * TreeView.cs: Same.
20712
20713 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
20714
20715         * PrintDialog.cs:
20716         - Text label for where 
20717         - Text label comment was not shown
20718
20719 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
20720
20721         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
20722
20723 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
20724
20725         * InternalWindowManager.cs: 
20726         - Handle WM_PARENTNOTIFY to activate the form
20727         if any child control is clicked.
20728         - The form is only sizable if not minimized.
20729
20730         * MdiWindowManager.cs:
20731         - Save the IconicBounds if the form is moved.
20732         - Rework SetWindowState, now the window bounds 
20733         are stored only if the old window state is Normal.
20734         
20735         * MdiClient.cs:
20736         - In SetWindowStates store the old window state if 
20737         the window is maximized and restore window state if
20738         the window looses focus.
20739         - Don't handle any scrollbar value changes if 
20740         initializing the scroll bars. Fixes #79771.
20741         - Reworked ArrangeIconicWindows. Current algorithm
20742         tests bounds agains all other minimized windows, if
20743         any intersections create new bounds (going left to 
20744         right, bottom to top) and then test again. When 
20745         successful the bounds are saved and never computed
20746         again. Fixes #79774.
20747
20748 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
20749
20750         * InternalWindowManager.cs: Added HandleTitleBarUp.
20751
20752 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
20753
20754         * NumericUpDown.cs: In .NET 1.1, user entered text is still
20755         hexadecimal in ParseUserEdit.
20756
20757         
20758 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
20759
20760         * MdiWindowManager.cs: 
20761         - Handle a click on the form's icon to show the 
20762         system menu (when maximized). Fixes #79775.
20763         - Change the existing click handler for the form's
20764         icon when not maximized to show on MouseUp.
20765         Fixes #79776.
20766
20767         * Form.cs: In OnResize only layout the mdi child's
20768         parent if it actually has a parent. Might not if
20769         the window is closing.
20770
20771
20772 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
20773
20774         * MdiClient.cs: Ignore active MDI client for text of parent, if
20775         child has no text set.
20776
20777 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
20778
20779         * ToolBar.cs: Fixed ToString to match MS.
20780
20781 2006-11-22  Andreia Gaita  <avidigal@novell.com>
20782
20783         * NumericUpDown: 
20784         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
20785         update inner values on set. Fixes #79966.
20786         - Override OnLostFocus to update value on NET 2. Fixes #79950.
20787         - Fix hexadecimal parsing.
20788         
20789         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
20790         parent. Fixes #79957
20791
20792 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20793
20794         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
20795         the actual size has to be queried, since if height /
20796         width is negative Win32 changes it to 0. 
20797         Fixes #79999 on Windows.
20798         
20799         * XplatUIX11.cs: Set height / width to 0 if negative
20800         in SetWindowPos. Fixes #79999 on Linux.
20801         
20802 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
20803
20804         * ThemeWin32Classic.cs: Fix text redenring when button is
20805         pressed.
20806
20807 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
20808
20809         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
20810         and later navigate by mouse. Fixes #79528.
20811
20812 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
20813
20814         * ToolBar.cs: Set default value for TabStop to false in
20815         constructor, it fixes remaining behavior of bug #79863.
20816
20817 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20818
20819         * MdiWindowManager.cs:
20820         * InternalWindowManager.cs:
20821         - Moved a few methods specific to Mdi from 
20822         InternalWindowManager to MdiWindowManager.
20823         Fixes #79996.
20824         
20825 2006-11-21  Chris Toshok  <toshok@ximian.com>
20826
20827         * XplatUIOSX.cs: stub out InvalidateNC.
20828
20829         * XplatUIWin32.cs: implement InvalidateNC using the call I found
20830         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
20831
20832         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
20833
20834         * XplatUIDriver.cs: add InvalidateNC abstract method.
20835
20836         * XplatUI.cs: add InvalidateNC.
20837
20838 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
20839
20840         * ToolBar.cs: Invalidate complete button area when pressed status 
20841         was changed.
20842         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
20843         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
20844         by 1 when button is pressed.
20845
20846 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
20847
20848         * ToolButton.cs: Invalidate middle of DropDown button when
20849         ToolBar theres DropDownArrows.
20850         * ThemeWin32Classic.cs: Change position of DropDown arrow and
20851         fix DropDown drawing operations.
20852
20853 2006-11-20  Chris Toshok  <toshok@ximian.com>
20854
20855         * NativeWindow.cs: fix the formatting of functions ('{' on the
20856         following line), and enable the thread exception dialog.
20857
20858         * Application.cs: remove the duplicate exception catching from
20859         here.
20860
20861 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
20862
20863         * Toolbar.cs: Triggers button click event when click on icon
20864         of dropdown ToolBarButton. Fixes #79912.
20865         
20866 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20867
20868         * Theme.cs:
20869         * ThemeWin32Classic.cs:
20870         - Added a property WindowBorderFont to enable themeing
20871           of mdi child windows' Text.
20872           
20873 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20874
20875         * InternalWindowManager.cs:
20876         * Form.cs:
20877         * MdiClient.cs:
20878         * MdiWindowManager.cs: 
20879         - If mdi child is maximized, set mdi parent's
20880           text to "Parent - [Child]". Fixes #79770.
20881         - If there is any maximized mdi child windows, only the active 
20882           window (and any new windows) is maximized, the rest are normal.
20883         - On a WindowState change only save mdi child's window bounds 
20884           if the old window state was normal. Fixes #79774.
20885         - The scroll bars are now calculated on hopefully all
20886           necessary events. Fixed #79771 / #79844->6 / #79906.
20887         - MdiClient.SizeScrollBars() now takes into account docked 
20888           controls in the parent when calculating available space.
20889         - InternalWindowManager now always repaints the entire title
20890           area. Fixes #79844->1/4/5.
20891         - Added RequestNCRecalc on mdi child windowstate changes.
20892           Fixes #79772.
20893
20894 2006-11-20  Mike Kestner  <mkestner@novell.com>
20895
20896         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
20897         in the MouseUp handler of the listbox and move the return handling
20898         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
20899
20900 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
20901
20902         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
20903
20904 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
20905
20906         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
20907           working in 1.2.x anymore. So, updated.
20908
20909 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
20910
20911         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
20912         NumberGroupSeparator of current culture instead of assuming en-US.
20913         Fixed bug #79967.
20914
20915 2006-11-17  Mike Kestner  <mkestner@novell.com>
20916
20917         * Control.cs: Add the concept of implicit bounds setting so that
20918         dock/undock round trips preserve explicitly set size/locations.
20919         Fixes #79313.
20920
20921 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
20922
20923         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
20924           can't handle those filters. (Fixes bug #79961)
20925
20926 2006-11-17  Chris Toshok  <toshok@ximian.com>
20927
20928         [ fixes the exit/crashes associated with #79835.  it's clearly
20929         suboptimal though, we need to figure out a better way to solve
20930         this. ]
20931         
20932         * PrintPreviewControl.cs: deal with the new invalid printer
20933         exceptions.
20934
20935         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
20936         and return false (so CommonDialog.ShowDialog doesn't actually show
20937         the form.)
20938
20939         * PrintDialog.cs: enable/disable the Ok button depending on
20940         whether or not the printer is valid.
20941
20942         * CommonDialog.cs (ShowDialog): only actually show the form if
20943         RunDialog returns true.
20944
20945 2006-11-17  Jackson Harper  <jackson@ximian.com>
20946
20947         * TextControl.cs: When soft splitting a line, mark it as a soft
20948         split line. Also carry over the current line break to the next
20949         line.
20950
20951 2006-11-17  Chris Toshok  <toshok@ximian.com>
20952
20953         * XplatUIX11.cs: when scrolling a window with an invalid area, we
20954         only want to shift the part of the invalid area that overlaps the
20955         area we're scrolling.  we also don't want to clear the invalid
20956         area unless the invalid area was entirely contained within the
20957         scrolling area.
20958
20959 2006-11-16  Chris Toshok  <toshok@ximian.com>
20960
20961         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
20962         also make sure to free the memory returned by XGetWindowProperty
20963         in GetText().
20964
20965         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
20966
20967 2006-11-16  Chris Toshok  <toshok@ximian.com>
20968
20969         * XplatUI.cs: add a new super secret way to get at the totally
20970         unsupported X11 backend.
20971
20972 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
20973
20974         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
20975
20976 2006-11-16  Jackson Harper  <jackson@ximian.com>
20977
20978         * TreeView.cs: Allow more explicit setting of top node position
20979         for scrollbars. Slower algo, but more accurate.
20980         - CollapseAll should maintain the current top node.
20981         * TextBoxBase.cs: When positioning the caret, use the line, pos
20982         method, since the x, y method does not grab the correct tag, and
20983         the caret height never gets set correctly. (Maybe I should just do
20984         away with the caret having its own height, and always use the
20985         carets current tag for height).
20986
20987 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
20988
20989         [Fixes 79778, 79923]
20990
20991         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
20992         Parent to the FosterParent instead.
20993
20994 2006-11-16  Jackson Harper  <jackson@ximian.com>
20995
20996         * TreeView.cs: Need to recalc the topnode when we expand or
20997         collapse. The scrolling methods can't handle this on their own,
20998         since they use differences between the last scroll position, and
20999         those difference get completely messed up since we are expanding
21000         nodes.  This problem should probably be fixed in the scrolling
21001         methods, so they can figure out exactly where they are, but this
21002         will slow things down a little.
21003         * ThemeWin32Classic.cs: Special case for groupboxes with empty
21004         strings, makes nunit-gui look a lot nicer.
21005
21006 2006-11-16  Chris Toshok  <toshok@ximian.com>
21007
21008         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
21009         the broken multithreaded event handling we have in here.  File
21010         this entry under "Why we should move to the new X11 backend".
21011
21012         Any thread can make it into UpdateMessageQueue, which gets events
21013         from the X socket - some of which could belong to hwnds being
21014         managed by a different thread.  We can also have multiple threads
21015         in UpdateMessageQueue at the same time, with each one reading from
21016         the X socket.  This leads to many problems, with the following
21017         solutions:
21018
21019         We can't use hwnd.Queue.Enqueue anywhere in here and must use
21020         EnqueueLocked.
21021
21022         The MotionNotify compression we do can't work across threads
21023         (without locking the entire queue, perhaps) since we call
21024         hwnd.Queue.Peek, so we just punt and don't compress motion events
21025         unless the owning thread is the one which got the X event.
21026
21027         ConfigureNotify is another fun one, since it modifies the hwnd's
21028         bounds and then enqueues the event.  We add a lock to Hwnd which
21029         is held when setting configure_pending to true (and enqueuing the
21030         event).
21031
21032         There is a race wrt the wake socket.  we need to make sure that
21033         only 1 thread is waiting on that socket, or else a thread could
21034         sleep waiting for data that never comes.  It's difficult (but not
21035         impossible) to make happen, because it seems to require something
21036         like the following:
21037
21038             1. Thread 1 polls on wake_receive
21039         
21040             2. poll returns saying there's data to be read on
21041                wake_receive.
21042         
21043             3. Thread 2 polls on wake_receive and immediately returns
21044                saying there's data to be read.
21045
21046             4. Thread 2 reads the wakeup byte from wake_receive
21047
21048             5. Thread 1 attempts to read the wakeup byte from
21049                wake_receive.
21050
21051             6. Thread 2 exits (due to a form closing, perhaps).
21052
21053             7. Thread 1 blocks forever.
21054         
21055         Fun, eh?
21056
21057         Fixing the Expose handling isn't done yet, and the races inherent
21058         in that piece of code are responsible for the drawing mistakes you
21059         see when generating expose events in a MT app (like NPlot).  This
21060         one is the likely to be the hardest to bandaid, and it doesn't
21061         appear to cause anything but drawing problems.  The other issues
21062         caused apps to exit or hang.
21063
21064         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
21065         called from a different thread than the one that should be calling
21066         these functions.
21067
21068         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
21069
21070 2006-11-15  Chris Toshok  <toshok@ximian.com>
21071
21072         * Application.cs: null out the context's MainForm when we exit
21073         RunLoop.  Fixes a newly checked in unit test as well as the last
21074         ODE from bug #79933.
21075
21076 2006-11-15  Chris Toshok  <toshok@ximian.com>
21077
21078         * Form.cs (set_Owner): allow a null value so we can clear the
21079         form's owner.
21080         (Dispose): set all our owned_form's Owner properties to null, and
21081         clear the owned_forms collection.
21082         (WM_CLOSE): clean up this a little bit.. still not right though.
21083
21084         * ApplicationContext.cs: OnMainFormClosed should only call
21085         ExitThreadCore if the main form isn't recreating.  Fixes unit
21086         test.
21087
21088 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
21089
21090         [Fixes 78346]
21091
21092         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
21093
21094 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
21095
21096         [Fixes 79433]
21097
21098         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
21099         keep popup window types from stealing focus from the main form
21100         on Windows.
21101
21102         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
21103
21104         * MenuAPI.cs: Set above flag to true.
21105
21106 2006-11-15  Chris Toshok  <toshok@ximian.com>
21107
21108         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
21109         the button being released is not in wParam.
21110
21111 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
21112
21113         * Form.cs: Add the released button to MouseEventArgs.Button
21114         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
21115         on Win32.
21116
21117 2006-11-15  Chris Toshok  <toshok@ximian.com>
21118
21119         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
21120         GetText().  untested because it's unused in our implementation.
21121         Control.Text always caches the text, even if
21122         ControlStyles.CacheText is not set.
21123
21124         fixes bug #79939.
21125
21126 2006-11-15  Chris Toshok  <toshok@ximian.com>
21127
21128         [ fixes #79933 ]
21129         
21130         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
21131         message.  no hiding, no disposing.
21132
21133         in the WM_CLOSE handler, hide the form if it's modal.
21134
21135 2006-11-15  Chris Toshok  <toshok@ximian.com>
21136
21137         * XplatUIX11.cs: use AddExpose instead of sending a message.
21138         fixes textbox border drawing.
21139
21140 2006-11-15  Chris Toshok  <toshok@ximian.com>
21141
21142         * PropertyGridView.cs: keep from crashing on mouse move/down when
21143         the property grid is empty.
21144
21145 2006-11-14  Jackson Harper  <jackson@ximian.com>
21146
21147         * TextControl.cs: Make PageUp and PageDown more like the MS
21148         versions.
21149         * TextBoxBase.cs: When we set the text property position the
21150         cursor at the beginning of the document.
21151
21152 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21153
21154         * Form.cs: if a mdi child's WindowState has changed
21155         before it's creation, it would display wrong control
21156         buttons.
21157         
21158 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
21159
21160         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
21161           (Fixes bug #79927)
21162
21163 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
21164
21165         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
21166         the window gets to paint its borders even if the window is
21167         getting smaller.
21168         
21169         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
21170         otherwise the old control buttons would still be painted 
21171         if the window gets bigger.
21172         
21173         * PaintEventArgs.cs: add an internal method so that the clip 
21174         rectangle can be changed.
21175         
21176 2006-11-13  Chris Toshok  <toshok@ximian.com>
21177
21178         [ fixes bug #79745 ]
21179         
21180         * NotifyIcon.cs: lots of cleanup.
21181
21182         * X11Structs.cs: add an enum for XEMBED messages.
21183
21184         * XplatUIX11.cs: reindent one of the giant switch statements, it
21185         was taking up an additional tab stop, and this file is already way
21186         too wide for my laptop's screen.
21187
21188         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
21189         we get it, resize the hwnd to the WMNormalHints max_width/height.
21190
21191 2006-11-13  Jackson Harper  <jackson@ximian.com>
21192
21193         * TextBoxBase.cs: Compute the value changes for the mouse wheel
21194         teh simple way.
21195
21196 2006-11-13  Chris Toshok  <toshok@ximian.com>
21197
21198         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
21199         #79898.  force a reference to the Region to stick around so the
21200         unmanaged object isn't collected (rendering our handle in the MSG
21201         stale).
21202
21203 2006-11-13  Chris Toshok  <toshok@ximian.com>
21204
21205         * XplatUIX11.cs: fix #79917 for window managers which support
21206
21207         using XStoreName on the raw utf8, and we need to convert to
21208         COMPOUND_TEXT if it's non-latin1.
21209
21210 2006-11-13  Chris Toshok  <toshok@ximian.com>
21211
21212         * Form.cs (set_DialogResult): we need to set closing to false if
21213         we're setting our result to None.  fixes bug #79908.
21214
21215 2006-11-13  Jackson Harper  <jackson@ximian.com>
21216
21217         * TextControl.cs: When formatting text, compute the adjusted tag
21218         lengths correctly, using FindTag for the end tag instead of trying
21219         to figure it out outselves.
21220         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
21221         the item, ItemHeight doesn't work, because trees with large
21222         imagelists use those for their height
21223         * TreeView.cs: ActualItemHeight factors in the image height
21224         - compute left edge of checkboxes correctly
21225         - when expanding/collapsing move the bottom down one pixel, so we
21226         aren't moving part of the node
21227
21228 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21229
21230         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
21231         stack in PaintEventStart so that it won't get disposed by the gc
21232         before reaching PaintEventEnd.
21233
21234 2006-11-13  Jackson Harper  <jackson@ximian.com>
21235
21236         * TextBoxBase.cs: Don't select the word if we are on a line with
21237         no text.
21238         - We don't need to position the caret on mouse up, since the mouse
21239         move handler should be doing this
21240         - When double clicking a blank line, the caret is advanced to the
21241         next line.
21242
21243 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
21244
21245         * TreeNodeCollection.cs: Avoid duplicating indexer code.
21246
21247 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
21248
21249         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
21250         Fixes part of bug #79910.
21251
21252 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
21253
21254         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
21255           (bug #79903). Some minor string updates to match ms.
21256
21257 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
21258
21259         * FileDialog.cs: Don't add an extension if the filename
21260           already ends with that extension.
21261
21262 2006-11-10  Jackson Harper  <jackson@ximian.com>
21263
21264         * TreeView.cs: Use the currently highlighted node for the
21265         BeforeSelect event.
21266         * TextBoxBase.cs: There is no need to expand selection on
21267         MouseMove.
21268         - CanUndo means 'is there any undo operations', not 'is undo
21269         allowed on this textcontrol. Fixed ClearUndo unit test.
21270
21271 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
21272
21273         * Button.cs: only perform click when button is Selectable (so as 
21274         not to activate default buttons when they're disabled)
21275         
21276         * Control.cs: Rewrite of the SelectNextControl and related 
21277         methods. HandleClick now selects next control if the current one
21278         is being disabled.
21279         
21280         * Form.cs: OnActivated selects next active control only if Load 
21281         has already occurred. If Load hasn't run, there's no point in 
21282         selecting here, Load might change the state of controls.
21283         
21284         * FocusTest.cs: Tests marked as working again for these fixes
21285
21286 2006-11-10  Chris Toshok  <toshok@ximian.com>
21287
21288         * XplatUIX11.cs: a couple of fixes.
21289
21290         - use XInternAtoms with almost all the atoms we need to register,
21291         instead of many, many calls to XInternAtom.  should help a bit on
21292         startup time, at the expense of making the code look a little
21293         worse.
21294
21295         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
21296         isn't reparented (which seems to be a clue that we're running fon
21297         compiz) and they have an Owner form.  This fixes the tool windows
21298         in paint.net when running under compiz.
21299
21300         - when setting the opacity of a window, support both the case
21301         where the window has been reparented and also when it hasn't been.
21302         Since compiz/beryl doesn't seem to reparent windows, and these are
21303         the only window managers which support translucency, I'm not sure
21304         why we need the hwnd.reparented case at all.. but leave it in.
21305         now we get translucent windows in paint.net under compiz/beryl.
21306
21307 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
21308
21309         * FileDialog.cs: Always return the value for FilterIndex that
21310           was set. Internally convert it to values that make sense.
21311
21312 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
21313         
21314         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
21315
21316 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
21317
21318         * Toolbar.cs: Change default value of DropDownArrows to true, the 
21319         signature still using false to make it compatible with MS but the 
21320         initial value is true. Fixes #79855.
21321
21322 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
21323
21324         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
21325           only available on Linux.
21326
21327 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
21328
21329         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
21330         reduce number of calls to redraw method during toolbar creation.
21331
21332 2006-11-09  Mike Kestner  <mkestner@novell.com>
21333
21334         * ListView.cs : raise SelectedIndexChanged when an item is selected
21335         programmatically via the Item.Selected property.  Gert's nice 
21336         ListViewSelectedIndexChanged test fixture now runs clean.
21337
21338 2006-11-09  Mike Kestner  <mkestner@novell.com>
21339
21340         * ListView.cs : raise SelectedIndexChanged when a selected item is
21341         removed from the item collection using Remove or RemoveAt.
21342
21343 2006-11-09  Mike Kestner  <mkestner@novell.com>
21344
21345         * ListView.cs : raise SelectedIndexChanged once per selected item
21346         for compat with MS.  Fixes #79849+.
21347
21348 2006-11-09  Chris Toshok  <toshok@ximian.com>
21349
21350         * TabControl.cs: initialize row_count to 0, and set it to 1 when
21351         we need to (if we have any tab pages).  Fixes unit test.
21352
21353 2006-11-09  Chris Toshok  <toshok@ximian.com>
21354
21355         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
21356         width is 0, not 3.  Fixes a unit test.
21357
21358 2006-11-09  Mike Kestner  <mkestner@novell.com>
21359
21360         * ListView.cs : use Implicit scrollbars so that focus isn't 
21361         stolen from the listview when they are clicked. Fixes #79850.
21362
21363 2006-11-09  Chris Toshok  <toshok@ximian.com>
21364
21365         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
21366         have a root item.  Fixes #79879.
21367
21368 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
21369
21370         * FileDialog.cs:
21371           - Fix ToString ()
21372           - An ArgumentException is now thrown if a wrong filter
21373             is applied (matches ms). The previous filter doesn't change
21374             anymore if an exception is thrown.
21375           - Changing the FileName property also affects FileNames
21376         * ColorDialog.cs: The length of the CustomColors array is always
21377           16. It doesn't matter if we use a smaller array or null to update
21378           or change the custom colors property.
21379         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
21380           for RootFolder if we get a undefined value.
21381
21382 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21383
21384         * StatusBarPanel.cs: 
21385         - Width is set to MinWidth if Width is smaller than
21386         MinWidth. Fixes #79842.
21387         - MinWidth now always overrides Width (MSDN says MinWidth
21388         is set to Width when AutoSize = None, but they do not 
21389         behave like that).
21390         - Style has now the the correct default value.
21391         
21392 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21393  
21394         * TrackBar.cs: 
21395         - The control is completely invalidated on 
21396         Got/LostFocus to draw the focus rectangle correctly.
21397         - When AutoSize then height is always 45 (width for 
21398         vertical controls).
21399         
21400         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
21401         on the mouse when moved and it doesn't move when grabbed
21402         until the mouse moves as well. Also fixed some wrong 
21403         calculations when clicking on the thumb (control thought
21404         click was outside of thumb and didn't grab it).
21405         Fixes some of the issues in #79718.
21406
21407 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
21408
21409         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
21410
21411 2006-11-08  Chris Toshok  <toshok@ximian.com>
21412
21413         * PropertyGridView.cs: only call ToggleValue if the item is not
21414         readonly.
21415
21416 2006-11-08  Jackson Harper  <jackson@ximian.com>
21417
21418         * TextBoxBase.cs: The RichTextBox and textbox have very different
21419         word selection methods.  Implement the textbox's simple word
21420         selection here, and let the RichTextBox override and provide it's
21421         own.
21422         - Don't do extra selection on mouseup
21423         * RichTextBox.cs: Use the documents word selection algorithm, I
21424         think ideally, this function will be pulled into the
21425         RichTextBox.cs code someday.
21426
21427 2006-11-08  Chris Toshok  <toshok@ximian.com>
21428
21429         * RootGridEntry.cs: new class to represent GridItemType.Root.
21430
21431         * CategoryGridEntry.cs: reformat, and add boilerplate.
21432         
21433         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
21434         returns the UI parent anyway, and we need special handling to
21435         implement the GetTarget method in the face of it.  Also, implement
21436         Select().
21437
21438         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
21439         a root grid item, and use that instead of PropertyGrid.grid_items.
21440         Also, make use of TypeConverters (and add limitted support for
21441         ICustomTypeDescriptors) when initially populating the grid.
21442         Arrays now show up more or less properly.
21443
21444 2006-11-08  Chris Toshok  <toshok@ximian.com>
21445
21446         * Application.cs: set the modal dialog to non modal after we close
21447         it.  Fixes bug #79866.
21448
21449 2006-11-08  Jackson Harper  <jackson@ximian.com>
21450
21451         * TextControl.cs: When combining lines carry over the line end
21452         style from the end line.
21453         - Invalidate the selected area when setting it, if it is visible.
21454         * TextBoxBase.cs: Only rich text box can do full line selects.
21455         - Make sure to set the cursor position when there is a click,
21456         otherwise two clicks in separate areas could cause a large chunk
21457         to be selected.
21458
21459 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21460
21461         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
21462         Fixes #79863.
21463
21464 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21465
21466         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
21467         time. Remove tooltips when ToolButton click events.  Fixes #79856.
21468
21469 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21470
21471         * MenuAPI.cs: Ignore right click for menu actions and fixes
21472         menu border when clicked.  Fixes #79846.
21473
21474 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21475
21476         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
21477         MouseState after create wParam for message, this fixes mouse button 
21478         equal none in mouse up events.
21479         
21480 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
21481
21482         * Control.cs : Focus() now calls Select to set the Container's
21483         Active Control and to give it focus. To avoid infinite recursion
21484         (because ActiveControl also calls Focus at one point), a check 
21485         is made in Focus with the help of a new internal variable
21486         is_focusing.
21487
21488 2006-11-07  Mike Kestner  <mkestner@novell.com>
21489
21490         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
21491         if there's a selection.  Fixes #79849.
21492
21493 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
21494
21495         * PropertyGrid.cs: Avoid fixed height of help description label.
21496         Fixes part of bug #79829.
21497
21498 2006-11-07  Chris Toshok  <toshok@ximian.com>
21499
21500         * XplatUIX11.cs: fix #79790 again, by using the
21501         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
21502
21503 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21504
21505         * ToolBar.cs: Fix left click checking.
21506
21507 2006-11-07  Chris Toshok  <toshok@ximian.com>
21508
21509         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
21510
21511 2006-11-07  Chris Toshok  <toshok@ximian.com>
21512
21513         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
21514         PropertyManager unit tests.
21515
21516         * PropertyManager.cs: make property_name internal.
21517
21518 2006-11-07  Chris Toshok  <toshok@ximian.com>
21519
21520         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
21521         pass a unit test.  Also, don't set image_index to anything in
21522         response to setting the ImageList property.
21523
21524 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21525
21526         * ToolBar.cs: Ignore click events when mouse button is not a
21527         left button, only accepts other button for dropdown menus.  
21528         Fixes #79854.
21529
21530 2006-11-07  Chris Toshok  <toshok@ximian.com>
21531
21532         * DataGrid.cs: make the back and parent row buttons a little less
21533         ugly.
21534
21535 2006-11-07  Jackson Harper  <jackson@ximian.com>
21536
21537         * TextBoxBase.cs: When converting to Text don't put line breaks in
21538         for soft line breaks.
21539         * TextControl.cs: There is an initial "fake" line in the document,
21540         this is now a soft break line, so that an extra line feed doesn't
21541         get added to the end of documents.
21542
21543 2006-11-07  Chris Toshok  <toshok@ximian.com>
21544
21545         [ fix bug #79778 ]
21546         
21547         * CurrencyManager.cs: if the list is readonly, don't bother
21548         checking if IBindingList.AllowNew is true.
21549
21550         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
21551         for non-DataRowView datasources..  or rather, make it not crash.
21552         (DataGridPaintRelationRow): make sure we limit the row painting to
21553         the area not covered by the row header, and make our cell width at
21554         least large enough to cover the relation area.  This allows grids
21555         that have relations but no rows to render correctly.
21556         (DataGridPaintRowContents): same type of changes here.
21557         (SetDataSource): move back to always calling
21558         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
21559         navigating back through relations.
21560         (HitTest): handle the case where we have no cells but have
21561         relations.  Right now we generate a hit in cell 0 of whatever the
21562         row is, not sure if this is strictly correct, but it works for our
21563         purposes.
21564         
21565         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
21566         bother doing anything.
21567
21568 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
21569
21570         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
21571         early version of StatusStrip.  Not responsible for eaten
21572         application or firstborn children.
21573
21574 2006-11-06  Chris Toshok  <toshok@ximian.com>
21575
21576         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
21577         call GetTabRect with a -1 index.  Fixes #79847.
21578
21579 2006-11-06  Jackson Harper  <jackson@ximian.com>
21580
21581         * TreeNodeCollection.cs: Update scrollbars after clearing.
21582
21583 2006-11-06  Chris Toshok  <toshok@ximian.com>
21584
21585         * NumericUpDown.cs: fix the ToString method for some unit test
21586         love.
21587
21588 2006-11-06  Chris Toshok  <toshok@ximian.com>
21589
21590         * PropertyGrid.cs:
21591         - set the initial SelectedGridItem if we can.
21592
21593         - Exclude non-mergable properties only if we're merging > 1
21594         object.  Merging 1 object isn't really merging, obviously.
21595
21596         - Handle PropertySort.NoSort just like Alphabetical, which is
21597         wrong of course, but at least gets things on the screen.
21598         
21599         * PropertyGridView.cs:
21600         - Add method "FindFirstItem" which finds the first property grid
21601         item, so we can select it by default.
21602
21603         - make use of GridEntry.CanResetValue.
21604
21605         - Don't call RedrawBelowItemOnExpansion here anymore, the
21606         individual GridEntry's will do that.
21607
21608         - Remove the ITypeDescriptorContextImpl internal class.
21609         
21610         * GridEntry.cs:
21611         - this class needs to implement ITypeDescriptorContext, as it's
21612         what MS's PropertyDescriptorGridEntry does, which means we can
21613         remove the ITypeDescriptorContextImpl internal class from
21614         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
21615
21616         - keep a reference to our PropertyGridView, and move the call to
21617         RedrawBelowItemOnExpansion here from PGV.  This means
21618         programmaticly setting Expanded actually does something visible.
21619
21620         - add a CanResetValue() function which takes into account our
21621         possibly multiple "selected_objects" in the merged case.  Shifting
21622         PropertyGridView to use this method fixes another unreported
21623         crasher found running the test for #79829.
21624
21625         - when Top or Bounds is updated, make sure the PropertyGridTextBox
21626         is updated to reflect this.
21627
21628         * CategoryGridEntry.cs: the ctor takes the PGV now.
21629         
21630 2006-11-06  Jackson Harper  <jackson@ximian.com>
21631
21632         * TextControl.cs: These are 1 based.
21633         * TextBoxBase.cs: When setting the selected text, don't change the
21634         selected text tags, this is done by ReplaceText, just position the
21635         cursor at the end of the new text.
21636
21637 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
21638
21639         * ListView.cs: Allow label edit only when, when LabelEdit is
21640           set to true.
21641
21642 2006-11-06  Jackson Harper  <jackson@ximian.com>
21643
21644         * TextControl.cs: If a suitable wrapping position isn't found,
21645         just wrap right in the middle of a word.
21646
21647 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
21648
21649         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
21650           bug #79820.
21651
21652 2006-11-06  Jackson Harper  <jackson@ximian.com>
21653
21654         * TreeView.cs: Can't use the VisibleCount property when setting
21655         scrollbar heights, because this doesn't take into account whether
21656         or not the horz scrollbar just came visible.
21657
21658 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
21659
21660         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
21661         activated.  Fixes #79369, #79832.
21662
21663 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
21664
21665         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
21666           had to remove support for links that point to a directory. FileInfo
21667           returns no usefull information (means, the directory they point to)
21668           for such links. Replaced some empty string ("") with String.Empty.
21669
21670 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
21671
21672         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
21673         NullReferenceException when attempting to remove node that is not in
21674         collection. Throw NullReferenceException when null is passed to 
21675         Remove. Allow first element of the collection to be removed. Fixes
21676         bug #79831.  In GetEnumerator ().Current return null if positioned 
21677         before the first element of the collection. In GetEnumerator ().Reset,
21678         position before first element of the collection.
21679
21680 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
21681
21682         * PropertyGrid.cs: To match MS, remove default title and description
21683         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
21684         buttons.
21685
21686 2006-11-04  Chris Toshok  <toshok@ximian.com>
21687
21688         * Theme.cs: add a Clamp method, just for kicks.
21689
21690         * ThemeWin32Classic.cs: clamp all color components to [0..255].
21691
21692 2006-11-04  Chris Toshok  <toshok@ximian.com>
21693
21694         * Form.cs: if the form isn't visible, Close() does nothing.
21695
21696 2006-11-03  Chris Toshok  <toshok@ximian.com>
21697
21698         * Form.cs (Close): if the form is modal, don't Dispose of it, only
21699         Hide it.
21700         (WndProc): don't Dispose after handling the WM_CLOSE message.
21701
21702         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
21703         them as such, instead of using casts from Control to Form.  Also,
21704         don't Dispose of the modal dialog when we fall out of the loop -
21705         Close() it instead.
21706
21707         fixes bug #79813.
21708
21709 2006-11-03  Chris Toshok  <toshok@ximian.com>
21710
21711         * Control.cs (Dispose): only go through the dispose thing if we're
21712         @disposing, and we haven't already been disposed.  Fixes bug
21713         #79814.
21714
21715         * Form.cs: no reason to call "base.Dispose()" here instead of
21716         "Dispose()".
21717
21718 2006-11-03  Mike Kestner  <mkestner@novell.com>
21719
21720         * ComboBox.cs : use ToString instead of casts in AddItem for
21721         sorting functionality.  Fixes #79812.
21722
21723 2006-11-03  Chris Toshok  <toshok@ximian.com>
21724
21725         * Application.cs: pave the way for actually using the thread
21726         exception dialog.  it's ifdefed out at the moment.
21727
21728 2006-11-03  Chris Toshok  <toshok@ximian.com>
21729
21730         * ThreadExceptionDialog.cs: until we get a better layout, actually
21731         hide the details textbox and label when we shouldn't see them.
21732
21733 2006-11-03  Jackson Harper  <jackson@ximian.com>
21734
21735         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
21736         multiline textboxes anymore.  This method also determines the
21737         width/height of a textboxes canvas area.
21738         - Sorta a revert of the last patch.  For multiline just position
21739         the controls, then bail.  This way the scrollbar width won't be
21740         altered.
21741
21742 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
21743
21744         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
21745         it dont need.  Fixes #79537.
21746
21747 2006-11-02  Jackson Harper  <jackson@ximian.com>
21748
21749         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
21750         send the status after firing the DndOver event.
21751
21752 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21753
21754         * TrackBar.cs: Now orientation only switches height / width if
21755         the control's handle is created (Win32 does it like this). Also 
21756         fixed a typo in ToString() for a test to pass, changed the 
21757         exception thrown in set_LargeChange and set_SmallChange to 
21758         match Win32 behaviour, and added TrackBar tests to the unit 
21759         tests.
21760
21761 2006-11-02  Chris Toshok  <toshok@ximian.com>
21762
21763         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
21764         not _NET_WM_STATE_NO_TASKBAR.
21765
21766 2006-11-02  Jackson Harper  <jackson@ximian.com>
21767
21768         * TextControl.cs: Increment count by one, since in the update view
21769         count - 1 is used.
21770
21771 2006-11-02  Jackson Harper  <jackson@ximian.com>
21772
21773         * TextBoxBase.cs: Use client rectangle not bounds for checking if
21774         the mouse is in the client rectangle (duh).
21775
21776 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21777         
21778         * TrackBar.cs: Fixed trackbar jumping around when clicking
21779         on it - the trackbar was not detecting correctly at which
21780         side of the thumb the click was done. (fixes #79718)
21781
21782 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
21783
21784         * ListBox.cs: scroll visible area when change SelectedIndex to
21785         a non visible area.  Fixes #79481.
21786
21787 2006-11-01  Jackson Harper  <jackson@ximian.com>
21788
21789         * TextControl.cs: When replacing the selection move the selection
21790         start/end/anchor to the end of the new text.
21791
21792 2006-11-01  Jackson Harper  <jackson@ximian.com>
21793
21794         * XplatUIWin32.cs: When setting the parent change the controls
21795         visibility to it's visibility flag, not to it's old parents
21796         visibility (.Visible walks the parent chain).
21797
21798 2006-11-01  Chris Toshok  <toshok@ximian.com>
21799
21800         * XplatUIX11.cs: revert the #79790 fix, as the simple.
21801         XSetTransientForHint fix breaks paint .net's tool windows.  more
21802         work needed for that one.
21803
21804 2006-11-01  Chris Toshok  <toshok@ximian.com>
21805
21806         * ScrollBar.cs: throw ArgumentException instead of Exception in
21807         LargeChange/SmallChange setters.  fixes unit tests.
21808
21809 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
21810
21811         * ContainerControl.cs: reverted rev.67183 (which was itself
21812         a reversion of rev.66853... eh).
21813         
21814         * Control.cs: Fixes Reflector hang by changing Focus() call
21815         to what it was before rev.66643 (calling Select() here sets 
21816         ActiveControl, which in some situations calls back Focus and 
21817         eventually does a stack overflow). Temp fix.    
21818         Changes to GetNextControl() to not look for children to select when
21819         parent cannot be selectable (so it looks for siblings instead)  
21820         
21821 2006-10-31  Mike Kestner  <mkestner@novell.com>
21822
21823         * CheckedListBox.cs : off by one error in returned index from
21824         ObjectCollection.Add.  Fixes #79758.
21825
21826 2006-10-31  Chris Toshok  <toshok@ximian.com>
21827
21828         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
21829         calls for the textbox/spinner, to keep from recursing to the point
21830         where we crash.  Fixes #79760.
21831
21832 2006-10-31  Chris Toshok  <toshok@ximian.com>
21833
21834         * ListControl.cs (set_SelectedValue): don't throw exceptions on
21835         null/"" value, just return.  matches ms's behavior and fixes some
21836         failing tests.
21837
21838 2006-10-31  Chris Toshok  <toshok@ximian.com>
21839
21840         * Control.cs (set_Capture): make a logic a little easier to
21841         follow.
21842
21843         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
21844         if it's being destroyed.  A necessary fix surely, but a bandaid
21845         also, to fix the stuck capture problem in bug #78413.
21846
21847 2006-10-31  Chris Toshok  <toshok@ximian.com>
21848
21849         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
21850         convention of clearing hwnd.ClientRect when we set the
21851         width/height (so it'll be recalculated by Hwnd).
21852
21853 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
21854
21855         * ContainerControl.cs: reversed Contains check from
21856         ActiveControl due to hanging problems. This fix
21857         partly regresses #79667 (button does not have
21858         initial focus), so this might be a symptom for 
21859         a larger parenting problem (set_ActiveControl
21860         is being called but the child control does
21861         not have the parent set yet?)   
21862         
21863 2006-10-31  Mike Kestner  <mkestner@novell.com>
21864
21865         * MenuAPI.cs : fix keynav when menu is click activated.
21866
21867 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
21868
21869         * ToolStrip*: Version 0.2.
21870
21871         * MenuStrip.cs: Version 0.1.
21872
21873         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
21874
21875 2006-10-30  Chris Toshok  <toshok@ximian.com>
21876
21877         [ fixes the oversized notify icon issue in bug #79745 ]
21878         
21879         * NotifyIcon.cs: scale the icon down to the size we're given by
21880         the XplatUI layer (this would be faster if we did it once instead
21881         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
21882         since it's never invoked.
21883
21884         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
21885         pixels high by default, so let's hardcode our systray icon to that
21886         size.  The SYSTEM_TRAY protocol should really have a way for
21887         client apps to query for the correct icon size.. but oh well.  A
21888         couple of patches to deal with the screwy client_window ==
21889         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
21890         instance, and also make sure we don't XSelectInput twice).
21891
21892 2006-10-30  Chris Toshok  <toshok@ximian.com>
21893
21894         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
21895         recreating forms.  Control recreation is the bane of my existence.
21896         Fix it in a way that keeps everyone happy.
21897
21898 2006-10-30  Chris Toshok  <toshok@ximian.com>
21899
21900         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
21901         just non-CHILD ones.  otherwise sometimes scrollbars end up with
21902         client_windows not being resized to the proper size (ReportBuilder
21903         shows this extremely well).
21904
21905 2006-10-30  Chris Toshok  <toshok@ximian.com>
21906
21907         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
21908         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
21909         showing up in the gnome taskbar.  Fixes bug #79790.
21910
21911 2006-10-30  Chris Toshok  <toshok@ximian.com>
21912
21913         * ApplicationContext.cs: guard against a NRE.
21914
21915         * Application.cs: null out the old MainForm for the context, so we
21916         don't try to use it again once it's disposed.  Fixes bug #79783.
21917
21918 2006-10-30  Chris Toshok  <toshok@ximian.com>
21919
21920         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
21921         BindingContext, set the data source directly, otherwise do the
21922         lazy approach - the actual ListManager will be created when we get
21923         a BindingContext. Fixes bug #79700.
21924
21925 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
21926
21927         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
21928           XplatUIX11.cs: Remove old 2 parameter SetVisible.
21929
21930         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
21931
21932 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
21933
21934         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
21935         of SetVisible that allows a window to be shown, but not activated.
21936         This is needed on Windows for MenuStrip, and can probably be used
21937         with MainMenu and ComboBox to fix the focus stealing issues on
21938         Windows.
21939
21940         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
21941
21942 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
21943
21944         * PictureBox.cs: Fix the output of the ToString method.
21945
21946 2006-10-29  Chris Toshok  <toshok@ximian.com>
21947
21948         * Control.cs (get_TopLevelControl): fix bug #79781.
21949
21950 2006-10-29  Chris Toshok  <toshok@ximian.com>
21951
21952         * ListControl.cs (set_DataSource): throw Exception here, not
21953         ArgumentException, to match MS behavior.
21954
21955 2006-10-29  Chris Toshok  <toshok@ximian.com>
21956
21957         * Form.cs: remove the try-catch's around calls to GetWindowState.
21958         We can just check the return value.
21959
21960         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
21961         Instead return -1.
21962
21963         * XplatUI.cs: Add note about additional return value for
21964         GetWindowState.
21965
21966 2006-10-29  Chris Toshok  <toshok@ximian.com>
21967
21968         * Control.cs (CreateHandle): when we create our handle, we also
21969         create the handles of our child controls.  Fixes one of the
21970         Control unit tests (CH11).
21971
21972 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
21973
21974         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
21975
21976 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
21977
21978         * ThemeClearlooks.cs: A little speedup.
21979
21980 2006-10-27  Chris Toshok  <toshok@ximian.com>
21981
21982         * Control.cs: implement Control.FromChildHandle in a way that
21983         matches the docs (and fixes the failed test.)
21984
21985 2006-10-27  Chris Toshok  <toshok@ximian.com>
21986
21987         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
21988         comments).
21989
21990         * DataGrid.cs: implement ResetForeColor such that the tests
21991         succeed.
21992         
21993 2006-10-27  Chris Toshok  <toshok@ximian.com>
21994
21995         * ToolBarButton.cs: setting text/tooltiptext to null results in it
21996         being set to "".  Fixes bug #79759.
21997
21998 2006-10-27  Jackson Harper  <jackson@ximian.com>
21999
22000         * TextControl.cs: We need to clear the entire selection area when
22001         setting the start, otherwise multiline selections are still
22002         visible.
22003
22004 2006-10-26  Chris Toshok  <toshok@ximian.com>
22005
22006         * PropertyGridView.cs: 
22007
22008         - ifdef all the code specific to the double
22009         buffer case, and provide some alternatives in the non-doublebuffer
22010         code, which makes heavy use of XplatUI.ScrollWindow to move things
22011         around without having to invalidate (and cause flicker).  There
22012         are still some drawing problems in the non-doublebuffered case, so
22013         DOUBLEBUFFER is defined by default.
22014
22015         - Fix the way dropdowns are handled.  now we explicitly watch for
22016         the events which might cause the dropdown to close, and break out
22017         of the nested event loop there.  This gets rid of all Capture
22018         code, at the expense of the Msg special casing.  Seems to work,
22019         though, and fixes bug #79743.
22020
22021 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
22022         * Control.cs: SetIsRecreating now recreates implicitly added
22023         child controls as well. Finally fixes #79629. The flag passed to 
22024         SetIsRecreating has also been removed since it wasn't used.
22025         
22026 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22027
22028         * PageSetupDialog.cs: Clean some code, fix some bits, 
22029         add some checks, and add a printer sub-dialog.
22030
22031 2006-10-26  Chris Toshok  <toshok@ximian.com>
22032
22033         * PropertyGrid.cs: make set_SelectedObject call
22034         set_SelectedObjects, and move the duplicate logic to the
22035         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
22036
22037         * PropertyGridView.cs: hide the textbox when we get a
22038         SelectedObjectsChanged event.
22039
22040         Fixes bug #79748.
22041
22042 2006-10-26  Chris Toshok  <toshok@ximian.com>
22043
22044         * PropertyGridView.cs: deal with the type converter not supporting
22045         GetStandardValues() or GetStandardValues() returning null, which
22046         is does in the default case.  Fixes #79742.
22047
22048 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
22049
22050         * CheckedListBox.cs: nunit no longer crashes when selecting 
22051         Project/Edit menu option
22052         
22053 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
22054
22055         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
22056         is no menu selected. fixes #79739
22057
22058 2006-10-25  Chris Toshok  <toshok@ximian.com>
22059
22060         * PropertyGridView.cs: factor out the splitter invalidation code
22061         into the SplitterPercent setter, and for kicks implement the
22062         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
22063         amount in either direction.
22064
22065 2006-10-25  Chris Toshok  <toshok@ximian.com>
22066
22067         * PropertyGridView.cs: do some cleanup of the brush used to draw
22068         text - read only fields should be grayed out.  not sure how to do
22069         this with the textbox, though.  but the textbox's should also be
22070         readonly now at least.  Also, hide/show the textbox when resizing
22071         the control.
22072         
22073         * CursorConverter.cs: use System.Reflection when getting the
22074         properties of Cursors, as TypeDescriptor.GetProperties isn't
22075         returning static properties.
22076
22077 2006-10-25  Chris Toshok  <toshok@ximian.com>
22078
22079         * PropertyGridView.cs: factor out the up/down handling, and reuse
22080         it for page up/down.  also add End/Home support.
22081
22082 2006-10-25  Chris Toshok  <toshok@ximian.com>
22083
22084         * PropertyGridView.cs:
22085
22086         - ensure the selected grid item is visible in the scrolled area,
22087         fixes bug #79572.
22088
22089         - fix Keys.Down handling when you're on the last item in the
22090         propertygrid.
22091
22092 2006-10-25  Mike Kestner  <mkestner@novell.com>
22093
22094         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
22095         clicks too.  Fixes #79725.
22096
22097 2006-10-24  Chris Toshok  <toshok@ximian.com>
22098
22099         * PropertyGrid.cs: use property.Converter instead of
22100         TypeDescriptor.GetConverter(property.PropertyType), so we catch
22101         TypeConverters declared on the property as well as on the
22102         PropertyType.  Fixes bug #79678.
22103
22104 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
22105
22106         * MimeIcon.cs, Mime.cs:
22107           Fallback to the default platform handler if no shared mime info
22108           stuff exists (fixes #79693).
22109
22110 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
22111         * ContainerControl.cs: Incorrect contains check in ActiveControl 
22112         from previous fix (duh).
22113
22114 2006-10-20  Chris Toshok  <toshok@ximian.com>
22115
22116         * PropertyGridView.cs: the dropdown should be MIN(number of items
22117         in list, 15).  Fixes #79551.
22118
22119 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
22120         Fixes #79384, #79394, #79652, #79667
22121         * Application.cs: 
22122         
22123         - Modal windows are now destroyed in the proper order for windows
22124         
22125         * ContainerControl.cs:
22126         
22127         - ActiveControl setter has more conditions on when to return:
22128                 - if we're reselecting the active control, but it actually
22129                 didn't have focus (window hidden or some such), it runs
22130                 - if the active control being selected doesn't actually 
22131                 exist in the container, it returns
22132         
22133         * Form.cs
22134         
22135         - The ShowDialog now gets the current form as the owner when
22136         invoking without parameters, and correctly activates the owner 
22137         when returning
22138         
22139         * MessageBox.cs
22140         
22141         - MessageBox now catches the Escape key to exit
22142
22143 2006-10-20  Chris Toshok  <toshok@ximian.com>
22144
22145         * PropertyGridView.cs: fix a number of issues (bug #78565, and
22146         most of bug #79676):
22147
22148         - you can navigate around the property grid with the arrow keys.
22149
22150         - the dropdown is sized properly when the pg has a vertical
22151         scrollbar.
22152
22153         - fix the indentation for subentries, and properly select the
22154         entire label rect.
22155
22156         - fix the gray bar's drawing (only draw it to the last element,
22157         not for the height of the control.  Also make sure we draw that
22158         last horizontal grid line.
22159
22160         - use the same mechanism the datagrid uses wrt the editing textbox
22161         when scrolling/resizing/etc.  Namely, we hide it first, do the
22162         operation, then show it again (if it's still visible).
22163         
22164         - aggressively remove a lot of unnecessary refreshes (and also
22165         calls to Invalidate(). call more limited variants, and only redraw
22166         what we need.)
22167         
22168         * PropertyGrid.cs:
22169
22170         - when we're populating the merged collection, fill in the UI
22171         parent with either the passed in item, or the category item we
22172         create.
22173
22174         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
22175
22176         * GridItem.cs: drop some fully qualified names.
22177         
22178         * GridEntry.cs: add a "UIParent", which is basically the parent
22179         treenode.
22180
22181         * GridItemCollection.cs: add an IndexOf method.
22182
22183 2006-10-20  Mike Kestner  <mkestner@novell.com>
22184
22185         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
22186         a working win32 NC invalidation mechanism, we can't invalidate
22187         menus.  [Fixes #79705]
22188
22189 2006-10-20  Mike Kestner  <mkestner@novell.com>
22190
22191         * ListBox.cs : don't update the VScrollbar if the list is empty,
22192         just hide it.  [Fixes #79692]
22193
22194 2006-10-20  Jackson Harper  <jackson@ximian.com>
22195
22196         * RichTextBox.cs: Handle some special chars better, and don't skip
22197         the entire group when we encounter a special char that we don't
22198         handle correctly.
22199
22200 2006-10-18  Chris Toshok  <toshok@ximian.com>
22201
22202         * PropertyGridView.cs: address a number of issues from bug #79676,
22203         mostly of the cosmetic variety.
22204
22205         - The highlight rectangle for indented items not extends all the
22206         way to the left.
22207
22208         - Indented items aren't indented so much.
22209
22210         - the dropdown is properly sized width-wise if the pg has a
22211         vertical scrollbar.
22212
22213 2006-10-18  Chris Toshok  <toshok@ximian.com>
22214
22215         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
22216         systray stuff is rather convoluted to begin with.
22217
22218         systray icons are a single window for some reason (that I haven't
22219         figured out yet), and for them, client_window == whole_window.
22220         Given the way the tests are structured elsewhere to determine
22221         which paints are pending (client vs. nc), that situation will
22222         always yield PAINT, not NCPAINT.  So, if we have a pending
22223         nc_expose and no pending expose, remove the hwnd from the paint
22224         queue, and also set nc_expose_pending to false, to keep us from
22225         blocking further expose's adding the hwnd to the paint queue.
22226
22227         phew.  like i said, a rather convoluted change.  Fixes the
22228         notifyicon repaint issues in bug #79645.
22229
22230 2006-10-18  Chris Toshok  <toshok@ximian.com>
22231
22232         * Form.cs: when getting the backcolor of the form, don't get
22233         base.BackColor, as this allows parents to influence the background
22234         color.  This breaks mdi forms.  Instead, if the background_color
22235         is empty, return the default.
22236
22237 2006-10-18  Chris Toshok  <toshok@ximian.com>
22238
22239         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
22240         to being private instead of internal static.
22241
22242         * Control.cs: remove all the stupid ParentWaitingOnRecreation
22243         crap, it wasn't working for more deeply nested controls anyway,
22244         and we already have the is_recreating flag - use that instead.
22245         Before calling DestroyHandle in RecreateHandle, recurse through
22246         the control tree setting it to true.  this returns the recreate
22247         code to much of its original simplicity, while now guaranteeing we
22248         actually recreate everything we're supposed to.  This change gets
22249         fyireporting actually showing mdi children.
22250
22251 2006-10-17  Chris Toshok  <toshok@ximian.com>
22252
22253         * Form.cs: remove some debug spew, and collapse some duplicate
22254         code at the end of SetClientSizeCore.
22255
22256         * XplatUIX11.cs: 
22257         - add some more debug spew here too wrt Destroy handling.
22258         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
22259         in Control's handling of WM_DESTROY.
22260         - Remove the handling of zombie window DestroyNotifies from the
22261         event loop - we don't need it.  Now the only DestroyNotifies we
22262         actually handle are ones generated by X.
22263         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
22264         match gtk's (functioning) handling of this. This keep metacity
22265         from leaving droppings in the form of wm borders with no window
22266         contents all over the place.
22267
22268         * Control.cs:
22269         - add a bunch of debug spew wrt control recreation.
22270         - fix a bug where we weren't tracking Visible properly on
22271         recreated hwnds.
22272         - fixed the WM_PAINT double buffer handling to support re-entrant
22273         calls (yes, i know it's gross, but it's happening to us).
22274
22275 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22276         * ThemeWin32Classic.cs: changed drawing of selected days
22277         to make them look better.
22278
22279 2006-10-16  Chris Toshok  <toshok@ximian.com>
22280
22281         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
22282         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
22283
22284         * XplatUIX11.cs: move away from using hwnd.client_dc and
22285         hwnd.non_client_dc and on to a stack of dc's (and in window's
22286         case, PAINTSTRUCT's), so we can deal with nested Paint calls
22287         without puking or not disposing of Graphics objects.
22288
22289         * XplatUIOSX.cs: same.
22290
22291         * XplatUIWin32.cs: same.
22292
22293 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
22294
22295         * FileDialog.cs: Don't call on_directory_changed inside
22296           OnSelectedIndexChanged (it changes the SelectedIndex too).
22297           Instead move it to OnSelectionChangeCommitted.
22298
22299 2006-10-13  Chris Toshok  <toshok@ximian.com>
22300
22301         * XplatUIX11.cs: more Destroy work.  the current code does the
22302         following things, in order:
22303
22304         1. Enumerates all handles of all controls at or below the one
22305         being destroyed, in pre-order.  As it is doing this, it marks the
22306         handles as zombie and clears all references to them.
22307         
22308         2. calls XDestroyWindow on the window passed in.
22309
22310         3. SendMessage's WM_DESTROY to all he handles in the accumulated
22311         list.
22312
22313 2006-10-13  Chris Toshok  <toshok@ximian.com>
22314
22315         * XplatUIX11.cs: set hwnd.zombie to true before calling
22316         SendMessage (WM_DESTROY).  this keeps us from marking the new
22317         window a zombie, and also keeps us from calling sendmessage at
22318         all.
22319
22320 2006-10-13  Jackson Harper  <jackson@ximian.com>
22321
22322         * TextControl.cs: Do not show the caret and selection at the same
22323         time.  Reduces ugliness by 35%.
22324
22325 2006-10-13  Chris Toshok  <toshok@ximian.com>
22326
22327         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
22328         zombie after we do the recursive call, so we actually do call
22329         SendMessage on the children controls.
22330         (GetMessage): if we find a pending paint event for a zombie hwnd,
22331         remove the hwnd from the paint queue, or else it will always be
22332         there (and we'll effectively loop infinitely)
22333
22334 2006-10-13  Mike Kestner  <mkestner@novell.com>
22335
22336         * MenuItem.cs : add Selected format under keynav too.
22337         Fixes #79528.
22338
22339 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
22340
22341         * PropertyGrid.cs: Fixed some NRE's and small difference between our
22342         implementation and that of MS.
22343
22344 2006-10-13  Chris Toshok  <toshok@ximian.com>
22345
22346         * Control.cs (OnInvalidated) only futz with the invalid_region if
22347         the control is double buffered.  this fixes the apparent hang in
22348         the ListView unit tests.  Someone needs to make the
22349         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
22350
22351 2006-10-13  Chris Toshok  <toshok@ximian.com>
22352
22353         * PropertyGridView.cs:
22354
22355         - do a little refactoring so that only one place calls
22356         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
22357         else call that.  Also make it Refresh, since there are redraw bugs
22358         otherwise (we should take a look at that...)
22359
22360         - do a little more refactoring work to share the body of code
22361         involved with the drop down.  it was duplicated in the code
22362         dealing with the listbox handling and in the code dealing with the
22363         UITypeEditors.
22364
22365         - add a Capture to the dropdown form's control once it's
22366         displayed, and add a MouseDown handler that checks to make sure
22367         the position is inside the control.  If it's not, close the
22368         dropdown.  This fixes #78190.
22369
22370         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
22371         if the value is different than the initial value.
22372         
22373 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
22374
22375         * Control.cs: see #78650
22376         - Fixed GetNextControl for several cases:
22377                 - Changed FindFlatForward to return 
22378                 correct sibling control when more than one
22379                 control has same TabIndex as the currently 
22380                 focused one.
22381                 - Changed FindFlatBackward to loop children
22382                 from last to first and apply same logic as in
22383                 FindFlatForward
22384                 - Changed FindControlForward to search for
22385                 children when control is not a container
22386                 but has children, or search for siblings if
22387                 control is a container...
22388                 - Changed FindControlBackward   to continue
22389                 searching for child controls when hitting 
22390                 Panel-like parents
22391                 
22392         - Fixed Focus method to update ActiveControl
22393         (FocusTest.FocusSetsActive failure)
22394         
22395         * TabControl.cs:
22396         - Focus rectangle now refreshes when gaining
22397         or losing focus
22398         - Removed grab for Tab key on IsInputKey that 
22399         was keeping tab navigation from working (#78650)
22400
22401 2006-10-13  Chris Toshok  <toshok@ximian.com>
22402
22403         * PropertyGridView.cs:
22404         - Rewrite SetPropertyValue to loop over SelectedGridItem's
22405         SelectedObjects.
22406
22407         - Deal with GridItem.Value == null a few places.
22408
22409         * PropertyGrid.cs: 
22410         - replace the PopulateGridItemCollection with a pair of methods
22411         which compute the intersection of all the properties in the
22412         SelectedObjects array.  Fixes #79615.
22413
22414         - Throw ArgumentException from set_SelectedObjects if there's a
22415         null in the array.
22416
22417         - Add GetTarget method which can be used to traverse up the
22418         GridItem.Parent chain.  It depends on the assumption that
22419         selected_objects for different GridEntries are always in the same
22420         order (a safe assumption).  Use this method and loop over all the
22421         selected objects in the entry when calling RemoveValueChanged and
22422         AddValueChanged.
22423         
22424         * GridEntry.cs: Make this handle multiple selected objects.
22425         .Value returns null if not all the selected objects share the same
22426         value.
22427
22428 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
22429         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
22430           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
22431           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
22432           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
22433           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
22434         add additional functionality.
22435
22436 2006-10-12  Mike Kestner  <mkestner@novell.com>
22437
22438         * ErrorProvider.cs : new ToolTipWindow ctor sig.
22439         * HelpProvider.cs : new ToolTipWindow ctor sig.
22440         * ToolTip.cs : remove ToolTip param from Window sig since it is
22441         not used.
22442         * ToolBar.cs : add tooltip support.  Fixes #79565.
22443
22444 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22445
22446         * ComboBox.cs: move the events in set_SelectedIndex to 
22447         after the call to HighlightIndex in order to avoid 
22448         possible recursion and subsequent problems with the call
22449         to HighlightIndex and include a range check in 
22450         set_HighlightIndex. Fixes #79588
22451         
22452 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22453
22454         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
22455         to ui thread's settings instead of sunday. 
22456         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
22457
22458 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22459
22460         * DateTimePicker.cs
22461         * MonthCalendar.cs
22462         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
22463         and implement missing functionality (selecting different parts 
22464         of the date and edit them individually with the keyboard).
22465         
22466 2006-10-11  Chris Toshok  <toshok@ximian.com>
22467
22468         * Control.cs (OnInvalidated): fix NRE relating to last change.
22469
22470 2006-10-11  Chris Toshok  <toshok@ximian.com>
22471
22472         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
22473         atoms in _NET_WM_STATE here if the window is maximized.  We need
22474         to do this because we're *replacing* the existing _NET_WM_STATE
22475         property, so those atoms will be lost otherwise, and any further
22476         call to GetWindowState will return Normal for a window which is
22477         actually maximized.  Fixes #79338.
22478
22479 2006-10-11  Jackson Harper  <jackson@ximian.com>
22480
22481         * TextControl.cs: Special case for setting selection end to
22482         selection start, we basically kill the anchor.
22483         - some todo comments.
22484
22485 2006-10-11  Chris Toshok  <toshok@ximian.com>
22486
22487         * Control.cs: switch to using an "invalid_region" to track which
22488         parts of the image buffer need updating.  This is more code than
22489         the simple fix from r66532.  That version just attempted to always
22490         fill the entire buffer on redraw, which turns out to be
22491         inefficient when invalidating small rectangles.  This version
22492         simply adds the invalid rectangle to the invalid region.  When we
22493         get any WM_PAINT message we see if it can be filled using the
22494         image buffer, and if it can't (if the paint event's clip rectangle
22495         is visible in the invalid region) we first fill the image buffer.
22496         So, the image buffer is still a cache, we just fill it lazily.
22497
22498         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
22499         need it any longer.
22500
22501 2006-10-11  Chris Toshok  <toshok@ximian.com>
22502
22503         * XplatUIX11.cs (SetWindowPos): we need to update both position as
22504         well as size after calling XMoveResizeWindow.  This keeps us from
22505         ignoring future SetWindowPos calls.  Fixes the disappearing
22506         DateTimePicker in the ToolBarDockExample from bug #72499.
22507
22508 2006-10-11  Chris Toshok  <toshok@ximian.com>
22509
22510         * TextBoxBase.cs: reorder things a bit when it comes to
22511         resizing-causing-recalculation.  we were recalculating the
22512         document when our position was changed, which shouldn't happen.
22513         We only care about size changes.  Clear up some more redundant
22514         recalculation calls while I'm at it.  This makes the toolbar dock
22515         example snappy when you're just dragging toolbars around (since it
22516         causes a relayout whenever you move one.)
22517
22518 2006-10-11  Chris Toshok  <toshok@ximian.com>
22519
22520         * ToolBarButton.cs (get_Rectangle): this only returns
22521         Rectangle.Empty if Visible == false, or Parent == null.
22522         Parent.Visible doesn't matter.
22523
22524 2006-10-10  Chris Toshok  <toshok@ximian.com>
22525
22526         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
22527         by .net 1.1, so switch to an internal method instead.
22528
22529 2006-10-10  Chris Toshok  <toshok@ximian.com>
22530
22531         * Control.cs (WM_PAINT): when a control is double buffered we draw
22532         initially to the ImageBuffer and then copy from there.  But when a
22533         parent control which has child controls is double buffered, the
22534         initial drawing doesn't encompass the entire ClientRectangle of
22535         the parent control, so we end up with uninitialized bits (this is
22536         easily seen by dragging the top toolbar in
22537         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
22538         manually set the ClipRectangle of the paint_event (only the one we
22539         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
22540         of the nastiness in bug #72499.
22541
22542         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
22543         which we use in Control.cs's WM_PAINT handling.
22544
22545 2006-10-10  Jackson Harper  <jackson@ximian.com>
22546
22547         * TextBoxBase.cs: Finish off the autoscrolling stuff.
22548
22549 2006-10-10  Chris Toshok  <toshok@ximian.com>
22550
22551         * Cursor.cs: Apply a slightly different patch to the one suggested
22552         in #79609.
22553
22554 2006-10-10  Jackson Harper  <jackson@ximian.com>
22555
22556         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
22557         not the parent form.
22558         * TextControl.cs: use difference in old line count vs new count to
22559         calculate how many lines were added, this takes into account soft
22560         line breaks properly.
22561
22562 2006-10-10  Chris Toshok  <toshok@ximian.com>
22563
22564         * LinkLabel.cs: don't call MeasureCharacterRanges against a
22565         rectangle located at 0,0 and the size of the text.  Use
22566         ClientRectangle instead.  This fixes rendering of non-left aligned
22567         link labels.
22568
22569 2006-10-10  Jackson Harper  <jackson@ximian.com>
22570
22571         * TextBoxBase.cs: When we set the selection start position the
22572         caret.
22573         * TextControl.cs: Need to update the caret when we decrement it to
22574         zero.
22575         - Make sure that the selection_visible flag gets reset to false if
22576         the selection isn't visible.  Before this you could get it set to
22577         visible by changing the selection start, then changing the end to
22578         equal the start.
22579
22580 2006-10-09  Jackson Harper  <jackson@ximian.com>
22581
22582         * TreeView.cs: Don't update scrollbars when we aren't visible.
22583         * TreeNodeCollection.cs: Only need to update scrollbars if being
22584         added to an expanded visible node or the root node.
22585
22586 2006-10-09  Chris Toshok  <toshok@ximian.com>
22587
22588         * XplatUIX11.cs (SendMessage): fix NRE.
22589
22590 2006-10-09  Jackson Harper  <jackson@ximian.com>
22591
22592         * TextBoxBase.cs: Implement horizontal autoscrolling.
22593         * TextControl.cs: Add a movement types that allows moving forward
22594         and backwards without wrapping.
22595
22596 2006-10-09  Mike Kestner  <mkestner@novell.com>
22597
22598         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
22599         with focus "expansion" of labels.  Fixes #79532 and then some.
22600         * ThemeWin32Classic.cs : add LineLimit to ListView label format
22601         when wrapping.
22602
22603 2006-10-09  Jackson Harper  <jackson@ximian.com>
22604
22605         * TextBoxBase.cs: Set the default max values to MaxValue since
22606         we use the scrollbar for autoscrolling and the default value is
22607         100.  If we don't do this the caret won't keep up with typing
22608         after about 18 characters.
22609         * TextControl.cs: Make sure the selection is offset by the
22610         viewport x.  This fixes selection when using auto scrolling.
22611
22612 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
22613         
22614         * Form.cs: The active control should be selected after the 
22615         OnLoad so that any child control initialization that affects
22616         the selection is done. Fixes #79406
22617
22618 2006-10-06  Chris Toshok  <toshok@ximian.com>
22619
22620         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
22621         to have no evil effects.
22622
22623         - Stop selecting StructureNotifyMask on non-toplevel windows.
22624
22625           The only way children should be resized is by using the SWF api,
22626           and we already send WM_WINDOWPOSCHANGED messages in those cases.
22627           Toplevel windows can be interacted with via the window manager,
22628           and so we keep the input mask there.
22629
22630           The other event StructureNotifyMask gives us (that we care
22631           about) is DestroyNotify.  The code is already structured such
22632           that it assumes we won't be getting a DestroyNotify event for
22633           the window we pass to XDestroyWindow (which is what
22634           StructureNotifyMask is supposed to guarantee.)  So, that code
22635           shouldn't be affected by this either.
22636
22637         - Stop selecting VisibilityChangeMask altogether.
22638
22639           We weren't doing anything with the resulting events anyway.
22640         
22641         This vastly reduces the number of X requests and events we see
22642         when resizing/laying out a large ui.
22643
22644 2006-10-06  Chris Toshok  <toshok@ximian.com>
22645
22646         * ScrollableControl.cs (DisplayRectangle): we need to take into
22647         account the DockPadding regardless of whether or not auto_scroll
22648         == true.  rework this slightly to this effect, and fix bug #79606,
22649         and part of #72499 (you can now see the drag handles and drag
22650         toolbars around).
22651
22652 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
22653
22654         * ListViewItem.cs: Collections of selected and checked items are now
22655         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
22656         we mark the collection "dirty".
22657         * ListView.cs: Marked collections readonly. Modified UpdateSelection
22658         to only clear SelectedItems when a new item is selected and MultiSelect
22659         is enabled. CheckedItems and SelectedItems now subscribe to Changed
22660         event of ListViewItemCollection, and mark its list dirty whenever
22661         that event is fire. This allows us to return selected/checked items 
22662         in the same order as they are in the Items collection. This matches
22663         the MS behavior.
22664
22665 2006-10-06  Chris Toshok  <toshok@ximian.com>
22666
22667         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
22668         right mouse clicks.  Fixes bug #79593.
22669
22670 2006-10-06  Chris Toshok  <toshok@ximian.com>
22671
22672         * Splitter.cs: doh, fix splitters that don't want to cancel the
22673         movement when you drag them.  Also, impose the limits on the
22674         values we send to the SplitterMovingEvent.  Fixes #79598.
22675
22676 2006-10-06  Jackson Harper  <jackson@ximian.com>
22677
22678         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
22679         since we use this for auto scrolling also.
22680
22681 2006-10-05  Chris Toshok  <toshok@ximian.com>
22682
22683         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
22684         beginning to think that most datagrid column types don't need this
22685         method.  Fixes bug #79392.
22686
22687 2006-10-05  Chris Toshok  <toshok@ximian.com>
22688
22689         * DataGrid.cs: move back to a more lazy scheme for creating the
22690         CurrencyManager, so we aren't updating it every time you set
22691         either DataSource or DataMember.  Also, don't call
22692         RecreateDataGridRows if the currency manager hasn't changed.
22693
22694 2006-10-05  Chris Toshok  <toshok@ximian.com>
22695
22696         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
22697         emitted, SelectedIndex should already be updated.  Fixes bug
22698         #78929.
22699
22700 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
22701
22702         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
22703           ToolStripTextBox.cs: Initial commit.
22704         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
22705
22706 2006-10-05  Jackson Harper  <jackson@ximian.com>
22707
22708         * TabControl.cs: We need to invalidate the tab control area when
22709         new ones are added (duh).
22710
22711 2006-10-03  Chris Toshok  <toshok@ximian.com>
22712
22713         * Form.cs (ProcessDialogKey): if the focused control is in this
22714         form and is a button, call its PerformClick method here.  Fixes
22715         #79534.
22716
22717 2006-10-04  Jackson Harper  <jackson@ximian.com>
22718
22719         * TabPage.cs: Ignore setting of Visible, and add an internal
22720         method for setting the controls visibility.  TabPage's Visible
22721         property is a little strange on MS, this seems to make us
22722         compatible, and fixes cases where people set all the tab pages to
22723         visible.
22724         * TabControl.cs: Use the new internal setting on tab pages
22725         visibility.
22726
22727 2006-10-03  Mike Kestner  <mkestner@novell.com>
22728
22729         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
22730
22731 2006-10-03  Mike Kestner  <mkestner@novell.com>
22732
22733         * ListView.cs : use is_visible instead of Visible to check if 
22734         scrollbars should be placed/sized.  Also some max_wrap_width
22735         love for LargeIcon view.  [Fixes #79533]
22736
22737 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
22738
22739         * TextControl.cs :
22740           Make set_TextAlign() do actually update the align. Fixed #78403.
22741
22742 2006-10-03  Chris Toshok  <toshok@ximian.com>
22743
22744         * DataGrid.cs: fix a crash when switching datasources if the
22745         vertical scrollbar is at someplace other than Value = 0.  Also,
22746         reduce the number of recalculation passes we do in SetDataSource
22747         from 2 to 1.
22748
22749 2006-10-03  Jackson Harper  <jackson@ximian.com>
22750
22751         * TextBoxBase.cs: Move the if value the same bail check up, we
22752         don't want to empty the document if it is already empty, this
22753         seems to severly mess up the caret.  TODO: I should probably fix
22754         the empty statement to update teh caret somehow.
22755
22756 2006-10-03  Chris Toshok  <toshok@ximian.com>
22757
22758         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
22759         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
22760         reflection, an internal row type, properties on said type, etc.)
22761         will work with our datagrid.  Fixes #79531.
22762
22763 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
22764
22765         * FileDialog.cs: Don't crash if a path is not accessible
22766           (System.UnauthorizedAccessException). Fixes #79569.
22767         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
22768           a ':' too. Return unknown icon for those paths/files.
22769
22770 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
22771
22772         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
22773         GetContainerControl returns null.
22774
22775 2006-10-02  Chris Toshok  <toshok@ximian.com>
22776
22777         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
22778         call to XGetWindowAttributes instead of "handle".  fixes an X
22779         error using notifyicon after the NotifyIconWindow to Form base
22780         class switch.
22781
22782 2006-10-02  Chris Toshok  <toshok@ximian.com>
22783
22784         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
22785         server grab and looping we need to do to get down to the most
22786         deeply nested child window.
22787         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
22788         QueryPointer again after the WarpPointer so we can generate a
22789         proper (fake) MotionNotify event to be enqueued in the destination
22790         window's queue.
22791         (GetCursorPos): call QueryPointer.
22792
22793         Fixes #79556.
22794
22795 2006-10-02  Jackson Harper  <jackson@ximian.com>
22796
22797         * NotifyIcon.cs: Derive the notify icon from a form, so things
22798         like FindForm work on it.
22799         - Swallow the WM_CONTEXTMENU message, since that is generated on
22800         mouse down, and context menu is a mouse up kinda guy.  I believe
22801         the correct fix here is probably to make the notify icon entirely
22802         NC area, but this seems to work fine for anyone not manipulating
22803         WndProc.
22804
22805 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
22806
22807         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
22808           ToolStripItemCollection.cs, ToolStripLabel.cs,
22809           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
22810           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
22811           Initial implementation.
22812         * TextRenderer.cs: Provide padding to MeasureText.
22813
22814 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
22815
22816         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
22817         of ButtonBaseAccessibleObject. Fix bug #79552.
22818
22819 2006-10-02  Jackson Harper  <jackson@ximian.com>
22820
22821         * MdiWindowManager.cs: When maximizing use the containers client
22822         rect, not it's bounds, so nc area is accounted correctly.
22823         - Use the parent form's size for the menu position, since the
22824         client isn't always the full form size.
22825
22826 2006-10-01  Chris Toshok  <toshok@ximian.com>
22827
22828         * ScrollableControl.cs: make sure neither right_edge or
22829         bottom_edge are < 0, since they're used as LargeChange for the
22830         horiz/vert scrollbars respectively.  Fixes #79539.
22831
22832 2006-10-01  Chris Toshok  <toshok@ximian.com>
22833
22834         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
22835         the xplatuix11 code can cause us to destroy/recreate our handle.
22836
22837         * XplatUIX11.cs
22838         (SystrayAdd):
22839         - this code can be invoked many times for the same Hwnd.  Make
22840           sure we only destroy the client window once (the first time this
22841           method is called).  This fixes bug #79544.
22842         - Remove the call to the improperly bound XSync.  why we had two
22843           bindings to this, I will never know, but this call resulted in
22844           events being discarded from the queue(!).
22845         - correct a misunderstanding of _XEMBED_INFO - the second atom is
22846           not our current state but the state we wish to be in.  So, 0 if
22847           we don't want to be mapped.  Change it to 1.
22848         (SystrayRemove): The XEMBED spec makes mention of the fact that
22849         gtk doesn't support the reparent of client windows away from the
22850         embedder.  Looking at gtksocket-x11.c seems to agree with this.
22851         The only avenue we have for removing systray icons is to destroy
22852         them.  We don't want the handle to go away for good, though, so
22853         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
22854         #79545.
22855         
22856 2006-10-01  Chris Toshok  <toshok@ximian.com>
22857
22858         * Form.cs (WndProc): inline the native_enabled variable usage into
22859         the cases in which it's used.  Fixes #79536.
22860
22861 2006-09-29  Mike Kestner  <mkestner@novell.com>
22862
22863         * ListView.cs : toggle the selection state for ctrl clicks in 
22864         multiselect mode. [Fixes #79417]
22865
22866 2006-09-29  Mike Kestner  <mkestner@novell.com>
22867
22868         * ListView.cs : kill CanMultiSelect and refactor the selection
22869         code to support multiselection in the absence of mod keys. Steal
22870         arrow/home/end keys by overriding InternalPreProcessMessage to
22871         restore regressed keynav behavior.
22872         [Fixes #79416]
22873
22874 2006-09-29  Jackson Harper  <jackson@ximian.com>
22875
22876         * MdiClient.cs: Repaint the titlebars when the active window is
22877         changed.
22878
22879 2006-09-29  Chris Toshok  <toshok@ximian.com>
22880
22881         * Application.cs: when entering a runloop with a modal, make sure
22882         the hwnd is enabled.  Fixes #79480.
22883
22884 2006-09-29  Chris Toshok  <toshok@ximian.com>
22885
22886         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
22887         when ListManager.CanAddRows == false, bump us back one.
22888
22889         * DataGridColumnStyle.cs (ParentReadOnly): remove the
22890         listmanager.CanAddRows check.  This makes ArrayLists uneditable
22891         using a datagrid, which is not right.
22892         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
22893         is an IEditable, but call property_descriptor.SetValue regardless.
22894         fixes #79435.
22895
22896 2006-09-29  Chris Toshok  <toshok@ximian.com>
22897
22898         * DataGridBoolColumn.cs: we need to test equality in the face of
22899         possible null values (as is the case with the default NullValue).
22900         This patch keeps us from crashing in that case.
22901
22902 2006-09-29  Jackson Harper  <jackson@ximian.com>
22903
22904         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
22905         here, since it will get called for every node collection in the
22906         tree. This is now done in the treeview once the sorting is
22907         finished.
22908         * TreeView.cs: Recalculate the visible order, and update the
22909         scrollbars after sorting, set the top nope to the root so that the
22910         recalc actually works.
22911
22912 2006-09-29  Chris Toshok  <toshok@ximian.com>
22913
22914         * LinkLabel.cs: more handling of the default link collection in
22915         the face of LinkArea manipulation.  The default link collection
22916         contains 1 element (start=0,length=-1).  If the user sets LinkArea
22917         to anything and the links collection is the default, clear it.
22918         Then only add the link if its nonempty.  Fixes #79518.
22919
22920 2006-09-29  Chris Toshok  <toshok@ximian.com>
22921
22922         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
22923         piece correctly when we hit a '\n'.  Fixes #79517.
22924
22925 2006-09-29  Chris Toshok  <toshok@ximian.com>
22926
22927         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
22928         change the binding of gdk_init_check to take two IntPtr's, and
22929         pass IntPtr.Zero for both of them.  Fixes #79520.
22930
22931 2006-09-29  Mike Kestner  <mkestner@novell.com>
22932
22933         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
22934         [Fixes #78779]
22935
22936 2006-09-28  Jackson Harper  <jackson@ximian.com>
22937
22938         * XplatUIX11.cs: When translating NC messages make sure we go from
22939         whole window to screen, not client window to screen.
22940         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
22941         method doesn't exist
22942         - Skip over controls that aren't forms when arranging.
22943
22944 2006-09-28  Jackson Harper  <jackson@ximian.com>
22945
22946         * XplatUIWin32.cs: Clip the rect to the parent window.
22947         * XplatUIStructs.cs: Add clipping modes struct.
22948         * InternalWindowManager.cs: New private method that factors title
22949         bar heights in when calculating the pos of an NC mouse message.
22950         - Use SendMessage to force a paint when the form's size is changed
22951         instead of painting the decorations immediately.
22952         - Don't let the NC button click messages get to DefWndProc,
22953         because they will attempt to handle windowing themself, and this
22954         messes up z-order (it will put them in front of the scrollbars).
22955         * XplatUIX11.cs: Make sure that we don't reset window managers if
22956         we already have one (ie the window is an MDI window).
22957
22958 2006-09-28  Chris Toshok  <toshok@ximian.com>
22959
22960         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
22961         menu code really needs going over.
22962
22963 2006-09-27  Chris Toshok  <toshok@ximian.com>
22964
22965         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
22966         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
22967         window is maximizable.  So, we need to make sure that even if we
22968         clear the border/wm frame of those functions, they're still
22969         available (basically, we remove the decoration without removing
22970         the function).  Half the fix for #79338.
22971
22972 2006-09-27  Chris Toshok  <toshok@ximian.com>
22973
22974         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
22975         Fixes bug #79515.
22976
22977 2006-09-27  Chris Toshok  <toshok@ximian.com>
22978
22979         * Splitter.cs: reorder things a bit so that we don't actually
22980         draw/move the splitter until after calling OnSplitterMoving.  This
22981         lets users cancel/disallow the movement by explicitly setting
22982         event.SplitX/SplitY.  Fixes #79372.
22983
22984 2006-09-27  Jackson Harper  <jackson@ximian.com>
22985
22986         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
22987         because it is most likely on a window being destroyed, and that
22988         will give us an X11 error.
22989
22990 2006-09-27  Chris Toshok  <toshok@ximian.com>
22991
22992         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
22993         the dropdown button now toggles between showing and hiding the
22994         dropdown.  Also, get rid of dropdown_form_showing and just use
22995         dropdown_form.Visible.  We still don't do a grab, but I'll leave
22996         that part to someone who has handled Capture-fu before.
22997
22998 2006-09-27  Chris Toshok  <toshok@ximian.com>
22999
23000         * DataGrid.cs: return false if alt isn't pressed when '0' is
23001         pressed.  this keeps the '0' key from being swallowed, and fixes
23002         bug #79350.
23003
23004 2006-09-27  Chris Toshok  <toshok@ximian.com>
23005
23006         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
23007         Calling Refresh (in response to a scrollbar event) screws up the
23008         scrollbar painting.  Fixes bug #78923.
23009
23010 2006-09-27  Chris Toshok  <toshok@ximian.com>
23011
23012         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
23013         then insert into hashtable" blocks threadsafe.
23014
23015 2006-09-27  Chris Toshok  <toshok@ximian.com>
23016
23017         * MessageBox.cs (CreateParams): the styles should be |'ed with our
23018         baseclass's, since otherwise the
23019         ControlBox/MinimizeBox/MaximizeBox assignments above have no
23020         effect.  This gets the close button back in messageboxes.
23021
23022 2006-09-27  Chris Toshok  <toshok@ximian.com>
23023
23024         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
23025         flag, not just != 0.  this makes flags that are actually multiple
23026         bits (like WS_CAPTION) work.  fixes bug #79508.
23027
23028 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
23029
23030         * PageSetupDialog.cs: add support for getting and settings the 
23031         paper size, source and orientation.
23032
23033 2006-09-26  Chris Toshok  <toshok@ximian.com>
23034
23035         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
23036         and caption == "", we need to remove the resize handles as well as
23037         the title bar.
23038
23039         * Control.cs (set_Text): turns out that setting Text on a form
23040         should change the WM styles on the window, since if ControlBox ==
23041         false, the only way to get a window border is to have a non-""
23042         Text property.  check winforms/forms/text.cs for an example.  so,
23043         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
23044         update both window styles and title.  This fixes a lot of dialogs
23045         (including the preferences dialog in MonoCalendar.)
23046
23047 2006-09-26  Chris Toshok  <toshok@ximian.com>
23048
23049         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
23050         control isn't a Form), call Win32ShowWindow to hide the window,
23051         but don't update the control Visible property.  When we reparent
23052         back to a parent control, call SetVisible in order for the
23053         window's visibility to be reinstated.
23054
23055         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
23056         the FosterParent.
23057
23058         * Control.cs (ControlCollection.Remove): remove that value.Hide()
23059         call for good, since it breaks MonoCalendar (and other things I'm
23060         sure.) Also, set all_controls to null *after* the owner calls,
23061         which end up regenerating it.
23062         (ChangeParent): allow new_parent to be == null, passing
23063         IntPtr.Zero down to XplatUI.
23064
23065         this fixes #79294 the right way.
23066
23067 2006-09-26  Mike Kestner  <mkestner@novell.com>
23068
23069         * GridEntry.cs : internal SetParent method.
23070         * PropertyGrid.cs : attach to property changed on the proper
23071         target if we have a hierarchical grid with subobjects. Setup
23072         GridItem.Parent for hierarchical items.
23073         * PropertyGridView.cs : Set value on the correct target for
23074         hierarchical grids. [Fixes #78903]
23075
23076 2006-09-26  Chris Toshok  <toshok@ximian.com>
23077
23078         * Control.cs (ChildNeedsRecreating): this should return true if
23079         either we're being recreated and the child is in our list, or our
23080         parent is waiting for our recreation.
23081
23082 2006-09-26  Chris Toshok  <toshok@ximian.com>
23083
23084         * Control.cs (ControlCollection.Remove): reinstate the
23085         value.Hide() call as suggested in bug #79294.
23086
23087 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
23088
23089         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
23090         coordinates (versus a relative move).
23091
23092 2006-09-26  Chris Toshok  <toshok@ximian.com>
23093
23094         * Control.cs: rework child recreation a little bit.  It turns out
23095         that we race between the DestroyNotify the WM_DESTROY message.  If
23096         the parent gets its DestroyNotify before the child gets the
23097         WM_DESTROY message, the child ends up not recreating (since the
23098         parent finishes its recreation on DestroyNotify, and the child
23099         checks ParentIsRecreating.)
23100
23101         So, instead we store off a list of all the child controls which
23102         need to be recreated when the parent control starts to recreate
23103         itself.  Then, when child controls get their WM_DESTROY message we
23104         check to see if they're in the parent's pending recreation list,
23105         and if so, we recreate.  This removes all dependency on ordering
23106         from the code and fixes the initial MonoCalendar upgrade dialog.
23107         
23108 2006-09-26  Jackson Harper  <jackson@ximian.com>
23109
23110         * TextControl.cs: Use the Line to get the length of the line,
23111         since soft line breaks can change the end line.
23112
23113 2006-09-26  Chris Toshok  <toshok@ximian.com>
23114
23115         * Control.cs (ControlCollection.AddImplicit): don't add the
23116         control again if it's already in one of our lists.  This keeps us
23117         from adding controls over and over again for comboboxes when their
23118         handle gets recreated (as the combobox adds implicit controls in
23119         OnHandleCreated).  Fixes the X11 errors in bug #79480.
23120
23121 2006-09-26  Jackson Harper  <jackson@ximian.com>
23122
23123         * TextControl.cs: When deleting characters make sure that any
23124         orphaned zero lengthed tags get deleted.
23125         - Fix ToString for zero lengthed tags.
23126
23127 2006-09-25  Jackson Harper  <jackson@ximian.com>
23128
23129         * TextControl.cs: When getting a tag at the location there can be
23130         multiple tags at the same spot, these are 0-lengthed tags that
23131         appear when extra formatting has been stuck in a location.  We
23132         need to pull out the last of these 0 lengthed tags.
23133
23134 2006-09-25  Jackson Harper  <jackson@ximian.com>
23135
23136         * TextControl.cs: Fix print out in debug method.
23137         * TextBoxBase.cs: When text is set bail if we are setting to the
23138         previous value.
23139         
23140 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
23141
23142         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
23143           It is now possible to change the selected index in a FontXXXListBox
23144           with the up and down arrow keys from the FontXXXTextBoxes.
23145           Also, send the FontXXXTextBox mouse wheel event to the corresponding
23146           FontXXXListBoxes to match ms.
23147
23148 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
23149
23150         * SystemInformation.cs: Return a clone of the theme's MenuFont because
23151         anyone can dispose it, anytime. All other properties returns enums, 
23152         structs or basic types so they don't need such tricks.
23153
23154 2006-09-22  Jackson Harper  <jackson@ximian.com>
23155
23156         * XplatUI.cs:
23157         * XplatUIWin32.cs:
23158         * Clipboard.cs:
23159         * DataFormats.cs:
23160         * XplatUIOSX.cs:
23161         * XplatUIDriver.cs: Update interface to add a primary selection
23162         flag, so the driver can use the primary selection buffer if
23163         needed.
23164         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
23165
23166         * RichTextBox.cs: We need to supply the data object to paste now
23167         (so we can choose to supply CLIPBOARD or PRIMARY).
23168         * TextBoxBase.cs: Supply data object to paste (see above).
23169         - Middle click uses the primary selection data object.
23170         
23171 2006-09-21  Chris Toshok  <toshok@ximian.com>
23172
23173         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
23174         of SetWMStyles.  It's still a rat's nest and is largely
23175         order-dependent which I dislike immensely.  This also fixes the X
23176         button disappearing from toplevel forms.
23177
23178 2006-09-21  Mike Kestner <mkestner@novell.com>
23179
23180         * ListBox.cs: move Jordi's click/dblclick raising code to the
23181         mouse up handler.
23182
23183 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
23184
23185         * ListBox.cs: Fixes 79450
23186
23187 2006-09-21  Mike Kestner <mkestner@novell.com>
23188
23189         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
23190         to deal with people updating the TreeNodeCollection after the tree
23191         is disposed.  "Fixes" 79330.
23192
23193 2006-09-20  Jackson Harper <jackson@ximian.com>
23194
23195         * TextControl.cs: Push the cursor record onto the undo stack
23196         before the delete action. This fixes 78651.
23197
23198 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
23199
23200         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
23201         CreateParams. Fixes 79329.
23202
23203 2006-09-19  Chris Toshok  <toshok@ximian.com>
23204
23205         * XplatUIX11.cs: a couple of blanket code massage passes to clean
23206         things up a bit.  First, get rid of the NetAtoms array (and the NA
23207         enum), and just embed the atoms as static fields.  Also, add a
23208         couple of functions (StyleSet and ExStyleSet) to clean up all the
23209         bitmask testing of styles.
23210
23211         * X11Structs.cs: remove the NA enum, not needed anymore.
23212         
23213 2006-09-19  Chris Toshok  <toshok@ximian.com>
23214
23215         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
23216         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
23217         added cleanup to get MessageBox titles appearing again, which were
23218         broken by my earlier fix for caption-less/ControlBox-less windows.
23219
23220 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
23221
23222         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
23223           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
23224           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
23225           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
23226           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
23227           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
23228           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
23229           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
23230           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
23231           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
23232           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
23233             Inital import.
23234         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
23235           ToolStripButton.cs: Stubs needed for above.
23236         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
23237
23238 2006-09-15  Chris Toshok  <toshok@ximian.com>
23239
23240         * XplatUIX11.cs:
23241         - make the MessageQueues hashtable Synchronized.
23242         
23243         - SendMessage: if the Hwnd is owned by a different thread, use the
23244         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
23245         thread.  Fixes bug #79201.
23246
23247 2006-09-15  Chris Toshok  <toshok@ximian.com>
23248
23249         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
23250         ControlBox == false, we disallow maximize/minimize/close.  If the
23251         form Caption is "" we also disallow move (and get rid of the Title
23252         decoration).  Unfortunately, regardless of how things are set,
23253         we're stuck with the Title and WM menu.
23254
23255 2006-09-15  Chris Toshok  <toshok@ximian.com>
23256
23257         * Application.cs: add locking around the static message_filters
23258         ArrayList, part of #79196.
23259
23260 2006-09-15  Chris Toshok  <toshok@ximian.com>
23261
23262         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
23263         Form.ControlBox == false, the window has no titlebar nor resize
23264         handles.  fixes bug #79368.
23265
23266 2006-09-15  Chris Toshok  <toshok@ximian.com>
23267
23268         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
23269         >= 0.  Fixes bug #79370.
23270
23271 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
23272         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
23273         * Control.cs:
23274             Add properties: LayoutEngine, Margin, DefaultMargin.
23275             Add method: GetPreferredSize.
23276             Move layout logic from PerformLayout to layout engines. 
23277
23278 2006-09-13  Chris Toshok  <toshok@ximian.com>
23279
23280         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
23281         fix for #79326 broke #78718, so this change addresses that.
23282
23283         - in SendWMDestroyMessages remove the call to
23284         CleanupCachedWindows, since we might be recreating the control and
23285         need to maintain the references to right Hwnd handles.  Also, set
23286         the zombie flag to true for each of the children in the hierarchy
23287         instead of calling hwnd.Dispose.  This will cause GetMessage to
23288         ignore all events for the window except for DestroyNotify.
23289
23290         - In GetMessage, ignore messages except for DestroyNotify for
23291         zombie hwnds.
23292         
23293         * Control.cs: revert the is_recreating fix from the last
23294         ChangeLog.  It's definitely "right", but it breaks switching from
23295         an MDI form to a non-MDI form.  Will need to revisit that.
23296
23297         * Hwnd.cs: add a zombie flag, which means "the
23298         client_window/whole_window handles are invalid, but we're waiting
23299         for the DestroyNotify event to come in for them".  Set the flag to
23300         false explicitly if setting WholeWindow/ClientWindow, and also
23301         when Disposing.
23302         
23303 2006-09-13  Chris Toshok  <toshok@ximian.com>
23304
23305         * XplatUIX11.cs: rework window destruction slightly.
23306
23307         - when destroying the windows associated with a control, we don't
23308         need 2 separate XDestroyWindow calls.  Just the one for the
23309         whole_window (or for client_window if whole_window is somehow
23310         IntPtr.Zero -- can this happen?) is enough.
23311
23312         - reworked SendWMDestroyMessages slightly, so we always dispose
23313         the child control hwnd's after sending the messages.
23314         
23315         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
23316         the two places it was used (one was even using hwnd.Handle and the
23317         other hwnd.client_window.  ugh), adding another call in
23318         SendWMDestroyMessages.  We need this new call because now the
23319         DestroyNotify events in the queue will be ignored for the child
23320         controls (as their hwnd's were disposed, and the window id's
23321         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
23322
23323         - this fixes bug #79326.
23324
23325 2006-09-13  Chris Toshok  <toshok@ximian.com>
23326
23327         * Control.cs: don't always set is_recreating to false at the end
23328         of RecreateHandle, since sometimes we're not done (and won't be
23329         until WndProc handles the WM_DESTROY message).  Also, set
23330         is_recreating to false in the WM_DESTROY handling code.  Part of
23331         the fix for bug #79326.
23332
23333 2006-09-13  Miguel de Icaza  <miguel@novell.com>
23334
23335         * X11DesktopColors.cs: Start the droppage of debugging messages.
23336
23337         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
23338
23339 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
23340
23341         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
23342
23343 2006-09-12  Chris Toshok  <toshok@ximian.com>
23344
23345         * DataGrid.cs (get_ListManager): if the list_manager is null, try
23346         to create it using SetDataSource.  Fixes bug #79151.
23347
23348 2006-09-11  Chris Toshok  <toshok@ximian.com>
23349
23350         * XEventQueue.cs: add a DispatchIdle property.
23351
23352         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
23353         either the queue is null, or the queue has DispatchIdle set to
23354         true.
23355         (DoEvents): set queue.DispatchIdle to false around the
23356         peek/translate/dispatch message loop in this method.  This keeps
23357         Application.Doevents from emitting idle events.  Part of the fix
23358         for #78823.
23359
23360 2006-09-11  Chris Toshok  <toshok@ximian.com>
23361
23362         * DataGrid.cs (set_DataSource): make this work for both the
23363         winforms/datagrid test and ReportBuilder.  It seems as though when
23364         we've created a ListManager (or maybe it's if we have a
23365         BindingContext?), when we set the DataSource it clears the
23366         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
23367         #79333.
23368
23369 2006-09-11  Chris Toshok  <toshok@ximian.com>
23370
23371         * XplatUIX11.cs: deal with queue being null, which happens in all
23372         the Clipboard functions.  Fixes one of the two problems mentioned
23373         in #78612.
23374
23375 2006-09-11  Chris Toshok  <toshok@ximian.com>
23376
23377         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
23378         button on various spots (including outside the menu) works closer
23379         to MS, and doesn't crash.  Fixes #79343.
23380
23381 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
23382
23383         * ListView.cs: Do not initialize item_sorter in init. To match MS,
23384         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
23385         and the internal comparer is set. When a new ListViewItemSorter is set,
23386         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
23387         was specified. No further processing is necessary if SortOrder is set
23388         to it's current value. If Sorting is modified to None, and View is
23389         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
23390         (either custom or our internal ItemComparer) to null, on 1.0 profile
23391         only set item_sorter to null if its our internal IComparer. If Sorting
23392         is modified to Ascending or Descending, then use our internal IComparer
23393         if none is set, and if the current IComparer is our internal one then:
23394         on 2.0 profile always replace it with one for new Sorting, and on 1.0
23395         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
23396         Enum.IsDefined to verify whether a valid View value is specified in
23397         its setter. Automatically sort listview items when listview is
23398         created. In Sort, do nothing if ListView is not yet created, or if
23399         no item_sorter is set (no Sorting was set, Sorting was explicitly set
23400         to None or ListViewItemSorter was set to null). Added Sort overload
23401         taking a bool to indicate whether the ListView should be redrawn when
23402         items are sorted (we use this in ListViewItemCollection to avoid double
23403         redraws). Modified our internal IComparer to take the sort order into
23404         account. In Add and AddRange methods of ListViewItemCollection, also
23405         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
23406         view), but use overload with noredraw option to avoid double redraw.
23407         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
23408         true when View is Tile, and do the same when attempting to set View to
23409         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
23410         for selected/checked indices, as it involves overhead when sorting is
23411         done while these collections are not used all that often. Instead
23412         we'll build the indices on demand. Modified IList implementation of
23413         CheckedIndexCollection to use public methods if object is int.
23414         Modified CheckedListViewItemCollection to hide checked items if
23415         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
23416         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
23417         IList implementation in SelectedIndexCollection to use public methods
23418         if object is int. Modified SelectedListViewItemCollection to hide
23419         selected items if listview is not yet created.
23420         * ListViewItem.cs: CheckedIndices list no longer needs to be
23421         maintained separately (see ListView changes). Also clone font, fixes
23422         test failure.
23423
23424 2006-09-11  Mike Kestner  <mkestner@novell.com>
23425
23426         * ComboBox.cs: if we are updating the contents of the currently
23427         selected index, refresh the control or the textbox selection.
23428         [Fixes #79066]
23429
23430 2006-09-11  Mike Kestner  <mkestner@novell.com>
23431
23432         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
23433         the 'specified' logic has been moved there.  This seems like a bug 
23434         in Control.cs, since our current SetBoundsCore completely ignores 
23435         the specified parameter.  Peter's commit seems to indicate that is 
23436         the way the MS control implementation works.  [Fixes #79325]
23437
23438 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
23439
23440         * XplatUI.cs: Set default_class_name to be composed
23441         of current domain id. This allows MWF to be loaded in multiple
23442         domains on Win32.
23443
23444 2006-09-09  Miguel de Icaza  <miguel@novell.com>
23445
23446         * X11Keyboard.cs: If we are unable to obtain the input method, do
23447         not call CreateXic to create the input context.   Should fix
23448         #78944/79276.
23449
23450 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
23451
23452         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
23453           Simplified gnome support by adding more pinvokes to get the
23454           icon for a file or mime type.
23455
23456 2006-09-08  Jackson Harper  <jackson@ximian.com>
23457
23458         * MenuAPI.cs: Deslect popup context menu items before closing the
23459         window, so that you don't see the previously selected item
23460         selected when you reopen the menu.
23461         * TextControl.cs: Update the cursor position even if we don't have
23462         focus.  This fixes typing in things like the ComboBox.  I'm not
23463         totally sure we should always set the visibility if we don't have
23464         focus, but couldn't find any corner cases where the cursor showed
23465         up when it shouldn't.
23466
23467 2006-09-08  Chris Toshok  <toshok@ximian.com>
23468
23469         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
23470         our arrays are length 256.  & 0xff before indexing.  Fixes the
23471         crash in bug #78077.
23472         
23473 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23474
23475         * ThemeWin32Classic.cs: 
23476         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
23477         is true. Handle that check box too.
23478
23479 2006-09-07  Chris Toshok  <toshok@ximian.com>
23480
23481         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
23482         79244.
23483
23484 2006-09-07  Chris Toshok  <toshok@ximian.com>
23485
23486         * Control.cs: in set_BackColor only do the work if
23487         background_color != value.
23488
23489         * XplatUIX11.cs: move the clearing of invalid areas (both client
23490         and nc) to the same block of code where we set (nc_)expose_pending
23491         to false.  That is, move it from PaintEventEnd to PaintEventStart,
23492         so things that cause invalidates from within OnPaint will trigger
23493         another call to OnPaint.  Fixes bug #79262.
23494
23495 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
23496
23497         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
23498         * FileDialog.cs: Fix typo
23499
23500 2006-09-07  Jackson Harper  <jackson@ximian.com>
23501
23502         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
23503         for tab pages if they have any.
23504
23505 2006-09-06  Mike Kestner  <mkestner@novell.com>
23506
23507         * Splitter.cs: use the "current" rect when finishing drag handle
23508         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
23509
23510 2006-09-06  Mike Kestner  <mkestner@novell.com>
23511
23512         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
23513         support offset splitters. [Fixes #79298]
23514
23515 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
23516
23517         * Mime.cs: Fixed a bug that could override the global mime type
23518           result.
23519
23520 2006-09-05  Jackson Harper  <jackson@ximian.com>
23521
23522         * TabControl.cs: Better calculation method for setting the slider
23523         pos. Prevents crashes on really wide tabs.
23524         - Draw Image on tab pages if an image list is used.
23525
23526 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23527
23528         * MonthCalendar.cs: When Font changes, the Size should be
23529         updated to fit the new font's space requirements.
23530
23531 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
23532
23533         * ListBox.cs: If the items are cleared with Items.Clear set
23534           top_index to 0.
23535
23536 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23537
23538         * MonthCalendar.cs: Handle arrow keys as input keys. Also
23539         fire DateChanged event instead of DateSelected event when
23540         the date was changed by keyboard interaction.
23541
23542 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23543
23544         * DateTimePicker.cs: Handle DateChanged for the associated
23545         month_calendar control, and set month_calendar.Font from 
23546         OnFontChanged method, as well as resize the height of the
23547         control when needed. Make PreferredHeight proportional.
23548
23549 2006-09-01  Chris Toshok  <toshok@ximian.com>
23550
23551         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
23552         properties.
23553
23554         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
23555
23556 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
23557
23558         * FileDialog.cs: Set ClientSize instead of window size, to allow space
23559           for decorations (Fixes #79219)
23560
23561 2006-09-01  Mike Kestner  <mkestner@novell.com>
23562
23563         * ComboBox.cs: first stab at sorting plus some selection handling
23564         fixes to bring us more in line with MS behavior.  Also switches back
23565         to index based selection.  Alternative patches for index-based 
23566         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
23567         and latency@gmx.de on bug 78848.  I assume they were similar to this
23568         code I've had simmering in my tree forever.
23569         [Fixes #78848]
23570
23571 2006-09-01  Chris Toshok  <toshok@ximian.com>
23572
23573         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
23574         when setting list position guard against ending up with a -1 index
23575         (the other part of the fix for #78812).  Should probably make sure
23576         we don't need the analogous fix in the ItemDeleted case.
23577
23578         * DataGrid.cs:
23579         - in SetDataSource, work around the fact that the way
23580         OnBindingContextChanged is invoked will cause us to re-enter this
23581         method.  I'll remove the hack once I investigate
23582         OnBindingContextChanged.
23583
23584         - fix the logic in set_DataSource and set_DataMember (basically
23585         what to do if the other of the two is null.)
23586         
23587         - in OnListManagerItemChanged, we need to take into account the
23588         edit row when deciding whether or not to call RecreateDataGridRows
23589         (part of the fix for #78812).
23590
23591 2006-09-01  Jackson Harper  <jackson@ximian.com>
23592
23593         * Splitter.cs: Don't do anything if there is no control to affect
23594         (prevents us from crashing in weird tet cases).
23595         * TreeView.cs: Bounding box for the mouse movement reverting
23596         focus/selection back to previously selected node.  This matches
23597         MS, and makes the tree a lot more useable.
23598         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
23599         use clipping so they are not drawn.  This fixes when the control
23600         is set to have a transparent background, or if it was over an
23601         image.
23602
23603 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
23604
23605         * MimeIcon.cs: Improved handling for reading default icons when
23606           using gnome (2.16 made it necessary). Check and read svg icons
23607           first, then 48x48 and then 32x32 icons.
23608
23609 2006-08-31  Chris Toshok  <toshok@ximian.com>
23610
23611         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
23612         visible.
23613
23614         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
23615         ProcessKeyPreview.  Fixes part of #77806.
23616
23617         * DataGrid.cs: big patch.
23618
23619         - revert the queueing up of DataSource/DataMember if inside
23620         BeginInit/EndInit calls.  That's not the way the datagrid achieves
23621         its delayed databinding.  Instead, call SetDataSource in
23622         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
23623         #78811.
23624
23625         - Also, it wasn't mentioned in #78811, but the test case exhibits
23626         behavior that was lacking in our datagrid implementation - Columns
23627         that have mapping names that don't exist in the datasource's
23628         properties aren't shown.  Yuck.  To fix this I added the bound
23629         field to the column style, and basically any calculation to figure
23630         out anything about columns uses a loop to find the bound columns.
23631         still need to investigate if I can cache an array of the bound
23632         columns or if the indices must be the same.
23633
23634         - When setting CurrentCell, we no longer abort if the cell being
23635         edited was in the add row.  This fixes the other part of #77806.
23636
23637         - The new code also fixes #78807.
23638         
23639         * ThemeWin32Classic.cs: perpetrate the same disgusting
23640         column.bound field hack, and only render bound fields.
23641
23642 2006-08-31  Chris Toshok  <toshok@ximian.com>
23643
23644         * DataGridColumnStyle.cs: add bound field.  this field is true if
23645         the datasource has a property corresponding to the mapping name.
23646
23647         * DataGridTableStyle.cs: set the bound field on the column styles
23648         depending on whether or not we have a column for that property.
23649
23650 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
23651
23652         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
23653           splitter control (fixes #79228)
23654
23655 2006-08-31  Chris Toshok  <toshok@ximian.com>
23656
23657         * DataGridColumnStyle.cs: we need to delay the assignment of
23658         property descriptor until the last possible moment due to the lazy
23659         databinding stuff in the datagrid.  Also, fix the exceptions
23660         thrown by CheckValidDataSource to match MS.
23661
23662 2006-08-31  Jackson Harper  <jackson@ximian.com>
23663
23664         * Form.cs: When activated select the active control, if there is
23665         no active control, we select the first control.
23666         * XplatUIX11.cs: If there is no focus control when we get a
23667         FocusIn event, find the toplevel form and activate it.  This
23668         occurs when you popup a window, it becomes the focus window, then
23669         you close that window, giving focus back to the main window.
23670
23671 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23672
23673         * MonthCalendar.cs: 
23674         * ThemeWin32Classic.cs: Cache Font in bold style, as well
23675         as StringFormat with Center alignments in MonthCalendar,
23676         instead of creating new ones when drawing the control. 
23677         Also, draw the month name in bold style.
23678
23679 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
23680
23681         * Control.cs:
23682           - PerformLayout(): It would seem MS performs the fill even if the 
23683             control is not visible (part of #79218 fix)
23684           - ResetBackColor(): Use the setter to reset the color, to allow
23685             overriders to catch the change.
23686         * Form.cs:
23687           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
23688           - CreateHandle(): dito (part of $79218 fix)
23689           - Don't set an icon if we have a dialog
23690         * ScrollableControl.cs:
23691           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
23692           - ScrollIntoView(): No need to scroll if control is already visible
23693             (resolves fixme and fixes #79218)
23694
23695 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23696
23697         * MonthCalendar.cs: Change proportions in SingleMonthSize
23698         to match the aspect of the original control.
23699
23700 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
23701
23702         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
23703           get updated when they get maximized.
23704
23705 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
23706
23707         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
23708
23709 2006-08-29  Chris Toshok  <toshok@ximian.com>
23710
23711         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
23712
23713 2006-08-29  Jackson Harper  <jackson@ximian.com>
23714
23715         * TreeView.cs: Need to track selected node and highlighted node,
23716         they aren't always the same thing, when the mouse is down on a
23717         node it is hilighted, but not selected yet.
23718         - Do the HideSelection stuff right
23719         - Need to focus on rbutton mouse down. And redraw selection when
23720         right click is mouse upped.
23721
23722 2006-08-29  Mike Kestner  <mkestner@novell.com>
23723
23724         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
23725         when SubItems.Count < Columns.Count.  [Fixes #79167]
23726
23727 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
23728
23729         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
23730
23731 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
23732
23733         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
23734           from X. Only send based on ConfigureNotify if we don't have the
23735           correct location in hwnd (if the window manager moved us)
23736
23737 2006-08-28  Mike Kestner  <mkestner@novell.com>
23738
23739         * ListView.cs: remove a TODO. 
23740         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
23741         [Fixes ListView part of #79166]
23742
23743 2006-08-28  Mike Kestner  <mkestner@novell.com>
23744
23745         * ListView.cs: move wheel handler to parent since it is focused
23746         instead of the item_control now.  [Fixes #79177]
23747
23748 2006-08-28  Mike Kestner  <mkestner@novell.com>
23749
23750         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
23751         when the control is focused. [Fixes #79171]
23752
23753 2006-08-28  Mike Kestner  <mkestner@novell.com>
23754
23755         * ListView.cs: size the item and header controls for empty and
23756         unscrollable views.
23757         * ThemeWin32Classic.cs: draw disabled backgrounds.
23758         [Fixes #79187]
23759
23760 2006-08-28  Chris Toshok  <toshok@ximian.com>
23761
23762         * Form.cs: remove unused "active_form" static field.
23763
23764         * Hwnd.cs: lock around accesses to static windows collection.
23765
23766         * Application.cs: lock threads in Exit ().
23767
23768 2006-08-28  Chris Toshok  <toshok@ximian.com>
23769
23770         * NativeWindow.cs: lock around accesses to window_collection.
23771         
23772 2006-08-28  Chris Toshok  <toshok@ximian.com>
23773
23774         * Control.cs: err, fix this the right way, by locking on controls
23775         when using it.  not by making it synchronized.
23776
23777 2006-08-28  Chris Toshok  <toshok@ximian.com>
23778
23779         * Control.cs: make the static "controls" field synchronized, as it
23780         gets updated from multiple threads.
23781
23782 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
23783
23784         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
23785           Prevent other threads from exiting when calling thread sets quit state.
23786         * XEventQueue.cs: Added PostQuitState property
23787
23788 2006-08-27  Chris Toshok  <toshok@ximian.com>
23789
23790         * AsyncMethodData.cs: add a slot for the window handle.
23791
23792         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
23793         window (the destination control's window, not the foster window).
23794
23795         * Control.cs (BeginInvokeInternal): store the window's handle in
23796         the AsyncMethodData.
23797         
23798
23799 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
23800
23801         * XplatUIX11.cs:
23802           - PostQuitMessage: Removed resetting S.D display handle, we might have
23803             another loop started after calling PostQuitMessage (Fixes #79119)
23804           - Created destructor to reset S.D handle
23805
23806 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
23807
23808         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
23809
23810 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23811
23812         * TextControl.cs (Insert): Update the caret position even if we don't
23813           have a handle yet, just don't call the driver in that case.
23814         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
23815           to the end of the new selection text (Fixes #79184)
23816
23817 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23818
23819         * Form.cs (Activate): Only activate if the handle is created)
23820         * Control.c:
23821           - Mark window as invisible when it's disposed
23822           - Check if window handle is created when setting window visible, 
23823             instead of relying just on the is_created variable
23824           - Check if object is disposed when creating the control (Fixes #79155)
23825
23826 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23827
23828         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
23829           when allowing layout again. Otherwise we re-generate the anchoring 
23830           distance to the border again and actually alter what the user wanted
23831           This is ugly, it'd be better if we used DisplayRectangle instead of
23832           ClientRectangle for Control.UpdateDistances, but that causes us to
23833           have other problems (initial anchoring positons would be wrong)
23834           (Fixes #78835)
23835
23836 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23837
23838         * Control.cs:
23839           - The size and location setters shouldn't go directly to 
23840             SetBoundsCore, but to SetBounds, which triggers layout on the
23841             parent, then calls SetBoundsCore. (Related to fix for #78835)
23842           - SetBounds: Moved actual location update code into this function
23843             from SetBoundsCore, to match MS. Added call to PerformLayout if
23844             we have a parent (to trigger resizing of anchored parents if the 
23845             child size has changed (see testcase for #78835) 
23846         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
23847           new control code
23848         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
23849
23850 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23851
23852         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
23853           System.Drawing when a toplevel window gets closed; there might
23854           be other toplevel windows belonging to the same app (Fixes #78052)
23855
23856 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
23857
23858         * FileDialog.cs: After reading FileDialog settings from mwf_config
23859           use Desktop prefix only if a real folder doesn't exist anymore.
23860         * FontDialog.cs: Added char sets.
23861           It is now possible to select the font, size or style with the
23862           textboxes.
23863
23864 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
23865
23866         * PrintPreviewDialog.cs: Use assembly name constants.
23867
23868 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23869
23870         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
23871           scrollbar from whacking it's buttons)
23872
23873 2006-08-24  Chris Toshok  <toshok@ximian.com>
23874
23875         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
23876         in this patch (aggregating setting Left/Top/Width/Height to
23877         setting Bounds on the scrollbars), but the crux of the fix is in
23878         Recalculate, where we scroll by the remaining scroll_position if
23879         we're hiding a scrollbar.  The 2*$5 reward in the comment is
23880         serious.
23881
23882 2006-08-24  Jackson Harper  <jackson@ximian.com>
23883
23884         * MdiClient.cs:
23885         * MdiWindowManager.cs: If the form is made a non-mdi window we
23886         need to remove the form closed event so that closing forms works
23887         correctly.
23888
23889 2006-08-24  Jackson Harper  <jackson@ximian.com>
23890
23891         * Control.cs: Make IsRecreating internal so that the driver can
23892         check it
23893         - Temporarily remove the Hide when controls are removed, its
23894         making a whole bunch of things not work because visibility isn't
23895         getting reset elsewhere correctly
23896         * Form.cs: Need to do a full handle recreation when the mdi parent
23897         is set.
23898         * XplatUIX11.cs: If we are recreating handles don't dispose the
23899         HWNDs.  What was happening is the handles were being recreated in
23900         SendWMDestroyMessages, but then flow continued on in that method
23901         and destroyed the new handles.
23902
23903 2006-08-23  Jackson Harper  <jackson@ximian.com>
23904
23905         * Form.cs: MdiClient is always at the back of the bus
23906         * Control.cs: When the order of items in the collection is changed
23907         we need to reset the all_controls array
23908         - do the same sorta setup thats done when adding a control when a
23909         control is set on the collection.
23910
23911 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23912
23913         * TextBoxBase.cs (get_Text): Return an empty array if our document
23914           is empty (fixes #79052)
23915
23916 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23917
23918         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
23919           on WM_SYSCHAR messages (fixes #79053)
23920
23921 2006-08-23  Chris Toshok  <toshok@ximian.com>
23922
23923         * DataGrid.cs: fix flickering when scrolling vertically.
23924
23925 2006-08-23  Chris Toshok  <toshok@ximian.com>
23926
23927         * DataGrid.cs (EndEdit): only invalidate the row header when we
23928         need to.
23929
23930 2006-08-23  Chris Toshok  <toshok@ximian.com>
23931
23932         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
23933         methods.  fixes the flicker when scrolling around.
23934
23935 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23936
23937         * FileDialog.cs: Making sure the control is created before we get a 
23938           chance to use it with BeginInvoke (Fixes #79096)
23939
23940 2006-08-23  Chris Toshok  <toshok@ximian.com>
23941
23942         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
23943         width to use when painting the rows.
23944
23945 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23946
23947         * TextBoxBase.cs:
23948           - Throw ArgumentException if a negative value is passed to SelectionLength
23949           - Update the selection end if start is moved. end needs to be always
23950             after start. (Fixes #79095)
23951           - Track selection length; MS keeps the selection length even if start
23952             is changed; reset on all other operations affection selection
23953
23954 2006-08-22  Jackson Harper  <jackson@ximian.com>
23955
23956         * TreeView.cs: Make sure both scrollbars get displayed and sized
23957         correctly when the other bar is visible.
23958         - Use the original clip rectangle for checking if the area between
23959         the two scrollbars is visible, not the viewport adjusted clipping
23960         rectangle.
23961
23962 2006-08-22  Jackson Harper  <jackson@ximian.com>
23963
23964         * Binding.cs: We don't use IsBinding because it requires the
23965         control to be created, which really shouldn't be necessary just to
23966         set a property on the control.
23967
23968 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23969
23970         * ComboBox.cs: Some CB.ObjectCollection methods must throw
23971         ArgumentNullReferenceException when the argument is null.
23972
23973 2006-08-21  Jackson Harper  <jackson@ximian.com>
23974
23975         * Timer.cs: Track the thread that the timer is started in (NOT
23976         CREATED), this way messages for it will only be triggered on its
23977         queue.
23978         * XEventQueue.cs: Track the timers here, this makes timers per
23979         thread, like MS.
23980         * XplatUIX11.cs: The timers are moved to the XEventQueue.
23981
23982 2006-08-19  Chris Toshok  <toshok@ximian.com>
23983
23984         * XplatUIX11.cs: after further communication with pdb, we get the
23985         best of both worlds.  SetZOrder working for un-Mapped windows, and
23986         no X errors for un-mapped windows.
23987
23988 2006-08-19  Chris Toshok  <toshok@ximian.com>
23989
23990         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
23991         as it was causing pdn toolbars to not have the correct stacking.
23992
23993 2006-08-18  Mike Kestner  <mkestner@novell.com> 
23994
23995         * ListView.cs : guard against negative ClientArea.Width in scrollbar
23996         calculation.  Not sure why control should ever be setting a negative
23997         width though.  Fixes #78931.
23998
23999 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24000
24001         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
24002         null items in ObjectCollection class.
24003         * ListBox.cs.: Likewise.
24004
24005 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
24006
24007         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
24008           as the base method in ThemeWin32Classic should work fine.
24009           Fixed bug #78607.
24010
24011 2006-08-18  Jackson Harper  <jackson@ximian.com>
24012
24013         * Binding.cs: When validating if the value entered doesn't convert
24014         properly reset to the old value.
24015         * RadioButton.cs: Don't fire click when we get focus.
24016
24017 2006-08-18  Jackson Harper  <jackson@ximian.com>
24018
24019         * FileDialog.cs: Paint the selection on the directory combobox the
24020         same way as on MS. 
24021
24022 2006-08-17  Jackson Harper  <jackson@ximian.com>
24023
24024         * ErrorProvider.cs: Don't allow the error control to be selected.
24025         * Control.cs: Don't send the SetFocus messages, the control
24026         activation will do this, and if we do it blindly here validation
24027         does not work.
24028
24029 2006-08-17  Jackson Harper  <jackson@ximian.com>
24030
24031         * Control.cs:
24032         * ContainerControl.cs: Make validation events fire in the correct
24033         order.  TODO: For some reason the first validation event is not
24034         getting fired.
24035
24036 2006-08-17  Mike Kestner  <mkestner@novell.com> 
24037
24038         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
24039
24040 2006-08-17  Mike Kestner  <mkestner@novell.com> 
24041
24042         * ComboBox.cs : implement scroll wheel support for popped-down
24043         state. Fixes #78945. 
24044
24045 2006-08-17  Jackson Harper  <jackson@ximian.com>
24046
24047         * TreeView.cs: Specify treeview actions (old patch that didn't get
24048         committed for some reason).
24049         - Don't let the mouse wheel scroll us too far.  Just want to make
24050         the bottom node visible, not scroll it all the ways to the top.
24051
24052 2006-08-17  Jackson Harper  <jackson@ximian.com>
24053
24054         * XplatUIX11.cs: Mouse wheel events go to the focused window.
24055
24056 2006-08-17  Mike Kestner  <mkestner@novell.com> 
24057
24058         * ComboBox.cs : don't do mouseover selection in simple mode.
24059
24060 2006-08-16  Jackson Harper  <jackson@ximian.com>
24061
24062         * Form.cs: Fire the closing events for all the mdi child windows
24063         when a window is closed.  If the cancel args are set to true, the
24064         main window still gets the event fired, but it doesn't not close.
24065         * MdiWindowManager.cs: Do this closing cleanup in a Closed
24066         handler, instead of when the button is clicked, so cancelling the
24067         close works correctly.
24068         * ComboBox.cs: Send the mouse down to the scrollbar.
24069
24070 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24071
24072         * ListBox.cs: When passing 'null' to SelectedItem,
24073         set SelectedIndex to -1, to unselect items. This is the
24074         observed behaviour in .Net.
24075
24076 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
24077
24078         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
24079           MS flags saying there won't be any. (fixes #78800)
24080         * Control.cs (HandleClick): Made virtual
24081
24082 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
24083
24084         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
24085           cultures. Fixed bug #78399.
24086
24087 2006-08-16  Jackson Harper  <jackson@ximian.com>
24088
24089         * Form.cs: Use the MdiClients MdiChildren property to access
24090         MdiChildren instead of creating the array from the child controls.
24091         * MdiClient.cs: Maintain a separate array of the mdi children, so
24092         that insertion order is maintained when the Z-order is changed.
24093
24094 2006-08-16  Mike Kestner  <mkestner@novell.com> 
24095
24096         * ListView.cs : add an ItemComparer and default to it for sorting.
24097         Fixes #79076, but sorting needs a complete overhaul to be compat with
24098         MS.
24099
24100 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
24101
24102         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
24103
24104 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
24105
24106         * Hwnd.cs (Mapped): Properly traverse the tree
24107
24108 2006-08-15  Chris Toshok  <toshok@ximian.com>
24109
24110         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
24111         pass manager.Current.GetType() to ParseData.  It has to be the
24112         property type.  So, hold off doing the ParseData until we're in
24113         SetPropertyValue where we know the type.  This fixes the crash in
24114         #78821 but the textbox is still empty.
24115
24116 2006-08-15  Chris Toshok  <toshok@ximian.com>
24117
24118         * DataGrid.cs:
24119         - when we're scrolling, only call Edit() again if the
24120         current cell is still unobscured. Fixes bug #78927.
24121         - when handling mousedown on a cell, ensure the cell is visible
24122         before calling Edit.
24123         - remove the properties from DataGridRow, and remove the
24124         DataGridParentRow class altogether.
24125         
24126
24127 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
24128
24129         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
24130           fire OnTextChanged by ourselves. There's no point calling base,
24131           we don't set the base value anywhere else. Fixes #78773.
24132
24133 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24134
24135         * ListBox.cs: Call CollectionChanged when modifying
24136         an item from Items indexer, to update the actual items
24137         in the list box.
24138
24139 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24140
24141         * PrintDialog.cs: Small fixes for focus and a pair of checks,
24142         to match .Net behaviour.
24143
24144 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
24145
24146         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
24147
24148 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
24149
24150         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
24151
24152 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
24153
24154         * MessageBox.cs: Prevent potential NRE exception.
24155         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
24156
24157 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
24158
24159         * MessageBox.cs: Calculate the owner of a messagebox, also make
24160           it topmost. Fixes #78753
24161
24162 2006-08-14  Chris Toshok  <toshok@ximian.com>
24163
24164         * XplatUIX11.cs: A couple of fixes so that metacity will let us
24165         programmatically move windows.  first, set the PPosition hint as
24166         well as the USPosition hint.  Second include some code from pdb
24167         that sets the window type to NORMAL when we set the transient for
24168         hint.  This is because, in the absence of a window type, metacity
24169         thinks any window with TransientFor set is a dialog, and refuses
24170         to let us move it programmatically.  fascists.
24171
24172 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
24173
24174         * XplatUIX11.cs: When setting normal hints, take into consideration
24175           an different hints previously set so we don't delete them (fixes #78866)
24176
24177 2006-08-12  Chris Toshok  <toshok@ximian.com>
24178
24179         * ToolBarButton.cs: make Layout return a boolean, if something to
24180         do with the button's layout changed.
24181
24182         * ToolBar.cs:
24183         - add another parameter to Redraw, @force, which all existing
24184           calls set to true.
24185         - make the Layout function return a boolean which is true if the
24186           layout has actually changed.  Redraw now uses this (and @force)
24187           to determine when to invalidate.  At present the only place
24188           where @force can be false is the call from OnResize, when
24189           background_image == null.  So, resizing a toolbar when the
24190           layout doesn't change results in no drawing.
24191
24192 2006-08-12  Chris Toshok  <toshok@ximian.com>
24193
24194         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
24195         the VScrollBar and HScrollbar reversed.  oops.
24196
24197         * DataGrid.cs: fix the logic that assigns sizes to the implicit
24198         scrollbars.  we were assigning them twice (once in
24199         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
24200         therefore causing two scrollbar resizes (and redraws?) to happen
24201         per grid resize.
24202
24203 2006-08-12  Chris Toshok  <toshok@ximian.com>
24204
24205         * ToolBarButton.cs: redraw the entire button if the theme tells us
24206         to.
24207
24208         * Theme.cs: add ToolBarInvalidateEntireButton.
24209
24210         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
24211         buttons, just the border.
24212
24213         * ThemeNice.cs: redraw the entire toolbar button since we need to
24214         draw the highlight image.
24215
24216         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
24217         we need to redraw the entire button (not just the border).
24218
24219 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
24220
24221         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
24222           for vertical bars. Fixes the mismatches shown by #78513
24223
24224 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
24225
24226         * FileDialog.cs: If a saved/remembered path doesn't exist
24227           anymore, fall back to "Desktop".
24228
24229 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
24230
24231         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
24232           parent. It's apparently legal to not have one
24233         * XplatUIX11.cs:
24234           - SetZOrder: Don't try to set Z-Order on an unmapped window
24235           - CreateWindow: 0,0 are legal coordinates for a window. don't move
24236             it unless the coordinates are negative
24237
24238 2006-08-10  Mike Kestner  <mkestner@novell.com>
24239
24240         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
24241         when setting to null per msdn docs.  Fixes #78854.
24242
24243 2006-08-10  Chris Toshok  <toshok@ximian.com>
24244
24245         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
24246         flickering by setting a clip rectangle on the Graphics when we
24247         need to redraw just a particular menuitem.  Also, rename "OnClick"
24248         to "OnMouseDown" to reflect what it actually is.
24249         
24250         * Form.cs: track the OnMouseDown change.
24251
24252 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
24253
24254         * CommonDialog.cs: Properly inherit the CreateParams from the form
24255           and only change what we need. Fixes #78865
24256
24257 2006-08-10  Chris Toshok  <toshok@ximian.com>
24258
24259         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
24260         flickering in flat mode (and most of the flickering in general) by
24261         only invalidating the button border (and not the entire rectangle)
24262         when the state changes.  A couple of cases still flicker:
24263         ToggleButtons, and the dropdown arrow case when the user mouse
24264         ups.
24265
24266 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
24267
24268         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
24269           for german keyboards. Numlock state shouldn't affect the behaviour
24270           of the Del key. Fixes bug #78291.
24271
24272 2006-08-10  Chris Toshok  <toshok@ximian.com>
24273
24274         * ListControl.cs: remove the items.Clear line from BindDataItems,
24275         as this is the first thing done by both subclasses in their
24276         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
24277         passed -1, refresh the list.  This gets databinding working when
24278         the datasource is set on the list before the datasource is
24279         populated (as in wf-apps/ReportBuilder.)
24280
24281         * ComboBox.cs: remove the argument to BindDataItems.  This call
24282         should really go away, and be initiated by the ListControl code.
24283
24284         * ListBox.cs: same.
24285
24286 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
24287
24288         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
24289           if no data is in the document when the control is displayed
24290
24291 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
24292
24293         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
24294           yes (fixes #78806)
24295         * TextControl.cs: 
24296           - PositionCaret: Allow positioning of caret but don't call methods 
24297             requiring a handle if the window isn't created yet
24298           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
24299           - owner_HandleCreated: Don't position the caret, just update it's 
24300             location. User might have already set a different position
24301
24302 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
24303
24304         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
24305           windows. Screws up the returned coordinates for child windows. 
24306           Fixes #78825. I'm hoping this doesn't break something, since the
24307           code was explicitly put in 8 months ago, but no bug was attached.
24308           Menus still seem to work properly.
24309
24310 2006-08-08  Chris Toshok  <toshok@ximian.com>
24311
24312         * DataGrid.cs: make BeginInit/EndInit actually do what they're
24313         supposed to do - delay data binding until the EndInit call.  Also,
24314         make the table style collection's CollectionChangeAction.Refresh
24315         work properly.
24316
24317         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
24318         (with action = Refresh) when a consituent table's MappingName is
24319         changed.
24320
24321 2006-08-08  Chris Toshok  <toshok@ximian.com>
24322
24323         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
24324         Invalidate, since changing the text can change the size of the all
24325         toolbar buttons.
24326
24327 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
24328
24329         * Form.cs (AddOwnedForm): Still need to add the form to our listif
24330           we don't have it yet
24331
24332 2006-08-08  Chris Toshok  <toshok@ximian.com>
24333
24334         * PrintControllerWithStatusDialog.cs: don't .Close() the status
24335         dialog, as this causes X errors later on, since we actually
24336         destroy the window.  Instead, .Hide() it.
24337
24338 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
24339
24340         * ComboBox.cs: Added focus reflection for popup window
24341         * XplatUIX11.cs: 
24342           - Removed transient setting for non-app windows for now, not sure it
24343             was needed
24344           - Fixed logic checking if we have captions when deciding 
24345             override_redirect, WS_CAPTION is two bits and a 0 check was not
24346             sufficient
24347           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
24348             complicated
24349         * Form.cs: 
24350           - AddOwnedForm: Don't just add the form to the list, call the property
24351             to ensure the driver is informed about the ownership as well
24352           - CreateHandle: Set the TopMost status in the driver if we have an owner
24353         * XplatUI.cs: Fixed debug statement
24354
24355 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
24356         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
24357           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
24358           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
24359           TrackBarRenderer.cs: Make constructor private.
24360         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
24361         * ProfessionalColorTable.cs: Make properties virtual.
24362
24363 2006-08-06  Duncan Mak  <duncan@novell.com>
24364
24365         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
24366         is not changing.
24367
24368 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
24369         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
24370           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
24371           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
24372           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
24373           Initial import of new 2.0 classes.
24374
24375 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
24376         * Application.cs: Add 2.0 VisualStyles properties.
24377
24378 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
24379         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
24380           XplatUIX11.cs: Create property to allow access to existing private
24381           variable "themes_enabled"
24382
24383 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24384
24385         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
24386         file size, as otherwise our class libraries fail using windows. Fixes
24387         bug #78759.
24388
24389 2006-08-04  Jackson Harper  <jackson@ximian.com>
24390
24391         * Form.cs:
24392         * XplatUIX11.cs: Move the toolwindow window manager creation into
24393         the X11 driver, this way on win32 we can let windows create/handle
24394         the toolwindows.
24395
24396 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24397
24398         * PrintDialog.cs: Remove some redundant checks, add some others,
24399         clean some code, and move the focus to the text boxes when the
24400         values are incorrect.
24401
24402 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
24403
24404         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
24405
24406 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
24407
24408         * NumericUpDown.cs: Setting the Minimum and Maximum is now
24409           handled correctly. Fixes bug #79001.
24410
24411 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24412
24413         * PrintDialog.cs: The "Copies" numeric up down must have
24414         set the Minimum property to 1; only if the value is bigger
24415         than 1, activate "Collate" check box. This is the behaviour of .Net.
24416         Also modify the Document elements only if it is not null.
24417
24418 2006-08-03  Jackson Harper  <jackson@ximian.com>
24419
24420         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
24421         length. (We have a larger array then actual node count).
24422                 
24423 2006-08-03  Jackson Harper  <jackson@ximian.com>
24424
24425         * ComboBox.cs: Don't show selection by default.
24426         - The SelectAll isn't needed here, since the focus code should do
24427         that
24428         - DDL style lists to manual selection drawing, so when they
24429         get/lose focus they have to invalidate.
24430
24431 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
24432
24433         * TextBoxBase.cs: Don't always show all selections by default.
24434
24435 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
24436         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
24437           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
24438           Fixed various typos.
24439
24440 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
24441
24442         * Control.cs: Removing the controls in a ControlCollection with
24443           Clear now hides the controls as expected. Fixes bug #78804. 
24444
24445 2006-08-03  Jackson Harper  <jackson@ximian.com>
24446
24447         * Control.cs: Revert previous focus patch, it breaks reflector.
24448
24449 2006-08-03  Jackson Harper  <jackson@ximian.com>
24450
24451         * ComboBox.cs: Cleanup selection and focus with the combobox.
24452         This also eliminates some duplicated keyboard code, since now
24453         everything is handled by the main class.
24454         - Make list selection work on mouse up instead of down, to match
24455         MS.
24456
24457 2006-08-02  Jackson Harper  <jackson@ximian.com>
24458
24459         * Control.cs: Setting focus needs to go through the whole
24460         selection mechanism.
24461
24462 2006-08-02  Chris Toshok  <toshok@ximian.com>
24463
24464         * PrintPreviewDialog.cs: change MinimumSize to use
24465         base.MinimumSize so it works.
24466
24467 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
24468
24469         * TextControl.cs:
24470           - UpdateCaret: Added sanity check in case caret isn't defined yet
24471           - Line.Delete: Now updating selection and caret markers if we're
24472             transfering a node (Properly fixes #78323)
24473           - SetSelectionEnd: Added sanity check
24474         * TextBoxBase.cs: Removed broken attempt to fix #78323
24475
24476 2006-08-01  Chris Toshok  <toshok@ximian.com>
24477
24478         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
24479         Close() call is handled in Form, not here.
24480
24481 2006-08-01  Chris Toshok  <toshok@ximian.com>
24482
24483         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
24484         layout/rendering.
24485
24486         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
24487         for sizes < 100% zoom.  The code now aggressively attempts to keep
24488         from calling document.Print (), and tries not to use the scaling
24489         g.DrawImage whenever possible (it still does if you scale to >
24490         100%, since usually that involves huge images).
24491
24492         * PrintPreviewControl.cs: hook up the close button.
24493
24494 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
24495         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
24496           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
24497           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
24498           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
24499           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
24500           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
24501           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
24502           Removed [Serializable] for 2.0 Event Handlers.
24503
24504 2006-07-31  Jackson Harper  <jackson@ximian.com>
24505
24506         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
24507         * TextControl.cs: Uncomment out the body of this method.
24508
24509 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
24510
24511         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
24512           standard cursors.
24513
24514 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
24515
24516         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
24517           that embed TextBox and need selections visible even if textbox is not
24518           focused to enforce that behaviour.
24519         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
24520           selection drawing
24521
24522 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
24523
24524         * TextControl.cs:
24525           - Added new SetSelectionStart/SetSelectionEnd overloads
24526           - Fixed viewport width assignment to be accurate
24527           - Adjusted alignment line shift calculations to allow cursor on right
24528             aligned lines to be always visible at the right border (like MS)
24529         * TextBoxBase.cs:
24530           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
24531           - TextBoxBase_SizeChanged: recalculating canvas on size changes
24532           - CalculateScrollBars: Use ViewPort size instead of window size, to
24533             properly consider space occupied by the border and scrollbars 
24534             (Fixes #78661)
24535           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
24536             calculations; no longer leaves artifacts
24537           - CaretMoved: Adjusted window scrolling to match MS and fixed several
24538             calculation bugs (Still missing right/center align calculations)
24539
24540 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
24541
24542         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
24543           use of both scroll rect and clip rect, as they do the same.
24544
24545 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
24546
24547         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
24548           in the event handler (fixes #78912)
24549
24550 2006-07-31  Chris Toshok  <toshok@ximian.com>
24551
24552         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
24553         grid.ListManager.Count, since grid.ListManager might be null.
24554         This of course begs the question "why are we drawing rows for a
24555         grid with no list manager (and therefor no rows)?"  Fixes the
24556         crash in bug #78929.
24557
24558 2006-07-31  Chris Toshok  <toshok@ximian.com>
24559
24560         * RelatedPropertyManager.cs: Don't always chain up to the parent
24561         ctor.  instead, call SetDataSource if the parent's position is !=
24562         -1.  Fixes the crash in #78822.
24563
24564 2006-07-31  Chris Toshok  <toshok@ximian.com>
24565
24566         * DataGrid.cs (get_ListManager): use field instead of property
24567         accessors for datasource and datamember.
24568         (RowsCount): make internal again.
24569         (OnMouseDown): end edits before resizing columns/rows.
24570         (OnMouseUp): restart edits after resizing columns/rows.
24571
24572 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
24573
24574         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
24575           This fixes the situation where the last set cursor is displayed
24576           whenever the mouse is over scrollbars.
24577
24578 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24579
24580         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
24581         Document properties, as well as initial values.
24582
24583 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
24584
24585         * XplatUIWin32.cs (SetBorderStyle): Setting both border
24586           and ClientEdge results in a 3-pixel border, which is
24587           wrong.
24588
24589 2006-07-28  Jackson Harper  <jackson@ximian.com>
24590
24591         * TreeNodeCollection.cs: Fix the clear method.
24592         - Fix the Shrink also
24593
24594 2006-07-27  Jackson Harper  <jackson@ximian.com>
24595
24596         * TreeView.cs: Make sure the visible order is computed when we
24597         attempt to size the scrollbars (for trees that mess with the
24598         scrolling when they shouldn't.
24599         - Make sure to give the scrollbars valid values.
24600
24601 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
24602
24603         * XplatUIX11.cs: Move motion compression code to where it
24604           has less performance impact
24605
24606 2006-07-26  Jackson Harper  <jackson@ximian.com>
24607
24608         * UpDownBase.cs: When the control is selected make the child
24609         controls non selectable, so that a click on them won't do a
24610         focus/unfocus cycle.
24611         - Don't give focus to the text box when the spinner is selected.
24612         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
24613
24614 2006-07-26  Chris Toshok  <toshok@ximian.com>
24615
24616         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
24617         satisfied with this solution.  If the bitmaps are small, we should
24618         just cache them in the PrintPreviewDialog and draw them here.
24619         Also, the layout is broken for the 2-up and 3-up cases.
24620
24621         * Theme.cs: add PrintPReviewControlPaint.
24622
24623         * PrintPreviewDialog.cs: first pass implementation.
24624
24625         * PrintPreviewControl.cs: first pass implementation.  No
24626         scrollbars yet.
24627
24628         * PrintDialog.cs: only validate fields if that particular portion
24629         of the UI is enabled.  Also, set the document's controller to a
24630         PrintControllerWithStatusDialog wrapping the document's print
24631         controller.
24632
24633         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
24634         bring up a SaveFileDialog (i hope we don't want to match the
24635         behavior of the crappy windows file entry) and set the
24636         PrinterSettings.PrintFileName accordingly.
24637
24638 2006-07-26  Jackson Harper  <jackson@ximian.com>
24639
24640         * ContainerControl.cs: Add a field that disables auto selecting
24641         the next control in a container when the container is activated.
24642         * UpDownBase.cs: Don't select the text box when the up down is
24643         selected.
24644
24645 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
24646
24647         * XEventQueue.cs: Added methods for peeking (used for compression
24648           of successive events)
24649         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
24650           mouse move events (fixes #78732)
24651
24652 2006-07-25  Jackson Harper  <jackson@ximian.com>
24653
24654         * UpDownBase.cs: Use an internal class for the textbox so that we
24655         can control focus.  the updown control should always have focus,
24656         if either the text area or the buttons are clicked.
24657         - Send the key messages to the textbox, since it never actually
24658         has focus
24659         - Activate and decativate the textbox caret.
24660
24661 2006-07-24  Jackson Harper  <jackson@ximian.com>
24662
24663         * Control.cs: Use the directed select when selecting a control,
24664         this way the container controls override will get called and the
24665         whole ActiveControl chain will get triggered.  TODO: probably need
24666         to make sure this gets done everywhere instead of the old
24667         Select(Control).
24668         * ContainerControl.cs: Implement the directed Select method to
24669         find and activate the correct child control.    
24670         
24671 2006-07-22  Mike Kestner  <mkestner@novell.com>
24672
24673         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
24674         menu handling code so that clicks without a grab work too.
24675         [Fixes #78914]
24676
24677 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
24678
24679         * FileDialog.cs: Enable the BackButton when dirstack has one element.
24680           Added some small optimizations.
24681
24682 2006-07-21  Matt Hargett  <matt@use.net>
24683
24684         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
24685
24686 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
24687
24688         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
24689           tests pass and match MS in some strange border cases.
24690
24691 2006-07-21  Chris Toshok  <toshok@ximian.com>
24692
24693         * ThemeWin32Classic.cs: handle drawing of the relation links and
24694         parent row buttons.
24695
24696         * Theme.cs: change args to DataGridPaintParentRow.
24697
24698         * DataGrid.cs: Don't use controls for the relation links and
24699         parent buttons, so we have to handle all their interactions in
24700         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
24701         when we're navigating through child tables, so we can reinstate
24702         selection, expanded state, current cell, etc.
24703
24704 2006-07-20  Chris Toshok  <toshok@ximian.com>
24705
24706         * ToolBar.cs: When we redraw a button, for whatever reason,
24707         there's no reason to redraw the entire toolbar.  Also, don't call
24708         Control.Refresh from within Redraw, as it's much heavier than
24709         Invalidate (which is really what we want).
24710
24711 2006-07-20  Chris Toshok  <toshok@ximian.com>
24712
24713         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
24714         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
24715         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
24716         traces from within a debug IBindingList datasource
24717         (in mono/winforms/datagrid) for *days*, I've finally gotten things
24718         to work in a similar fashion.
24719
24720 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24721
24722         * ListBox.cs: Don't call Sort () when setting 
24723         the Sorted property to false (avoid an unnecessary sort).
24724
24725 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24726
24727         * ListControl.cs: DataSource should throw an ArgumentException
24728         instead of a normal exception when the argument is not of the 
24729         correct type.
24730
24731 2006-07-20  Mike Kestner  <mkestner@novell.com>
24732
24733         * Control.cs: add InternalPreProcessMessage to allow us to steal
24734         key events before MWF gets its paws on them.  Adapted from a
24735         suggestion by eno.
24736         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
24737         up/down/left/right navigation. Override the new internal control
24738         method to steal the events since they never make it to WndProc.
24739         * ToolBarButton.cs: don't worry about pushed when setting hilight
24740         since the drawing code prefers pushed to hilight. Invalidate on 
24741         Hilight changes. Fixes #78547 and #78525.
24742
24743 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
24744
24745         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
24746           the canvas size. Fixes #78868
24747
24748 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
24749
24750         * Splitter.cs: Track requested split position until first layout
24751           is performed. Fixes #78871
24752
24753 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
24754
24755         * Application.cs: Removed code that forces 1.x for the version
24756           number if the version started with 0. Not sure why that code was
24757           there and I couldn't find any bugs that indicated we needed it.
24758           Fixes #78869
24759
24760 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
24761
24762         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
24763           ResetDefaults(), just write some output to the console until it's
24764           implemented. Fixes bug #78907 for now. Eliminated two warnings.
24765
24766 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
24767
24768         * PropertyGridView.cs: set StartPosition of drop down forms
24769         so they appear in correct initial spot.  Fixes #78190.
24770
24771 2006-07-19  Mike Kestner  <mkestner@novell.com>
24772
24773         * ThemeWin32Classic.cs: use parent background color when drawing
24774         flat toolbars.  Restructure the conditionals to make sure non-flat
24775         non-Divider toolbars are filled too.  Fixes #78837.
24776
24777 2006-07-19  Mike Kestner  <mkestner@novell.com>
24778
24779         * ListBox.cs: Sort on collection changes even if the handle
24780         isn't created yet.  Fixes #78813.
24781
24782 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24783
24784         * ListControl.cs: DisplayMember should never be null,
24785         and now we assign String.Empty when null is passed to it (this
24786         is the .Net way).
24787
24788 2006-07-17  Mike Kestner  <mkestner@novell.com>
24789
24790         * ListViewItem.cs: restructure Font and subitem Font handling 
24791         to hold a specific font and refer back to owner on null.
24792         Fixes #78761.
24793
24794 2006-07-17  Mike Kestner  <mkestner@novell.com>
24795
24796         * ToolBar.cs: bandaid for side-effect of previous patch which was
24797         discarding explicit heights for non-AutoSize toolbars.  Need to
24798         extend my format tester to deal with AutoSize=false. Fixes #78864.
24799
24800 2006-07-15  Jackson Harper  <jackson@ximian.com>
24801
24802         * LabelEditTextBox.cs:
24803         * TreeView.cs: Use a new LabelEdit class for node editing, this
24804         class automatically 'closes' itself when it gets the enter key or
24805         loses focus.
24806         - Use the client rectangle when setting the trees scrollbars, so
24807         border style is taken into account.
24808         
24809 2006-07-14  Jackson Harper  <jackson@ximian.com>
24810
24811         * TreeNode.cs:
24812         * TreeView.cs: Make the editing work similar to MSs, firing the
24813         events correctly and ending edits correctly.
24814
24815 2006-07-14  Mike Kestner  <mkestner@novell.com>
24816
24817         * ToolBarButton.cs:
24818         * ToolBar.cs: layout restructuring and redraw enhancements to support
24819         formatting changes gracefully, like setting TextAlign, ImageList, 
24820         ButtonSize, and Appearance.  Handles explicit button sizing quirks
24821         of the MS controls.  Things like flat toolbars ignoring button size
24822         but becoming constant sized at the largest button's size.  Normal
24823         toolbars with an image set cannot be shrunk smaller than the image,
24824         but text can be clipped/ignored.
24825         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
24826         is zero.  Seems like DrawString should be smart enough to not put
24827         anything on screen though. Also trim labels and ellipsize at the char
24828         boundary, not word.
24829         Fixes #78711 and #78483.
24830
24831 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
24832
24833         * FolderBrowserDialog.cs: Disable "New Folder" button and
24834           "New Folder" contextmenu menuitem if a folder like "My Computer"
24835           is selected.
24836
24837 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
24838
24839         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
24840         * FolderBrowserDialog.cs:
24841           - Use MWFConfig to store and read size and position settings
24842           - Added code to create a new folder (button or context menu).
24843             Use TreeView labeledit to change the name of the new folder.
24844
24845 2006-07-14  Jackson Harper  <jackson@ximian.com>
24846
24847         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
24848         when the tree is scrolled we end editing.
24849
24850 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
24851
24852         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
24853           Down arrows
24854
24855 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
24856
24857         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
24858         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
24859         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
24860         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
24861         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
24862         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
24863         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
24864         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
24865         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
24866         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
24867         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
24868         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
24869         ListViewItemSelectionChangedEventHandler.cs,
24870         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
24871         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
24872         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
24873         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
24874         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
24875         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
24876         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
24877         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
24878         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
24879         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
24880         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
24881         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
24882         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
24883         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
24884         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
24885         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
24886         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
24887         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
24888         WebBrowserNavigatingEventHandler.cs, 
24889         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
24890
24891 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
24892
24893         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
24894         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
24895         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
24896         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
24897         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
24898         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
24899         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
24900         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
24901         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
24902         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
24903         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
24904         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
24905         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
24906         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
24907         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
24908         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
24909         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
24910         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
24911         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
24912         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
24913         ListViewItemStates.cs, MaskFormat.cs: Added
24914
24915 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
24916
24917         * PropertyGridView.cs: Fix keyboard navigation of drop down.
24918         Patch from eno for bug 78558.
24919         
24920 2006-07-13  Jackson Harper  <jackson@ximian.com>
24921
24922         * TreeView.cs: When an edit is finished make sure that the
24923         selected node is visible.
24924         - When setting the top/bottom use the scrollbars is_visible, so
24925         everything will be set correctly even if the tree isn't visible
24926         yet.
24927
24928 2006-07-13  Jackson Harper  <jackson@ximian.com>
24929
24930         * ComboBox.cs: Revert the item->index part of my previous patch.
24931         * TreeView.cs: Use LostFocus instead of Leave for detecting when
24932         the edit box has lost focus (duh).
24933         - Just make the edit box not visible when we get return, that will
24934         take the focus, which will call EndEdit
24935         * TreeNode.cs When we start editing, notify the treeview.
24936
24937 2006-07-12  Jackson Harper  <jackson@ximian.com>
24938
24939         * ComboBox.cs: Clear out old items before setting the item list.
24940         This prevents databound controls from having their items added
24941         twice.
24942         - Switch the combobox to use indices whereever possible instead of
24943         using Item's.  This allows usto navigate through lists that have
24944         more then one item with the same string value (ie a, b, b, a).
24945         - Scroll the listboxes scrollbar when a non visible item is
24946         highlighted
24947         - Allow keypress to cycle through all the possible values. For
24948         example if you have b1, b2, b3 and hold down the B key all the
24949         values will be cycled through.
24950         
24951 2006-07-12  Jackson Harper  <jackson@ximian.com>
24952
24953         * TextBoxBase.cs:
24954         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
24955         this using the internal methods.
24956         * Control.cs: Add OnGotFocusInternal.  A new method that allows
24957         controls to "override" OnGotFocus and change focus behavior if
24958         needed.
24959         - Same thing for LostFocus
24960         * ComboBox.cs: Pass off focus to the text control properly.
24961
24962 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
24963
24964         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
24965         * FolderBrowserDialog.cs: Almost a complete rewrite.
24966           - Better support for Environment.Specialfolders
24967           - Added support for MWFVFS
24968           - Made setting SelectedPath work
24969
24970 2006-07-12  Jackson Harper  <jackson@ximian.com>
24971
24972         * Control.cs: Optimze getting all the controls.
24973
24974 2006-07-11  Jackson Harper  <jackson@ximian.com>
24975
24976         * ContainerControl.cs: Override SETFOCUS in the container control,
24977         so that it is not selected on mouse click.
24978
24979 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
24980
24981         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
24982           Hopefully we will have a better way once all of focus is complete.
24983
24984 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
24985
24986         * ThemeWin32Classic.cs: Commented out some debug code and fixed
24987           a compile error with csc.
24988
24989 2006-07-11  Jackson Harper  <jackson@ximian.com>
24990
24991         * Control.cs: When hiding a control only select the next control
24992         if the current control was focused.
24993         - Don't handle enter/leave when setting/killing focus, this is
24994         done by the container control.
24995         - Remove is_selected, it's not needed anymore.
24996         - Add utility methods for selecting a child control, and for
24997         firing the Enter/Leave events.
24998         * ContainerControl.cs: When a control is activated fire the
24999         enter/leave events.
25000         - Don't wrap when processing the tab key, so that focus can be
25001         moved outside of the container.
25002         - Use the correct active control
25003
25004 2006-07-11  Jackson Harper  <jackson@ximian.com>
25005
25006         * ComboBox.cs: Remove some debug code that was blinding me.
25007         * UpDownBase.cs: These controls actually aren't implicit, they are
25008         visible to the user.
25009
25010 2006-07-10  Chris Toshok  <toshok@ximian.com>
25011
25012         * DataGrid.cs: move back to the is_adding boolean field.  god i
25013         hate this is_editing/is_adding/is_changing stuff.
25014
25015 2006-07-10  Chris Toshok  <toshok@ximian.com>
25016
25017         * DataGridTableStyle.cs: just check if the property type is bool.
25018         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
25019         Don't use CanRenderType.
25020
25021         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
25022         if our text == NullText.  Remove CanRenderType.
25023
25024         * DataGridBoolColumn.cs: nuke CanRenderType.
25025
25026         * DataGrid.cs: reenable some code to end the current edit inside
25027         of set_CurrentCell.  This fixes the other 1.1.16 regression.
25028         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
25029         Also, remove the visible_row_count arg from CalcRowHeaders, since
25030         we don't need to worry about the actual height of the area.
25031
25032 2006-07-10  Chris Toshok  <toshok@ximian.com>
25033
25034         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
25035         mode, just return.
25036
25037         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
25038         the real sense of the IsInEditOrNavigateMode property (true =
25039         navigate, false = edit).  Also, update OnKeyPress to reflect this.
25040
25041         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
25042         column style exists, we still need to set its property descriptor
25043         to match up with our list manager.
25044
25045 2006-07-10  Chris Toshok  <toshok@ximian.com>
25046
25047         * ThemeWin32Classic.cs: implement the new row/header painting
25048         approach.  The parent row painting will likely go away and
25049         replaced with label controls, but the rest seems to work ok (and
25050         efficiently).
25051
25052         * Theme.cs: change the way we draw datagrid rows.  we don't draw
25053         the row headers as a block now.  Instead we draw them in the
25054         normal draw-row loop.  Add some calls for drawing parent rows and
25055         relation rows.
25056
25057         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
25058         a default table style.  Set the defaults from ThemeEngine.Current,
25059         not SystemColors.  Fix lots of misc issues with property setters.
25060
25061         * DataGrid.cs: move loads of style information out of this class
25062         as it's being duplicated with DataGridTableStyle.  keep track of a
25063         special DataGridTableStyle for the properties we used to mirror
25064         here.  Switch all the style properties to access this table style
25065         instead of instance fields of this class.  Also add a internal
25066         class to represent parent rows (more needs to be stored here, like
25067         the selection state from the parent table, as well as the
25068         expansion state.)  Also, for datasources with relations, do the
25069         right thing for collapse/expand, and add support for the
25070         navigation/parent row buttons.
25071
25072         Lastly, fix the crash in the 1.1.16 build.
25073
25074         * GridTableStylesCollection.cs: make the explicit interface
25075         implementations call the class's methods as opposed to duplicating
25076         them.
25077
25078         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
25079         0 so the text doesn't jump around when we move the cursor.
25080
25081 2006-07-10  Jackson Harper  <jackson@ximian.com>
25082
25083         * TextBoxBase.cs:
25084         * ListBox.cs: Match MS's ToString (this makes debugging focus
25085         stuff infinitely easier).
25086
25087 2006-07-10  Jackson Harper  <jackson@ximian.com>
25088
25089         * Control.cs (SelectNextControl): When checking the control's
25090         parent use this instead of ctrl.parent so that null can be passed
25091         to SelectNextControl. (I have unit tests for this).
25092         - Remove unused var.
25093
25094 2006-07-10  Chris Toshok  <toshok@ximian.com>
25095
25096         * CurrencyManager.cs: correct one regression, the removal of the
25097         finalType field.  Also, add a MonoTODO on CanAddRows, implement
25098         Refresh() correctly, and fix some event emission in
25099         ListChangedHandler.
25100
25101 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
25102
25103         * FileDialog.cs: Don't use brackets for new folders if they exist
25104           under *nix. Instead use -(number of existing folders +1).
25105
25106 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
25107
25108         * FileDialog.cs:
25109           - Fixed really nasty bug #78771
25110           - Don't block the whole GUI when reading directories with a lot of
25111             entries. Use an other thread instead and call BeginInvoke to
25112             update the ListView in MWFFileView
25113
25114 2006-07-07  Chris Toshok  <toshok@ximian.com>
25115
25116         * Control.cs (Dispose): release any Capture when disposing.
25117
25118 2006-07-07  Chris Toshok  <toshok@ximian.com>
25119
25120         * LinkLabel.cs (Select): if we chain up to the parent, set
25121         focused_index to -1 so we'll search for the first available link
25122         the next time the user tabs into us.  Also, if the direction is
25123         backward and focused_index == -1, start the search from the last
25124         element.
25125
25126 2006-07-07  Chris Toshok  <toshok@ximian.com>
25127
25128         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
25129         is beyond the end of the text, don't do anything.
25130         (CreateLinkPieces): set our ControlStyles.Selectable based on
25131         whether or not we have any links.
25132         (Link.Invalidate): use a loop instead of foreach.
25133         (Link.set_Start): null out owner.sorted_links so it'll be
25134         recreated by CreateLinkPieces.
25135
25136 2006-07-06  Chris Toshok  <toshok@ximian.com>
25137
25138         * LinkLabel.cs: revert the SetStyle change.
25139
25140 2006-07-06  Chris Toshok  <toshok@ximian.com>
25141
25142         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
25143         (OnEnableChanged): s/Refresh/Invalidate
25144         (OnGotFocus): if we have a focused index already, refocus it (so
25145         if we mouse out/in to the window it'll focus the right link).
25146         (OnKeyDown): move the tab handling out of here.
25147         (OnLostFocus): don't set focused_index to -1, so we can refocus it
25148         when we lose focus.
25149         (OnMouseDown): don't Capture here - Control handles it.  Also,
25150         focus the active link.
25151         (OnMouseUp): don't deal with Capture.
25152         (OnPaintBackgroundInternal): remove.
25153         (OnTextAlignChanged): CreateLinkPieces before calling the
25154         superclass's method.
25155         (OnTextChanged): call CreateLinkPieces before calling superclass's
25156         method.
25157         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
25158         move around.
25159         (Select): implement this, moving the selection between different
25160         links, and call parent.SelectNextControl if we don't have another
25161         link to focus in the given direction.
25162         (CreateLinkPieces): call Invalidate instead of Refresh.
25163         
25164 2006-07-06  Chris Toshok  <toshok@ximian.com>
25165
25166         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
25167         new LinkLabel internals.
25168
25169         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
25170         over pieces looking for active/focused/etc links.  also, deal with
25171         runs of text (and links) with embedded \n's in them, and use
25172         MeasureCharacterRanges instead of MeasureString to figure out the
25173         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
25174         two-step.
25175
25176 2006-07-04  Jackson Harper  <jackson@ximian.com>
25177
25178         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
25179         XKB or key auto repeat, do it manually.  Without key auto repeat,
25180         when a key is held down we get key press, key release, key press,
25181         key release, ... with auto repeat we get key press, key press, key
25182         press ..., and then a release when the key is actually released.
25183
25184 2006-07-03  Jackson Harper  <jackson@ximian.com>
25185
25186         * TabControl.cs:
25187         * ThemeWin32Classic.cs: Tabs do not obey normal background color
25188         rules, they are always control color regardless of the background
25189         color.
25190
25191 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
25192
25193         * FileDialog.cs: Added internal class MWFConfig.
25194           Removed Registry support and replaced it with support for the new
25195           MWFConfig class. See MWFConfig comments for more information.
25196
25197 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
25198
25199         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
25200           rectangle. Added some patches from eno from bug #78490 and fixed
25201           the arrow position for small up and down CPDrawScrollButtons.
25202
25203 2006-06-30  Jackson Harper  <jackson@ximian.com>
25204
25205         * InternalWindowManager.cs: Remove some debug code.
25206         * Form.cs: When an MdiParent is set to null, the window is
25207         "detatched" and becomes a normal window.
25208         * MdiClient.cs: Don't bring the new child form to the front until
25209         it is activated (setting it as active does this), this makes the
25210         previously active forms titlebar get redrawn as inactive.
25211
25212 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
25213
25214         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
25215           with later controls
25216
25217 2006-06-29  Mike Kestner  <mkestner@novell.com>
25218
25219         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
25220         arrow in keynav state.  Fixes #78682.
25221
25222 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
25223
25224         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
25225           order (fixes #78393)
25226
25227 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
25228
25229         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
25230           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
25231           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
25232           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
25233           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
25234           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
25235           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
25236           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
25237           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
25238           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
25239           enumerations (FlagsAttribute, SerializableAttribute, added/removed
25240           values)
25241
25242 2006-06-28  Mike Kestner  <mkestner@novell.com>
25243
25244         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
25245
25246 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
25247
25248         * PropertyGrid.cs,
25249           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
25250           item lines from other area (It also makes BackColor consistent and
25251           compatible with .NET). Fixed bug #78564.
25252
25253 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
25254
25255         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
25256         Patch from Eno for #78555.
25257
25258 2006-06-27  Chris Toshok  <toshok@ximian.com>
25259
25260         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
25261
25262         * DataGridColumnStyle.cs: same.
25263
25264         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
25265         
25266         * DataGridDrawingLogic.cs: nuke.
25267
25268 2006-06-27  Chris Toshok  <toshok@ximian.com>
25269
25270         * DataGridTableStyle.cs: clean up the constructors, and build the
25271         list of child relations for this table.  I have no idea if this is
25272         where we should be doing it (it probably isn't), but since we're
25273         already iterating over the properties..
25274
25275         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
25276         struct and array for keeping track of row information, similar to
25277         what's shown in a hack on
25278         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
25279
25280         * Theme.cs: be consistent about the naming of DataGrid methods,
25281         prefering ColumnWidths and RowHeights over columnsWidths and
25282         RowsHeights.
25283
25284         * ThemeWin32Classic.cs: same, and also add support for variable
25285         sized rows (and the +/- expansion icons for related rows).
25286
25287 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
25288
25289         * TextBoxBase.cs: Applied Eno's patch from #78660
25290
25291 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
25292
25293         * Form.cs (ScaleCore): We don't want to scale our form if it's
25294           state is minimized or maximized, but we still need to scale our
25295           child windows. Also, added try/finally block to ensure layout
25296           gets reset (Fixes #78697)
25297
25298 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
25299
25300         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
25301
25302 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
25303
25304         * Form.cs: Fixed c+p error and added check to resize form if minimum
25305           size is bigger than current size (Fixes #78709)
25306
25307 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
25308
25309         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
25310
25311 2006-06-26  Mike Kestner  <mkestner@novell.com>
25312
25313         * ComboBox.cs: only do Keypress handling in the combo when there  
25314         are items in the collection. Fixes #78710.
25315
25316 2006-06-26  Chris Toshok  <toshok@ximian.com>
25317
25318         * Binding.cs: make this work bi-directionally.  also, clear up
25319         other mixups between Push/Pull Data (e.g. we're supposed to pull
25320         data when validating).
25321
25322         * BindingManagerBase.cs: trim some fully qualified collection
25323         types.
25324
25325         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
25326
25327 2006-06-23  Chris Toshok  <toshok@ximian.com>
25328
25329         * PropertyManager.cs: It appears (according to the unit tests)
25330         that PropertyManager doesn't use
25331         PropertyDescriptor.AddValueChanged to track propery value changes
25332         in its datasource, but uses the same scheme as Binding, where it
25333         looks for a <Property>Changed event and binds to it.
25334
25335         Also, according to the docs, IsSuspended always returns false for
25336         a property manager with a non-null datasource.
25337
25338 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
25339
25340         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
25341           need to update the actual DialogResult. (Fixes #78613)
25342
25343 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
25344
25345         * Form.cs (ShowDialog): Release any captures before running the
25346           new message pump (fixes #78680)
25347
25348 2006-06-22  Mike Kestner  <mkestner@novell.com>
25349
25350         * ListView.cs: Layout column widths properly in details mode even 
25351         if HeaderStyle.None is set.  Fixes #78691.
25352
25353 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
25354
25355         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
25356
25357 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
25358
25359         * Control.cs (ContainsFocus): Using new driver method to get focused
25360           window, instead of trying to use internal tracking var, which can
25361           recursion issues (Fixes #78685)
25362         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
25363           XplatUIWin32.cs: Added GetFocus method to return focused window
25364
25365 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25366
25367         * ColorDialog.cs: when the mouse button is pressed inside the color
25368         matrix, don't let the cursor move out of it until the button is
25369         released, which is the behavior on windows. Changed 'colours' by
25370         'colors' to use the same word consistently.
25371
25372 2006-06-21  Chris Toshok  <toshok@ximian.com>
25373
25374         * DataGrid.cs: add in some basic navigation stuff (navigating to a
25375         child relation and back, using a stack).  Also, remove
25376         GetDataSource and the code that calls it - it's not needed.  Also,
25377         track CurrencyManager.ListName's removal.
25378
25379 2006-06-21  Chris Toshok  <toshok@ximian.com>
25380
25381         * CurrencyManager.cs: push some of the original type checking from
25382         BindingContext.CreateBindingManager to here, and remove some of
25383         the finalType stuff.  Need more tests to make sure I've got the
25384         ListName part right, and we might need more in SetDataSource.
25385
25386         * PropertyManager.cs: add a ctor that takes just the datasource,
25387         and no property name.  Make SetDataSource work with a null
25388         property_name, and make Current return the data_source if the
25389         property descriptor is null.  this makes 'string foo = "hi";
25390         BindingContext[foo].Current' return "hi" as it should.
25391
25392         * RelatedCurrencyManager.cs: make this code more generic - there's
25393         no reason the parent manager has to be CurrencyManager, and
25394         there's no reason to pass the DataRelation.  It suffices to use a
25395         BindingManagerBase and PropetyDescriptor.
25396
25397         * RelatedPropertyManager.cs: make a similar change here.
25398         
25399         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
25400         flower I knew it could be.
25401
25402 2006-06-20  Chris Toshok  <toshok@ximian.com>
25403
25404         * PropertyManager.cs: the PropertyChangedHandler is invoked when
25405         data in the source has changed and we need to update the control,
25406         so s/PullData/PushData.
25407
25408         * CurrencyManager.cs: Refresh is meant to update the control from
25409         data in the datasource.  So, s/PullData/PushData.
25410
25411         * BindingContext.cs: add more ugliness (we weren't handling the
25412         case where data_source = DataTable and data_member = column_name).
25413
25414         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
25415         from the perspective of the datasource.  PullData pulls from the
25416         control, PushData pushes to the control.
25417
25418 2006-06-20  Chris Toshok  <toshok@ximian.com>
25419
25420         * BindingContext.cs: rewrite the CreateBindingManager code to
25421         handle navigation paths more or less properly.  This could
25422         definitely stand some more work, in particular to push the
25423         recursion up to the toplevel.  But that relies on fixes in other
25424         places (System.Data comes to mind).
25425
25426         Also, move to a flat hashtable (and encode the twolevel nature of
25427         the dictionary into the hash key).  This lets us implement the
25428         IEnumerable.GetEnumerator method.
25429
25430         * RelatedCurrencyManager.cs: new class.  Update our view based on
25431         our relation and our parent CurrencyManager's position.
25432
25433         * CurrencyManager.cs: split out some logic from the ctor into
25434         SetView, so it can be called from the new RelatedCurrencyManager
25435         subclass.
25436
25437         * RelatedPropertyManager.cs: new class.  Update our datasource
25438         based on the position of our parent CurrencyManager.
25439
25440         * PropertyManager.cs: split out some logic from the ctor into
25441         SetDataSource, so it can be called from the new RelatedDataSource
25442         subclass.  Also, make the Current getter return the value
25443         of the PropertyDescriptor, not the data_source.
25444
25445         * Binding.cs: no need to duplicate the string splitting code here.
25446
25447 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
25448
25449         * Control.cs:
25450           - set_Enabled: OnEnabledChanged is not called if the inherited state 
25451             of the control is not altered, even though  we might be changing the
25452             internal state of the control (#78458)
25453           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
25454             OnEnabledChanged, to allow easy altering of any child window state
25455           - OnEnabledChanged: Added code to enable/disable driver window state
25456           - OnParentEnabledChanged: Instead of firing the event, call 
25457             OnEnabledChanged, which will fire the event and also a) set driver
25458             window state and pass the enabled state to any grandchildren (#78458)
25459
25460 2006-06-19  Jackson Harper  <jackson@ximian.com>
25461
25462         * InternalWindowManager.cs: We don't set the cursor explicitly
25463         thats done via the response to NCHITTESTs.
25464         - Don't need to adjust for titlebar heights anymore, the
25465         coordinates are coming in the correct coordinates now (see peters
25466         last patch).
25467
25468
25469 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
25470
25471         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
25472           being translated relative to whole window, instead of client window.
25473           That caused broken offsets on mouseclick (and caused gas for our
25474           InternalWindowManager)
25475
25476 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
25477
25478         * TextControl.cs:
25479           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
25480           - Undo(): Added replay of cursor move on DeleteChars action; added
25481             calling Undo() again if a recorded cursor move is invalid (to
25482             ensure that some action is performed on Undo)
25483         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
25484
25485 2006-06-16  Jackson Harper  <jackson@ximian.com>
25486
25487         * MdiClient.cs: Instead of just sizing maximized windows when
25488         there is a resize we also have to adjust the Y of minimized
25489         windows, so they stay pinned to the bottom of the mdi container.
25490         - Eliminate separate tracking of the active control, we can just
25491         get this from the controls collection.
25492         - Paint the decorations for the newly activated titlebar so we get
25493         a pretty blue bar.
25494         * InternalWindowManager.cs:
25495         * ThemeWin32Classic.cs: Minimized windows get all three buttons
25496         even if they are a tool window.
25497         
25498 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
25499
25500         * TextControl.cs (Undo): Handle non-existent cursor locations in the
25501           undo buffer, these can happen when text was deleted and the cursor
25502           was recorded first. Since we will also have a recorded cursor
25503           after the delete this is not an issue. (Fixes #78651)
25504
25505 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
25506
25507         * AccessibleObject.cs: Remove dependence on Control.is_selected;
25508           instead properly track control states internally (allows us to
25509           remove is_selected from Control)
25510
25511 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25512
25513         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
25514         whose width is not a multiple of 8.
25515
25516 2006-06-13  Jackson Harper  <jackson@ximian.com>
25517
25518         * MdiClient.cs:  Only maximize the next child if the current one
25519         is maximized.
25520
25521 2006-06-13  Chris Toshok  <toshok@ximian.com>
25522
25523         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
25524         modified.  Also, guard against grid or grid_drawing being null in
25525         Invalidate.
25526
25527         * DataGrid.cs: Reformat tons of getters/setters.  In the
25528         DataMember setter, just call SetNewDataSource instead of
25529         duplicating some of its functionality.  In SetNewDataSource, don't
25530         check ListManager for null, since the property getter creates the
25531         object if needed.
25532
25533         * DataGridTableStyle.cs: don't set TableStyle or call
25534         SetDataGridInternal on the column here, it's done in
25535         GridColumnStylesCollection.Add.
25536
25537         * GridColumnStylesCollection.cs: fix all the explicit interface
25538         implementations to just call our methods.  Nuke AddInternal() and
25539         move the body of it to Add().  Also, add a call to
25540         column.SetDataGridInternal to Add().
25541
25542         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
25543         base()+duplicate code.  Also, use the Format property instead of
25544         format to generate an Invalidate ala MS.  Lastly, create the
25545         textbox here, unconditionally.
25546         (set_Format): call Invalidate.
25547         (get_TextBox): no need to call EnsureTextBox.
25548         (Commit): remove the message box.
25549         (Edit) remove the call to EnsureTextBox.
25550         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
25551         (EnterNullValue): no need to check textbox for null.
25552         (HideEditBox): no need to check textbox for null.
25553         (SetDataGridInColumn): add the textbox to the grid's controls.
25554         (EnsureTextBox): nuke.
25555         
25556 2006-06-13  Jackson Harper  <jackson@ximian.com>
25557
25558         * MdiWindowManager.cs: Hook up to the maximized menus paint event
25559         and redraw the buttons when needed. Unhook when the window is
25560         unmaximized.
25561         * MainMenu.cs: Add an internal Paint event, the mdi window manager
25562         needs this so that it can redraw its buttons when the menu is
25563         repainted.
25564         * InternalWindowManager.cs:
25565         * Form.cs: The method order has changed for DrawMaximizedButtons,
25566         so that it can be a PaintEventHandler.
25567         
25568 2006-06-13  Jackson Harper  <jackson@ximian.com>
25569
25570         * MdiClient.cs: When we close a maximized mdi window, the next mdi
25571         window is activated and maximized, even if it wasn't before.
25572         - When  a new window is activated repaint the decorations of the
25573         old one, so that it no longer has the Active "look" (the blue
25574         titlebar).
25575         * InternalWindowManager.cs: Open up CreateButtons to base classes
25576         so they can recreate the buttons on state changes.
25577         - If a window is maximized give it all three buttons
25578         * MdiWindowManager.cs: Create the titlebar buttons when the state
25579         is changed, this is needed because a toolwindow will not have all
25580         three buttons until it is maximized.
25581
25582 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
25583
25584         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
25585           Fixed bug #78609.
25586
25587 2006-06-12  Jackson Harper  <jackson@ximian.com>
25588
25589         * KeysConverter.cs: Make sure we handle the Ctrl special case
25590         if its the only key.
25591         
25592 2006-06-12  Jackson Harper  <jackson@ximian.com>
25593
25594         * Theme.cs: Add a method to get the size of a managed window
25595         toolbar button.
25596         * InternalWindowManager.cs: Remove the ButtonSize property, this
25597         should be retrieved from the theme.
25598         * MdiWindowManager.cs: Get the button size from the theme
25599         * ThemeWin32Classic.cs: Make the method to get the managed window
25600         titlebar button size public.
25601         - Handle the different button sizes of maximized toolwindows
25602         (should match any maximized window).
25603         - Get the titlebar height from the theme, not the WM (which gets
25604         it from the theme).
25605
25606 2006-06-12  Jackson Harper  <jackson@ximian.com>
25607
25608         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
25609         event down to the mdi window manager.
25610         - Expose some extra stuff to base classes
25611         - Make sure to end the Capture on an NC Mouse up, so that we can
25612         get double clicks properly, and the sizing doens't stick.
25613         - When doing PointToClient contain it in the workable desktop
25614         area, this prevents windows from changing size when the cursor is
25615         pulled outside of the working area while sizing.
25616         * MdiWindowManager.cs: When we get a double click maximize the
25617         window.
25618         - Reset the cursor after handling mode changes.
25619
25620 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
25621
25622         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
25623           current desktop, instead of just assuming a 0, 0 origin. This
25624           is needed for our internal window manager, to know the top
25625           margin of the desktop
25626
25627 2006-06-12  Chris Toshok  <toshok@ximian.com>
25628
25629         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
25630         we need this to get rid of the selected background in the bool
25631         column.
25632         (CancelEditing): move the ConcedeFocus call to above the Abort
25633         call.  Also, set is_changing to false and invalidate the row
25634         header if we were changing before.
25635         (ProcessKeyPreviewInternal): remove, since noone outside this
25636         class calls it anymore.  Roll the code into ProcessKeyPreview.
25637         (EndEdit): remove the internal version.
25638         (InvalidateCurrentRowHeader): make private.
25639
25640         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
25641         Keys.Escape handling (and with it the last call to
25642         DataGrid.EndEdit from outside the class.)
25643
25644
25645 2006-06-12  Chris Toshok  <toshok@ximian.com>
25646
25647         * DataGridTextBox.cs (.ctor): isedit defaults to false.
25648         (OnKeyPress): set isedit to true.
25649         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
25650         already handled by the grid.
25651
25652         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
25653         right.  ugh.
25654         (set_DataSource): SetDataSource always returns true, so stop
25655         putting it in an if statement.
25656         (EndEdit): get rid of some {}'s
25657         (ProcessGridKey): return true in case Keys.Escape.
25658         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
25659         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
25660         PositionChanged, stopped connecting to CurrentChanged.
25661         (GetDataSource): simplify this a bunch.
25662         (SetDataSource): change return type from bool to void.
25663         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
25664         to this, and make sure we don't set ListManager.Position inside
25665         set_CurrentCell.
25666         (OnListManagerItemChanged): if we're passed an actual index,
25667         redraw that row.
25668
25669         * CurrencyManager.cs (set_Position): don't call PullData here.
25670
25671 2006-06-09  Jackson Harper  <jackson@ximian.com>
25672
25673         * TreeNode.cs:  Recalculate the visible order before doing the
25674         Expand/Collapse Below calls, because those calls generate an
25675         expose.
25676         - Reduce calls to the TreeView property, which is mildly expensive
25677         by using a local var.
25678         * Form.cs: Layout the MDI child windows when creating the parent
25679         form.
25680         - Don't use the internal constructor anymore
25681         * MdiClient.cs: use the parent form width/height (if available)
25682         when laying out the child windows, we do this because the
25683         mdiclient isn't docked yet when the initial layout is done.
25684         - Don't need an internal constructor anymore.
25685
25686 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25687
25688         * FileDialog.cs: handle access errors when trying to create a folder
25689         or changing to a directory. No need to initialize out parameters.
25690
25691 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25692
25693         * FileDialog.cs: Append a number when creating a new folder if the
25694           folder already exists (use parenthesis instead of square brackets)
25695
25696 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25697
25698         * FileDialog.cs:
25699           - Disabled registry support for windows and added better registry
25700             error checking for other systems (need to investigate why it
25701             works perfectly on my system)
25702           - If a folder already exist show an error MessageBox instead of
25703             trying to create an indexed name.
25704           - Fixed a non intentional typo.
25705
25706 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25707
25708         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
25709
25710 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25711
25712         * FileDialog.cs: When creating a new folder don't crash if the
25713           folder already exists.
25714
25715 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25716
25717         * FileDialog.cs: Allmost a complete rewrite.
25718           - added a "virtual" file system that handles the differences
25719             between unix and windows file systems (especially the directory
25720             structure). Moved most of the directory and file handling code
25721             into the vfs.
25722             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
25723             UnixFileSystem and FSEntry.
25724           - Recently used folder/directory, size, location and used file names
25725             (file name ComboBox) are now stored in the registry and get read
25726             before the dialog shows up (fixes part 6 of bug #78446).
25727           - Creation of new folders/directories is now possible (context menu
25728             or ToolBar). Added TextEntryDialog for this that fills in the gap
25729             until ListView.LabelEdit works.
25730           - Fixed cursor handling (bug #78527) and focus handling for
25731             PopupButtonPanel
25732           - Various "Search in" ComboBox enhancements. The content of the
25733             dropdown listbox now almost matches ms.
25734           - Changed the behaviour when the user switches to SpecialFolder
25735             Recent to show the ListView in View.Details.
25736           - Beside using the ToolBar to change the View property of the
25737             file ListView it is now possible to use the context menu too.
25738
25739 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25740
25741         * ComboBox.cs: Don't create a new ObjectCollection when an item
25742           gets inserted. Just insert the item in the existing object_items
25743           ArrayList.
25744
25745 2006-06-08  Jackson Harper  <jackson@ximian.com>
25746
25747         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
25748         that the treeview and root node checks are done also, this fixes a
25749         regression i caused in the unit tests.
25750
25751 2006-06-07  Wade Berrier <wberrier@novell.com> 
25752
25753         * RichTextBox.cs: More ISO8859-1 -> unicode
25754
25755 2006-06-07  Mike Kestner  <mkestner@novell.com>
25756
25757         * ComboBox.cs : use items to hold highlight/selection so that
25758         collection insertions don't require synchronization.
25759
25760 2006-06-07  Jackson Harper  <jackson@ximian.com>
25761
25762         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
25763         routine.  We now always keep the sized edge at the cursor instead
25764         of computing movement and adjusting rects.  There is one buglet
25765         with this method though when the cursor is moved over area that
25766         the window can not expand too (such as the toolbars on the desktop).
25767
25768 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25769
25770         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
25771         here. Fixes crash on startup in AlbumSurfer.
25772
25773 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
25774
25775         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
25776           values
25777
25778 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25779
25780         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
25781         statement to avoid calling XNextEvent which will block if another thread
25782         took the event that we were expecting. Fixes bug #78605.
25783
25784 2006-06-07  Mike Kestner  <mkestner@novell.com>
25785
25786         * ListView.cs : isolated checkbox clicking from the selection logic.
25787         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
25788
25789 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
25790
25791         * Form.cs: Check that the value passed to Form.DialogResult
25792         is a valid enum value.
25793
25794 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25795
25796         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
25797         Computer'. Clicking it in the network view goes to 'My Computer'.
25798         Added CIFS filesystem type. Display the mount point of filesystems.
25799         Avoid duplicate mount points (happens for me with CIFS);
25800
25801 2006-06-06  Jackson Harper  <jackson@ximian.com>
25802
25803         * InternalWindowManager.cs: Draw the maximized windows buttons
25804         when resizing.
25805
25806 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25807
25808         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
25809         all other dialogs. Fixes bug #78585.
25810
25811 2006-06-06  Mike Kestner  <mkestner@novell.com>
25812
25813         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
25814         Only invalidate checkbox on checkstate changes to avoid flicker.
25815         * ListBox.cs : avoid unselect/select when clicking selected item.
25816         avoid reselection flicker for already multiselected items.
25817         Fixes #78382.
25818
25819 2006-06-06  Jackson Harper  <jackson@ximian.com>
25820
25821         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
25822         the parent form so that the menu is removed if needed.
25823
25824 2006-06-06  Mike Kestner  <mkestner@novell.com>
25825
25826         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
25827         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
25828
25829 2006-06-06  Mike Kestner  <mkestner@novell.com>
25830
25831         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
25832
25833
25834 2006-06-06  Jackson Harper  <jackson@ximian.com>
25835
25836         * Control.cs: Use the property (instead of the field) to get the
25837         default cursor so it is instantiated correctly.
25838         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
25839         resizes so we need to manually repaint the window decorations here.
25840         - Set the titlebar button locations as soon as they are created,
25841         otherwise they are not set correctly on win32.
25842         
25843 2006-06-06  Chris Toshok  <toshok@ximian.com>
25844
25845         * CurrencyManager.cs (set_Position): call PullData before
25846         OnCurrentChanged.
25847         (AddNew): after calling IBindingList.AddNew, update our
25848         listposition, and call OnCurrentChanged/OnPositionChanged (without
25849         calling PullData).
25850         (OnCurrentChanged): remove the call to PullData from here.
25851         (OnItemChanged): remove the call to PushData from here.
25852         (OnPositionChanged): change the test from == null to != null to
25853         match the other methods.
25854         (ListChangedHandler): the grossest part of the patch.  Implement
25855         this such that it passes the unit tests in CurrencyManagerTest and
25856         the output more or less matches that of MS's implementation.
25857  
25858 2006-06-06  Mike Kestner  <mkestner@novell.com>
25859
25860         * ListView.cs : only update check state on single click.
25861         * ThemeWin32Classic.cs : fix focus drawing for details view without
25862         fullrowselect.  Fixes #78454.
25863         * XplatUIX11.cs : fix for double click emission.
25864
25865 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
25866
25867         * PropertyGridView.cs : Applied Atsushi's patch to fix
25868         font dialog bug  (#78197).
25869
25870 2006-06-05  Jackson Harper  <jackson@ximian.com>
25871
25872         * TreeNode.cs: Compute the next node for expanding/collapsing
25873         correctly. We now factor in nodes without a NextNode
25874         correctly. (Fixes somes cases in nunit-gui).
25875         * InternalWindowManager.cs: Set the bounds when updating the
25876         virtual position of a tool window.
25877         
25878 2006-06-05  Chris Toshok  <toshok@ximian.com>
25879
25880         * DataGrid.cs: rename cached_currencymgr to list_manager.
25881         (set_CurrentCell): move SetCurrentCell code here, and clean it up
25882         some.
25883         (CurrentRow, CurrentColumn): single accessors so we can make the
25884         cursor movement code a lot easier to understand.
25885         (CurrentRowIndex): implement this in terms of CurrentRow.
25886         (BeginEdit): clean this up a bit.
25887         (CancelEditing): sort out the is_editing/is_changing/is_adding
25888         stuff a little.
25889         (EndEdit): minor changes.
25890         (OnKeyDown): add a comment about a (most likely) unnecessary
25891         check.
25892         (OnMouseDown): cancel editing when we click on a row header.  And
25893         use the CurrentRow setter, not CurrentCell.
25894         (ProcessDialogKey): directly call ProcessGridKey.
25895         (UpdateSelectionAfterCursorMove): factor out this common block of
25896         code (it's used everywhere that we move the cursor by updating row
25897         or column).
25898         (ProcessGridKey): pretty substantial overhaul.  Use the
25899         CurrentRow/CurrentColumn properties to make the code a lot more
25900         readable.  Only use the CurrentCell property when we have to
25901         modify both row and column at once.  Tab behavior is still broken,
25902         and Delete is untested.
25903         (Select): if we have no selected rows, set selection_start to
25904         @row.
25905         (EditCurrentCell): rename EditCell this.  It was only ever invoked
25906         with CurrentCell as the arg, so drop the arg and rename it.
25907
25908         * DataGridColumnStyle.cs: clean up the constructors a little, and
25909         drop CommonConstructor().
25910
25911         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
25912         actually get notified when the user hits it.
25913         (ProcessKeyMessage): *substantially* simplify this method.
25914         There's no reason (that I can see) for the textbox to be making
25915         calls into the datagrid at all.  Remove all of them but the ones
25916         for Enter handling.  those will take some more work.
25917
25918         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
25919         calling HideEditBox.
25920         (HideEditBox): if we have an active textbox, render it invisible
25921         without causing a re-layout of the datagrid.
25922
25923 2006-06-05  Mike Kestner  <mkestner@novell.com>
25924
25925         * ListView.cs : fix NRE crasher when focuseditem is cleared by
25926         collection changes by resetting it to Items[0].  Fixes #78587.
25927
25928 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25929
25930         * MessageBox.cs: if the height of the text is larger than the icon_size,
25931         use that. Fixes bug #78575.
25932
25933 2006-06-05  Jackson Harper  <jackson@ximian.com>
25934
25935         * TreeView.cs: Fix line drawing when scrolling.  To do this each
25936         node is basically responsible for drawing its entire horizontal
25937         area.  When drawing a node it draws its parent node lines if
25938         needed.
25939         - Adjust the clip area to the viewport rectangle
25940         - Fix Left/Right key handling to match MS. (It expand/collapses
25941         and moves to parents/first child but does not move selection to
25942         sibling nodes).
25943         - Fix SetTop to work with new bound calculation code
25944         - When scrollbars are no longer needed we need to reset scrolling
25945         vars and recalculate the visible order so the redraw is correct
25946         * TreeNode.cs: We can't expand/collapse nodes with no children.
25947
25948 2006-06-03  John Luke  <john.luke@gmail.com> 
25949
25950         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
25951         so the colors work without dev packages
25952         
25953 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
25954
25955         * Control.cs 
25956           - Select: Implemented to just use activate. Seems to match MS 
25957             behaviour closest. Documented to only do actual control walking 
25958             based on it's parameters if in a container control so I moved 
25959             the code there.
25960           - Removed selection check logic from our internal Select() method
25961         * ContainerControl.cs:
25962           - Select: Moved selection logic from Control here, since MS documents
25963             that containers obey the bool arguments. No longer calling base
25964
25965 2006-06-02  Jackson Harper  <jackson@ximian.com>
25966
25967         * TreeView.cs: If the selected node isn't changed when we get
25968         focus update the previously selected node so that we see the
25969         selection box.
25970
25971 2006-06-02  Mike Kestner  <mkestner@novell.com>
25972
25973         * ComboBox.cs: restructure grab and general mouse event handling.
25974         Make the composite control raise mouse events like it was a single
25975         control for leaves/enters/motion/up/down events.  fix dropdown list
25976         coordinate mangling and refactor it into the scrollbar subclass to
25977         reduce code duplication.  Fixes #78282 #78361 and #78457.
25978
25979 2006-06-02  Mike Kestner  <mkestner@novell.com>
25980
25981         * ScrollBar.cs: remove Capture setting/clearing, as it happens
25982         automatically in the Control.WndProc.
25983
25984 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25985
25986         * FileDialog.cs: fix crash when running SharpChess, which sets the
25987         FilterIndex to 2 with only one Filter.
25988
25989 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25990
25991         * ToolBar.cs: add SizeSpecified property.
25992         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
25993         try to figure out our real size, otherwise fallback to what the
25994         container says.
25995
25996 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
25997
25998         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
25999         * Control.cs (WndProc): MS always calls the DefWndProc to pass
26000           up the event
26001
26002 2006-06-01  Mike Kestner  <mkestner@novell.com>
26003
26004         * ListView.cs: revamp the focus management in ListView.  It still
26005         causes churn of LostFocus/GotFocus emissions on clicks, but it's
26006         better than not handling focus at all.  Will revisit when pdb feels
26007         the general focus handling is solid.  Fixes #78526.
26008
26009 2006-06-01  Jackson Harper  <jackson@ximian.com>
26010
26011         * TreeView.cs: Set the default border style in the constructor.
26012         - Move painting to use OnPaintInternal instead of capturing
26013         WM_PAINT, this is the correct way of doing things
26014         - UpdateBelow shouldn't invalidate the scrollbar area
26015         - Cap the top on update below in case the node was above the top
26016         of the viewport rectangle.
26017         - ExpandBelow and Collapse below need to obey Begin/End Update.
26018         * TreeNode.cs: Make is_expanded internal so the treenode
26019         collection can change it without firing the whole event chain.
26020         * TreeNodeCollection.cs: When clearing all the child nodes make
26021         sure to recalc the visible order.
26022         - Improve algo for remove the top node
26023
26024 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
26025
26026         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
26027           SendMessage directly calling window procedures, which in turn might
26028           call SetFocus()
26029
26030 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
26031
26032         * Control.cs: Don't handle WM_SETFOCUS if the same window already
26033           has focus (works around X11 sending a FocusIn after our SetFocus)
26034         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
26035
26036 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
26037
26038         * Mime.cs: Fix for the NET_2_0 build.
26039           NameValueCollection needs StringComparer now.
26040
26041 2006-05-31  Chris Toshok  <toshok@ximian.com>
26042
26043         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
26044         return (via an out parameter) the starting X of the column.
26045         (UpdateVisibleColumn): track change to FromPixelToColumn.
26046         (HitTest): add a ColumnResize case here.
26047         (DrawResizeLine): new function, probably poorly named.
26048
26049         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
26050         only need to keep one reference.
26051         (set_ListManager): same.
26052         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
26053         Also, add support for HitTestType.ColumnResize.
26054         (OnMouseMove): add column resize behavior here, and change the
26055         cursor to the correct one as we move around the datagrid.
26056         (OnMouseUp): terminate the column resize if we're resizing.
26057         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
26058         for the current cell.
26059         (ConnectListManagerEvents): use cached_currencymgr.
26060         (DisconnectListManagerEvents): fill this in, using
26061         cached_currencymgr.
26062         (SetCurrentCell): remove cached_currencymgr_events handling.
26063         (SetDataMember): only call DisconnectListManagerEvents if
26064         cached_currencymgr is != null.
26065         (SetDataSource): same.
26066         (OnListManagerCurrentChanged): cached_currencymgr_events ->
26067         cached_currencymgr.
26068
26069 2006-05-31  Jackson Harper  <jackson@ximian.com>
26070
26071         * BindingManagerBase.cs: Remove somedebug code that creeped into
26072         SVN.
26073         * TreeNode.cs: We get the indent level dynamically right now, so
26074         don't track it as a member.
26075         * TreeNodeCollection.cs: Make sure all nodes added to the list
26076         have parents, treeviews/topnodes setup properly.
26077         - Don't attempt to track indent level.
26078
26079 2006-05-30  Jackson Harper  <jackson@ximian.com>
26080
26081         * BindingContext.cs: Create the currency manager tables here.
26082         This allows us to more easily create null tables (when bad data
26083         members are used), and more easily create related currency
26084         managers.
26085         * CurrencyManager.cs: All the table creation stuff is done by the
26086         binding context now.
26087         - Current should throw an exception if listposition is -1.
26088         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
26089         been bound yet.
26090
26091 2006-05-30  Mike Kestner  <mkestner@novell.com>
26092
26093         * ListView.cs: allow reexpansion of zero-width column headers.
26094         Fixes #78528.
26095
26096 2006-05-28  Chris Toshok  <toshok@ximian.com>
26097
26098         * CurrencyManager.cs (get_Current): after the late binding
26099         listposition = -1 fix, we need to guard against it here and return
26100         null, otherwise we raise an exception (which is swallowed
26101         elsewhere, and breaks datagrid databinding.)
26102
26103 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
26104
26105         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
26106           than WM_SYSKEY, don't throw if get something unexpected (#78507)
26107
26108 2006-05-26  Jackson Harper  <jackson@ximian.com>
26109
26110         * ControlPaint.cs:
26111         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
26112         values, it's faster and it's all we care about (we don't care if
26113         the names aren't equal).
26114         * KeyboardLayouts.cs: Eliminate some dead code.
26115         - Lazy init things
26116         * X11Keyboard.cs: Lazy init keyboard detection.
26117         - Cleanup access modifiers a little.
26118
26119 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
26120
26121         * XplatUIX11.cs: Once again, attempting to get layout just right.
26122
26123 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
26124
26125         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
26126           the sizes of each link section, that will result in sizes that
26127           match DrawString's layout (Fixes #78391)
26128
26129 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
26130
26131         * FileDialog.cs: If AddExtension property is true autocomplete the
26132           extensions in SaveFileDialog correctly. Fixes bug #78453.
26133           Set MyNetwork and MyComputer to "C:\" for windows. This should
26134           fix part 8 of bug #78446 for now.
26135
26136 2006-05-26  Chris Toshok  <toshok@ximian.com>
26137
26138         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
26139         invalidate the current row header if we need to, but presumably
26140         we'll invalidate the row corrsponding to the bounds or
26141         editingControl.
26142         (GridHScrolled): switch back to this method, as it's part of the
26143         public api.  *sigh*.
26144         (GridVScrolled): same.
26145         (OnMouseWheel): hack up something that more or less works.  Call
26146         GridHScrolled/GridVScrolled directly, instead of duplicating much
26147         of their code here.
26148         (EnsureCellVisibility): reinstate a bunch of this code, since we
26149         can't just set the scrollbar Value and expect to do all the work
26150         in the ValueChanged handler.  Also, Call Update() after scrolling
26151         in one direction so the other XplatX11.ScrollWindow call has the
26152         proper stuff in the proper places.
26153         (EditCell): set is_editing to true before calling .Edit.
26154
26155         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
26156         don't bother comparing first.
26157         (OnKeyPress): call grid.ColumnStartedEditing before calling
26158         base.OnKeyPress.  this will set is_changing and invalidate the row
26159         header if necessary.
26160         (ProcessKeyMessage): for WM_CHAR messages, call
26161         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
26162         and WM_KEYDOWN.
26163         
26164         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
26165         it's done in the DataGrid.
26166         (NextState): call grid.ColumnStartedEditing, which takes care of
26167         invalidating the row header (and setting is_changing).
26168
26169         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
26170         here.  it's done in the DataGrid.
26171
26172 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26173
26174         * Control.cs: allow changing the cursor when the mouse position is
26175         out of bounds but Capture is set.
26176         * LinkLabel.cs: handle the case when the mouse button is pressed on the
26177         linklabel but released somewhere else.
26178
26179 2006-05-25  Jackson Harper  <jackson@ximian.com>
26180
26181         * TreeView.cs: When we get focus if there is no selected node make
26182         it the top node
26183         - Remove some uneeded setup code from Draw.
26184         * TreeNodeCollection.cs: If the tree doesn't have a top node when
26185         a new node is inserted make the new node the top.
26186         * XplatUIX11.cs:
26187         * Timer.cs: Use Utc time so that no local time zone stuff needs to
26188         be used (should be faster).
26189         
26190 2006-05-25  Chris Toshok  <toshok@ximian.com>
26191
26192         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
26193         problem with the last commit.
26194
26195 2006-05-25  Chris Toshok  <toshok@ximian.com>
26196
26197         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
26198         need the invalidate call here, while scrolling right-to-left via
26199         the left arrow key (i.e. moving the editing cell while scrolling).
26200
26201         * DataGrid.cs (.ctor): remove the initialization of
26202         ctrl_pressed/shift_pressed.  We no longer track them using key
26203         up/down handlers, but by using Control.ModifierKeys.  Also, switch
26204         to using ValueChanged handlers on the scrollbars instead of
26205         Scrolled event handlers.  This simplifies a bunch of the scrolling
26206         code.
26207         (GridHValueChanged): rename from GridHScrolled, and change it to
26208         work with the new event args.
26209         (GridVValueChanged): same.
26210         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
26211         (OnMouseWheel): actually scroll the datagrid.  Don't change the
26212         selected cell.
26213         (ProcessGridKey): correct all the keyboard navigation stuff I
26214         could find.  Ctrl up/down/left/right/home/end work now.
26215         (EnsureCellVisibility): correct method name spelling.  Also,
26216         simplify this a touch by not explicitly calling the
26217         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
26218         scrollbar value.
26219         (OnKeyUpDG): no need for this method now.
26220         
26221 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26222
26223         * LinkLabel.cs: display the OverrideCursor when hovering the label.
26224         Fixes bug #78392.
26225
26226 2006-05-25  Chris Toshok  <toshok@ximian.com>
26227
26228         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
26229         r61019.
26230
26231 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
26232
26233         * Application.cs: Moved setting of is_modal and closing to before
26234           we create the control, to allow the event handlers called as a
26235           result of creation affect closing. Also removed Gonzalo's previous
26236           change to setting DialogResult, the behaviour has been moved to 
26237           Form.ShowDialog()
26238         * Form.cs: 
26239           - ShowDialog(): Removed explicit creation of the form, let RunLoop
26240             handle it instead
26241           - ShowDialog(): If no dialog result is set, we need to return Cancel
26242           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
26243             the close is cancelled
26244
26245 2006-05-25  Jackson Harper  <jackson@ximian.com>
26246
26247         * StatusBar.cs: We only need to update the sizes of the other
26248         panels when we have auto size contents.  Also we are only updating
26249         the contents of the panel, not the borders, so compensate for the
26250         border width (TODO: get this width from the theme somehow).
26251         * TreeView.cs: Scrollable is true by default
26252         - Use invalidate instead of refresh where needed
26253         - Factor the scrollable value into scrollbar updating
26254         - Update the scrollbars if the Scrollable property is altered
26255         - Update the selected node if its ImageIndex is changed
26256         - Handle null nodes in UpdateNode (mainly so we don't have to
26257         check if selected is null when updating it
26258         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
26259         are factored into the visible count
26260         - Use VisibleCount for clarity in the code
26261         - When the font is changed we need to recurse through all the
26262         nodes and invalidate their sizes
26263         
26264 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26265
26266         * Application.cs: set the DialogResult to fixed when the main form is
26267         hidden or destroyed while being modal.
26268
26269 2006-05-25  Miguel de Icaza  <miguel@novell.com>
26270
26271         * Theme.cs: Use Tangoified messagebox icons. 
26272
26273         (GetSizedResourceImage): Also cope with width = 0 and do not
26274         trigger a warning in that case (0 means "give me your icon from
26275         the resouce, no special size needed).
26276
26277 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
26278
26279         * Application.cs: Leave runloop if the the main modal form is 
26280           hidden (fixes #78484)
26281
26282 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
26283
26284         * BindingContext.cs : reject null datasource in Contains() and
26285           Item[].
26286         * CurrencyManager.cs : check data_member validity when data_source
26287           is dataset. When it is late binding, the initial position is -1.
26288
26289 2006-05-24  Jackson Harper  <jackson@ximian.com>
26290
26291         * TreeNodeCollection.cs: Dont't recalculate the visible order on
26292         inserted nodes that aren't visible.  This changes the
26293         max_visible_order which confuses scrollbar settings.
26294         - Use the enumerator to get the prev node instead of duplicating
26295         code.
26296         * TreeView.cs: Use new method for setting scrollbar values
26297         - Don't set the bounds every time the scrollbar is updated
26298         - When updating below the root node use an invalidate instead of a
26299         refresh to prevent the child controls (scrollbars) from being
26300         refreshed. (UpdateBelow still needs to be reworked anyways).
26301         - Reenable SetBottom now that visible orders are set correctly,
26302         added some debug code incase we ever get bad values there again.
26303         - Set the scrollbar max to 2 less then the max value, this
26304         compensates for the max value being one above the node count, and
26305         for scrollbars adding one extra "notch".
26306         - When drawing image nodes if there is an imagelist we draw the
26307         first image in the list if the supplied image index is out of the
26308         image list's bounds.
26309         
26310 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
26311
26312         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
26313           we receive a size change from the WM (Fixes #78503)
26314
26315 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
26316
26317         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
26318           rectangle (Fixes #78501)
26319
26320 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
26321
26322         * ButtonBase.cs: 
26323           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
26324             as a bitfield.
26325           - Fixed MouseMove to no longer switch pressed state unless the left
26326             mouse button is pressed. Atsushi provided the original patch (#78485)
26327           
26328 2006-05-24  Jackson Harper  <jackson@ximian.com>
26329
26330         * ScrollBar.cs: New internal methods that allow us to change a
26331         couple values on the scrollbar (the most common case is maximum
26332         and large change) without getting multiple invalidates.
26333
26334 2006-05-24  Chris Toshok  <toshok@ximian.com>
26335
26336         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
26337         (Edit): save off the original state in oldState, and set
26338         grid.is_editing to true.
26339         (OnKeyDown): abort editing if escape is pressed.  also, call
26340         NextState if space is pressed.
26341         (OnMouseDown): call NextState.
26342         (NextState): factor out shared code from OnKeyDown and OnMouseDown
26343         here.  Also, only invalidate the row header once (on the initial
26344         is_changing switch) to save on redraws.
26345
26346 2006-05-24  Chris Toshok  <toshok@ximian.com>
26347
26348         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
26349         if the value in the cell is different than it was before.  This
26350         keeps us from triggering a layout when we move around a datarid
26351         with a highlighted cell.
26352         (Edit): suspend layout when creating/positining the text box, and
26353         resume passing false so we don't ever actually re-layout.
26354         (ReleaseHostedControl): same.
26355         (EnsureTextBox): reformat slightly, and set WordWrap to false.
26356
26357         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
26358         control-key sequences should go to the datagrid - remove that
26359         lock.  Also, modify the conditions under which we move between
26360         cells when moving the cursor within a cell, and remove the "this"
26361         and "base" from field accesses.  We weren't even consistent, given
26362         they all were in the base class.
26363
26364 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
26365
26366         * Binding.cs : (.ctor)
26367           An obvious NRE fix for BindingTest.CtorNullTest().
26368
26369 2006-05-23  Chris Toshok  <toshok@ximian.com>
26370
26371         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
26372         them between lines.  This fixes some quirks editing cells in the
26373         datagrid.
26374
26375 2006-05-23  Jackson Harper  <jackson@ximian.com>
26376
26377         * TreeView.cs: Use begin/end update when doing expand/collapse all
26378         so that we don't get flicker on the scrollbar.
26379
26380 2006-05-23  Jackson Harper  <jackson@ximian.com>
26381
26382         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
26383         treenode calculations to be independant of the painting code. To
26384         do this nodes track a visible order which is calculated by the
26385         treeview.
26386         - Call new methods for expanding/collapsing nodes.  These methods
26387         use scrollwindow so we don't have to update everything below the
26388         node.
26389         * TreeView.cs: Refactored drawing and scrolling code.  We don't
26390         need to update nodes when drawing anymore or calculate scrollbar
26391         stuff.
26392         - Added new methods for expanding/collapsing nodes. These methods
26393         use ScrollWindow so as to not have to redraw all the nodes below.
26394         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
26395         we add/remove nodes or sort.
26396         - Handle removing the selected and the top node properly.
26397
26398 2006-05-23  Chris Toshok  <toshok@ximian.com>
26399
26400         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
26401         maybe this should actually happen in the datagrid code?
26402         (EndEdit): no need to invalidate anything, given that
26403         ReleaseHostedControl causes the datagrid to relayout, which
26404         invalidates everything anyway.
26405
26406         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
26407         in SetCurrentCell).
26408         (set_SelectionBackColor): call InvalidateSelection instead of
26409         Refresh.
26410         (set_SelectionForeColor): same.
26411         (BeginEdit): Flesh this out a bit.
26412         (CancelEditing): only do any of this if we're editing/adding.
26413         (EndEdit): same.
26414         (OnMouseDown): there's no need to cancel editing here, it's done
26415         in SetCurrentCell.
26416         (SetCurrentCell): only invalidate the current row header if it's a
26417         different row than the new one.
26418         (ShiftSelection): fix this to work like MS does.
26419         (ResetSelection): factor out the invalidation of selected_rows to
26420         InvalidateSelection.
26421         (SetDataSource): cancel any editing that's going on.
26422
26423         * DataGridColumnStyle.cs
26424         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
26425         call the non-interface version.
26426
26427         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
26428         header rectangle with the clip rectangle so we don't redraw the
26429         entire header for just a small area.  Gets rid of the last flicker
26430         when horizontally scrolling.
26431         (DataGridPaintRow): same.
26432
26433 2006-05-23  Mike Kestner  <mkestner@novell.com>
26434
26435         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
26436         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
26437         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
26438         Critical bug report.
26439
26440 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
26441
26442         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
26443           and this fixes #78493
26444
26445 2006-05-23  Miguel de Icaza  <miguel@novell.com>
26446
26447         * Theme.cs (GetSizedResourceImage): Scale images if the proper
26448         size is not found.  
26449         
26450         * FileDialog.cs: Do not change the background for the side bar as
26451         it wont work nicely with the theme, and also reduces the artifacts
26452         in rendering the icons (which I want to fix too).
26453
26454         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
26455         resources, not resgen resources. 
26456
26457         (PlatformDefaultHandler): Pull images using the new API.
26458
26459 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
26460
26461         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
26462           a reference to the hwnd and will not remove it unless there are
26463           no pending exposures (fixes #78341)
26464         * XplatUI.cs: Improved debug
26465
26466 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
26467
26468         * MenuAPI.cs : don't handle OnClick event when it was not the left
26469           button. Fixed bug #78487.
26470
26471 2006-05-23  Mike Kestner  <mkestner@novell.com>
26472
26473         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
26474         prefer submenus to the top menu for item lookup, to avoid popping down
26475         top-row items.
26476
26477 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
26478
26479         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
26480           Graphics.FillRectangle as the visual results are really bad (even
26481           on win). We now draw perfect arrows (and perfect shadows when the
26482           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
26483           Pen.DashPattern to draw the dots of each line.
26484
26485 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
26486
26487         * FileDialog.cs: Update the filename combobox when navigating through
26488           the ListView with the cursor keys. Fixes part 7 of bug #78446.
26489
26490 2006-05-22  Mike Kestner  <mkestner@novell.com>
26491
26492         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
26493         Fixes #78463.
26494
26495 2006-05-22  Mike Kestner  <mkestner@novell.com>
26496
26497         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
26498         requests. Fix a misspelled parameter and a copy paste exception error
26499         in Select.
26500
26501 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
26502
26503         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
26504           to get the same width/height (5/13) on X11 as the default font has on
26505           win32. This means that our DefaultFont emSize is smaller than the 
26506           the MS SWF equivalent (even thought the width/height stays the same)
26507
26508 2006-05-20  Jackson Harper  <jackson@ximian.com>
26509
26510         * MdiClient.cs:
26511         * MdiWindowManager.cs:
26512         * InternalWindowManager.cs: Make sure to use the border width from
26513         the theme.
26514
26515 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
26516
26517         * PrintDialog.cs: Implements printer details
26518
26519 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
26520
26521         * FileDialog.cs: Added focus handling for PopupButtonPanel.
26522           Fixes part 1 and 2 of bug #78446
26523
26524 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
26525
26526         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
26527           instead of sticking to the first ever calculated value
26528
26529 2006-05-19  Mike Kestner  <mkestner@novell.com>
26530
26531         * ComboBox.cs: fix mouse motion selection to use MousePosition and
26532         PointToClient, since Capture is set. Fixes #78344.
26533
26534 2006-05-19  Mike Kestner  <mkestner@novell.com>
26535
26536         * ListView.cs: match MS behavior in Details view where items are not
26537         drawn if Columns.Count == 0. 
26538         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
26539         Use a separate pen to draw the check, since changing the width affects
26540         the box as well.  Fixes #78454.
26541
26542 2006-05-18  Miguel de Icaza  <miguel@novell.com>
26543
26544         * ListView.cs: ArgumentOutOfRangeException, single versions of the
26545         exception should throw the name of the invalid argument.
26546
26547         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
26548         there are no files listed. 
26549
26550 2006-05-18  Jackson Harper  <jackson@ximian.com>
26551
26552         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
26553         up.
26554
26555 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
26556
26557         * Control.cs: Brought back our old UpdateZOrder method as a private
26558           function and switched our calls from UpdateZOrder to the new one.
26559           This fixes the Paint.Net canvas disappearing bug.
26560
26561 2006-05-18  Jackson Harper  <jackson@ximian.com>
26562
26563         * Theme.cs:
26564         * ThemeWin32Classic.cs:
26565         * InternalWindowManager.cs: Move the drawing into the theme,
26566         expose everything the theme should need from the window manager.
26567
26568 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
26569
26570         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
26571           from the call to NativeWindow to avoid walking up the parent chain
26572           further than needed (speeds up setting cursors and avoids setting
26573           the wrong cursor if a parent has another cursor defined)
26574         * Cursor.cs: When loading an icon as cursor, MS uses the center of
26575           the icon as hotspot, not what's contained as hotspot in the icon
26576           file. This fixes the perceived drawing offset seen with Paint.Net
26577         
26578 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
26579
26580         * XplatUIX11.cs: 
26581           - Store the calculated rectangle in Hwnd object and use it when 
26582             setting the client size
26583           - Force Toolwindows to always be type Dock, to ensure they're on top
26584
26585 2006-05-18  Mike Kestner  <mkestner@novell.com>
26586
26587         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
26588         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
26589         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
26590         Substantial refactoring to remove confusing nested classes. Coding
26591         standard and Get+Set->property refactorings.  Shift to index based
26592         highlighting in ComboListBox instead of constantly using IndexOf and
26593         Items[]. Add invalidations on resize for DropDownList to fix ugliness
26594         in FileDialog growth.  Draw borders manually since Simple mode needs
26595         to look like two independent controls.  Make listbox border
26596         conditional to DropDownStyle.  Improved OwnerDraw support.
26597
26598 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
26599
26600         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
26601         Don't set the disposed graphics to null, so we can throw the "right"
26602         exception if the graphics is reused later (added a flag to avoid 
26603         double disposing). Some behaviours are different under 2.0 and are
26604         filled under bug #78448.
26605
26606 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
26607
26608         * Control.cs: When double-buffering is enabled, we need to reset
26609           our graphics context between paint calls. Otherwise, any 
26610           transformations and other alterations on the context will 
26611           become cumulative (#77734)
26612
26613 2006-05-18  Mike Kestner  <mkestner@novell.com>
26614
26615         * ListView.cs: do focused item selection like MS on clicks. 
26616         Rework focus handling for ItemControl so LostFocus invalidates as
26617         well.
26618         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
26619         the ListView ItemControl has focus.
26620
26621 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
26622
26623         * XplatUIX11.cs: If client_window ends up being width or height zero
26624           due to border settings, move it off window inside whole_window (#78433)
26625
26626 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
26627
26628         * Mime.cs: Shrink the mime file cache correctly.
26629
26630 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
26631
26632         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
26633
26634 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
26635
26636         * XplatUIX11.cs (AddExpose): More sanity checks
26637
26638 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
26639
26640         * XplatUIX11.cs:
26641           - AddExpose: Don't add expose ranges outside the size of our
26642             window
26643           - Cast opacity values to Int32 to avoid crashes with certain
26644             values
26645           - Added disabled code paths that protect against illegal cross-
26646             thread painting (Developers.exe)
26647
26648 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
26649
26650         * ProgressBar.cs: Invalidate the control when it's resized
26651           since block size is based on control size. (#78388)
26652
26653 2006-05-16  Miguel de Icaza  <miguel@novell.com>
26654
26655         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
26656         of setting the incoming argument to the "reset" value, we set the
26657         this.datamember to string.empty (before we were invalidating the
26658         incoming data).   
26659
26660         Fixes 78420
26661
26662 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
26663
26664         * Form.cs: Only apply transparency settings after the form
26665           is created. (Fixes #77800)
26666
26667 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
26668
26669         * ApplicationContext.cs: Grab the HandleDestroyed event so
26670           we know when to fire OnMainFormClosed 
26671
26672 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
26673
26674         * Application.cs: Introduced sub-class to allow tracking of
26675           threads and centralized triggering of the event mess for
26676           ThreadExit, AppExit, etc..  (#76156)
26677
26678 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
26679
26680         * MimeIcon.cs:
26681           - Do not return a null icon index value for a mime subclass.
26682             Instead try the main mime type class too.
26683           - Seems that some newer distributions don't have a link to some
26684             gnome default icons anymore. So check the default gnome dir too.
26685           
26686
26687 2006-05-16  Jackson Harper  <jackson@ximian.com>
26688
26689         * MdiClient.cs: Don't paint the parent background image if we have
26690         our own background image.
26691
26692 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
26693
26694         * Control.cs:
26695           - PerformLayout: Do not shrink space filled by DockStyle.Fill
26696             controls, all filled controls are supposed to overlap (#78080)
26697           - UpdateZOrder is supposed to update the control's z-order in the
26698             parent's z-order chain. Fixed to behave like that
26699           - BringToFront: Removed obsolete code
26700           - SendToBack: Simplyfied
26701           - SetChildIndex: Trigger layout calculations when Z-order changes
26702             since layout is done by z-order
26703
26704 2006-05-16  Chris Toshok  <toshok@ximian.com>
26705
26706         [ fixes bug #78410 ]
26707         * DataGrid.cs (set_AlternatingBackColor): use
26708         grid_drawing.InvalidateCells instead of Refresh().
26709         (set_BackColor): call grid_drawing.InvalidateCells.
26710         (set_BackgroundColor): use Invalidate instead of Refresh.
26711
26712         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
26713         invalidate the cell area.
26714
26715 2006-05-15  Chris Toshok  <toshok@ximian.com>
26716
26717         [ fixes bug #78011 ]
26718         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
26719         on to DataGridPaintRow.
26720         (DataGridPaintRow): take a clip argument, and only draw the cells
26721         which intersect it.  same with the not_usedarea.
26722
26723         * Theme.cs (DataGridPaintRow) add @clip parameter.
26724
26725         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
26726         XplatUI.ScrollWindow.
26727         (ScrollToRow): same.
26728
26729         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
26730         with last column which was causing a gray swath to appear with the
26731         XplatUI.ScrollWindow code.
26732
26733 2006-05-15  Chris Toshok  <toshok@ximian.com>
26734
26735         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
26736         use XplatUI.ScrollWindow.
26737         (VerticalScrollEvent): use XplatUI.ScrollWindow.
26738
26739 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
26740
26741         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
26742
26743 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
26744
26745         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
26746           file since there are no equivalent X11 cursors
26747
26748 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
26749
26750         * MonthCalendar.cs : DateTimePicker should reflect selected date
26751           on mouse*up*, not mouse*down*. Fixed originally reported part of
26752           bug #76474.
26753
26754 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
26755
26756         * TabControl.cs : When argument index is equal or more than tab
26757           count, just ignore. Fixed bug #78395.
26758
26759 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
26760
26761         * Control.cs: Dispose all child controls when control is diposed (#78394)
26762
26763 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
26764
26765         * ColorDialog.cs: Finally it is possible to select the color with
26766           the text boxes
26767
26768 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
26769
26770         * PrintDialog.cs: Fix typo
26771
26772 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
26773
26774         * PrintDialog.cs: PrintDialog is not resizable
26775         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
26776           color. Made some ToolBar drawing methods protected virtual.
26777
26778 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
26779
26780         * PrintDialog.cs: Implementation of the PrintDialog
26781
26782 2006-05-12  Chris Toshok  <toshok@ximian.com>
26783
26784         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
26785         thumb, instead use MoveThumb.  This has the side effect of making
26786         most of the other thumb moving machinery use MoveThumb as well.
26787         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
26788         need to actually invalidate the rectangle where the new thumb will
26789         go.
26790         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
26791         We force an Update() after, so it's not as fast as it could be,
26792         but at least there's zero flicker and no droppings.
26793         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
26794         (UpdateThumbPos): add another argument (dirty), which says whether
26795         or not to calculate/add dirty regions which we later invalidate.
26796         For cases where we know we're going to use MoveThumb, we pass
26797         false for this.  Otherwise, pass true.
26798
26799 2006-05-12  Jackson Harper  <jackson@ximian.com>
26800
26801         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
26802         the status bar.
26803         
26804 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
26805
26806         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
26807           and GetClipRegion methods and UserClipWontExposeParent property.
26808         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
26809           overriding UserClipWontExposeParent property, setting to false, since
26810           Win32 handles the required expose messages to draw our clipped parent
26811           areas internally
26812         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
26813           PaintEventStart to set the user clip region if set.
26814         * Control.cs: 
26815           - Now internally tracking the Region for the control since we need to
26816             store it if the handle is not yet created and only set it when it
26817             becomes created. Before setting the region forced handle creation
26818           - Added code to draw the parents underneath a user-clipped region
26819         * Hwnd.cs: Added UserClip property
26820
26821 2006-05-12  Chris Toshok  <toshok@ximian.com>
26822
26823         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
26824         (set_Maximum): same.
26825         (set_Minimum): same.
26826         (set_SmallChange): same.
26827         (OnMouseUpSB): remove the call to refresh when releasing the
26828         thumb.  We shouldn't need it.
26829         
26830 2006-05-12  Miguel de Icaza  <miguel@novell.com>
26831
26832         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
26833         AutoSize set to None, we do not need to relayout everything, we
26834         just need to invalidate the current region.
26835
26836         (Draw): Do not draw the entire ClientArea, just redraw the
26837         clip area being passed.
26838
26839         * MdiClient.cs: Make MdiClient constructor with the Form argument
26840         internal. 
26841
26842 2006-05-12  Jackson Harper  <jackson@ximian.com>
26843
26844         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
26845         parents background image,  but strangely not their own.
26846         - (DrawStatusBarPanel): Take into account horizontal alignment
26847         when drawing the strings and icons.
26848
26849 2006-05-12  Mike Kestner  <mkestner@novell.com>
26850
26851         * ListBox.cs: avoid invalidations for focus when the collection is
26852         empty. 
26853
26854 2006-05-12  Chris Toshok  <toshok@ximian.com>
26855
26856         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
26857         invalidate the entire thumb area.  Call InvalidateDirty which
26858         limits the redraw to the thumb itself and surrounding pixels.
26859
26860         * XplatUIX11.cs (ScrollWindow): optimize copying.
26861         
26862 2006-05-12  Chris Toshok  <toshok@ximian.com>
26863
26864         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
26865         Figure out the positioning/layout in a single pass instead of
26866         multiple recursive invocations.  Speeds up the initial display of
26867         the data grid.  Also, make many things private that were
26868         originally public but unused outside this class.
26869
26870 2006-05-11  Jackson Harper  <jackson@ximian.com>
26871
26872         * MdiClient.cs: Improved layout code.
26873
26874 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
26875
26876         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
26877           not SelectedObject.
26878
26879 2006-05-11  Chris Toshok  <toshok@ximian.com>
26880
26881         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
26882         union of that will always be {0,0,width,height}.
26883
26884 2006-05-11  Jackson Harper  <jackson@ximian.com>
26885
26886         * Form.cs: Match MS's DefaultSize for forms (they must have
26887         changed the size in sp2).
26888
26889 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
26890
26891         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
26892
26893 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
26894
26895         * TextControl.cs : Fixed bug #78109. This incorrect position
26896           comparison caused crash on automatic line split.
26897         * TextBoxBase.cs : reduce duplicate code.
26898
26899 2006-05-10  Jackson Harper  <jackson@ximian.com>
26900
26901         * MdiClient.cs: Active form is only sent to the back when using
26902         the Next form functionality, when a form is clicked the current
26903         active shouldn't be sent to the back.
26904         - Layout the mdi windows when the container is first made visible.
26905         * Form.cs: Give the MdiClient a ref to the containing form when we
26906         create it.
26907         
26908 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
26909
26910         * LinkLabel.cs : link_font could be uninitialized, so populate one
26911           before actual use. Fixed bug #78340.
26912
26913 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
26914
26915         * XplatUIX11.cs : clipboard format native value is IntPtr.
26916           Fixed bug #78283.
26917
26918 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
26919
26920         * Control.cs: 
26921           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
26922             which is passed up the parent chain by DefWndProc
26923           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
26924             to DefWndProc (#77956)
26925         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
26926
26927 2006-05-10  Jackson Harper  <jackson@ximian.com>
26928
26929         * MdiClient.cs: We need to remove the controls from the mdi
26930         collection, when we close the window.
26931         * MdiWindowManager.cs: Special handling of closing mdi windows.
26932         * InternalWindowManager.cs: Make the close method virtual so the
26933         mdi window manager can handle it specially.
26934
26935 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
26936
26937         * DataGrid.cs:
26938           - Recalculate grid when the data source has changed
26939           - Matches styles provided by user from all data sources types
26940         * DataGridTableStyle.cs: For columns that provided by the user set the
26941         with the preferred value is there was unassigned.
26942         * CurrencyManager.cs: throw OnItemChanged event
26943
26944 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
26945
26946         * PictureBox.cs: Don't animate until handle is created. Start animation
26947           when handle is created.
26948
26949 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
26950
26951         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
26952           current codebase.
26953         * XEventQueue.cs: We don't need to provide the extra info
26954
26955 2006-05-10  Jackson Harper  <jackson@ximian.com>
26956
26957         * MdiClient.cs: If the mdi clients parent form has a background
26958         image set, we draw that background image for the mdi area's
26959         background.
26960
26961 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
26962
26963         * TextBoxBase.cs: Set IBeam cursor (#78347)
26964
26965 2006-05-10  Mike Kestner  <mkestner@novell.com>
26966
26967         * ToolBar.cs: fix some text padding issues with ButtonSize
26968         calculation. Update the default size to match MS documentation.
26969         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
26970         button size. Fixes #78296.
26971
26972 2006-05-10  Mike Kestner  <mkestner@novell.com>
26973
26974         * ListBox.cs: use is_visible for scrollbar positioning in case the
26975         control isn't on screen yet.  Fix off by one with Right vs Width
26976         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
26977         
26978 2006-05-10  Jackson Harper  <jackson@ximian.com>
26979
26980         * X11Dnd.cs: Drop to a control with another control on top of it.
26981         * ToolBar.cs: Work on a copy of the buttons list, so that it can
26982         be modified in click handlers. TODO: Look for similar problems in
26983         other controls.
26984
26985 2006-05-09  Jackson Harper  <jackson@ximian.com>
26986
26987         * Form.cs: Window managers need the old window state when setting
26988         window state now.
26989         * InternalWindowManager.cs: Allow the base mdi window manager to
26990         handle more of the MDI only stuff (like maximize buttons).
26991         * MdiWindowManager.cs: Fix some snafus in changing the window
26992         state.  Add all the menu functionality, for both popup and
26993         maximized menus.
26994         * MdiClient.cs: When a new form is selected the currently
26995         activated form is sent to the back, this matches MS.
26996         - Implement a new method to activate the next mdi child window.
26997
26998 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
26999
27000         * Control.cs: 
27001           - Added new InternalCapture method to allow controls to prevent
27002             the capture behaviour on the click handlers
27003           - Switched to use InternalCapture
27004         * ComboBox.cs:
27005           - Using InternalCapture to prevent mouse captures from being released
27006             on mouse button release (Fixes #78100)
27007         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
27008           returns Form borders if a caption is present. (Fixes #78310)
27009
27010 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
27011
27012         * TreeNode.cs: Changed serialization .ctor to not require every field
27013           to be present. (#78265)
27014         * OwnerDrawPropertyBag.cs: Added serialization .ctor
27015
27016 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
27017
27018         * MimeIcon.cs: for is faster than foreach for strings.
27019
27020 2006-05-05  Mike Kestner  <mkestner@novell.com>
27021
27022         * CheckedListBox.cs: update check handling code to not use selected.
27023         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
27024         behavior for visual feedback, motion response, shift/ctrl handling,
27025         and properly deal with all 4 selection modes. Updates to bounds
27026         handling logic.  Add scroll wheel support. [Fixes #77842]
27027
27028 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
27029
27030         * ListView.cs:
27031           - Moved adding of Implicit controls into .ctor. That way, subsequent
27032             creation of the controls will not cause them to think they are 
27033             toplevel windows (fixes #78200 header problem)
27034           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
27035           - Switched visibility setting of header control to use internal field
27036             to avoid triggering handle creation
27037           - Now checking if handle is created before causing a refresh when items
27038             are added (This makes us now match handle creation time with MS)
27039         * Splitter.cs: Removed loading of private splitter cursor, switched to
27040           Cursors version now that that is loading the right ones
27041         * Cursors.cs: Load proper splitter cursors from resources
27042         * Cursor.cs: Added second method of loading resource cursors for the 
27043           VS.Net users amongst us
27044
27045 2006-05-05  Mike Kestner  <mkestner@novell.com>
27046
27047         * ListView.cs: give header_control a minimum size based on the
27048         ListView size.
27049
27050 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
27051
27052         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
27053           window seems to do that with metacity, so set that type. (#78120)
27054
27055 2006-05-05  Mike Kestner  <mkestner@novell.com>
27056
27057         * ListViewItem.cs: fix Details mode checkbox layout bug.
27058         * ThemeWin32Classic.cs: draw a ListView column header for unused space
27059         at the end of the header, if it exists. [Fixes for #78200]
27060
27061 2006-05-04  Jackson Harper  <jackson@ximian.com>
27062
27063         * MdiClient.cs: Add a helper property to get the container form.
27064         * MdiWindowManager.cs: We have to make sure to use the menu origin
27065         when drawing the icons and buttons, this fixes maximized window
27066         icons/buttons on win32.
27067         * InternalWindowManager.cs: Reset the restore captions when a
27068         window goes from Maximized to Minimized and vice versa. Move the
27069         DrawMaximizedButtons into the MdiWindowManager source, tool
27070         windows can't be maximized. NOTE: This could use a little
27071         refactoring if time ever permits.
27072         
27073 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
27074
27075         * TextBox.cs: Add MWFCategoryAttributes
27076         * TextBoxBase.cs: Add MWFCategoryAttributes
27077         * Form.cs: Add MWFCategoryAttributes
27078
27079 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
27080
27081         * Control.cs: Add MWFCategoryAttributes
27082         * ScrollableControl.cs: Add MWFCategoryAttributes
27083
27084 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
27085
27086         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
27087           Divider is true. Fix a little glitch in PropertyToolBar
27088           drawing code
27089
27090 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
27091
27092         * Control.cs:
27093           - Dispose: Call base.Dispose, this causes the disposed event
27094             to be fired (and probably other, more important stuff)
27095           - SetVisibleCore: Set is_visible to true after creating the
27096             window so that the window still gets created invisible (if
27097             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
27098             to generate a WM_ACTIVE message
27099         * Form.cs: Call Dispose when we want to destroy the window, instead of
27100           just destroying the handle (Dispose will do that for us)
27101         * XplatUIX11.cs:
27102           - RootWindow also needs a queue, so we can properly process the
27103             property change events from RootWindow (like Activate)
27104           - Generatic synthetic WM_ACTIVE message when the active window is
27105             being destroyed
27106
27107 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
27108
27109         * LinkLabel.cs: Trigger a recalc of our label dimensions when
27110           bounds are changed
27111
27112 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
27113
27114         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
27115           for determining width and height (image might not be assigned if
27116           we're drawing an imagelist)
27117
27118 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
27119
27120         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
27121         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
27122           height from system
27123         * Theme.cs: No longer returns hardcoded menu height, instead calls
27124           new driver method
27125         * Form.cs (OnLoad): Scaling happens before triggering Load events 
27126           on MS (# 78257)
27127
27128 2006-05-01  Mike Kestner  <mkestner@novell.com>
27129
27130         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
27131
27132 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
27133
27134         * TextBoxBase.cs: Removed Fixme
27135         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
27136
27137 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
27138
27139         * XplatUIX11.cs:
27140           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
27141             the rectangle relative to the parent, considering borders. We
27142             don't really want that.
27143           - ScrollWindow: Fixed warning to be more understandable
27144         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
27145           scrollbars and scroll only the visible area
27146         * RichTextBox.cs: Removed debug output
27147
27148 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
27149
27150         * NumericUpDown.cs (Text): Just use base
27151         * UpDownBase.cs: Ensure txtView is created before using it
27152
27153 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
27154
27155         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
27156           casting to IntPtr to avoid 64bit overflow errors
27157
27158 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
27159
27160         * Control.cs:
27161           - AllowDrop: Don't force handle creation.
27162           - CreateHandle: Added call to tell driver if we're allowed to drop
27163
27164 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
27165
27166         * FileDialog.cs: Remember the last directory not only for the
27167           current instance but also for new FileDialog instances.
27168
27169 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
27170         
27171         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
27172           broke sending async messages
27173
27174 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
27175
27176         * XplatUIX11.cs:
27177           - ScrollWindow: Fixed method. We finally generate expose events again
27178             for scrolled areas. This was causing 'garbage' when scrolling
27179             textbox and other controls that used ScrollWindow
27180           - Switched from using the regular queue for paint events to the MS 
27181             model of 'generating' paint events when the queue is empty.
27182             We use the new XQueueEvent.Paint subclass to store which windows
27183             need painting.
27184           - AddExpose now takes the x/y/width/height of the exposed area
27185             and inserts the window into the paint queue if not already there
27186           - InvalidateWholeWindow: Switched to use new AddExpose method
27187           - UpdateMessageQueue: Added which queue to monitor for paint events
27188           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
27189             the unlikely case nothing above handles it. We reset the expose
27190             pending states to get them off the queue.
27191           - GetMessage: Now pulls a paint event if no other events are in the
27192             queue
27193           - Invalidate: Switched to new AddExpose method
27194           - PeekMessage: Updated to understand pending paint events
27195           - UpdateWindow: Fixed logic bug. We were only updating if the window
27196             didn't need updating. Also switched to sending WM_PAINT directly,
27197             like MS does.
27198         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
27199           and random access Remove(). The random access is needed to handle
27200           UpdateWindow() where a WM_PAINT is sent directly without accessing
27201           the queue.
27202         * ScrollBar.cs: Added Update() calls to cause immediate updates to
27203           allow for better feedback when scrolling. Scrollbars are small and
27204           the immediate update should make it 'feel' more responsive without
27205           slowing things down. ScrollBar still needs it's invaliate logic
27206           updated to not always invalidate the whole bar on certain changes.
27207
27208 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27209
27210         * Control.cs:
27211         (BackColor): if the control does not support a transparent background,
27212         return the default backcolor when the parent backcolor is transparent.
27213
27214 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
27215
27216         * Application.cs: Updated to new StartLoop/GetMessage API
27217         * RichTextBox.cs: Provide some output on RTF parsing errors
27218         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
27219           new queue_id argument to GetMessage and PeekMessage to allow faster
27220           handling of per-thread queues in drivers.
27221         * Hwnd.cs: Added Queue tracking and property
27222         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
27223         * XEventQueue.cs: Added thread trackingA
27224         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
27225         * XplatUIX11.cs:
27226           - Implemented new per-thread queue
27227           - GetMessage: Fixed return/break behaviour on several cases. We were
27228             returning stale messages in some cases, instead of just processing
27229             the next message
27230
27231 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
27232
27233         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
27234
27235 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
27236
27237         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
27238           fixed off-by-one comparisons between Width/Height and Right/Bottom.
27239
27240 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
27241
27242         * PropertyGridView.cs: Fix drop down width.
27243
27244 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
27245
27246         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
27247           a mess in DrawToolBar, so I removed one of them.
27248
27249 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
27250
27251         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
27252           needed (clip). Otherwise we get artifacts.
27253
27254 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
27255
27256         * FixedSizeTextBox.cs: Added constructor to allow specifying which
27257           dimension is fixed
27258         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
27259           and switched FixedSizeTextBox to only be fixed vertical (#78116)
27260         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
27261           if it matches the scale base font (avoids unneeded scaling)
27262
27263 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
27264
27265         * X11DesktopColors.cs: One gtk_init_check should be enough
27266
27267 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
27268
27269         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
27270           match MS behaviour
27271
27272 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
27273
27274         * TextBoxBase.cs: 
27275           - Generate OnTextChanged for Backspace even if we're only deleting
27276             the current selection
27277           - When setting the Text property, only select all text if the
27278             control does not have focus when it is being set. Otherwise
27279             just place the cursor at the beginning of the control
27280
27281 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
27282
27283         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
27284           Added a little helper to draw PropertyGrid ToolBar with a different
27285           border and a different BackColor.
27286         * PropertyGrid.cs: Some background parts didn't get painted with the
27287           correct background color. Added a class that helps us to draw the
27288           correct border for PropertyGridView and a class that helps us to
27289           draw ToolBars with a different backcolor
27290         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
27291
27292 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
27293
27294         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
27295         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
27296
27297 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
27298
27299         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
27300           into the palette entries. Also, since we're working on a copy
27301           we needed to copy the palette back onto the bitmap.
27302         * Cursor.cs: Same fix as XplatUIWin32.cs.
27303
27304 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
27305
27306         * ImageListStreamer.cs: Need to read the var (or we're off)
27307
27308 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
27309
27310         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
27311           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
27312           TextBoxBase.cs: Unused var fixes
27313         * AxHost.cs: Small 2.0 fix
27314         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
27315           as it seems that is what at least Metacity expects. This will make
27316           icons show up on 64bit platforms. We still have some 64bit size
27317           issues, though, since the startup app window size still won't match.
27318
27319 2006-04-25  Mike Kestner  <mkestner@novell.com>
27320
27321         * *.cs: cleanup newly reported exception var unused warnings.
27322
27323 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
27324
27325         * ThemeWin32Classic.cs: Button image alignment now matches exactly
27326           ms
27327
27328 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
27329
27330         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
27331           image. The image position is always the same, no matter if the
27332           button is pressed or not.
27333
27334 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
27335
27336         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
27337           selection and set the correct filename for SaveFileDialog.
27338           Patch by Emery Conrad.
27339
27340 2006-04-24  Mike Kestner  <mkestner@novell.com>
27341
27342         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
27343         check for item.X outside the ClientRect instead of item.Y. Fixes
27344         #78151.
27345
27346 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27347
27348         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
27349         trust that value blindly and do some sanity check. Fixes bug #77814.
27350
27351 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27352
27353         * ImageListStreamer.cs: save the mask as a 1bpp image.
27354
27355 2006-04-21  Mike Kestner  <mkestner@novell.com>
27356
27357         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
27358         pass Checked and Indeterminate to the Theme Engine. Improve
27359         encapsulation with ListBox.
27360         * ListBox.cs: Keep a StringFormat instead of calculating it every item
27361         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
27362         nested types.  Move all CheckState functionality to CheckedListBox.
27363         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
27364         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
27365         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
27366         single base list. Fix scrollbar sizing and placement to mirror MS.
27367         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
27368         used.
27369         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
27370         for CheckedListBox by using new DrawItemState info.  Center the
27371         checkboxes on the items. Use new StringFormat property.
27372
27373 2006-04-18  Jackson Harper  <jackson@ximian.com>
27374
27375         * Form.cs: MdiChildren don't do default locations the same way as
27376         regular forms.  This prevents a crash when trying to position the
27377         mdi windows.
27378
27379 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
27380
27381         * PropertyGridTextBox.cs: Formatting, copyright
27382         * PropertiesTab.cs: Formatting
27383         * PropertyGrid.cs: Formatting
27384         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
27385           click toggling of values
27386           
27387 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
27388
27389         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
27390         * Control.cs (.ctor): verify_thread_handle is static, don't reset
27391           every time a control is created
27392         * Application.cs: Removed obsolete EnableRTLMirroring method
27393
27394 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
27395
27396         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
27397         SelectedIndex to -1. Fixes bug #78121.
27398
27399 2006-04-17  Jackson Harper  <jackson@ximian.com>
27400
27401         * Binding.cs: Handle null values for Current and BindingContext.
27402         This occurs when binding is a little delayed.
27403         * CurrencyManager.cs: return null for Current when there are no
27404         items in the list.
27405         - Hookup to the listchanged event on the DataView and update
27406         bindings when the list is changed.  This fixes late binding of
27407         controls.
27408
27409 2006-04-17  Jackson Harper  <jackson@ximian.com>
27410
27411         * X11Dnd.cs:
27412         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
27413         Ringenbach.
27414
27415 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
27416
27417         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
27418           place
27419         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
27420           with the correct ButtonState
27421
27422 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
27423
27424         * XplatUIX11.cs: Improved distinguishing between window types to
27425           tell the WM a type closer to what the app wants (Fixes #78107)
27426
27427 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
27428
27429         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
27430           GrabHandle
27431
27432 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
27433
27434         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
27435           drawing code to reflect the size grip changes
27436
27437 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27438
27439         * ImageListStreamer.cs: fix handling of the mask that follows the main
27440         bitmap when deserializing and serialize it properly. The generated mask
27441         should better be a 1bpp image, but I'll do that later.
27442
27443 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
27444
27445         * FileDialog.cs: Show something in the DirComboBox on *nix if the
27446           path doesn't fit into some of our Current.Places
27447
27448 2006-04-13  Jackson Harper  <jackson@ximian.com>
27449
27450         * ComboBox.cs: Use borders instead of drawing our own decorations,
27451         try to obey correct rules for heights.
27452         * Theme.cs:
27453         * ThemeNice.cs:
27454         * ThemeClearLooks.cs:
27455         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
27456         this is now handled by borders.
27457         - Remove unused DrawListBoxDecorationSize method.
27458         
27459 2006-04-13  Mike Kestner  <mkestner@novell.com>
27460
27461         * MenuAPI.cs: null guarding for the disbled click check fixes crash
27462         reported by Alex.
27463
27464 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
27465
27466         * ThemeWin32Classic.cs: 
27467           - Fixed CPDrawStringDisabled
27468           - Corrected drawing of disabled menu items
27469           - Fixed drawing of disabled radio buttons (bug #78095)
27470           - Draw check in a disabled CheckBox with color ControlDark 
27471
27472 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27473
27474         * Form.cs: Use the provided width when calculating the menu size;
27475           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
27476           and ClientSize.Width won't be updated yet
27477         * Application.cs: Use Visible instead of Show() to make form visible,
27478           this way we create the handle later and menusize is considered
27479
27480 2006-04-12  Mike Kestner  <mkestner@novell.com>
27481
27482         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
27483         reporting.
27484
27485 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27486
27487         * TextBox.cs: Implemented context menu
27488
27489 2006-04-12  Mike Kestner  <mkestner@novell.com>
27490
27491         * ListView.cs: implement box selection. fixes #77838.
27492         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
27493
27494 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
27495
27496         * XplatUIX11.cs: Added setting of window type when transient window
27497           is created (metacity would move it otherwise)
27498         * X11Structs.cs: Added WINDOW_TYPE atoms
27499         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
27500           background (the control is Opaque but still wants transparent
27501           backgrounds)
27502
27503 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27504
27505         * Control.cs: Added OnPaintBackgroundInternal to allow controls
27506           that set Opaque but don't mean it (like all ButtonBase-derived
27507           controls) to still draw their background
27508         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
27509           the background
27510
27511 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
27512
27513         * Control.cs (PaintControlBackground): Set the graphics object
27514           on our PaintEvent to null to prevent it from being disposed
27515           when the PaintEvent gets disposed
27516
27517 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
27518
27519         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
27520         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
27521
27522 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27523
27524         * Control.cs: 
27525           - Added transparency check to BackColor property. Transparent
27526             backgrounds are only allowed if the control styles permit it
27527           - Added recursive painting of parent control background and
27528             foreground if a control with a transparent backcolor is drawn
27529             (Thanks to Tim Ringenback for providing his 'hack' as a base
27530              for this patch) Fixes #77985 and #78026.
27531           - Added Opaque style check before calling OnPaintBackground, no
27532             need to draw the background if the control is opaque
27533           - Removed ControlAccessibleObject owner variable (inherited from
27534             base, no need to define again)
27535           - Added some documentation links explaining the drawing events
27536             and styles
27537
27538 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
27539
27540         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
27541           that the affected control is the located at the left border of our
27542           parent (Fixes #77936)
27543
27544 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
27545
27546         * TextBoxBase.cs: When rendering disabled or readonly controls,
27547           draw the background with 'Control' instead of 'Window' color as
27548           long as the user hasn't specifically set a color
27549
27550 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
27551
27552         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
27553           since that won't be updated if the user types text (only if it's
27554           programatically set)
27555
27556 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
27557
27558         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
27559           layout changes do to app-triggered resizes will have the proper
27560           display rectangle for layout
27561
27562 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
27563
27564         * ThemeWin32Classic.cs:
27565           - Make use of the SystemBrushes and SystemPens wherever possible
27566           - Corrected some highlight colors
27567           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
27568             drawing
27569         * Theme.cs: Added Empty field to CPColor struct
27570
27571 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
27572
27573         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
27574           is displayed when calculating the display rectangle. Thanks to Mike
27575           for teaching me the err of my ways.
27576
27577 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
27578
27579         * ScrollableControl.cs:
27580           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
27581             (instead of 0,0) and we now return the real width/height instead of
27582             just the clientrectangle, adjusted for padding. The rectangle is
27583             now cached and created by the new CalculateDisplayRectangle method.
27584           - Created new CalculateDisplayRectange method, which basically does
27585             what get_DisplayRectangle() did originally, but now using the 
27586             right edge instead of DisplayRectangle to determine the size of
27587             our scrollbars
27588           - get_Canvas(): Fixed it to properly calculate canvas for 
27589             right/bottom controls which seem to be placed to the right/bottom
27590             of any controls that have a fixed location
27591           - Removed TODO that's taken care of
27592           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
27593             and SetDisplayRectLocation according to new MSDN2 docs
27594           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
27595             event when that is called, this is added for compatibility
27596           - ScrollControlIntoView(): Implemented.
27597           - Switched scrollbars to be implicit, they shouldn't be selectable
27598         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
27599           call it when the active control is set/changed
27600         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
27601         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
27602           implicit_control variable (used for native Win32 message generation)
27603         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
27604           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
27605         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
27606         * XplatUIStructs.cs: Added ScrollBarCommands enum
27607
27608 2006-04-10  Jackson Harper  <jackson@ximian.com>
27609
27610         * ButtonBase.cs:
27611         * CheckedListBox.cs:
27612         * ComboBox.cs:
27613         * DataGrid.cs:
27614         * DataGridView.cs:
27615         * Form.cs:
27616         * GroupBox.cs:
27617         * ListBox.cs:
27618         * PrintPreviewControl.cs:
27619         * ProgressBar.cs:
27620         * PropertyGrid.cs:
27621         * Splitter.cs:
27622         * StatusBar.cs:
27623         * TrackBar.cs:
27624         * UpDownBase.cs: Fixup base event overrides.
27625         
27626 2006-04-06  Mike Kestner  <mkestner@novell.com>
27627
27628         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
27629         all user-initiated value changes to min <= value <= max-thumbsz+1.
27630         (set_Value): check for vert/horiz when calculating new thumb position.
27631         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
27632         like MS does.
27633         (OnMouseMoveSB): refactor the thumb dragging code and refine
27634         invalidation logic to reduce flicker.
27635         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
27636         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
27637         (UpdateThumbPosition): small code readability cleanup
27638
27639 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
27640
27641         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
27642           different
27643
27644 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
27645
27646         * ThemeNice.cs: Use a better graphics effect when a button is pressed
27647
27648 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
27649
27650         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
27651         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
27652           This dramatically reduces the number of Pen.Dispose calls. 
27653           Where possible call ResPool methods only once instead of calling it
27654           over and over again (for example for the same color).
27655
27656 2006-04-06  Mike Kestner  <mkestner@novell.com>
27657
27658         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
27659         Also remove an unused private field on the collection. Fixes #77972.
27660
27661 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
27662
27663         * ThemeNice.cs: Added ToolBar drawing code
27664
27665 2006-04-06  Mike Kestner  <mkestner@novell.com>
27666
27667         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
27668         I'm assuming that means we need to look up the toplevel for the
27669         provided control. Fixes the crash trace in #77911 but exposes another
27670         crash in some strange reflection usage in NDocGui.
27671
27672 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
27673
27674         * ThemeNice.cs: Gave it a little silver touch and added Images
27675           method
27676         * FontDialog.cs: FontDialog is not resizable
27677         * FileDialg.cs: Added SizeGripStyle.Show
27678
27679 2006-04-05  Jackson Harper  <jackson@ximian.com>
27680
27681         * KeyboardLayouts.cs: Remove warning.
27682
27683 2006-04-05  Jackson Harper  <jackson@ximian.com>
27684
27685         * Control.cs: Enable OnPaintInternal so we can use it for drawing
27686         all of our controls instead of Paint +=.
27687         * ListBox.cs:
27688         * ListView.cs:
27689         * MenuAPI.cs:
27690         * MessageBox.cs:
27691         * NotifyIcon.cs:
27692         * ProgressBar.cs:
27693         * ScrollBar.cs:
27694         * Splitter.cs:
27695         * StatusBar.cs:
27696         * TabControl.cs:
27697         * TextBoxBase.cs:
27698         * ToolBar.cs:
27699         * TrackBar.cs:
27700         * UpDownBase.cs:
27701         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
27702         use OnPaintInternal. Remove Width/Height and Visible checks in
27703         paint handler, this is done at a higher level now.
27704         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
27705         * PaintEventArgs.cs: Add a handled flag so controls that don't
27706         want anymore painting after OnPaintInternal can make sure OnPaint
27707         isn't called.
27708
27709 2006-04-05  Mike Kestner  <mkestner@novell.com>
27710
27711         * Form.cs: fix the menu WndProc hacks to respect the native enabled
27712         state of the form, so that we don't process events when Modal dialogs
27713         are up. Fixes #77922.
27714
27715 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
27716
27717         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
27718           checking is done.
27719
27720 2006-04-05  Mike Kestner  <mkestner@novell.com>
27721
27722         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
27723
27724 2006-04-05  Mike Kestner  <mkestner@novell.com>
27725
27726         * ListView.cs (HeaderMouseMove): null guarding for the over column
27727         when setting up the drag_to_index.  Fixes #78015.
27728
27729 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
27730
27731         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
27732           in the taskbar. Transient windows seem to accomplish that.
27733
27734 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
27735
27736         * Form.cs:
27737           - Re-enabled CreateParams.X/Y code for FormStartPosition
27738           - Added code for manual placement when creating the Control
27739           - Incomplete patch to treat MDI forms differently when
27740             setting the ClientSizeCore. (Still need to figure out handling
27741             x/y coords there)
27742         * XplatUIX11.cs:
27743           - When we're explicitly setting the X/Y position of a non-Child
27744             window, let the WM know. Metacity really wants this.
27745
27746 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
27747
27748         * ThemeNice.cs: Added CPDrawButton
27749
27750 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
27751
27752         * ThemeNice.cs: Changed the color for focused buttons and activated
27753           the arrows for small scroll buttons.
27754
27755 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
27756
27757         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
27758           anymore. Changed some method modifiers to protected (virtual)
27759         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
27760           changes
27761         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
27762           Updated drawing of menus, buttons and progressbars; added
27763           CPDrawBorder3D 
27764
27765 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27766
27767         * ImageListStreamer.cs: implemented serialization/deserialization
27768         of the images.
27769
27770 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
27771
27772         * ThemeWin32Classic.cs:
27773           - Removed all the DrawFrameControl stuff; CPDrawButton,
27774             CPDrawCheckBox and CPDrawRadioButton are now handled directly
27775             inside the methods
27776           - Updated and corrected the drawing code of CPDrawButton,
27777             CPDrawCheckBox and CPDrawRadioButton to better match ms
27778           - Updated theme checkbox and radiobutton code to use the CP*
27779             methods
27780
27781 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
27782
27783         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
27784           bug is fixed
27785
27786 2006-03-31  Jackson Harper  <jackson@ximian.com>
27787
27788         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
27789         sometimes.
27790         * UpDownBase.cs: Don't CreateGraphics manually, use a
27791         Refresh. Ideally we would invalidate the correct areas here.
27792
27793 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
27794
27795         * XplatUIX11.cs: 
27796           - We now track the mapping state of windows. If a window (or 
27797             one of it's parents) is not mapped we no longer permit
27798             WM_PAINT messages to be generated since we'd otherwise get 
27799             lots of BadMatch X errors. Jackson did all the work figuring
27800             out the problem.
27801           - Destroying the caret if the window it's contained in is 
27802             destroyed. Can't use regular DestroyCaret method since it
27803             might fall into a drawing function (trying to remove the
27804             caret) and with that generate new BadMatch errors. Again,
27805             Jackson tracked this down.
27806           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
27807             make sure we send the messages to all windows. (The old code
27808             would send the WM_DESTROY to the window, and then all child
27809             windows would be 'gone' because the WM_DESTROY handle lookup
27810             would no longer find the destroyed window)
27811         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
27812         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
27813
27814 2006-03-31  Jackson Harper  <jackson@ximian.com>
27815
27816         * ScrollableControl.cs: Dont recalc if we are not visible.
27817
27818 2006-03-31  Mike Kestner  <mkestner@novell.com>
27819
27820         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
27821         the visibility branch.
27822
27823 2006-03-31  Jackson Harper  <jackson@ximian.com>
27824
27825         * ScrollBar.cs: Cap values when incrementing/decrementing.
27826
27827 2006-03-31  Mike Kestner  <mkestner@novell.com>
27828
27829         * MenuAPI.cs: setup menu.tracker for popup/context menus.
27830         * ToolTip.cs: guard against timer expirations with no active control.
27831         Not sure why it happened.
27832
27833 2006-03-31  Mike Kestner  <mkestner@novell.com>
27834
27835         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
27836         text.
27837         * ToolTip.cs: Position the tooltip based on where the cursor is at
27838         popup time, not at MouseEnter time.  Add a Down state so that we don't
27839         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
27840         positioning offset. Lookup DisplaySize at positioning time, since it
27841         can theoretically change during invocation.
27842         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
27843         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
27844
27845 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
27846
27847         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
27848           Fixes behaviour when the Text property of the box is String.Empty
27849
27850 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
27851
27852         * XplatUIX11.cs: Only send mouseleave for our client windows, not
27853           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
27854           a window)
27855
27856 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
27857
27858         * FileDialog.cs: Visual enhancement for the popup buttons in 
27859           PopupButtonPanel
27860
27861 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
27862
27863         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
27864           code
27865
27866 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
27867
27868         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
27869           highlighted menu items to match ms
27870
27871 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
27872
27873         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
27874
27875 2006-03-30  Mike Kestner  <mkestner@novell.com>
27876
27877         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
27878         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
27879         go active to account for HotLight to Selected transition.
27880         * MenuItem.cs: add internal Selected prop. Fill out the Status
27881         property by calculating it from item info. Add HotLight,
27882         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
27883
27884 2006-03-30  Mike Kestner  <mkestner@novell.com>
27885
27886         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
27887
27888 2006-03-29  Jackson Harper  <jackson@ximian.com>
27889
27890         * Form.cs: Implement TODO.
27891
27892 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
27893
27894         * PrintPreviewDialog.cs: Implemented missing methods and events; still
27895           missing proper dialog setup in the constructor
27896
27897 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
27898
27899         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
27900         * Control.cs:
27901           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
27902           - Fixed ResetBindings and removed TODO
27903           - Added check for cross-thread calls to get_Handle()
27904           - Added Marshaller attribute for set_Font to satisfy class status
27905         * FontDialog.cs: Removed TODOs that seemed implemented
27906         * UpDownBase.cs: Removed unneeded TODO and Fixme
27907         * MessageBox.cs: Implemented support for Default button and removed TODO
27908         * FileDialog.cs: Removed obsolete TODO
27909         * DomainUpDown.cs: Removed obsolete TODO
27910         * ButtonBase.cs: Removed obsolete TODO
27911         * XplatUIWin32.cs: Removed obsolete TODO
27912         * Form.cs:
27913           - Removed obsolete TODO
27914           - Calling CheckAcceptButton when the acceptbutton is changed to allow
27915             internal status updates
27916           - Making sure the active control is selected when the control is created
27917         * CurrencyManager.cs: Removed obsolete TODO
27918
27919 2006-03-29  Mike Kestner  <mkestner@novell.com>
27920
27921         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
27922         of PrintPreviewDialog and RichTextBox.
27923
27924 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
27925
27926         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
27927           DarkDark, Light and LightLight colors for a specific color
27928         * ThemeWin32Classic.cs:
27929           - Use Button drawing code to draw RadioButtons and CheckBoxes with
27930             Appearance = Button 
27931           - Make use of the new ResPool helper CPColor
27932           - Draw ProgressBar and StatusBar with correct 3D borders
27933
27934 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
27935
27936         * ColorDialog.cs: Return selected color. Fixes bug #77940.
27937
27938 2006-03-28  Mike Kestner  <mkestner@novell.com>
27939
27940         * ListView.cs: fix Icon layout to plan for scrollbar widths when
27941         calculating col/row counts.
27942
27943 2006-03-28  Mike Kestner  <mkestner@novell.com>
27944
27945         * ColumnHeader.cs:
27946         * ListView.cs:
27947         * ListViewItem.cs:
27948         * Menu.cs: 
27949         switch to explicit interface method implementation for some methods
27950         corcompare identifies as inconsistent with MS.
27951
27952 2006-03-28  Mike Kestner  <mkestner@novell.com>
27953
27954         * MainMenu.cs: 
27955         * Menu.cs:
27956         add a few missing methods from the class status output.
27957
27958 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
27959
27960         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
27961           correct.
27962
27963 2006-03-28  Mike Kestner  <mkestner@novell.com>
27964
27965         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
27966
27967 2006-03-27  Mike Kestner  <mkestner@novell.com>
27968
27969         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
27970         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
27971
27972 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
27973
27974         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
27975
27976 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27977
27978         * ThemeWin32Classic.cs:
27979           - GroupBox: Inserted a little gap between the text and the lines
27980             on the right side
27981           - Made the code in CPDrawBorder3D more readable
27982           - Corrected the drawing location of the up and down arrows in 
27983             CPDrawScrollButton
27984
27985 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27986
27987         * ControlPaint.cs: Corrected line widths in DrawBorder for
27988           ButtonBorderStyle Inset and Outset
27989
27990 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27991
27992         * ThemeWin32Classic.cs:
27993           - Rewrote the totally broken CPDrawBorder3D method. That was
27994             one of the main problems for the terrific ThemeWin32Classic
27995             look
27996           - Updated and corrected Button drawing
27997           - Correct the dimensions of the SizeGrip to match ms ones
27998           - Removed a small drawing glitch in DrawComboBoxEditDecorations
27999         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
28000           Border3DStyle.Sunken to match ms.
28001
28002 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
28003
28004         * ThemeWin32Classic.cs: First small part of the "de-uglify
28005           ThemeWin32Classic" effort, SizeGrip
28006
28007 2006-03-24  Jackson Harper  <jackson@ximian.com>
28008
28009         * XplatUIX11.cs: Give a max idle time of one second, this matches
28010         MS and forces an Idle event every second when there are no other
28011         events in the queue.
28012
28013 2006-03-24  Mike Kestner  <mkestner@novell.com>
28014
28015         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
28016         * ListView.Item.cs: fix layout issues with null image lists and images
28017         smaller than checkbox size.
28018         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
28019         mode like MS does.  It's weird, but consistent.  ;-)
28020         Fixes #77890.
28021
28022 2006-03-24  Mike Kestner  <mkestner@novell.com>
28023
28024         * ListView.cs: Scroll wheel support for the item control.  Fixes
28025         #77839.
28026
28027 2006-03-23  Jackson Harper  <jackson@ximian.com>
28028
28029         * ScrollableControl.cs: Special case negative sized areas, not
28030         zero.
28031         * MonthCalendar.cs: Save the rect of the clicked date so we can
28032         use it for invalidation.
28033         - Try to cut down on the number of invalidates
28034         - Invalidate the rect the mouse is over and was over when moving
28035         the mouse, so we get the focus box following the cursor.
28036
28037 2006-03-23  Mike Kestner  <mkestner@novell.com>
28038
28039         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
28040         focus rectangle drawing. Fixes #77835.
28041
28042 2006-03-23  Mike Kestner  <mkestner@novell.com>
28043
28044         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
28045         the if and else if and reverting back to the original == check on the
28046         None conditional.
28047
28048 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
28049
28050         * FontDialog.cs: Update the example panel if the selected index of
28051           the fontListBox changes.
28052
28053 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
28054
28055         * FileDialog.cs: Make FileDialog remember which directory it was in
28056           last in the same execution.
28057
28058 2006-03-22  Mike Kestner  <mkestner@novell.com>
28059
28060         * FileDialog.cs: make the DropDownMenu on the toolbar display
28061         RadioChecks since they are mutually exclusive and that's what MS does.
28062
28063 2006-03-22  Mike Kestner  <mkestner@novell.com>
28064
28065         * Theme.cs: add Color param to CPDrawMenuGlyph.
28066         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
28067         checks and radio marks and arrows are visible on highlighted items.
28068         * ControlPaint.cs: update to use new Theme signature.
28069
28070 2006-03-22  Mike Kestner  <mkestner@novell.com>
28071
28072         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
28073         is active. Fixes #77870.
28074
28075 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
28076
28077         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
28078           to be focused/selected after startup
28079
28080 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
28081
28082         * ColorDialog.cs: 
28083           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
28084             CustomColors and ShowHelp properties
28085           - Some internal rewrites to get better results when using the
28086             ColorMatrix
28087
28088 2006-03-22  Mike Kestner  <mkestner@novell.com>
28089
28090         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
28091         HoverSelection.  Fixes #77836.
28092
28093 2006-03-22  Mike Kestner  <mkestner@novell.com>
28094
28095         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
28096         ToggleButtons.  (De)Sensitize the Back button around a stack count of
28097         1, not 0.  Update ButtonSize based on a pixel count of the win32
28098         control.  Adjust the toolbar size/location for new button size.
28099
28100 2006-03-22  Jackson Harper  <jackson@ximian.com>
28101
28102         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
28103         true.
28104         * ScrollBar.cs: When doing increments and decrements we need to
28105         set the Value property so that ValueChanged gets raised. A
28106         possible optimization here would be to make an internal SetValue
28107         that doesn't invalidate immediately.
28108         * ToolTip.cs: Tooltips get added to their container (when
28109         supplied) so they get disposed when the container is disposed.
28110         - Don't create tooltips for String.Empty. This prevents all these
28111         little 2-3 pixel windows from showing up when running nunit-gui
28112         and driving me mad.
28113         * Form.cs: Don't set topmost when setting the owner if the handles
28114         haven't been created yet.  The topmost set will happen when the
28115         handles are created.
28116
28117 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
28118
28119         * XplatUIX11.cs:
28120           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
28121           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
28122             visible (to allow them to recalculate their sizes)
28123
28124 2006-03-21  Mike Kestner  <mkestner@novell.com>
28125
28126         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
28127         methods. Removed a ton of redundant code.  Still not really happy with
28128         the border rendering, but I think that's mainly because of the
28129         ControlDarkDark being black instead of a dark grey. Depending on how 
28130         close we want to be, we might want to revisit those color choices.
28131         Among the new features added during the refactor were DropDownArrow
28132         pressed rendering, Disabled image rendering.  Proper flat appearance
28133         boundary rendering.  Removed the Divider and Wrapping dividers since I
28134         can't figure out any combination of themes and conditions to make the
28135         MS control draw a horizontal line on a toolbar despite what the
28136         Divider property docs indicate.
28137         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
28138         conditions and incorrect layout.  Updated to coding standard.
28139         * ToolBarButton.cs: refactored layout and positioning code from
28140         ToolBar to here.  Invalidate wherever possible instead of forcing
28141         redraws of the whole toolbar. 
28142         (Known remaining issues: explicit ButtonSize smaller than provided
28143         images.)
28144
28145 2006-03-21  Mike Kestner  <mkestner@novell.com>
28146
28147         * ContextMenu.cs (Show): use the position parameter instead of just
28148         showing at the MousePosition.
28149
28150 2006-03-21  Jackson Harper  <jackson@ximian.com>
28151
28152         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
28153         control handle this.
28154         * TreeNodeCollection.cs: If we are clearing the root node we need
28155         to reset top_node so calcs can still happen.
28156         * ThemeWin32Classic.cs: This is a Flags so we need to check
28157         properly.
28158         
28159 2006-03-21  Jackson Harper  <jackson@ximian.com>
28160
28161         * DataGrid.cs: Create columns when the binding context has been
28162         changed.
28163         * X11Structs.cs: Keysyms are uints.
28164         - Add size to fix build.
28165
28166 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
28167
28168         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
28169           XplatUIOSX.cs: 
28170           - Added ResetMouseHover method to allow controls to retrigger
28171             hovering if they need it more than once
28172           - Implemented MouseHoverTime and MouseHoverSize properties
28173         * Timer.cs: Start() must reset the interval
28174         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
28175           properties
28176
28177 2006-03-21  Jackson Harper  <jackson@ximian.com>
28178
28179         * X11Keyboard.cs: improved layout detection. Move the nonchar
28180         tables into this file.
28181         * KeyboardLayouts.cs: Move the tables into resource files.
28182
28183 2006-03-21  Mike Kestner  <mkestner@novell.com>
28184
28185         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
28186
28187 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
28188
28189         * Mime.cs: Various speed optimizations. Looking up mime types
28190           is now 2 times faster than before
28191
28192 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
28193
28194         * CreateParams.cs: Added internal menu field
28195         * Control.cs: 
28196           - Switched call order for UpdateBounds; now we always call
28197             the one that also takes ClientSize, and we're calculating the 
28198             client size via driver method in the others. The previous
28199             method of tracking client size by difference wasn't working
28200             for forms where even the starting client size wouldn't match
28201             the overall form size (due to borders) (Part of fix for #77729)
28202           - CreateParams(): Do not use parent.Handle unless the handle is
28203             already created. Causes havoc with Nexxia and throws off our
28204             creation of controls
28205         * XplatUIX11.cs:
28206           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
28207           - Switched handling of ConfigureNotify over to new PerformNCCalc 
28208             method (consolidates code)
28209           - Changed RequestNCRecalc to use new PerformNCCalc method
28210           - Added calls to RequestNCRecalc when menus and borders are changed
28211             to allow app to set NC size. (Part of fix for #77729) This matches
28212             when MS send a WM_NCRECALC on Win32 windows.
28213           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
28214             (Part of fix for #77729). This matches what MS does, they also
28215             send that message when the form is made visible.
28216           - XException.GetMessage: Improved usability of X errors by including
28217             a translation of the window into Hwnd and Control class
28218           - Improved debug info for window creation, reparenting and destruction
28219           - Created helper method WindowIsMapped() [Currently not used]
28220         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
28221         * Form.cs:
28222           - CreateParams: Now setting our menu on the new internal menu field
28223           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
28224             avoid calculating the same property twice
28225         * Hwnd.cs:
28226           - Improved usability of ToString() for debugging purposes
28227           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
28228             determine the height of the menu, instead of just the font. This
28229             required to also create a graphics context and to keep a bmp 
28230             around (for performance reasons)
28231
28232 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
28233
28234         * MenuAPI.cs: Added OnMouseUp method
28235         * Form.cs:
28236           - Now remembering the requested client size, avoids size errors
28237           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
28238             instead of base if the menu is active. This is required due to
28239             control now capturing and releasing on down/up and it would
28240             prematurely release our menu capture
28241
28242 2006-03-17  Jackson Harper  <jackson@ximian.com>
28243
28244         * KeyboardLayouts.cs: Add the czech layouts.
28245
28246 2006-03-16  Jackson Harper  <jackson@ximian.com>
28247
28248         * Control.cs: Use the viewport space when sizing not the controls
28249         client size, so things like ScrollableControl that effect the
28250         viewport size (when scrollbars are added) are computed correctly.
28251         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
28252         of ManagerEntrys.
28253         - Handle creating BindingManagers for null data sources.
28254         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
28255         source, otherwise when rows are added they are added to the 'fake'
28256         datasource and we will crash when trying to set the position in
28257         those rows.
28258         - Use Implicit scrollbars on the datagrid so they arent
28259         selectable.
28260         
28261 2006-03-16  Jackson Harper  <jackson@ximian.com>
28262
28263         * Binding.cs:
28264         * InternalWindowManager.cs:
28265         * MdiWindowManager.cs:
28266         * X11Keyboard.cs: I really want Mike to love me again (fix
28267         compiler warnings).
28268
28269 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
28270
28271         * DataGrid.cs:
28272           - OnMouseDown: Switch to editing mode when clicking on the cell
28273                          even if we're clicking on the cell that's currently 
28274                          selected
28275           - ProcessGridKey: Left/Right now wrap like MS.Net does
28276           - ProcessGridKey: Tab now knows to add a new row when tab is
28277                             pressed in the cell of the last column of the 
28278                             last row
28279           - ProcessGridKey: Enter now adds another row  if pressed in the last
28280                             row and selectes the new row, same column cell
28281           - ProcessGridKey: Home/End navigate columns, not rows, like 
28282                             originally implemented
28283           - Broke ProcessKeyPreview code out into an extra Internal method
28284             so it can be called from the edit code
28285         * DataGridTextBox.cs (ProcessKeyMessage):
28286           - Switched to accept Tab keypresses
28287           - Added F2 handling to allow jumping to the end of the edited cell
28288           - Added logic to allow moving caret left/right inside edited cell
28289             and making the edited cell jump when the caret hits cell borders
28290           - Tab and Enter are now passed to the datagrid after being handled
28291         * TextBoxBase.cs:
28292           - Removed capture code now that Control handles it
28293           - set_SelectionStart now ensures caret is visible
28294
28295 2006-03-16  Jackson Harper  <jackson@ximian.com>
28296
28297         * TrackBar.cs: Debackwards the increment/decrement for handling
28298         mouse clicks on the bar with vertical trackbars.
28299         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
28300         bottom to match MS.
28301
28302 2006-03-16  Mike Kestner  <mkestner@novell.com>
28303
28304         * ListView.cs: make shift/ctrl keyboard and mouse selection 
28305         consistent with the MS control. Fix a bug in
28306         SelectedListViewItemCollection.Clear that was pissing me off for the
28307         better part of a day because the collection was being altered
28308         underneath us as we walked the list.
28309
28310 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
28311
28312         * Control.cs: Not sure how we could miss this so long, but it seems
28313           that MS.Net has Capture set all the way from before calling 
28314           OnMouseDown through sending the mouse events until after
28315           OnMouseUp. This will fix DataGrid's selection being set to end
28316           at the location of the MouseUp.
28317
28318 2006-03-15  Jackson Harper  <jackson@ximian.com>
28319
28320         * BindingContext.cs: Check the binding after its added so that it
28321           can initialize the binding managers and hookup to events.
28322         * Binding.cs: Data members seem to sometimes include rows/cols in
28323           the format Row.Column we now take this into account.
28324           - Hookup to the position changed event so we can update the
28325           control when the position has changed in the data set.
28326         * CurrencyManager.cs: Take into account the row/col naming
28327           convention when creating dataset tables.
28328         * BindingContext.cs: Using a newer better way of storing
28329           datasource/datamember pairs.  Hopefully this better matches MS for
28330           looking up binding managers.
28331
28332
28333 2006-03-15  Jackson Harper  <jackson@ximian.com>
28334
28335         * BindingContext.cs: The currency manager needs the data member
28336         name, if the member is a data set we use the name to find the
28337         correct table.
28338         * CurrencyManager.cs: When creating the list prefer an IList over
28339         an IListSource.
28340         - Attempt to create a DataTable from a DataSet (TODO: might need
28341         some better error checking here, although MS doesn't seem to have much)
28342         - If we have a DataTable create a view and use it as our list.
28343
28344 2006-03-15  Mike Kestner  <mkestner@novell.com>
28345
28346         * ListView.cs: keep a matrix of the icon mode layout to facilitate
28347         keyboard navigation. Support Up/Down/Left/Right selection correctly
28348         for all 4 View modes.
28349         * ListViewItem.cs: add internal row/col fields for icon layouts.
28350
28351 2006-03-15  Jackson Harper  <jackson@ximian.com>
28352
28353         * TabControl.cs: Redraw the tabs when we resize so their newly
28354         calculated sizes are drawn on screen.
28355         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
28356         composite characters.
28357         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
28358         - filter events so that composite characters can be created
28359         patches by peter
28360         * X11Structs.cs: Add XIMProperties enum.
28361
28362 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
28363
28364         * Control.cs (BringToFront, SendToBack): Don't use window or handle
28365           unless it's created
28366
28367 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
28368
28369         * Control.cs (PerformLayout): We don't need to consider visiblity
28370           for anchoring, only for docking. This fixes 'whacky' alignment
28371           in listbox and other controls that use implicit scrollbars after
28372           the previous PerformLayout patch
28373         * ListBox.cs: Switched to use implicit scrollbars
28374           
28375 2006-03-14  Mike Kestner  <mkestner@novell.com>
28376
28377         * ToolBar.cs: 
28378         * VScrollBar.cs:
28379         - chain up the "new event" overrides to base and use
28380         OnEvent to raise them.  Part of fix for bug #76509.
28381
28382 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
28383
28384         * FileDialog.cs: Do not select an item in the parent directory
28385           on backspace
28386
28387 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
28388
28389         * Control.cs (PerformLayout): It would seem that we considered
28390           invisible windows for our layout. Not quite the right thing
28391           to do. Now we don't any longer, thereby fixing bug #76889.
28392
28393 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
28394
28395         * Control.cs (CanFocus): I goofed. A control can have focus 
28396           even though it's not selectable. Made it match MS docs.
28397
28398 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
28399
28400         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
28401           center by default (fixes #76895)
28402         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
28403           all uses of Border3DSides.All with the explicit ORd together
28404           Left|Right|Top|Bottom because I assume that nobody was aware 
28405           that All also implies a center fill. Most places I checked had
28406           a fill right above.
28407         * ProgressBarStyle.cs: Added
28408
28409 2006-03-13  Mike Kestner  <mkestner@novell.com>
28410
28411         * ListView.cs: fix breakage in drag shadow header positioning 
28412         from Peter's csc compilation fix.
28413
28414 2006-03-13  Mike Kestner  <mkestner@novell.com>
28415
28416         * ListView.cs: fix NRE produced by backspacing twice in a focused
28417         FileDialog.
28418
28419 2006-03-13  Mike Kestner  <mkestner@novell.com>
28420
28421         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
28422
28423 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
28424
28425         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
28426           be changed
28427         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
28428           the allowed size before making programmatic size changes
28429
28430 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
28431
28432         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
28433           set, metacity is broken and will still use the emty sizes in 
28434           the struct. (Fix for #77089)
28435
28436 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
28437
28438         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
28439           WindowExStyles and marked both enums as Flags
28440         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
28441           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
28442           to match WindowStyles split
28443         * XplatUIX11.cs:
28444           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
28445           - Updated to match WindowStyles split
28446         * XplatUIWin32.cs:
28447           - Fixed FosterParent creation, was using ExStyle on the Style field
28448             (This should help with Popup focus issues)
28449           - Updated to match WindowStyles split
28450
28451 2006-03-13  Jackson Harper  <jackson@ximian.com>
28452
28453         * MdiWindowManager.cs: Use the system menu height. Fixes some
28454         strange sizing issues.
28455
28456 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
28457
28458         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
28459         * TextBoxBase.cs:
28460           - Scroll to caret after inserting text (#77672)
28461           - Make scroll range one pixel higher, fixes off-by-one error (and
28462             makes underlines visible on the last line)
28463
28464 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
28465
28466         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
28467           the keyboard state from being stuck with keys in 'pressed' state when
28468           focus is switched away via keyboard
28469         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
28470           reset the keyboard if no X11 KeyUp events are expected to come
28471         * X11Structs.cs: Switched type of Visible to bool to match driver
28472
28473 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
28474
28475         * TextControl.cs:
28476           - Switched caret to be just 1 pixel wide, matches MS and looks less
28477             clunky
28478           - Moved caret display 1 pixel down from the top of the control
28479             to improve view
28480           - InsertCharAtCharet: Update the selection start if moving the caret
28481             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
28482           - No longer always creating the caret when the caret methods are
28483             called. Only the actual ShowCaret/HideCaret will do that now
28484           - Only setting caret visible if the owner control has focus
28485           - UpdateView: Added invalidation-shortcut logic for center and right 
28486             aligned text. Previously we'd update all according to the left
28487             logic which caused drawing errors. Also fixed height of invalidated
28488             areas, now properly invalidating the whole area (was off-by-one)
28489           - owner_HandleCreated: Always generate the document when the
28490             handle is created; this ensures that 
28491         * TextBoxBase.cs:
28492           - Fixed situation where caret would disappear under the right
28493             window border, also improved scrolling behaviour on left-
28494             aligned textboxes
28495           - Fixed right-aligned textboxes to have a border to the
28496             right instead of the caret being under the right border
28497         * XplatUIX11.cs:
28498           - Switched from 'nested' to simple visible/not visible tracking 
28499             for caret (part of fix for #77671)
28500           - No longer passing through translated FocusIn/FocusOut messages
28501             since we were notifying too often and the wrong windows. Instead
28502             we just notify our focussed window of receiving or loosing focus
28503         * XplatUIWin32.cs: Switched from 'nested' show/hide 
28504           counting for caret to simple visible yes/no behaviour (part of 
28505           fix for #77671)
28506
28507 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
28508
28509         * Mime.cs: Remove debug code...
28510
28511 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
28512
28513         * MimeGenerated.cs: Removed
28514         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
28515           and subclasses) from /usr/(local/)share/mime and
28516           $HOME/.local/share/mime.
28517
28518 2006-03-10  Jackson Harper  <jackson@ximian.com>
28519
28520         * MdiWindowManager.cs: Recalc the NC area when a window is
28521         maximized/restored so that the menu area is drawn on forms that
28522         don't have a menu.
28523
28524 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28525
28526         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
28527           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
28528           us to force a WM_NCCALCRESIZE message being sent. This is needed
28529           for MDI maximizing.
28530
28531 2006-03-10  Jackson Harper  <jackson@ximian.com>
28532
28533         * Form.cs: We need to use the ActiveMenu when calculating menu
28534         height.
28535         - Fix nullref when the window manager hasn't been created yet.
28536         * Control.cs: Fix nullref when we try to bring a control to the
28537         front that has no parent.
28538         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
28539         height.
28540         - Add a dummy item to the maximized menu so it always has the
28541         correct height. Otherwise when there are no menus we don't get our
28542         icon and buttons.
28543         
28544
28545 2006-03-10  Jackson Harper  <jackson@ximian.com>
28546
28547         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
28548         stuff.
28549         * Form.cs: Make the window_state internal so the window managers
28550         can track it.
28551         - When an MDI child is maximized let its window manager create the
28552         main menu (so it can add its icon).
28553         - Notify the window managers of state changes
28554         - Let the window manager paint its buttons and handle button
28555         clicks on the menu when it is maximized.
28556         * InternalWindowManager.cs: Move the prev_bounds into the mdi
28557         window manager, since tool windows don't use it, only mdi windows.
28558         - Tell the main form that we don't want it to handle NCPAINT
28559         itself to avoid extra painting.
28560         - Handle clicks on a maximized windows menu.
28561         - Handle window state changes
28562         - Handle minimize/maximize clicks correctly by setting the window state.
28563         * MdiWindowManager.cs: Add an icon menu that (the menu you get
28564         when clicking on the forms icon).
28565         - New method to create a forms maximized menu. This is its normal
28566         menu + an icon.
28567         - Handle window state changes.
28568         - Handle sizing of maximized windows.  Maximized windows are just
28569         drawn bigger then the parent visible area. All controls are still
28570         there, they are just outside the visible area (this matches windows).
28571         * MdiClient.cs: No scrollbars when a child window is maximized.
28572         - Let the children windows figure out how big they should be when
28573         sizing maximized windows.
28574         - Implement a version of ArrangeIconicWindows somewhat similar to
28575         Windows version.  There are some little differences, but I don't
28576         think any app will rely on the layout of minimized mdi windows.
28577
28578 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28579
28580         * Padding.cs: Several fixes to allow compiling with csc 2.0
28581
28582 2006-03-09  Jackson Harper  <jackson@ximian.com>
28583
28584         * Menu.cs:
28585         * MenuItem.cs: Cheap hack so we can add items to the list without
28586         the events being raised.  This allows adding mdi items during
28587         drawing. TODO: Should probably find a better time to add the items.
28588
28589 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28590
28591         * ThemeWin32Classic.cs:
28592           - CheckBox_DrawText: Added logic to not wrap if not enough space
28593             is available (Fix for bug #77727)
28594           - RadioButton_DrawText: Added logic not to wrap if not enough
28595             space is available (Fix for bug #77727). Also removed some
28596             duplicate code, DrawString always drawing the regular text
28597             before hitting the if statement.
28598
28599 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
28600
28601         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
28602
28603 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28604
28605         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
28606         * ContainerControl.cs: Partial implementation of some 2.0 scaling
28607           methods. Moved the new 2.0 properties into alphabetical order with
28608           other properties and added MonoTODO tags
28609
28610 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
28611
28612         * AutoScaleMode.cs: Added. Fix build.
28613
28614 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
28615
28616         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
28617           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
28618           and was requiring premature handle creation for calls from above
28619         * Form.cs, Control.cs: Removed handle arguments from calls to
28620           CalculateClientRect()
28621
28622 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
28623
28624         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
28625           drag_column.column_rect is MarshalByRef and can't be used that way
28626
28627 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
28628
28629         * AxHost.cs: Added deserialization constructor for 
28630           AxHost+State (fixes 77743)
28631
28632 2006-03-09  Mike Kestner  <mkestner@novell.com>
28633
28634         * ListView.cs: 
28635         - Added column drag reordering for details view.
28636         - fixed behavior when mouse is dragged off column and
28637         AllowColumnReorder is false.
28638         * ColumnHeader.cs: clone the format too in Clone.
28639         * Theme.cs: add DrawListViewHeaderDragDetails method.
28640         * ThemeWin32Classic.cs:
28641         - impl new method for drawing drag column shadows and targets.
28642         - support column offset for details mode in DrawListViewItem.
28643
28644 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
28645
28646         * TextControl.cs: Reset the char_count when the document is cleared
28647           (Fixes bug reported on mono-winforms mailing list)
28648
28649 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
28650
28651         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
28652           of calling base we simply process the key ourselves, since both
28653           DefWindowProc and the handled method would set m.Result. 
28654           (Fixes #77732)
28655
28656 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
28657
28658         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
28659           method also moves the window; instead implemented a copy of
28660           Control.ScaleCore (Part of fix for #77456)
28661         * TextBoxBase.cs: 
28662           - Created new CreateGraphicsInternal method to allow providing
28663             a graphics context when no handle is created without triggering
28664             handle creation. (Part of fix for #77456)
28665           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
28666         * TextControl.cs: 
28667           - Switched Constructor to require TextBoxBase instead of Control (to
28668             allow uncast access to CreateGraphicsInternal)
28669           - Safeguarded use of owner.Handle property. No longer accessing it
28670             unless the handle is already created.
28671           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
28672           - Now triggering a recalc when owning control becomes visible
28673         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
28674           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
28675           premature handle creation (Part of fix for #77456)
28676         * Control.cs:
28677           - We now only destroy our double-buffering buffers when the
28678             control is resized or disposed, but not when visibility
28679             changes. (The code even re-created them twice every time)
28680           - Now requiring a redraw of the buffer on visibility changes
28681             (fixes bug 77654 part 2)
28682           - Not passing OnParentVisibleChanged up unless the control
28683             is visible
28684           - CanFocus: Fixed to match MS documentation
28685           - Focus: Fixed to return actual focus state and to check if
28686             setting focus is legal before setting it
28687
28688 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
28689
28690         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
28691           when to draw focus rectangle by looking at parent focus and
28692           selected state instead. This fixes TabPages on Linux sometimes
28693           having none or multiple focus rectangles.
28694         * XplatUIX11.cs (SetFocus): 
28695           - Don't set the focus if the same window already has focus
28696           - Use SendMessage instead of PostMessage (like it's Win32
28697             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
28698             to match MS behaviour
28699         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
28700           are not selectable.
28701
28702 2006-03-07  Jackson Harper  <jackson@ximian.com>
28703
28704         * PictureBox.cs: Revert line I accidently committed last week.
28705
28706 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
28707
28708         * Control.cs: 
28709           - Added new IsRecreating and ParentIsRecreating properties to
28710             allow testing if RecreateHandle has been called on ourselves
28711             or one of our parents
28712           - WndProc(WM_DESTROY): If our control handle is being recreated
28713             we immediately need to create the handle when receiving the
28714             destroy, that way our child windows find a valid parent handle
28715             when they themselves are being recreated upon WM_DESTROY receipt
28716             (fix for bug #77654 part 1)
28717         * XplatUIX11.cs:
28718           - DestroyWindow: WM_DESTROY must be sent to our own window before
28719             notifying any child windows. MS documents that child windows
28720             are still valid when WM_DESTROY is received. (Control now relies on
28721             this behaviour)
28722           - Added some fine-grain debug options
28723
28724 2006-03-06  Jackson Harper  <jackson@ximian.com>
28725
28726         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
28727         box and base calculations off this.
28728         * MdiChildContext.cs:
28729         * MdiWindowManager.cs: Don't need to ensure scrollbars here
28730         anymore.
28731         
28732 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
28733
28734         * Splitter.cs: In situations where the affected control is added
28735           to the parent's control list after the splitter, we would not
28736           populate affected. Now we try populating it on mousedown, if
28737           it's not already set, and force it to be re-set whenever our
28738           parent changes.
28739
28740 2006-03-03  Matt Hargett  <matt@use.net>
28741
28742         * Control.cs: implement Control.Padding
28743         * Padding.cs: -Padding.All returns -1 when constructing with the
28744         implicit default ctor
28745         -Padding.ToString() matches MS.NET
28746         * ContainerControl.cs: implement
28747         ContainerControl.AutoScaleDimensions
28748         * ListControl.cs: implement ListControl.FormattingEnabled
28749         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
28750         * ButtonBase.cs:
28751         * TabPage.cs: Implement UseVisualStyleBackColor.
28752         * PictureBox.cs: Implement PictureBox.InitialImage.
28753
28754 2006-03-03  Mike Kestner  <mkestner@novell.com>
28755
28756         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
28757         event declarations to proxy to base event.
28758         * ListViewItem.cs: update to use ItemControl.
28759         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
28760         * ThemeWin32Classic.cs: update to new ListView theme API and fix
28761         column header label rendering for 0 width columns.
28762
28763 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
28764
28765         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
28766           that causes the control to be created. Fixes #77476.
28767
28768 2006-03-02  Jackson Harper  <jackson@ximian.com>
28769
28770         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
28771         expose_pending.
28772
28773 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
28774
28775         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
28776           passed in for the EventArgs (fixes #77690)
28777
28778 2006-03-01  Jackson Harper  <jackson@ximian.com>
28779
28780         * ScrollBar.cs: Refresh afterbeing resized.
28781
28782 2006-02-28  Mike Kestner  <mkestner@novell.com>
28783
28784         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
28785         Clean up a tracker compile warning.
28786         * MenuItem.cs: add internal PerformPopup method.
28787         [Fixes #77457]
28788
28789 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
28790
28791         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
28792           implicit expose) when the text is set to null
28793
28794 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
28795
28796         * RichTextBox.cs (FlushText): When newline is true, we always
28797           need to split the line, even if no text is on it and we may
28798           never eat newlines. (Fixes #77669)
28799
28800 2006-02-28  Mike Kestner  <mkestner@novell.com>
28801
28802         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
28803         and set Selected instead.
28804         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
28805         collections.
28806
28807 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
28808
28809         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
28810
28811 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
28812
28813         * FontDialog.cs:
28814           - Got rid of the panel. All controls are now directly added to
28815             the dialog form
28816           - It is now possible to set a font with the Font property
28817           - MinSize and MaxSize property do now what they should
28818           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
28819           - Searching and selecting a font with the font textbox works now,
28820             the same applies to the style and size textbox
28821           - Draw the correct 3D border in the example panel
28822           - Fixed a little mem leak (unused fonts didn't get disposed)
28823           - Many other internal updates/rewrites...
28824           - Fix typo
28825
28826 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
28827
28828         * TextControl.cs: 
28829           - InsertRTFFromStream: Added 'number of characters inserted' argument
28830           - set_SelectedRTF: Now using the number of characters to calculate
28831             the new location for the selection and cursor (x/y cannot be used
28832             due to potentially already wrapped text)
28833
28834 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
28835
28836         * TextControl.cs: Added property and implemented means to allow 
28837           disabling recalculation of a document (can be used to speed up
28838           multiple inserts and is needed to make RTF inserts predictable, see
28839           bug #77659)
28840         * RichTextBox.cs: Using the new NoRecalc property of Document to
28841           keep x/y insert locations predictable. Also makes it faster inserting
28842           large chunks of RTF
28843
28844 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
28845
28846         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
28847           it's easier for a child control to handle the other messages without
28848           having to duplicate the special functionality
28849         * TextBoxBase.cs
28850           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
28851             code to handle processing the key ourselves, in order to get 
28852             access to the result of KeyEventArgs.Handled. We now only call 
28853             ProcessKey if they key hasn't been handled already. Fixes #77526.
28854           - set_Text: If null or empty string is given, just clear the 
28855             document. Fixes part of #77526
28856
28857 2006-02-27  Jackson Harper  <jackson@ximian.com>
28858
28859         * SizeGrip.cs: Paint the background color before painting the grip
28860         so things look right.
28861         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
28862
28863 2006-02-27  Mike Kestner  <mkestner@novell.com>
28864
28865         * ListView.cs:
28866           - Restructure layout and invalidation model to remove a ton of
28867           flicker from the control and speed up performance in general.
28868           - Add manual column resize, flickers like crazy, but I already have
28869           some ideas on how I'll fix that. (#76822)
28870           - Merge the three Icon-based views into a single layout method.
28871           - Move item selection interaction logic from the item since 
28872           interaction with the collections is more appropriate to the view.
28873           - Deselection on non-item clicks.
28874         * ListViewItem.cs:
28875           - Encapsulate most of the layout. Add some internal props to trigger
28876           layout.  Move to a model where Items invalidate themselves instead
28877           of just invalidating the whole control every time something changes.
28878           - Invalidate on Text/Caption changes.
28879           - switch to an offset based layout model to avoid having to absolute
28880           position every element on item moves.
28881           - correct checkbox layout to conform to MS layout.
28882         * ThemeWin32Classic.cs:
28883           - refactor some column header drawing code.
28884           - fix string justification for column headers (#76821)
28885           - make SmallIcon labels top justified for compat with MS impl.
28886         * ThemeClearlooks.cs:
28887           - adjust to new ListViewItem internal checkbox bounds api.
28888
28889 2006-02-27  Jackson Harper  <jackson@ximian.com>
28890
28891         * Control.cs:  Change where implicit controls fall in the zorder.
28892         They are now on top of all children.
28893         - Synced AddImplicit code with Add
28894         - Removed unused enumerator.
28895         * SizeGrip.cs: Remove the TODO as its been TODONE.
28896
28897 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
28898
28899         * TextControl.cs(Insert): Combine the last lines unless the insertion
28900           string ends with \n\n, otherwise we leave one line too many (Fixes
28901           something I noticed with the testapp for #77526; the bug itself was
28902           already fixed in the previous checkin)
28903
28904 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
28905
28906         * RichTextBox.cs:
28907           - SelectionColor and SelectionFont methods no longer set absolute
28908             styles. Instead, the keep font or color respectively (This 
28909             resolves a long-standing FIXME in the code)
28910           - When flushing RTF text, the insert code now considers text trailing
28911             behind the insertion point (Fixes the bug where when replacing
28912             the selected text via SelectedRTF the remainder of the line behind 
28913             the selection would stay on the first insertion line)
28914         * TextBoxBase.cs:
28915           - AppendText now updates the selection points after inserting text
28916           - AppendText now ensures that the last tag (sometimes 0-length) of
28917             the document is used for the style information (Fixes part of 
28918             bug #77220)
28919         * TextControl.cs:
28920           - Created new FontDefiniton class to allow describing partial style
28921             changes
28922           - StreamLine() now takes a lines argument, to allow it to decide
28923             whether an encountered zero-length tag is the last in the document
28924             (which must be kept to not loose the font/color contained in it,
28925             for later appends)
28926           - Created Combine() and Split() methods for Marker structs, to 
28927             support marker updates due to reformatted documents (soft line
28928             wraps)
28929           - Implemented Document.CaretTag setter
28930           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
28931             of the last line (Not the cause, but also exposed by bug #77220)
28932           - Added LineTag argument to InsertString method, to allow callers
28933             to force a certain tag to be used (required to force use of the
28934             trailing zero-length tag of a document)
28935           - Now updating markers in Combine(), to avoid stale tag markers
28936           - Added some method descriptions to aid maintenance
28937           - Implemented new FormatText concept, allowing additive/subtractive
28938             formatting by only specifying the components that are to be 
28939             changed. This was needed for resolving the RTB.SelectedColor/
28940             RTB.SelectedFont fixmes
28941           - Added Break() support method to allow breaking up linetags (used
28942             for partial formatting)
28943           - Added GenerateTextFormat() method. It is used for partial 
28944             formatting and allows to generate a full font/color from given
28945             attributes and an existing tag.
28946
28947 2006-02-26  Jackson Harper  <jackson@ximian.com>
28948
28949         * XplatUIX11.cs:  Use the correct caption height.
28950         - Translate hittest coordinates to screen coords to match MS.
28951         * XplatUIWin32.cs: When we create MDI windows we need to reset
28952         some of the style flags, so we get a nice blank window, and can
28953         draw all the decorations ourselves.
28954         - Set a clipping rectangle on the non client paint event, the
28955         window manager drawing code needs one.
28956         * Form.cs: The window manager needs to know when the window state
28957         has been updated.
28958         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
28959         don't need to factor in border and title sizes in these
28960         methods. TODO: Remove the args and fix the call points.
28961         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
28962         properly.
28963         - Let the driver set the cursors.
28964         - Improve active window handling
28965         - Correct sizes for title bars and buttons.
28966         - Match MS drawing better
28967         * MdiWindowManager.cs: We don't need to handle border style
28968         updates specially anymore.
28969         - Check for scrollbars when windows are done moving
28970         - Handle Active properly.
28971         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
28972         correctly. I am spewing the exception though, so we don't hide the
28973         bugs.
28974         
28975 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
28976
28977         * DataGridViewRowPostPaintEventArgs.cs,
28978           DataGridViewCellPaintingEventArgs.cs,
28979           DataGridViewRowCollection.cs,
28980           DataGridViewRowPrePaintEventArgs.cs,
28981           DataGridViewCell.cs: Clear a few warnings and implement a few
28982           exceptions that should be thrown.
28983
28984 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
28985
28986         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
28987           'inheriting' our parent's (non-default) cursor. (Part of
28988            the fix for #77479)
28989
28990 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
28991
28992         * XplatUIX11.cs: Fixed cast to make csc happy
28993
28994 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
28995
28996         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
28997           it's for the client area (part of fix for #77479 and needed
28998           for MDI window cursor handling)
28999         * XplatUIX11.cs
29000           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
29001             the appropriate default cursors and also passing the message
29002             up the parent chain 
29003           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
29004             for non-client areas
29005
29006 2006-02-15  Jackson Harper  <jackson@ximian.com>
29007
29008         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
29009         is a real MDI window
29010
29011 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
29012
29013         * X11DesktopColors.cs: Instead of checking the desktop session
29014           string for "KDE" check if it starts with "KDE"
29015
29016 2006-02-10  Jackson Harper  <jackson@ximian.com>
29017
29018         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
29019         systems).
29020
29021 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
29022
29023         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
29024           errors
29025         * ColorDialog.cs:
29026           - Got rid of the panel. All controls are now directly added to
29027             the dialog form
29028           - Changed to mono coding style
29029
29030 2006-02-10  Jackson Harper  <jackson@ximian.com>
29031
29032         * InternalWindowManager.cs: We don't need the set visibility to
29033         false hack anymore now that peter has written beautiful shutdown
29034         code.
29035
29036 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
29037
29038         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
29039           where already explicitly destroyed
29040
29041 2006-02-10  Jackson Harper  <jackson@ximian.com>
29042
29043         * MdiClient.cs: Handle the case where windows are too high or to
29044         the left and we need scrollbars.
29045
29046 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
29047
29048         * MimeIcon.cs: Added some icons
29049         * FileDialog.cs:
29050           - Fixed bug #77477
29051           - Got rid of the panel. All controls are now directly added to
29052             the dialog form
29053           - Changed to mono coding style
29054           - On Linux "My Computer" and "My Network" will now show some
29055             more usefull information. A new class, MasterMount, gathers
29056             this information from /proc/mount. Updated MWFFileView to make
29057             use of this information
29058           - Fixed a bug that caused FileDialog to crash when
29059             ".recently_used" file had a zero size
29060           - FilterIndex does now what it should
29061           - Some Refactoring
29062         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
29063             FileDialog changes
29064
29065 2006-02-09  Jackson Harper  <jackson@ximian.com>
29066
29067         * ComboBox.cs: Don't touch if null.
29068
29069 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
29070
29071         * Cursor.cs: 64bit safeness fix
29072         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
29073
29074 2006-02-09  Jackson Harper  <jackson@ximian.com>
29075
29076         * Form.cs: If a form is made into an MDI form update the styles so
29077         all the props can get set correctly.
29078         - Kill the mdi_container when we dont need it anymore.
29079         * InternalWindowManager.cs: Add missing NOT
29080
29081 2006-02-08  Jackson Harper  <jackson@ximian.com>
29082
29083         * InternalWindowManager.cs: Respek clipping when drawing MDi
29084         decorations.
29085
29086 2006-02-08  Jackson Harper  <jackson@ximian.com>
29087
29088         * Hwnd.cs: Add bits to track non client expose events.
29089         * XplatUIX11.cs: Track non client expose events on the hwnd. This
29090         gives us a proper invalid rect and will allow for some nice
29091         optimizations with NC client drawing
29092         - MDI windows are children windows, so move their style handling
29093         into the child window block.
29094         * InternalWindowManager.cs: Remove a state reset that was
29095         getting invoked at the wrong time. Fixes managed windows getting
29096         into a 'stuck' captured state.
29097
29098 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
29099
29100         * TextControl.cs (Document.ctor): Now initializing 
29101           selection_anchor. Fixes #77493
29102
29103 2006-02-07  Jackson Harper  <jackson@ximian.com>
29104
29105         * TrackBar.cs: The increment/decrements were backwards.
29106
29107 2006-02-07  Mike Kestner  <mkestner@novell.com>
29108
29109         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
29110         to the instance itself.
29111
29112 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
29113
29114         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
29115           on ulongs and pointers, the size differs between 32bit and 64bit
29116           systems. 
29117
29118 2006-02-07  Mike Kestner  <mkestner@novell.com>
29119
29120         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
29121         for 64 bit platforms to work around a metacity bug. 
29122
29123 2006-02-07  Jackson Harper  <jackson@ximian.com>
29124
29125         * TrackBar.cs: Process the input keys we need, and hookup to
29126         KeyDown instead of using WndProc, so we get key messages.
29127
29128 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
29129
29130         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
29131           machine we're on. 
29132         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
29133           we need to translate the XdndVersion atoms array before sending it
29134
29135 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
29136
29137         * XplatUIX11.cs: 
29138           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
29139             number of bits for the property, not the number of bytes. The
29140             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
29141             but would not crash since it specified 8 bits instead of 4 bits)
29142           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
29143             defined as XID -> long in the C headers)
29144           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
29145             references since those are now IntPtr to begin with
29146           - Switched all Atom.XXX 'int' casts to IntPtr casts
29147           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
29148           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
29149           - Added XChangeActivePointerGrab DllImport (for X11DnD)
29150         * X11Structs.cs:
29151           - Changed 'int' type for Atoms in XEvent structures to IntPtr
29152           - Changed atom in HoverStruct to be IntPtr
29153         * X11DnD.cs:
29154           - Removed local DllImports, switched code to use those from XplatUIX11
29155           - Removed/fixed casts related to the switch of Atom to be a IntPtr
29156
29157 2006-02-06  Mike Kestner  <mkestner@novell.com>
29158
29159         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
29160         method signatures in the import region.  There may still be some
29161         lingering struct marshaling issues, as I didn't drill down into those.
29162         Yet.
29163
29164 2006-02-06  Jackson Harper  <jackson@ximian.com>
29165
29166         * ComboBox.cs: Dont manually set the top_item, this is computed
29167         when the scrollbar position is set.
29168
29169 2006-02-06  Mike Kestner  <mkestner@novell.com>
29170
29171         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
29172         startup crashes on amd64.  There's other fixes needed.  All pinvoke
29173         usage of Atom needs to be mapped to IntPtr for example.  And there are
29174         likely other int/long issues to be addressed.
29175
29176 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
29177
29178         * FileDialog.cs: One more...
29179
29180 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
29181
29182         * FileDialog.cs: Next try
29183
29184 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
29185
29186         * FileDialog.cs: First part of fix for #77464
29187
29188 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
29189
29190         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
29191           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
29192           AcceptButton border drawing.
29193
29194 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
29195
29196         * Form.cs: Moved positioning of form after auto scaling is applied,
29197           otherwise it would possibly use wrong form size.
29198
29199 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
29200
29201         * Control.cs (RecreateHandle): No need to re-create any child
29202           controls, the child windows will get destroyed automatically by
29203           the windowing system or driver, and re-created when the handle
29204           is being accessed the first time. Fixes #77456
29205         * Form.cs: No longer setting the form to closing if the handle is 
29206           being recreated. This seems like the right thing to do, don't
29207           have a bug or testcase for this, though.
29208
29209 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
29210
29211         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
29212           controls to avoid unwanted side effects
29213
29214 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
29215
29216         * Control.cs: 
29217           - ScaleCore needs to scale the bounds, not the ClientSize of the 
29218             control. Fixes #77416.
29219           - DefaultSize is 0,0 for control
29220         * TextBoxBase.cs: 
29221           - DefaultSize is 100, 20
29222           - SetBoundsCore: Now enforcing the height, no matter if the provided
29223             height is more or less than the preferred one, as long as AutoSize
29224             is on
29225         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
29226
29227 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
29228
29229         * Control.cs:
29230           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
29231             call unless both performLayout is true *and* we have a pending
29232             layout change
29233           - ResumeLayout: MS does not completely nest Suspend and Resume,
29234             they bottom out at 0, fixed our code to match that.
29235           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
29236             SetBoundsCore, we were updating even when we shouldn't. This fixes
29237             swf-anchors mis-anchoring when resizing the app fast and lots.
29238           - UpdateDistances: Now only setting the left and top distance if 
29239             we have a parent and are not suspended, this is based on
29240             a suggestion by Don Edvaldson in bug #77355.
29241           - OnVisibleChanged: Fixed logic when to create the control. We may
29242             not create the control if we have no parent or if it's not visible;
29243             switched to using Visible property instead of is_visible field 
29244             since the property also considers parent states. This fixes a bug
29245             when starting Paint.Net
29246
29247 2006-02-02  Jackson Harper  <jackson@ximian.com>
29248
29249         * Form.cs: If the forms handle hasn't been created yet don't call
29250         into xplatui to make it top most, just set the topmost flag on the
29251         form in CreateParams
29252         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
29253
29254 2006-02-01  Jackson Harper  <jackson@ximian.com>
29255
29256         * ScrollableControl.cs: Refactored the Recalculate method a
29257         little, this wasn't handling all the variants of bottom and right
29258         bars needed to be added and added/removed based on their
29259         counterparts being added/removed (which changes the drawable
29260         size). Also we special case client widths and heights of 0 and
29261         don't add the scrollbar for those.
29262
29263 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
29264
29265         * XplatUIX11.cs: 
29266           - Added method to get AbsoluteGeometry(); currently unused, but might
29267             be used in the future, if we try again to figure out toplevel
29268             coordinates with some more crappy window managers
29269           - Added FrameExtents() method to retrieve the WM set decoration size
29270           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
29271             to deal with at least KDE, FVWM and metacity (Fixes #77092)
29272         * Hwnd.cs: 
29273           - Added whacky_wm tracking var for metacity
29274           - Added logic to have default menu height if the actual menu height
29275             has not yet been calculated (part of fix for #77426)
29276         * Form.cs: Keep track whether client size has been set and re-set 
29277           it if a menu is added/removed afterwards (Fixes #77426)
29278
29279 2006-01-31  Jackson Harper  <jackson@ximian.com>
29280
29281         * Control.cs: When a new Site is set on the component attempt to
29282         pull the AmbientProperties from it.
29283
29284 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
29285
29286         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
29287           in the background of the owning form. Fixes #77332
29288
29289 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
29290
29291         * MimeIcon.cs: Fix for #77409
29292
29293 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
29294
29295         * XplatUIX11GTK.cs: Initial import
29296
29297 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
29298
29299         * FixedSizeTextBox: fixes class signature
29300
29301 2006-01-30  Jackson Harper  <jackson@ximian.com>
29302
29303         * FixedSizeTextBox.cs: New internal class that represents a
29304         textBox that will not be scaled.
29305         * TreeView.cs:
29306         * ComboBox.cs:
29307         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
29308         standard TextBox.
29309                 
29310 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
29311
29312         * XplatUIX11.cs: Retrieve default screen number instead of
29313           assuming 0. Attempted fix for #77318
29314
29315 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
29316
29317         * XplatUIWin32.cs: 
29318           - GetWindowPos: When a window is parented by FosterParent, use 
29319             the desktop instead of FosterParent as the base to get coordinates
29320           - CreateWindow: Don't make FosterParent the parent window for Popups
29321             if we don't want a taskbar entry, Popups automatically don't get one
29322         * Hwnd.cs: Need to call remove to actually remove the key from the
29323           hash table
29324
29325 2006-01-30  Mike Kestner  <mkestner@novell.com>
29326
29327         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
29328
29329 2006-01-30  Jackson Harper  <jackson@ximian.com>
29330
29331         * TreeView.cs:
29332         * TreeNode.cs: Raise events no matter how the treenode is
29333         checked. Patch by Don Edvalson.
29334
29335 2006-01-30  Jackson Harper  <jackson@ximian.com>
29336
29337         * TreeNode.cs: Signature fix.
29338
29339 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
29340
29341         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
29342
29343 2006-01-20  Mike Kestner  <mkestner@novell.com>
29344
29345         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
29346         event forwarding when menus are active.
29347         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
29348         Most of the patch is pdb's with a little rework.
29349
29350 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
29351
29352         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
29353           Removed GetMenuDC and ReleaseMenuDC methods; replaced
29354           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
29355         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
29356         * InternalWindowManager.cs: Added use of PaintEventStart/End to
29357           handling of WM_NCPAINT message, now passing the PaintEventArgs to
29358           the PaintWindowDecorations method
29359         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
29360         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
29361         * MenuAPI.cs: Made tracker window invisible
29362         * XplatUIWin32.cs:
29363           - Removed GetMenuDC and ReleaseMenuDC methods
29364           - Implemented the client=false path for PaintEventStart and
29365             PaintEventEnd
29366
29367 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
29368
29369         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
29370         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
29371           styles
29372         * Form.cs: 
29373           - MaximizeBox, MinimizeBox: Recreate the handle when setting
29374             the style
29375           - CreateParams: Reworked the styles to match MS look'n'feel,
29376             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
29377             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
29378
29379 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
29380
29381         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
29382           window is not mapped, since otherwise every form that's being 
29383           created is considered minimized, which is wrong.
29384         * Form.cs: Catching the exception and returning our internal value
29385           instead
29386
29387 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
29388
29389         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
29390           SetWindowMinMax() to have means to tell the driver about the minimum,
29391           maximum and maximized state window sizes. (Part of the fix for #76485)
29392         * Form.cs:
29393           - Implemented tracking of minimum and maximum window size, now calling
29394             new SetWindowMinMax() driver method to tell the driver (Part of the
29395             fix for #76485)
29396           - Finished handling of WM_GETMINMAXINFO method, now setting all values
29397             (Completes fix for #76485)
29398           - Calling new SetWindowMinMax driver method when the handle for a 
29399             form is created, to make sure the driver knows about it even if
29400             the values have been set before the window was created
29401           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
29402             to avoid messing up our anchoring calculations (partial fix
29403             for #77355)
29404         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
29405         * XplatUIX11.cs:
29406           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
29407           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
29408             (and presumably other freedesktop.org compliant WMs). Left the
29409             assumption unmapped=minimized, needed for SetVisible to work.
29410           - Now setting the window state when creating windows
29411           - Fixed SetVisible to consider/set the window state when mapping
29412             a Form. We cannot set the state before it's mapped, and we cannot
29413             use Form.WindowState once it's mapped (since it would ask the
29414             driver and get 'normal'. Therefore, we grab the state before
29415             mapping, map, and then set state.
29416           - Implmemented SetWindowMinMax method; Metacity does not seem to
29417             honor the ZoomHints, though.
29418         * XplatUIWin32.cs:
29419           - Removed MINMAXINFO (moved to XplatUIStructs)
29420           - Added SetWindowMinMax stub (on Win32 the only way to set that
29421             information is in response to the WM_GETMINMAXINFO message, which
29422             is handled in Form.cs)
29423           - Added logic to SetVisible to set the proper window state when a 
29424             form is made visible (fixes #75720)
29425
29426 2006-01-26  Jackson Harper  <jackson@ximian.com>
29427
29428         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
29429         same way we handle them with Invoke.
29430
29431 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
29432
29433         * Form.cs:
29434           - Added tracking of window state so CreateParams can return
29435             the appropriate style
29436           - Moved setting of WS_CAPTION style in CreateParams to allow
29437             styles without caption
29438         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
29439           control if the TextBox property is accessed. Fixes #77345
29440         * Control.cs:
29441           - get_Created: now uses is_disposed and is_created to determine
29442             return value (suggested by Jackson)
29443           - CreateHandle: No longer exits if the handle is being recreated
29444           - RecreateHandle: If the handle is not yet created call the 
29445             appropriate method to create either control or handle. If the
29446             control is already created CreateHandle will simply exit instead
29447             of just creating the handle
29448         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
29449           now SendMessage WM_DESTROY directly to the control when DestroyWindow
29450           is called.
29451         * XplatUIX11.cs: 
29452           - When DestroyWindow is called, instead of waiting for the 
29453             DestroyNotification from X11, we directly post it to the WndProc
29454             and immediately dispose the hwnd object.
29455             Same applies to DestroyChildWindows, and this obsoletes the
29456             expose_pending tracking. Contrary to Win32 behaviour we destroy our
29457             child windows before our own, to avoid X11 errors.
29458           - Removed the direct sending of WM_PAINT on UpdateWindow
29459         * XplatUIWin32.cs:
29460           - Reworked DoEvents and GetMessage to allow access to internal queue
29461             even when trying non-blocking access to the queue.  Fixes #77335. 
29462             Based on a patch suggestion by Don Edvalson. The new private
29463             GetMessage can now also be used as a backend for a PeekMessage
29464             frontend version.
29465         * XplatUI.cs: Improved debug output for CreateWindow
29466
29467 2006-01-25  Jackson Harper  <jackson@ximian.com>
29468
29469         * Help.cs: Allow param to be null. Patch by Don Edvalson.
29470
29471 2006-01-24  Jackson Harper  <jackson@ximian.com>
29472
29473         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
29474         when we have a MaxDropItems lower then the selected index.
29475
29476 2006-01-24  Jackson Harper  <jackson@ximian.com>
29477
29478         * Control.cs: Don't allow selection of non visible controls, allow
29479         selection of controls without parents.
29480
29481 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
29482
29483         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
29484         * DataGridDrawingLogic.cs: Add editing row only when is necessary
29485
29486 2006-01-23  Jackson Harper  <jackson@ximian.com>
29487
29488         * UpDownBase.cs: Make the textbox handle all the selection and
29489         tabbing. This fixes tabing to updown controls.
29490
29491 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
29492
29493         * TextBoxBase.cs: fixes exception thown the object was null
29494
29495 2006-01-23  Jackson Harper  <jackson@ximian.com>
29496
29497         * ButtonBase.cs: Just use the base CreateParams. They set
29498         visibility and enabled correctly.
29499         * ComboBox.cs:
29500         * TrackBar.cs:
29501         * MonthCalendar.cs: Lets let the base set as much of the
29502         createparams as possible so we don't have duplicate code all over
29503         the place.
29504
29505 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
29506
29507         * ThemeGtk.cs: Added TrackBar and some experimental code to
29508           get double buffering back
29509
29510 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
29511
29512         * DataGrid.cs: Allows row number set internally higher than the last
29513         when creating a new row. Restores the editing functionality.
29514
29515 2006-01-20  Mike Kestner  <mkestner@novell.com>
29516
29517         * MimeIcon.cs: delay Image creation until the icons are accessed
29518         instead of creating 190 scaled images on GnomeHandler startup.
29519
29520 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
29521
29522         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
29523           first call base before processing the event. Fixes #77279
29524
29525 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
29526
29527         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
29528           that the stride for the GDI bitmap would match the stride of
29529           a DIB or a Cursor.
29530
29531 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
29532
29533         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
29534
29535 2006-01-19  Jackson Harper  <jackson@ximian.com>
29536
29537         * ComboBox.cs: Hookup the text controls keydown event so we get
29538         those when the text control has the focus.
29539
29540 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
29541
29542         * Label.cs: Now using the base events instead of defining new ones;
29543           this allows us to just call the base properties without having to
29544           duplicate all base property logic 
29545
29546 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
29547
29548         * Label.cs: A label by default is not a tabstop (Fixes one of our
29549           failing nunit tests)
29550
29551 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
29552
29553         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
29554         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
29555
29556 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
29557
29558         * Cursor.cs: Reimplemented creating cursor bitmaps without using
29559           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
29560           This fixes #77218
29561         * XplatUIWin32.cs: 
29562           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
29563             constructor creates images that can't be saved. Part of the fix
29564             for #76103
29565           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
29566           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
29567             bug fix for handling window state in forms properly)
29568
29569 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29570
29571         * ThemeGtk.cs: Simplify ScrollBar drawing
29572
29573 2006-01-18  Jackson Harper  <jackson@ximian.com>
29574
29575         * Splitter.cs: Set the default dock style for the splitter control
29576         in the constructor.
29577
29578 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29579
29580         * ThemeGtk.cs: Corrected StateType and ShadowType for
29581           gtk_paint_box
29582
29583 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29584
29585         * Control.cs: Make use of Theme.DoubleBufferingSupported
29586         * ThemeGtk.cs:
29587           - Added drawing for flat style buttons
29588           - Added ScrollBar drawing
29589
29590 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29591
29592         * ThemeClearlooks.cs: Removed some unneeded code.
29593         * ThemeGtk.cs: First part of ThemeGtk enhancements.
29594
29595 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
29596
29597         * LinkLabel.cs: We need to update the hover drawing when
29598           leaving the control as well.
29599
29600 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
29601
29602         * DataGrid.cs: Clicking on non empty areas in the columns
29603            area was giving an exception
29604
29605 2006-01-17  Jackson Harper  <jackson@ximian.com>
29606
29607         * ThemeWin32Classic.cs:
29608         * ListView.cs: Do not draw/clip the headers when the header style
29609         is None.
29610
29611 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
29612
29613         * DataGrid.cs: Fixes 77260
29614         
29615 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
29616
29617         * DataGrid.cs: Clicking on a column on a empty grid was giving
29618           an exception
29619
29620 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
29621
29622         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
29623           or any keypress will crash the grid.
29624
29625 2006-01-17  Mike Kestner  <mkestner@novell.com>
29626
29627         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
29628         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
29629         invisible/previously-visible items.
29630         [Fixes #76909]
29631
29632 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
29633
29634         * ThemeClearlooks.cs:
29635         - Added CL_Draw_Button method; now other theme controls that are 
29636           not derived from button or do not have a button can draw buttons
29637           too
29638         - Updated ComboBox drawing
29639         - Beautified RadioButton drawing
29640         - Corrected drawing of bottom and left tabs
29641         - Beautified DateTimePicker and MonthCalendar
29642         - Added CPDrawButton and CPDrawRadioButton
29643
29644 2006-01-16  Jackson Harper  <jackson@ximian.com>
29645
29646         * ComboBox.cs: Set the initial value of the scrollbar to the
29647         current index. Reduce the numbers of refreshs and IndexOfs called.
29648
29649 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
29650
29651         * FileDialog.cs: When the file listview is focused hitting the
29652           backspace key moves the fileview to the parent directory
29653
29654 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
29655
29656         * Form.cs: 
29657           - Added RecreateHandle call when changing taskbar visibility to 
29658             trigger reparenting in Win32 driver (Fixes #75719)
29659           - If a window has minimize or maximize buttons, it cannot have
29660             a help button
29661         * XplatUIWin32.cs:
29662           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
29663             the toplevel form with FosterParent (A toolwindow not on the
29664             taskbar) (Fixes #75719)
29665           - Made FosterParent a toolwindow
29666
29667 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
29668
29669         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
29670
29671 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
29672
29673         * ToolTip.cs: If SetToolTip is called from a control and the mouse
29674           is currently over that control, make sure that tooltip_window.Text
29675           gets updated
29676
29677 2006-01-13  Mike Kestner  <mkestner@novell.com>
29678
29679         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
29680
29681 2006-01-13  Jackson Harper  <jackson@ximian.com>
29682
29683         * TreeView.cs: On MS GetNodeAt never actually factors in the X
29684         value passed.  Also redraw the selected node when we recieve
29685         focus, so tabbing between trees works correctly.
29686
29687 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
29688
29689         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
29690           ~/.gconf/%gconf-tree.xml, so use
29691           .gconf/desktop/gnome/interface/%gconf.xml
29692
29693 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
29694
29695         * TextControl.cs: Draw text in gray if control is disabled
29696
29697 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
29698
29699         * TreeView.cs: Draw the focus rectangle outside the highlight, to
29700           make sure it's always visible. Fixes #76680.
29701
29702 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
29703
29704         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
29705
29706 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
29707
29708         * PageSetupDialog.cs: Added.
29709         * PrintDialog.cs: Attributes.
29710         * PrintPreviewControl.cs: Updates.
29711         * PrintPreviewDialog.cs: Updates.
29712         
29713 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29714
29715         * Control.cs: Undid my selection check fix, since it's not needed
29716         * TextBoxBase.cs:
29717           - Now considering the presence of hscroll/vscroll when sizing
29718             vscroll/hscroll respectively. Fixed bug #77077
29719           - Added Left/Up/Down/Right to IsInputKey list to prevent
29720             ContainerControl from stealing them. This fixes what I broke
29721             with my last checkin.
29722
29723 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
29724
29725         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
29726           I finally understand how the property can be set without a setter :-)
29727
29728 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29729
29730         * Application.cs:
29731           - Switched RunLoop to use static Message.Create to create a 
29732             Message object
29733           - Added PreProcessMessage call in runloop for keyboard events; this
29734             is part of the fix for #77219, I overlooked this originally in the
29735             MSDN doc for PreProcessMessage
29736         * Control.cs:
29737           - Removed call to PreProcessMessage from handling of keyboard 
29738             messages; it's supposed to be done in the message pump
29739           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
29740             per MSDN documentation.
29741           - IsInputChar: All chars are input chars by default; removed the 
29742             parent calling chain, MS does not document that
29743           - PreProcessMessage: If IsInputChar is true, we want to return false
29744             to allow dispatching of the message
29745           - When selecting the next control, now also check that we're not
29746             selecting ourselves again and therefore return a false positive.
29747         * TextBoxBase.cs:
29748           - Tried to match return values for IsInputKey and ProcessDialogKey
29749             to what MS returns; moved processing of our special keys outside
29750             ProcessDialogKey since MS does not seem to return true on those.
29751           - Moved code that previously was in ProcessDialogKey into new private
29752             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
29753           - Reworked handling of WM_CHAR to not have to duplicate code from
29754             Control.cs anymore, instead we simply call down to base.
29755            
29756 2006-01-12  Jackson Harper  <jackson@ximian.com>
29757
29758         * ComboBox.cs: We always need to refresh the text area when
29759         EndUpdate is called. Fixes the combobox in the file dialog.
29760         * Control.cs: Don't create the creator_thread until the controls
29761         handle is created.  Also in InvokeRequired we check if the
29762         creator_thread is null. This gives the effect of InvokeRequired
29763         returning true if the controls handle is not created yet, and
29764         matches MS.
29765
29766 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29767
29768         * XplatUI.cs:
29769           - Added StartLoop() driver method. This is used to allow drivers to
29770             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
29771             loop for a particular thread
29772           - Added EndLoop() driver method. This is called once the message
29773             pump for the thread is shut down
29774           - Added SupportsTransparency method to allow the driver to indicate
29775             opacity support for windows
29776         * Form.cs:
29777           - Removed TODO attribute, completed AllowTransparency property
29778           - Added documented logic to Opacity
29779         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
29780           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
29781           versions of CompatibleTextRendering
29782         * X11Structs.cs: Added opacity atom to our atom enumeration
29783         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
29784           of a form might be set before it's reparented by the WM, and we need
29785           the opacity value without calling up to Form)
29786         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
29787           SupportsTransparency() driver methods
29788         * Application.cs: Now calling StartLoop and EndLoop driver methods
29789         * XplatUIX11.cs:
29790           - Added opacity atom registration
29791           - Added StartLoop()/EndLoop() methods. They're empty right now but
29792             will need to get implemented when we switch to a per-thread queue
29793           - Implemented SupportsTransparency() method
29794           - Implemented SetWindowTransparency() method
29795           - Added support for setting the opacity value when a window is
29796             reparented (since the opacity needs to be set on the WM frame)
29797         * XplatUIOSX.cs, XplatUIWin32.cs:
29798           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
29799
29800 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
29801
29802         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
29803
29804 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
29805
29806         * FileDialog.cs: Added ToolTip for MWFFileView
29807         * MimeIcon.cs: Rewrote GnomeHandler.
29808           - Get currently used gnome icon theme from
29809             ($HOME)/.gconf/%gconf-tree.xml
29810           - Make use of inherited icon themes
29811           - Support SVG icon themes like Tango via librsvg
29812
29813 2006-01-12  Miguel de Icaza  <miguel@novell.com>
29814
29815         Revert's Jackson's revert which broke 2.0 builds.   Fix both
29816         builds. 
29817         
29818         * Application.cs: Move the use_compatible_text_rendering outside
29819         the NET_2_0 define.  If we ever need to use the
29820         use_compatible_text_rendering on the individual controls they will
29821         access the variable from the common shared code paths.
29822
29823 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29824
29825         * XplatUI.cs:
29826           - Added more granular debug options
29827           - Added method to print both window text and id
29828           - Switched debug output to use new Window() debug method
29829           - Added IsEnabled() driver method
29830           - Added EnableWindow() driver method
29831         * Form.cs:
29832           - Removed end_modal; no longer needed, new loop handles termination
29833             via 'closing' variable
29834           - If form is modal, setting DialogResult will now initiate loop
29835             termination via 'closing' variable
29836           - Added support for is_enabled/WS_DISABLED to CreateParams
29837           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
29838             does all the work
29839           - Removed code that's now in RunLoop from ShowDialog()
29840           - Added various documented sanity checks to ShowDialog()
29841           - Added handling of WM_DESTROY message; we set 'closing' on getting
29842             the message to indicate the message pump to terminate
29843           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
29844             send by the Application.ExitThread method. (We send the message
29845             to destroy the window after all other events have been
29846             processed through the queue, instead of destroying the handle 
29847             directly)
29848           - Moved code from Close() method to WM_CLOSE handler; added logic
29849             to only send close-related events if the form is not displayed
29850             modal
29851         * Splitter.cs (..ctor): Fixed typo in resource name
29852         * Control.cs:
29853           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
29854             brush now
29855           - set_Cursor: Now only setting calling into XplatUI if the handle for
29856             the control is already created; this avoids implict handle creation
29857             or crashes if it's not created
29858           - set_Enabled: Now setting the enabled state via the new driver method
29859             instead of just tracking it
29860           - CreateParams: Added logic to set WS_DISABLED based on enabled state
29861           - CreateControl: Reordered event firing and method calls to more
29862             closely fire events in the order MS does. Now setting the
29863             enabled state in the driver when creating the control.
29864           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
29865             match MS order
29866         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
29867           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
29868         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
29869         * Hwnd.cs:
29870           - Added tracking of window enabled state (get_Enabled/set_Enabled)
29871           - Added EnabledHwnd property to easily allow a driver to find the
29872             handle of the first enabled window in the parent chain (this is
29873             used by drivers to pass up input events of disabled windows)
29874         * XplatUIDriver.cs: Added IsEnabled() method
29875         * Application.cs:
29876           - Removed crude and obsolete exiting tracking variable
29877           - Removed internal ModalRun(); replaced by RunLoop()
29878           - Implemented private CloseForms() method to allow closing all 
29879             windows owned by a particular (or all) threads
29880           - Exit() now properly closes all windows without forcing the message
29881             pump to quit
29882           - Removed obsolete InternalExit() method
29883           - Changed Run() methods to use new RunLoop() message pump
29884           - Implemented new RunLoop() method for both modal and non-modal forms
29885         * CommonDialog.cs:
29886           - get_CreateParams: Added setting of WS_DISABLED
29887           - Simplified ShowDialog(); now all the work is done in RunLoop(),
29888             invoked via Form.ShowDialog()
29889         * NativeWindow.cs: We don't remove the window from the collection when
29890           the handle is destroyed; there might still be messages for it in the
29891           queue (mainly the resulting WM_DESTROY); instead it will be removed
29892           when Control calls InvalidateHandle in the WM_DESTROY handler
29893         * XplatUIX11.cs:
29894           - CreateWindow: Added logic to handle the WS_DISABLED window style
29895           - EnableWindow: Implemented based on Hwnd.Enabled
29896           - GetMessage: Reset PostQuitState so the method can be called again
29897           - Implemented support for disabled windows (passing messages to the
29898             first enabled parent) in handling all input messages
29899           - Added optimizations for handling Expose events
29900           - Implemeted new driver method IsEnabled()
29901           - Now always resetting paint pending tracking vars when we start paint
29902           - Re-implemented UpdateWindow via just sending a WM_PAINT message
29903         * XplatUIOSX.cs: Added IsEnabled method stub
29904         * XplatUIWin32.cs: Implemented new IsEnabled() method
29905
29906 2006-01-11  Jackson Harper  <jackson@ximian.com>
29907
29908         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
29909         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
29910         variables a little.
29911         * ColorDialog.cs: Clear out the old form before adding the new
29912         panel.  
29913
29914 2006-01-11  Jackson Harper  <jackson@ximian.com>
29915
29916         * X11Dnd.cs: Make sure to add all the text formats when adding
29917         strings to the data object.
29918         * TreeNodeCollection.cs: When adding to a sorted tree we need to
29919         do some redrawing too.  Also change the UpdateNode to an
29920         UpdateBelow so the newly added node gets painted.
29921         
29922 2006-01-11  Miguel de Icaza  <miguel@novell.com>
29923
29924         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
29925         LinkLabel.cs, PropertyGrid.cs: Implement the
29926         UseCompatibleTextRendering property for 2.x
29927
29928         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
29929
29930 2006-01-11  Jackson Harper  <jackson@ximian.com>
29931
29932         * TreeView.cs: Use the property for setting the selected node so
29933         the correct events get raised.
29934         * TreeNode.cs: Update the tree when the fore/back colours of a
29935         node are set.
29936
29937 2006-01-10  Jackson Harper  <jackson@ximian.com>
29938
29939         * TreeView.cs: Allow setting SelectedNode to null.
29940
29941 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29942
29943         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
29944
29945 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29946
29947         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
29948
29949 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29950
29951         * PrintDialog.cs: Added attributes and set default property values.
29952
29953 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29954
29955         * PrintControllerWithStatusDialog.cs: 
29956         Added PrintControllerWithStatusDialog.
29957
29958 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29959
29960         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
29961         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
29962
29963 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29964
29965         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
29966
29967 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
29968
29969         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
29970         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
29971
29972 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
29973
29974         * MimeIcon.cs: Added internal class SVGUtil.
29975
29976 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
29977
29978         * FileDialog.cs: Don't crash if there are two files with the
29979           same name but different locations.
29980
29981 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
29982
29983         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
29984         dates across multiple month grids. Used to not highlight entire 
29985         month, but does now.
29986         
29987 2006-01-06  Jackson Harper  <jackson@ximian.com>
29988
29989         * MonthCalendar.cs: Removed DoEvents call to prevent a running
29990         message loop. Change timer intervals to numbers that seem more
29991         natural.
29992
29993 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
29994
29995         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
29996           object for location info since screen object is now implemented.
29997
29998 2006-01-05  Jackson Harper  <jackson@ximian.com>
29999
30000         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
30001         * AsyncMethodResult.cs: We no longer use a WeakReference for the
30002         AsyncMethodResult, this is because we ALWAYS want the
30003         ManualResetEvent to get set.
30004         * Control.cs: When disposing use an async invoke to call shutdown
30005         code, so that thigns don't block on the finalizer thread.  Also
30006         check if we even have a message loop before trying to send
30007         messages, if we don't then don't bother sending messages.
30008         - No more weak references for async methods
30009         * XplatUIDriver.cs: No more weak references for async methods.
30010
30011 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
30012
30013         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
30014           returns two FontFamily with the same name
30015
30016 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
30017
30018         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
30019           drawing disabled text. Instead using the ColorGrayText color
30020
30021 2006-01-04  Jackson Harper  <jackson@ximian.com>
30022
30023         * TreeNode.cs: redraw the node when its image index is changed.
30024
30025 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
30026
30027         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
30028           time I checked there are no others like it.
30029
30030 2006-01-04  Jackson Harper  <jackson@ximian.com>
30031
30032         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
30033         this gives the behavoir I was looking for.
30034         * Control.cs: Special case Invoking EventHandlers, this matches MS
30035         and fixes part of bug #76326.
30036
30037 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
30038
30039         * ThemeClearlooks.cs, FileDialog.cs:
30040           - Reflect the latest Theme class changes
30041           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
30042             with DateTime
30043             
30044 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
30045
30046         * Theme.cs: Cache UI resource images and resize them if needed
30047
30048 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
30049
30050         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
30051           is called. This fixes the crash in Nexxia when setting the font
30052           attributes in the chat. [However, RTF needs a look-over to make sure
30053           that all SelectionXXX methods handle the special case that selection
30054           is empty and therefore the change must be applied to all text starting
30055           at the cursor/selection start]
30056
30057 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
30058
30059         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
30060           XplatUIOSX.cs: Added SendMessage and PostMessage methods
30061         * X11Keyboard.cs: Switched to new way of calling PostMessage
30062
30063 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
30064
30065         * Theme.cs: Added theme interface for images to allow the theme to
30066           control what images are used for things like FileDialog, MessageBox
30067           icons, etc.
30068         * MessageBox.cs: Now uses the new Theme icon/image interfaces
30069
30070 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
30071
30072         * FileDialog.cs:
30073           - Removed some dead code
30074           - Opening a recently used file does work now
30075           - Small UI enhancements
30076           - Refactoring
30077
30078 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
30079
30080         * FileDialog.cs: Forgot too add __MonoCS__
30081
30082 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
30083
30084         * FileDialog.cs: We are able to read recently used files now let's
30085           go on and write them.
30086
30087 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
30088
30089         * FileDialog.cs: Breathe some life into "last open"/"recently used"
30090           button
30091         * MimeIcon.cs: Do a check for the top level media type also
30092
30093 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
30094
30095         * ThemeClearlooks.cs:
30096           - Added CPDrawStringDisabled
30097           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
30098             some chars if the text doesn't fit into text_rect
30099           - DrawListViewItem: If View = View.LargeIcon center the image;
30100             rewrote the drawing of ListViewItem.Text if View = 
30101             View.LargeIcon
30102
30103 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
30104
30105         * MimeIcon.cs: Use default KDE icon theme if there is no
30106           "48x48" directory for the current icon theme, fixes #77114
30107         * Mime.cs: Disable not working and actually not used code. 
30108         * ThemeWin32Classic.cs:
30109           - Replace "new SolidBrush" in GetControlBackBrush and
30110             GetControlForeBrush with ResPool.GetSolidBrush
30111           - Changed DrawListViewItem from private to protected virtual
30112         * FileDialog.cs:
30113           - Added form.MaximizeBox = true
30114           - Don't throw an exception if there is a broken symbolic link
30115
30116 2005-12-23  Jackson Harper  <jackson@ximian.com>
30117
30118         * TabControl.cs: Give the panels focus, keyboard navigation is
30119         fixed so this works correctly now.
30120         - We need these key events also.
30121         * ToolBar.cs: Remove some of the poor mans double buffering.
30122         
30123 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
30124
30125         * ComboBox.cs: The internal TextBox now returns the focus.
30126
30127 2005-12-23  Jackson Harper  <jackson@ximian.com>
30128
30129         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
30130
30131 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
30132
30133         * Control.cs: Removed debug code
30134         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
30135           implicit children
30136
30137 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
30138
30139         * Control.cs: When creating the control, update the Z-order after
30140           all it's children are created, too. (Fixes nexxia not showing
30141           picturebox bug)
30142
30143 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
30144
30145         * Control.cs: Do not update the anchoring distances if layout is
30146           suspended, instead do it once layout is resumed
30147
30148 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
30149
30150         * Control.cs: 
30151           - After many hours of debugging, for both Jackson and
30152             myself, it turns out that it helps to set the parent of a control
30153             if you want to actually see it onscreen. In the spirit of that
30154             discovery, we're now setting the parent of the control and
30155             it's children when the control's handle is created. This fix
30156             will make Lutz Roeder's Reflector run happily. 
30157           - now just creating the handle instead of the whole control when
30158             getting a graphics context for the control.
30159
30160 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
30161
30162         * ScrollableControl.cs: When calculating the canvas, don't consider
30163           the scrollbar widths. Instead, predict if horizontal scrollbar
30164           will affect canvas when deciding on vertical display and vice versa.
30165
30166 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
30167
30168         * RichTextBox.cs: Set default RTF font for documents that don't
30169           have a font table (Fixes #77076)
30170
30171 2005-12-22  Jackson Harper  <jackson@ximian.com>
30172
30173         * TextBoxBase.cs: It's difficult to do, but you can have an empty
30174         clipboard. This prevents a NullRef in that case.
30175         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
30176         clipboard. PRIMARY is for the currently selected text only. (We
30177         should implement PRIMARY at some point.
30178
30179 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
30180
30181         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
30182           a Unicode function with a structure that was defined in Ansi way.
30183           This fixes #76942.
30184
30185 2005-12-21  Jackson Harper  <jackson@ximian.com>
30186
30187         * StatusBar.cs: Statusbar handles its fore/back colours on it's
30188         on. Because thats how it rolls. (and this avoids it using ambient
30189         colours).
30190         * ThemeWin32Classic.cs: Use the proper back color for filling.
30191         * Menu.cs: Use the system menu bar color for drawing menu
30192         bars. Using the window back color will bring ambient colours into
30193         the picture.
30194
30195 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
30196
30197         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
30198           Bitmaps were created and not disposed.
30199
30200 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
30201
30202         * Control.cs (CreateControl): Don't do anything if the control is
30203           already created, otherwise we'd fire the OnCreated event more than
30204           once
30205
30206 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
30207
30208         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
30209           will always match. Instead return -1. Fixes #76464.
30210
30211 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
30212
30213         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
30214           neither the beginning nor the end of the line (Fixes bug #76479)
30215
30216 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
30217
30218         * Control.cs:
30219           - ControlNativeWindow.ControlFromHandle(): Now handling situation
30220             where handle is invalid
30221           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
30222             instead of slower linear search
30223         * NativeWindow.cs: Don't remove the window from the hashtable until
30224           after the driver has destroyed it (since the driver might use
30225           Control.FromHandle to lookup the control object
30226         * Hwnd.cs: Added DestroyPending property to track if a window is 
30227           already destroyed as far as the driver is concerned and only hasn't
30228           yet notified the control
30229         * XplatUIX11.cs:
30230           - Activate(): Check if the window is still valid before using the 
30231             handle
30232           - Implemented DestroyChildWindow() method to mark child windows as
30233             destroyed when a window is destroyed. This prevents situations 
30234             where we might call an X method based on queued events for a
30235             window that already has been destroyed but we haven't yet pulled
30236             the destroy method from the queue.
30237           - Added a call to the new DestroyChildWindow() method to the drivers
30238             DestroyWindow code. Also now marking the destroyed window itself
30239             as pending
30240
30241 2005-12-20  Jackson Harper  <jackson@ximian.com>
30242
30243         * StatusBar.cs:
30244         * StatusBarPanel.cs: Don't calculate panel sizes on draw
30245         anymore. Just do them when needed, also track the rects of panels
30246         so that we can optimize refreshing more in the future.
30247
30248 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
30249
30250         * ColorDialog.cs: Fixed focus drawing in small color controls
30251
30252 2005-12-19  Jackson Harper  <jackson@ximian.com>
30253
30254         * InternalWindowManager.cs:
30255         * MdiWindowManager.cs: Cleanup some coordinate system changes so
30256         moving windows works properly.
30257
30258 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
30259
30260         * Control.cs: 
30261           - Removed call to InitLayout() from SetBoundsCore(); doc says
30262             it's only called when a control is added to a container
30263           - Split InitLayout logic, moved to separate UpdateDistances() method
30264             since we need to perform those calculations more often than just
30265             when adding the control to a container. (Needed to fix #77022)
30266           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
30267           - Reduced the OnBindingContextChanged events count, don't send them
30268             unless the control is created, we still aren't totally matching
30269             MS, but I can't quite figure out some of their rules
30270
30271 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
30272
30273         * ThemeClearlooks.cs: Corrected distance between ProgressBar
30274           stripes
30275
30276 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
30277
30278         * ThemeClearlooks.cs:
30279           - Updated ProgressBar drawing
30280           - Corrected drawing of ScrollBars and scroll buttons
30281           - Some temporary fixes for minor pixel artefacts
30282
30283 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
30284
30285         * Control.cs:
30286           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
30287             cause events to be sent in the same order as MS does.
30288           - Added ChangeParent() method to trigger various OnXXXChanged events
30289             that need to be fired when a parent changes (This is a reworking
30290             of the patch from r54254, with the X11 errors fixed)
30291           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
30292             since on MS we get OnLayoutChanged events when calling Clear()
30293           - Changed Enabled property to consider parent state as well, if a
30294             parent is not enabled, the control will not be either
30295           - Changed Parent property to simply call Controls.Add() since that
30296             now does all the work required, this way we avoid code duplication
30297           - Threw in a few OnBindingsContextChanged calls to try and match
30298             when MS sends them. We seem to send a few too many, though.
30299           - Added call to CreateControl when adding the control to a parent.
30300             We were never calling CreateControl. Still needs some work, in
30301             some places we treat HandleCreated and ControlCreated as equal, 
30302             which is wrong
30303           - Removed obsolete commented out code from UpdateZOrder()
30304
30305 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
30306
30307         * ThemeClearlooks.cs: Updated TrackBar drawing.
30308
30309 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
30310
30311         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
30312
30313 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
30314
30315         * FileDialog.cs: Add the Help button and the open readonly
30316           checkbox only if needed
30317
30318 2005-12-16  Jackson Harper  <jackson@ximian.com>
30319
30320         * Control.cs: Make sure we have an active menu before trying to
30321         process commands on it. Prevents menu-less forms from crashing
30322         when Alt is pressed.
30323         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
30324         Dieter Bremes.
30325         * RichTextBox.cs: Expand statement to help out gmcs and fix the
30326         2.0 build.
30327
30328 2005-12-16  Jackson Harper  <jackson@ximian.com>
30329
30330         * InternalWindowManager.cs: Don't translate tool windows screen
30331         coordinates. This fixes windows 'bouncing' around when being moved.
30332
30333 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
30334
30335         * TextBoxBase.cs:
30336           - MaxLength now treats 2^31-1 equal to unlimited length (this is
30337             not quite MS compatible, MS uses that number only for single line
30338             and 2^32-1 for multi-line, but I figure it won't hurt keeping
30339             the limit at 2GB)
30340           - Now enforcing the MaxLength limit when entering characters
30341           - Added argument to internal Paste() method to track if it's called
30342             from programatically or via keyboard, since keyboard driven pastes
30343             need to enforce max-length
30344           - Added logic to Paste to only paste as many chars as MaxLength 
30345             allows
30346         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
30347         * TextControl.cs:
30348           - Added Length property to return number of characters in document
30349           - Added private CharCount property which only tracks actual chars
30350             in the document (no linefeeds) and fires event when CharCount
30351             changes
30352           - Added tracking of character count to all methods that alter it
30353           - Added LengthChanged event to allow applications to subscribe
30354             to any changes to the document
30355
30356 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
30357
30358         * TextBox.cs: 
30359           - Removed local password_char field (moved to TextBoxBase)
30360           - Now setting the document's password var when password is
30361             set
30362         * TextBoxBase.cs:
30363           - Added password_char field (needed here so MultiLine can
30364             access it)
30365           - Added logic to MultiLine property setter to set the document's
30366             variable when password display is allowed
30367           - Removed debug code and made some debug code conditional
30368         * TextControl.cs:
30369           - Added RecalculatePasswordLine() method to handle special password
30370             char only lines
30371           - Added PasswordChar property, also added related tracking vars
30372           - Draw() method now uses local text var for grabbing text to draw,
30373             this var is set to line.text unless we're doing password display,
30374             then it is set to the pre-generated all-password-chars line
30375           - Added calling RecalculatePasswordLine() method for password lines
30376
30377 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
30378
30379         * Hwnd.cs: 
30380           - Added Reparented property to allow tracking of Window Manager
30381             reparenting actions (which affect X/Y calculations of toplevel 
30382             windows)
30383           - Made ToString() print window handles in hex
30384         * XplatUIX11.cs:
30385           - AddConfigureNotify(): Now uses reparented state off Hwnd to
30386             determine if X/Y needs offsetting
30387           - AddConfigureNotify(): Fixed offset calculations
30388           - Now adds ReparentNotify messages into the queue
30389           - Now processes ReparentNotify messages and causes a 
30390             WM_WINDOWPOSCHANGED message to be sent upstream if a window
30391             is reparented (as most likely it's X/Y coordinates are changed
30392             due to that)
30393
30394 2005-12-14  Jackson Harper  <jackson@ximian.com>
30395
30396         * XplatUIX11.cs: Tool windows still need to respek focus.
30397
30398 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
30399
30400         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
30401           have a working release
30402
30403 2005-12-13  Jackson Harper  <jackson@ximian.com>
30404
30405         * Form.cs: Update styles after setting the border style regardless
30406         of whether or not the window is using a window manager.
30407
30408 2005-12-13  Jackson Harper  <jackson@ximian.com>
30409
30410         * Form.cs: We now hook into an internal window manager instead of just an
30411         MDI subsystem, this is so we can have properly behaving tool windows.
30412         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
30413         * InternalWindowManager.cs: New internal class that acts as a
30414         window manager for tool windows and as a base for mdi windows.
30415         * MdiWindowManager.cs: New class that acts as a window manager for
30416         mdi windows.
30417
30418 2005-12-12  Jackson Harper  <jackson@ximian.com>
30419
30420         * Control.cs: Updates so we match behavoir for for implicit
30421         controls. Fixes explosions in MDI.
30422
30423 2005-12-12  Jackson Harper  <jackson@ximian.com>
30424
30425         * Control.cs: Implement Invalidate (Region).
30426
30427 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
30428
30429         * Control.cs: 
30430           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
30431             the same events as MS does. MS fires events for each property 
30432             except, for unknown reasons, Cursor, when the control is reparented. 
30433             I can't seem to totally match add/remove since MS also fires some 
30434             VisibleChanged events, which makes no sense. Consolidated the
30435             parenting code into a separate method so it can be called from
30436             both Add and Remove. set_Parent no longer needs any special logic
30437             as it calls the parent's add method which implicitly fires
30438             all events
30439           - Removed some obsolete code and debug output
30440           - Enabled state is inherited from parents, if this is enabled
30441
30442 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
30443
30444         * Form.cs: Removed commented out code
30445
30446 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
30447
30448         * Control.cs:
30449           - Added internal version of Invoke, with additional argument 
30450             indicating if we're calling it from a Dispose() handler. That
30451             way we can avoid BeginInvoke throwing an exception if we're
30452             calling for an already destroyed window.
30453           - Added a dispose argument to BeginInvokeInternal, and made the
30454             check if a valid window handle chain exists conditional on
30455             it not being a dispose call
30456           - Removed code in DestroyHandle to destroy our children. Since we
30457             now handle the WM_DESTROY message we will catch all our children
30458             being destroyed.
30459           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
30460         * Form.cs:
30461           - Added a field to track the application context of the form.
30462           - No need to set closing variable as response to WM_CLOSE, instead
30463             we destroy the window. We also call PostQuitMessage if the form
30464             has an application context (which makes it the main app form,
30465             which, when closed terminates the app)
30466         * XplatUI.cs:
30467           - Dropped Exit() method, it's naming was confusing
30468           - Added PostQuitMessage() which causes GetMessage to return false
30469             once the message queue is empty
30470         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
30471           PostQuitMessage()
30472         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
30473           no longer a valid XplatUI method, but left it in since it's used
30474           internally. Added empty PostQuitMessage() method.
30475         * MenuAPI.cs: Replaced call to Exit() with call to
30476           PostQuitMessage, even though this is probably no longer needed.
30477         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
30478         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
30479         * Application.cs:
30480           - Replaced call to XplatUI.Exit() with PostQuitMessage()
30481           - Removed old debug code that would call XplatUI for exception
30482             display, enabled standard exception handling (Still not enabled
30483             though, until NativeWindow's ExternalExceptionHandler define
30484             is removed
30485         * NativeWindow.cs:
30486           - Added internal method to allow control to update NativeWindow
30487             after a window has been destroyed
30488           - Added handling of already destroyed windows when calling i
30489             DestroyWindow
30490           - Added removal of handle from list on ReleaseHandle
30491         * XplatUIX11.cs:
30492           - Dropped GetMessageResult var and related code
30493           - Added PostQuitState to field to track if PostQuitMessage has been
30494             called
30495           - Dropped Exit() method
30496           - Added PostQuitMessage() method
30497           - GetMessage now will return false if PostQuitState is set and no
30498             more messages are in the queue.
30499           - Expose handler will no longer generate WM_PAINT messages if we are
30500             in PostQuitState since it's very likely any windows have already
30501             been destroyed, and since Hwnd won't get updated until we have
30502             processed the DestroyNotify we'd be causing X errors.
30503         
30504 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30505
30506         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
30507           Thanks to Mike for pointing out the err of my ways.
30508
30509 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30510
30511         * Control.cs(PreProcessMessage): Moved menu handling back, but
30512           after all other key handling, to match MS (who handles Menu in
30513           DefWndProc)
30514         * Menu.cs (WndProc): Removed my brainfart
30515
30516 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30517
30518         * Control.cs(PreProcessMessage): Removed special menu handling 
30519         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
30520
30521 2005-12-07  Mike Kestner  <mkestner@novell.com>
30522
30523         * Control.cs : special case SYSKEYUP so that we can adjust keynav
30524         state according in tracker.
30525         * Menu.cs : promote tracker field to base class and provide a tracker
30526         lookup capability.  Add/Remove shortcuts dynamically if the top menu
30527         has a tracker. Unparent items that are removed from the collection.
30528         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
30529         * Theme*.cs: add always_show_hotkeys field to support configurability
30530         of mnemonic display.  win32 doesn't show mnemonics until Alt is
30531         pressed.
30532
30533 2005-12-07  Jackson Harper  <jackson@ximian.com>
30534
30535         * MdiChildContext.cs: Use Control.ResetCursor.
30536         * Control.cs: ResetCursor needs to set the property so that the
30537         correct XplatUI call gets made.
30538
30539 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30540
30541         * Control.cs: More fixes to make our key events match MS. We
30542           were not setting the modifier state on KeyData, and we were
30543           not generating any events when Alt was pressed with a key
30544           since handling of WM_SYSxxx was missing for the OnKey methods.
30545
30546 2005-12-07  Jackson Harper  <jackson@ximian.com>
30547
30548         * MdiChildContext.cs: reenable the sizing code.
30549         - When the mouse leaves a window reset its cursor.
30550
30551 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
30552
30553         * ThemeClearlooks.cs: Reflect latest Hwnd changes
30554
30555 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30556
30557         * Hwnd.cs: Now using the theme 3d bordersize to calculate
30558           widths of Fixed3D borders
30559
30560 2005-12-07  Jackson Harper  <jackson@ximian.com>
30561
30562         * MdiClient.cs: Fix warnings. Earn Mike's love.
30563
30564 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
30565
30566         * ThemeClearlooks.cs:
30567           - Adjusted mouse over button color
30568           - Added first parts of CheckBox drawing
30569           - Added correct color for selected text background
30570           - Fixed ComboBox drawing
30571           - Added CPDrawBorder3D and CPDrawBorder
30572
30573 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
30574
30575         * XplatUIX11.cs: Added call to XBell for AudibleAlert
30576
30577 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
30578
30579         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
30580           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
30581           alert users via sound. We could add an enum arg with different
30582           types of alerts in the future
30583
30584 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
30585
30586         * Control.cs: Fix behaviour problems pointed out by Mike
30587
30588 2005-12-05  Mike Kestner  <mkestner@novell.com>
30589
30590         * StatusBarPanel.cs: add Invalidate method and hook it into all the
30591         prop setters.  Calls parent.Refresh for now, but could be maybe be
30592         optimized with an internal method on StatusBar at some point.
30593         [Fixes #76513]
30594
30595 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
30596
30597         * RichTextBox.cs: Implemented get_SelectionColor
30598
30599 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
30600
30601         * ThemeClearlooks.cs:
30602           - Removed dead code
30603           - Draw black button border only if button is Form.AcceptButton
30604           - Draw correct button color for pressed RadioButton if the mouse 
30605             has entered the button
30606           - Updated ProgressBar drawing!
30607           - Updated CPDrawSizeGrip drawing
30608           - Updated StatusBarPanel drawing
30609
30610 2005-12-05  Mike Kestner  <mkestner@novell.com>
30611
30612         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
30613         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
30614
30615 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
30616
30617         * ThemeClearlooks.cs: Initial check-in, activate with
30618           export MONO_THEME=clearlooks
30619         * ThemeEngine.cs: Added ThemeClearlooks
30620
30621 2005-12-03  Mike Kestner  <mkestner@novell.com>
30622
30623         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
30624         [Fixes #76897]
30625
30626 2005-12-02  Jackson Harper  <jackson@ximian.com>
30627
30628         * Form.cs: If the child form has no menu the default main menu is
30629         used as the active menu.
30630
30631 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
30632
30633         * ListBox.cs: Check if any items exist before trying to resolve 
30634           coordinates into items
30635
30636 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
30637
30638         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
30639           as the second color for the background hatch
30640
30641 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
30642
30643         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
30644         * RichTextBox.cs: FormatText position arguments are 1-based, now making
30645           sure that what we pass to FormatText is always 1-based. Fixes #76885
30646
30647 2005-11-29  Miguel de Icaza  <miguel@novell.com>
30648
30649         * NumericUpDown.cs (EndInit): When we are done initializing,
30650         reflect any updates on the UI.
30651
30652 2005-12-02  Jackson Harper  <jackson@ximian.com>
30653
30654         * ImplicitHScrollBar.cs:
30655         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
30656         their container controls.
30657         * TreeView.cs: Use the new implicit scrollbars.
30658
30659 2005-12-02  Jackson Harper  <jackson@ximian.com>
30660
30661         * TreeView.cs: Make top_node internal so the TreeNodeCollections
30662         can play with it.
30663         * TreeNodeCollection.cs: If we remove the topnode we need to
30664         update topnode to the next node in line.
30665         - When clearing nodes go through the same process as removing
30666         them, so they get depareneted and checked if they are top node.
30667
30668 2005-12-01  Jackson Harper  <jackson@ximian.com>
30669
30670         * TreeView.cs: When imagelists are used the image area is
30671         selectable as well as the text.
30672         - If there are no selected nodes select the first one.
30673         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
30674         so don't do it more then we need to.
30675
30676 2005-12-01  Jackson Harper  <jackson@ximian.com>
30677
30678         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
30679         that arrows can be scaled.
30680
30681 2005-12-01  Jackson Harper  <jackson@ximian.com>
30682
30683         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
30684         fail. Patch by Dieter Bremes
30685
30686 2005-11-30  Jackson Harper  <jackson@ximian.com>
30687
30688         * Form.cs: Property is 2.0 only
30689         * PrintDialog.cs: Signature fix.
30690
30691 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
30692
30693         * TextControl.cs: 
30694           - No longer artificially moves text 2 pixels down (now that we have
30695             borders this is no longer needed)
30696           - Added calcs for left, hanging and right indent
30697
30698 2005-11-23  Mike Kestner  <mkestner@novell.com>
30699
30700         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
30701
30702 2005-11-30  Jackson Harper  <jackson@ximian.com>
30703
30704         * MdiChildContext.cs: Set the cloned menus forms, as these don't
30705         get cloned as part of CloneMenu ().
30706         * Menu.cs: Make sure the parent of the items get set correctly
30707         when they are added.  And the owners are notified of the changes.
30708         * Form.cs: Create an ActiveMenu property, so that when MDI is used
30709         we can change the menu being displayed/handled by the form without
30710         changing the menu assosciated with the form.
30711         - Don't let Mdi children draw/handle menus.
30712         
30713 2005-11-30  Jackson Harper  <jackson@ximian.com>
30714
30715         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
30716         a MenuChanged event. Just to make the API a little more
30717         consistent.
30718         * MainMenu.cs:
30719         * MenuItem.cs: Use the new OnMenuChanged
30720         * MdiChildContext.cs: Handle menu merging.
30721         * Form.cs: Implement MergedMenu.
30722         
30723 2005-11-30  Jackson Harper  <jackson@ximian.com>
30724
30725         * Menu.cs: We were misusing Add. Add goes behind the specified
30726         index according to the docs, and does not replace the specified
30727         index. So I added an Insert method.
30728
30729 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
30730
30731         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
30732           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
30733           is for Jackson
30734         * RichTextBox.cs: Added calls to base for DnD events
30735
30736 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
30737
30738         * TextControl.cs:
30739           - Fixed drag-selection related crash; style fixes
30740           - Implemented undo class
30741             o Implemented method to capture document state for specified
30742               range in document tree
30743             o Implemented method to restore captured document state
30744             o Implemented cursor tracking
30745             o Implemented basic undo stack
30746           - Added undo cursor tracking to methods altering cursor location
30747           - Added undo tracking to selection deletion (still missing
30748             other text-altering hookups)
30749         * RichTextBox.cs:
30750           - Added SelectionLength property
30751           - Implemented CanPaste()
30752           - Implemented Paste()
30753           - Added missing protected methods
30754           - Fixed RTF->Document conversion; now uses font index 0 and color 
30755             index 0 as the default font for the parsed text
30756           - Fixed RTF<->Document font size translation
30757           - Fixed RTF generation, now properly handles cross-tag boundaries
30758             for single line selection
30759           - No longer always appends blank line to generated RTF
30760           - Removed TODOs
30761           - Added missing attributes
30762           - Hooked up undo-related methods
30763         * TextBoxBase.cs:
30764           - Implemented Copy()
30765           - Implemented Paste()
30766           - Implemented Cut()
30767           - Fixed caret mis-behaviour on backspace across line-boundaries
30768
30769 2005-11-29  Jackson Harper  <jackson@ximian.com>
30770
30771         * MdiClient.cs: Add a method for activating mdi children. Very
30772         basic right now. I imagine someday it might need more girth.
30773         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
30774         children windows names are added to the menu item.
30775         * ThemeWin32Classic.cs: Draw the arrow if the item is an
30776         mdilist. This happens regardless of whether or not there are any
30777         mdi windows to see in the list, and according to my tests happens
30778         before the items are even added. Also happens if there isn't even
30779         an mdi client to get windows from.
30780
30781 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
30782
30783         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
30784         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
30785
30786 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
30787
30788         * DataGridTableStyle.cs:
30789           - Create always the styles for the missing columns even if they are
30790             provided by the user (not default table style)
30791         * DataGrid.cs:
30792           - Fixes bug 76770
30793           - Fixes SetDataBinding (always re-attach source)
30794           - Fixes SetNewDataSource (only clear styles if they are not for 
30795             this source)
30796          -  Expands OnTableStylesCollectionChanged to handle style refresh 
30797             and remove properly
30798
30799 2005-11-29  Jackson Harper  <jackson@ximian.com>
30800
30801         * FileDialog.cs: Implement missing bits, remove some dead
30802         code.
30803         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
30804         creation of the panel so that the options set on the dialog are
30805         seen when the panel is created.
30806         * TreeView.cs: raise a click when items are clicked.
30807         
30808 2005-11-29  Jackson Harper  <jackson@ximian.com>
30809
30810         * MdiClient.cs: Pass some signature methods through to base.
30811
30812 2005-11-28  Jackson Harper  <jackson@ximian.com>
30813
30814         * ListView.cs: Raise the click event when items are clicked.
30815
30816 2005-11-28  Jackson Harper  <jackson@ximian.com>
30817
30818         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
30819         a nullref.
30820
30821 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
30822
30823         * ThemeNice.cs: - Removed 1 pixel bitmaps
30824           - Use SmoothingMode.AntiAlias where it makes sense
30825             (ScrollButton arrow for example)
30826           - Enhanced Button focus drawing
30827           - Fixed ComboBox drawing (no artefacts anymore, focus
30828             rectangle is back again, reduced size of ComboButton, etc.)
30829           - Fixed RadioButton focus drawing for Appearence.Button
30830           - Slight ScrollButton redesign
30831           - Some LinearGradientBrush size fixes
30832           - GroupBoxes have now rounded edges
30833           - Fixed StatusBar drawing
30834
30835 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
30836
30837         * ThemeNice.cs: - Remove dead code
30838           - use correct background colors for menus, etc.
30839           - Fake pixel drawing with 1 pixel bitmaps
30840
30841 2005-11-24  Jackson Harper  <jackson@ximian.com>
30842
30843         * MdiClient.cs: Size the scrollbars when resizing the window.
30844         - Resize the maximized windows when the client is resized
30845         * Form.cs: Make the child context available
30846         
30847 2005-11-23  Jackson Harper  <jackson@ximian.com>
30848
30849         * MdiChildContext.cs: Don't size windows if they are maximized.
30850
30851 2005-11-23  Mike Kestner  <mkestner@novell.com>
30852
30853         * ContextMenu.cs: use MenuTracker.
30854         * Control.cs: remove menu handle usage.
30855         * Form.cs: remove menu handle usage.
30856         * Hwnd.cs: remove menu handle usage.
30857         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
30858         motion and clicks to the new Tracker handlers.
30859         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
30860         and handle usage.
30861         * MenuAPI.cs: refactored to combine popup and menubar event handling.
30862         Killed the MENU and MENUITEM data types and associated collections
30863         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
30864         MenuTracker class that exposes the leftovers from the old MenuAPI
30865         static methods. Restructured Capture handling so that only one grab is
30866         done for the entire menu hierarchy instead of handing off grabs to
30867         submenus. Tracker now has an invisible control to Capture when active.
30868         * MenuItem.cs: add sizing accessors, kill Create
30869         and handle usage.
30870         * Theme.cs: remove menu handle and MENU(ITEM) usage.
30871         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
30872         MENU(ITEM). remove menu handle usage, use Menu directly.
30873         * XplatUIDriver.cs: remove menu handle usage.
30874         * XplatUIOSX.cs: remove menu handle usage.
30875         * XplatUIWin32.cs: remove menu handle usage.
30876         * XplatUIX11.cs: remove menu handle usage.
30877
30878 2005-11-22  Jackson Harper  <jackson@ximian.com>
30879
30880         * Hwnd.cs: Don't compute the menu size for
30881         DefaultClientRectangle.
30882         - Reenable menu sizes being computed for GetClienRectangle.
30883         * Form.cs: Remove comment of trechery
30884         
30885 2005-11-22  Jackson Harper  <jackson@ximian.com>
30886
30887         * Hwnd.cs: The adjustments for the menu bar are made when it is
30888         attached to the form.
30889
30890 2005-11-19  Jackson Harper  <jackson@ximian.com>
30891
30892         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
30893         (just like on windows).
30894
30895 2005-11-19  Jackson Harper  <jackson@ximian.com>
30896
30897         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
30898         use real buttons anymore because they are in non client area. The
30899         one TODO here is that I need to somehow invalidate a section of
30900         the non client area.
30901
30902 2005-11-18  Jackson Harper  <jackson@ximian.com>
30903
30904         * Control.cs: Put the enum check back in now that MDI doesnt have
30905         to use this to set border styles.
30906         * Form.cs: Only set mdi child windows borders if the handle has
30907         been created.
30908         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
30909         this directly on to the driver.
30910         - Get the move start position before adjusting for the titlebar
30911         height, this fixes the windows "skipping" when they are first
30912         moved.
30913
30914 2005-11-18  Jackson Harper  <jackson@ximian.com>
30915
30916         * XplatUIX11.cs: Just compute the mdi borders separately as they
30917         don't totally match up with normal form borders.
30918
30919 2005-11-18  Jackson Harper  <jackson@ximian.com>
30920
30921         * Control.cs: Set WS_ styles for borders, so that the driver does
30922         not have to retrieve the control instance to figure out what kind
30923         of borders it should have.
30924         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
30925         driver can know its an mdi child easily.
30926         * XplatUIX11.cs: Get the border styles and whether the window is
30927         MDI from the Styles and ExStyles params instead of having to get a
30928         control. This prevents a chicken and egg problem.       
30929
30930 2005-11-18  Jackson Harper  <jackson@ximian.com>
30931
30932         * MdiClient.cs: Fix typo so scrollbars show up correctly.
30933
30934 2005-11-18  Jackson Harper  <jackson@ximian.com>
30935
30936         * MdiClient.cs: Calculate when to add and remove scrollbars
30937         correctly.
30938         * MdiChildContext.cs: Adjust the y position to take the titlebar
30939         into account.
30940         - No height for FormBorderStyle.None
30941
30942 2005-11-18  Jackson Harper  <jackson@ximian.com>
30943
30944         * Control.cs: Allow non enum values to be used for
30945         InternalBorderStyle.  MDI does this to set a special border style.
30946         - New utility methods for converting points to/from client coords
30947         - Add the newly created control to the Controls collection before
30948         updating its style. This way UpdateStyle can walk the control
30949         heirarchy to find the control if needed.
30950         so I don't need to create a new Point object all the time.
30951         * Form.cs: Let MDI windows handle their border styles.
30952         - Set styles on MDI windows so the correct title style is derived.
30953         * MdiChildContext.cs: Move all the painting and window handling
30954         into the non client area.
30955         - Use correct sizing and put correct buttons on frames based on
30956         the FormBorderStyle.
30957         - Notify the mdi client about scrolling
30958         - Need to handle the buttons ourselves now, because they are all
30959         in non client areas and we can't add controls there.
30960         * MdiClient.cs: Halfway to scrolling, this implementation is
30961         somewhat broken though, we need to check to make sure other
30962         windows aren't causing scrolling before removing the bars. Also
30963         the bars need to be drawn on top, maybe I can switch implicit
30964         controls to be on top.
30965         * Hwnd.cs: caption_height and tool_caption_height are now
30966         properties of an hwnd, this way they can be set by the driver
30967         based on the type of window they are.  In X11 the window manager
30968         handles the decorations so caption_height is zero unless its an
30969         MDI window.
30970         - Add 3 pixel borders for MDI windows (0xFFFF).
30971         - Get rid of some code duplication, have DefaultClientRectanle
30972         just call GetClientRectangle.
30973         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
30974         Hwnd now.
30975         - Set border styles differently for mdi windows.
30976         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
30977         Hwnd now.
30978         
30979 2005-11-15  Mike Kestner  <mkestner@novell.com>
30980
30981         * Menu.cs: when adding an item to the collection, if item is already 
30982         parented, remove it from the parent.
30983
30984 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
30985
30986         * X11DesktopColors.cs: Added KDE support
30987
30988 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
30989
30990         * XplatUIWin32.cs: 
30991           - Clipboard methods now can translate Rtf format
30992           - No longer removes clipboard contents whenever a new format is added
30993             to allow placing multiple formats on the clipboard
30994         * Clipboard.cs: Clipboard now supports getting a IDataObject and
30995           will place all formats contained in it onto the clipboard. Also
30996           now cleans the clipboard before placing a new object onto it
30997         * RichTextBox.cs:
30998           - Implemented set_Rtf
30999           - Implemented set_SelectedRtf
31000           - Created InsertRTFFromStream() method to allow single code base
31001             for all properties and methods that insert RTF into document
31002           - Removed debug output
31003         * TextControl.cs:
31004           - Fixed Delete(int) to fix up line numbers
31005           - Fixed ReplaceSelection to combine start and end line
31006           - Fixed serious DeleteChars bug that would leave the document tree
31007             broken
31008           - Improved DumpTree with several logic checks to detect broken
31009             document trees
31010           - Removed debug lines
31011           - Fixed Caret.WordForward/WordBack moving code, now always also 
31012             updates caret.tag (fixes crash when word-selecting across tag
31013             boundaries via keyboard)
31014           - Added Insert() method for inserting multiline text into documents
31015           - Fixed DeleteChars() calculation errors that would cause a broken
31016             tag chain with multiple tag lines
31017           - DeleteChars() no longer crashes on multi-tag lines if not all tags
31018           - Split() no longer moves caret if split is at caret location
31019           - ReplaceSelection() now updates the cursor and re-displays it
31020           - ReplaceSelection() now uses new Insert() method to avoid code
31021             duplication
31022           - FormatText() can now handle formatting partial lines
31023         * TextBoxBase.cs:
31024           - Append now uses new TextControl.Insert() method (this avoids 
31025             duplicate code)
31026           - Implemented Ctrl-X (Cut) (
31027           - Implemented Ctrl-C (Copy)
31028           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
31029             regeneration when pasting text; roundtripping Copy&Paste within
31030             edit control still fails due to some calculation bugs in GenerateRTF)
31031           - The Delete key will now remove the current selection if it is visible
31032         * TextBox.cs: Removed debug lines
31033         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
31034           driver to be initialized and can't therefore be done via a static ctor)
31035
31036 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
31037
31038         * TextControl.cs: Added backend code for finding char arrays and strings
31039         * TextBoxBase.cs:
31040           - Added mouse wheel scroll support
31041           - Added support for VScroll and HScroll events
31042         * RichTextBox.cs:
31043           - Implemented all seven Find() variants
31044           - Implemented GetCharFromPosition()
31045           - Implemented GetCharIndexFromPosition()
31046           - Implemented GetLineFromIndex()
31047           - Implemented GetPositionFromCharIndex();
31048           - Implemented SaveFile for PlainText and UnicodeText
31049           - Fixed set_Font, now setting a new font applies that font to
31050             the whole document
31051           - Implemented generic Document to RTF converter
31052           - Implemented SaveFile for RichText format (still missing unicode
31053             conversion for non-ansi chars)
31054           - Implemented get_Rtf
31055           - Implemented get_SelectedRtf
31056
31057 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
31058
31059         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
31060           to allow any captures to be released before triggering OnClick. This
31061           way a click handler may capture the mouse without interference.
31062         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
31063           This way we send them even though X may not allow a grab (if the window
31064           isn't visible, for example)
31065
31066 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
31067
31068         * DataGridViewRowEventArgs.cs: DataGridView implementation
31069         * DataGridViewElement.cs: DataGridView implementation
31070         * DataGridViewComboBoxCell.cs: DataGridView implementation
31071         * DataGridViewDataErrorContexts.cs: DataGridView implementation
31072         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
31073         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
31074         * ImageLayout.cs: DataGridView implementation
31075         * DataGridViewComboBoxColumn.cs: DataGridView implementation
31076         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
31077         * DataGridViewSelectionMode.cs: DataGridView implementation
31078         * IDataGridViewEditingControl.cs: DataGridView implementation
31079         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
31080         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
31081         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
31082         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
31083         * DataGridViewColumnSortMode.cs: DataGridView implementation
31084         * DataGridView.cs: DataGridView implementation
31085         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
31086         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
31087         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
31088         * Padding.cs: DataGridView implementation
31089         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
31090         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
31091         * DataGridViewRowEventHandler.cs: DataGridView implementation
31092         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
31093         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
31094         * DataGridViewButtonCell.cs: DataGridView implementation
31095         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
31096         * DataGridViewEditMode.cs: DataGridView implementation
31097         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
31098         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
31099         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
31100         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
31101         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
31102         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
31103         * DataGridViewCellEventHandler.cs: DataGridView implementation
31104         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
31105         * DataGridViewCellStyleConverter.cs: DataGridView implementation
31106         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
31107         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
31108         * DataGridViewColumnEventArgs.cs: DataGridView implementation
31109         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
31110         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
31111         * QuestionEventArgs.cs: DataGridView implementation
31112         * IDataGridViewEditingCell.cs: DataGridView implementation
31113         * DataGridViewTriState.cs: DataGridView implementation
31114         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
31115         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
31116         * DataGridViewColumnCollection.cs: DataGridView implementation
31117         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
31118         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
31119         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
31120         * DataGridViewColumn.cs: DataGridView implementation
31121         * DataGridViewCellBorderStyle.cs: DataGridView implementation
31122         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
31123         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
31124         * DataGridViewRow.cs: DataGridView implementation
31125         * DataGridViewImageCellLayout.cs: DataGridView implementation
31126         * DataGridViewImageCell.cs: DataGridView implementation
31127         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
31128         * DataGridViewCheckBoxCell.cs: DataGridView implementation
31129         * DataGridViewHeaderCell.cs: DataGridView implementation
31130         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
31131         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
31132         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
31133         * DataGridViewTextBoxColumn.cs: DataGridView implementation
31134         * QuestionEventHandler.cs: DataGridView implementation
31135         * DataGridViewCellStyleScopes.cs: DataGridView implementation
31136         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
31137         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
31138         * DataGridViewCell.cs: DataGridView implementation
31139         * DataGridViewCellEventArgs.cs: DataGridView implementation
31140         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
31141         * DataGridViewCellStyle.cs: DataGridView implementation
31142         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
31143         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
31144         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
31145         * TextFormatFlags.cs: DataGridView implementation
31146         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
31147         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
31148         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
31149         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
31150         * DataGridViewButtonColumn.cs: DataGridView implementation
31151         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
31152         * HandledMouseEventArgs.cs: DataGridView implementation
31153         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
31154         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
31155         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
31156         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
31157         * DataGridViewRowCollection.cs: DataGridView implementation
31158         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
31159         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
31160         * DataGridViewHitTestType.cs: DataGridView implementation
31161         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
31162         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
31163         * DataGridViewColumnEventHandler.cs: DataGridView implementation
31164         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
31165         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
31166         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
31167         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
31168         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
31169         * DataGridViewContentAlignment.cs: DataGridView implementation
31170         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
31171         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
31172         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
31173         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
31174         * DataGridViewPaintParts.cs: DataGridView implementation
31175         * DataGridViewCellCollection.cs: DataGridView implementation
31176         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
31177         * DataGridViewImageColumn.cs: DataGridView implementation
31178         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
31179         * DataGridViewElementStates.cs: DataGridView implementation
31180         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
31181         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
31182         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
31183         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
31184         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
31185         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
31186         * DataGridViewRowHeaderCell.cs: DataGridView implementation
31187         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
31188         * DataGridViewTextBoxCell.cs: DataGridView implementation
31189         * DataGridViewBand.cs: DataGridView implementation
31190         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
31191         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
31192         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
31193         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
31194         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
31195         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
31196         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
31197         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
31198         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
31199         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
31200         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
31201
31202 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
31203
31204         * ThemeWin32Classic.cs: 
31205           - Draw the outside focus rectangle around buttons
31206           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
31207             doesn't use end caps for every dash of a line anymore. This
31208             workaround ignores the forecolor.
31209
31210 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
31211
31212         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
31213           endian safe.
31214
31215 2005-11-07  Jackson Harper  <jackson@ximian.com>
31216
31217         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
31218
31219 2005-11-07  Jackson Harper  <jackson@ximian.com>
31220
31221         * ScrollableControl.cs: Calculate the maximum and change vars
31222         (more) correctly so that scrollbars appear as a sensible size.
31223
31224 2005-11-04  Jackson Harper  <jackson@ximian.com>
31225
31226         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
31227         collection.
31228         * TreeView.cs: When the tree is sorted null out the top_node so
31229         that it is recalculated.
31230         - Use dotted lines instead of dashed lines to match MS better.
31231
31232 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
31233
31234         * ListView.cs: 
31235           - Implements key search for items. Useful when browsing files with FileDialog
31236           - When changing view mode or when clear the items reset scrollbar positions
31237
31238 2005-11-04  Jackson Harper  <jackson@ximian.com>
31239
31240         * CurrencyManager.cs: Implement the MetaDataChanged event, the
31241         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
31242         as to what the method may do as there is no real way of creating a
31243         derived CurrencyManager and calling the method. 
31244
31245 2005-11-03  Jackson Harper  <jackson@ximian.com>
31246
31247         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
31248         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
31249         method which seems to just be used internally to refresh the tabs.
31250
31251 2005-11-03  Jackson Harper  <jackson@ximian.com>
31252
31253         * TabControl.cs: Implement the remove method. Fix some broken
31254         comments.
31255
31256 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
31257
31258         * DateTimePicker.cs:
31259           - Added missing DateTimePickerAccessibleObject class
31260           - Added missing events
31261           - Added OnFontChanged method
31262         * Form.cs: Added missing attributes
31263         * TreeView.cs: Added missing attributes
31264
31265 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
31266
31267         * GridItemCollection.cs: Fix signatures
31268
31269 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
31270
31271         * XplatUI.cs: Updated build rev/date
31272         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
31273           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
31274         * Application.cs: Trigger context-specific ExitThread events
31275
31276 2005-11-03  Jackson Harper  <jackson@ximian.com>
31277
31278         * Menu.cs:
31279         * MainMenu.cs:
31280         * GridTableStylesCollection.cs:
31281         * Timer.cs:
31282         * TabPage.cs:
31283         * HelpProvider.cs:
31284         * StatusBar.cs:
31285         * MonthCalendar.cs: Signature fixes
31286
31287 2005-11-03  Jackson Harper  <jackson@ximian.com>
31288
31289         * TreeNodeCollection.cs: Remove should not be virtual.
31290         * TreeView.cs: Implement the last of the missing methods.
31291
31292 2005-11-03  Jackson Harper  <jackson@ximian.com>
31293
31294         * TreeNodeConverter.cs: Implement to get off my class-status back.
31295
31296 2005-11-03  Jackson Harper  <jackson@ximian.com>
31297
31298         * TreeView.cs: Hookup the bits for drag and drop.
31299         * TreeNode.cs: Don't cache the tree_view or index anymore, now
31300         that nodes can be moved from tree to tree easily this just causes
31301         all sorts of problems.
31302         * TreeNodeCollection: Don't need to give treenodes an index and
31303         treeview anymore when they are added, these are computed on the
31304         fly. Also make sure to remove a node before its added.
31305
31306 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
31307
31308         * TextControl.cs:
31309           - Added CaretSelection enum
31310           - Added comparison methods to Marker struct, makes selection code
31311             more readable
31312           - Added SelectionStart and SelectionEnd as 'moveable' location for
31313             the CaretDirection enum and handler
31314           - Added selection_prev variable to track optimized invalidation for
31315             word and line selection
31316           - Added SelectionVisible property (returns true if there is a valid 
31317             selection)
31318           - Switched CaretHasFocus to only display the caret if there is no
31319             visible selection
31320           - Avoiding StringBuilder.ToString to retrieve a single char, instead
31321             using the direct character index; should be much faster
31322           - Added various conditional debug statements
31323           - Fixed invalidation calculation for selection ranges
31324           - Added ExpandSelection() method to support word and line selection
31325           - Switched SetSelectionToCaret to use new Marker compare overloads
31326           - Added central IsWordSeparator() method to determine word 
31327             separators/whitespace and FindWordSeparator() to streamline common
31328             usage of IsWordSeparator()
31329         * TextBoxBase.cs:
31330           - Removed unneeded grabbed variable, it was just mirroring
31331             Control.Capture
31332           - No longer firing OnTextChanged event when Text setter is called,
31333             since the base will fire the event for us
31334           - Added handling of Ctrl-Up/Down selection
31335           - Added handling of Shift-Cursorkey selection
31336           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
31337             words
31338           - Added handling of Shift and Ctrl-Shift-Home/End selection
31339           - Removed some debug output
31340           - Added handling for single/double/tripple-click to place caret/
31341             select word/select line respectively (Fixes bug #76031)
31342           - Added support for drag expansion of word/line selection
31343         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
31344           current selection
31345
31346 2005-11-02  Jackson Harper  <jackson@ximian.com>
31347
31348         * X11Dnd.cs: If the drag is going to and from a MWF window just
31349         copy the data instead of sending it out through the X Selection
31350         mechanism.
31351
31352 2005-11-02  Jackson Harper  <jackson@ximian.com>
31353
31354         * X11Dnd.cs:
31355         * XplatUIX11.cs: When in a drag we don't want motion notify
31356         messages to get passed on to the other controls. This prevents
31357         mouse move messages from showing up in the drag source.
31358
31359 2005-11-02  Jackson Harper  <jackson@ximian.com>
31360
31361         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
31362         the correct button is release to end a drag.
31363         * XplatUIX11.cs: Make the button state internal so the drag system
31364         can access it.  Dragging needs to know about all button releases,
31365         not just left button.
31366
31367 2005-11-02  Miguel de Icaza  <miguel@novell.com>
31368
31369         * Form.cs (Icon): If the icon is null, reset the icon to the
31370         default value. 
31371
31372         * Cursor.cs: When writing the AND-mask bitmap do not include the
31373         number of colors, but hardcode those to two (black and white),
31374         fixes the loading of color cursors (Paint Dot Net).
31375
31376         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
31377         turn off autoscaling.
31378
31379         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
31380
31381 2005-11-02  Jackson Harper  <jackson@ximian.com>
31382
31383         * X11Dnd.cs: Make sure to send a status message if the pointer
31384         enters a control that can not accept a drop, otherwise the cursor
31385         isn't updated correctly. Also tried to compress the lines of code
31386         a bit.
31387
31388 2005-11-02  Jackson Harper  <jackson@ximian.com>
31389
31390         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
31391         set actions correctly.  This isn't perfect as XDND and win32 have
31392         some differences on how you allow actions. I'll clear this up by
31393         adding a path for drag from MWF to MWF windows.
31394         * XplatUIX11.cs: Hook into the dnd system.
31395
31396 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
31397
31398         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
31399         previously shown but they are no longer need it. Very obvious when 
31400         browsing files with FileDialog.
31401
31402 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
31403
31404         * Control.cs: We always need to call OnPaintBackground. We pretty much
31405           ignore AllPaintingInWmPaint and always do the painting there, whether 
31406           it's set or not, since we always ignore the WM_ERASEBKGND message 
31407           (which we don't generate on X11). This fixes #76616.
31408         * Panel.cs: Removed unneeded background painting. This happens properly
31409           in Control.cs already
31410
31411 2005-10-31  Mike Kestner  <mkestner@novell.com>
31412
31413         * Menu.cs: Add items to collection before setting their index.
31414         * MenuItem.cs : add range checking with ArgumentException like MS.
31415         [Fixes #76510]
31416
31417 2005-10-31  Jackson Harper  <jackson@ximian.com>
31418
31419         * ListBox.cs: Invalidate if the area is visible at all not just
31420         contained in the visible rect. Fixes unselection of semi visible
31421         items.
31422
31423 2005-10-31  Jackson Harper  <jackson@ximian.com>
31424
31425         * Control.cs: Consistently name the dnd methods. Make them
31426         internal so we can override them to match some MS behavoir
31427         internally.
31428         * Win32DnD.cs: Use the new consistent names.
31429
31430 2005-10-31  Jackson Harper  <jackson@ximian.com>
31431
31432         * TreeView.cs: Don't draw the selected node when we lose focus.
31433
31434 2005-10-31  Jackson Harper  <jackson@ximian.com>
31435
31436         * X11Dnd.cs: We still need to reset the state even though a full
31437         reset isn't being done, otherwise status's still get sent all over
31438         the place.
31439
31440 2005-10-31  Jackson Harper  <jackson@ximian.com>
31441
31442         * Control.cs: Make the dnd_aware flag internal so the dnd
31443         subsystem can check it. Catch exceptions thrown in dnd handlers to
31444         match MS behavoir.
31445         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
31446         * X11Dnd.cs: Handle null data in the converters. Set the XDND
31447         version when sending a XdndEnter. Use the control/hwnd dnd_aware
31448         flags to reduce the number of dnd enters/status's sent.
31449
31450 2005-10-31  Jackson Harper  <jackson@ximian.com>
31451
31452         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
31453
31454 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
31455
31456         * PictureBox.cs: Fixes 76512
31457
31458 2005-10-28  Jackson Harper  <jackson@ximian.com>
31459
31460         * X11Dnd.cs: Early implementation to support winforms being a drag
31461         source for data on X11. Also restructured the converters so they
31462         can go both ways now.
31463         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
31464         
31465 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
31466
31467         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
31468           clipboard requests
31469
31470 2005-10-27  Jackson Harper  <jackson@ximian.com>
31471
31472         * TreeNode.cs: Implement serialization so my DnD examples will work.
31473
31474 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
31475
31476         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
31477           TreeView.cs: Don't dispose objects that are not owned.
31478           
31479 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
31480
31481         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
31482           should retrieve the current cursor and report that, but XplatUI
31483           doesn't (yet) have an interface for that (and I'm not sure I even
31484           can, on X11)
31485         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
31486           until any message loop processing is done (and the WM_SETCURSOR
31487           replaces the cursor to the proper one)
31488         * XplatUIX11.cs: 
31489           - Fixed override behaviour, we can't set the cursor globally on X11, 
31490             just for our windows.
31491           - Invalidating the System.Drawing X11 display handle when we are
31492             shutting down
31493         * Control.cs: Fix to make csc happy
31494
31495 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
31496
31497         * TextBoxBase.cs: 
31498           - get_Text: Add last line (without trailing newline) to returned
31499             value (Fixes 76212)
31500           - get_TextLength: Count last line in returned length
31501           - ToString: Call Text property instead of duplicating code
31502
31503 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
31504
31505         * ImageList.cs: Dispose ImageAttributes objects.
31506
31507 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
31508
31509         * ImageList.cs: Use attribute constructors with less arguments where
31510           possible.
31511
31512 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
31513
31514         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
31515           Use typeof instead of strings when assembly is referenced. Added
31516           some more comments.
31517
31518 2005-10-21  Jackson Harper  <jackson@ximian.com>
31519
31520         * ListView.cs: Raise a double click event. Also tried to somewhat
31521         fix when the selectedindexchanged event is raised. Its still
31522         broken though.
31523
31524 2005-10-21  Jackson Harper  <jackson@ximian.com>
31525
31526         * TreeView.cs: New method to invalidate the plus minus area of a
31527         node without invalidating the whole node (maybe this can be used
31528         in some more places).
31529         * TreeNodeCollection.cs: When adding to an empty node we need to
31530         invalidate its plus minus area so the little block shows up.
31531         
31532 2005-10-21  Jackson Harper  <jackson@ximian.com>
31533
31534         * TreeView.cs: Make sure that when we invalidate a node the bounds
31535         are big enough to cover the selected box and the focus
31536         rectangle. Use a different colour for the lines connecting nodes
31537         so they show up with all themes.
31538
31539 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
31540
31541         * NativeWindow.cs: Don't call anything that could call into the driver,
31542           we might be on a different thread.
31543
31544 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
31545
31546         * Control.cs(Dispose): Since Dispose might run on a different thread,
31547           make sure that we call methods that could call into the driver via
31548           invoke, to avoid thread issues
31549
31550 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
31551
31552         * XplatUI.cs: Removed finalizer
31553         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
31554           not allowing to be called on the finalizer thread.
31555
31556 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
31557
31558         * ImageList.cs:
31559           - Reverted r51889 and r51891.
31560           - Added ImageListItem class that stores unmodified image items and image
31561             properties required to create list images until handle is created.
31562           - Added AddItem and moved image creation logic to AddItemInternal.
31563           - Added CreateHandle method that creates images based on unmodified items.
31564           - Added DestroyHandle that changes state to store unmodified items.
31565           - Add and AddStrip methods no more create handle.
31566           - ReduceColorDepth has no return value.
31567           - Dispose destroys handle.
31568           - Modified other methods to reflect the above changes.
31569           - Implemented key support.
31570           - Added profile 2.0 members and attributes.
31571           - Added private Reset and ShouldSerialize methods that provide the same
31572             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
31573             them as they are private.
31574           - Added some more comments about implementation details.
31575
31576 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
31577
31578         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
31579
31580 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
31581
31582         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
31583
31584 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
31585
31586         * DataGridDrawingLogic.cs: Fixes column hit calcultation
31587         * DataGridColumnStyle.cs: Remove debug message
31588
31589 2005-10-20  Jackson Harper  <jackson@ximian.com>
31590
31591         * TreeView.cs: We can always get input keys regardless of whether
31592         or not editing is enabled. They are used for navigation.
31593
31594 2005-10-20  Jackson Harper  <jackson@ximian.com>
31595
31596         * TreeNode.cs: Use the viewport rect for determining if a node
31597         needs to be moved for visibility. Don't use Begin/End edit. This
31598         calls a full refresh when its done.
31599         * TreeView.cs: New SetBottom works correctly.  Make the viewport
31600         rect property internal so the treenodes can see it. When clicking
31601         on a node we need to ensure that its visible because it might just
31602         be partly visible when clicked.
31603
31604 2005-10-20  Jackson Harper  <jackson@ximian.com>
31605
31606         * TreeNodeCollection.cs: Remove debug code.
31607
31608 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
31609
31610         * Datagrid.cs: Implements column sorting in Datagrid
31611         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
31612
31613 2005-10-20  Jackson Harper  <jackson@ximian.com>
31614
31615         * TreeNodeCollection.cs: Remove items properly. Update the correct
31616         area after removing them.
31617
31618 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
31619
31620         * Datagrid.cs: Should not call base.OnPaintBackground
31621
31622 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
31623
31624         * XplatUIX11.cs (GetMessage):
31625           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
31626             window instead of client window
31627           - Now properly calculates NC_xBUTTONUP message coordinates
31628           - ScreenToMenu now properly calculates it's coordinates of whole 
31629             window, since menus are in the whole window, not in the client
31630             window
31631           - Added WholeToScreen coordinate translation method
31632
31633 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
31634
31635         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
31636           want to return a message, loop back to the beginning of the function
31637           and grab the next real message to process instead.
31638
31639 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
31640
31641         * Splitter.cs: Properly set limits if no filler control is used
31642
31643 2005-10-19  Jackson Harper  <jackson@ximian.com>
31644
31645         * ColorDialog.cs: Don't show the help button if it is not enabled
31646         instead of disabling it (this is what MS does). Don't create the
31647         panel until the dialog is run, otherwise the vars (such as
31648         ShowHelp) are not set yet.
31649
31650 2005-10-19  Jackson Harper  <jackson@ximian.com>
31651
31652         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
31653         are reduced when adding nodes.
31654         * TreeNode.cs:
31655         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
31656         tree.
31657         
31658 2005-10-19  Jackson Harper  <jackson@ximian.com>
31659
31660         * FolderBrowserDialog.cs: End editing our treeview so the window
31661         actually gets refreshed.
31662
31663 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
31664
31665         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
31666           Obsoleted handling of WM_ERASEBKGND, now always draws our background
31667           inside of WM_PAINT
31668
31669 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
31670
31671         * MenuAPI.cs: Returns after Hidding window
31672         * XplatUIX11.cs: Added TODO found while debugging menu issues
31673
31674 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
31675
31676         * XplatUIX11.cs: Do not re-map the whole window when it's size
31677           becomes non-zero unless it's supposed to be actually visible
31678
31679 2005-10-18  Jackson Harper  <jackson@ximian.com>
31680
31681         * TreeView.cs: We don't need to keep a count anymore.
31682         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
31683         use the Grow method.
31684
31685 2005-10-18  Jackson Harper  <jackson@ximian.com>
31686
31687         * TreeNodeCollection.cs: Insert is not supported on arrays, so
31688         implement it manually here.
31689
31690 2005-10-18  Jackson Harper  <jackson@ximian.com>
31691
31692         * ImageList.cs: Dont kill the list when the colour depth is
31693         changed, just change the colour depth of all the images.
31694         - Same goes for setting the image size. Just resize them all
31695         instead of killing the list softly.
31696
31697 2005-10-18  Jackson Harper  <jackson@ximian.com>
31698
31699         * Control.cs: Don't invalidate empty rectangles.
31700
31701 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
31702
31703         * ListViewItem.cs:
31704           - Adds checked item to the Checked/Item lists (where empty before)
31705           - Do not add items to the Selected lists if they are already present
31706         * ListView.cs:
31707           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
31708           - When deleting items make sure that we delete them for the Selected
31709           and Checked list also.
31710
31711 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
31712
31713         * Label.cs: Dispose objects no longer used
31714         * ThemeWin32Classic.cs: Dispose objects no longer used
31715
31716 2005-10-18  Jackson Harper  <jackson@ximian.com>
31717
31718         * TabControl.cs: Don't refresh the whole control when the tabs are
31719         scrolled, we just need to refresh the tab area.
31720
31721 2005-10-17  Jackson Harper  <jackson@ximian.com>
31722
31723         * XplatUIX11.cs: Compress code a little bit. Only calculate the
31724         after handle when we need it.
31725
31726 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
31727
31728         * Control.cs: When the parent size changes, recalculate anchor 
31729           positions. Partial fix for #76462
31730
31731 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
31732
31733         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
31734           drawn. Fixes #76462
31735
31736 2005-10-17  Jackson Harper  <jackson@ximian.com>
31737
31738         * MonthCalendar.cs: Don't create the numeric up down until our
31739         handle is created. Otherwise our handle is created in the
31740         constructor and we don't know if we are a WS_CHILD or WS_POPUP
31741         yet.
31742
31743 2005-10-17  Jackson Harper  <jackson@ximian.com>
31744
31745         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
31746         correctly.
31747
31748 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
31749         * TreeNode.cs : small logical fix (was using local var instead of field)
31750         
31751 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
31752
31753         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
31754
31755 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
31756
31757         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
31758
31759 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
31760
31761         * Control.cs: 
31762           - Re-implemented anchoring code. My first version was really broken.
31763             This fixes bug #76033. Unlike the previous implementation we will
31764             no longer have round errors since all numbers are calculated from
31765             scratch every time. Removed various anchor-related obsolete vars.
31766           - InitLayout no longer causes layout event firing and layout to be 
31767             performed
31768
31769 2005-10-16  Jackson Harper  <jackson@ximian.com>
31770
31771         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
31772         which was broken).
31773
31774 2005-10-16  Jackson Harper  <jackson@ximian.com>
31775
31776         * TabControl.cs: Remove debug code.
31777
31778 2005-10-16  Jackson Harper  <jackson@ximian.com>
31779
31780         * XEventQueue.cs: Increase the default queue size (very simple
31781         apps needed to grow the queue).
31782         * Hwnd.cs: No finalizer so we don't need to suppress
31783         finalization. Compute the invalid area manually so a new rectangle
31784         does not newto be created.
31785         * ScrollableControl.cs: Don't set any params (otherwise visibility
31786         isn't set correctly).
31787         * MdiChildContext.cs: New constructor takes the mdi parent so it
31788         doesn't have to be computed and avoids a crash on windows. Draw
31789         the window icon properly, and allow the text to be seen.
31790         * Form.cs: Use new MdiChildContext constructor. Make sure the
31791         child context isn't null in wndproc.
31792         * TabControl.cs: Don't set focus, this is muddling keyboard
31793         behavoir. Expand the tab rows when a window size increase will
31794         allow extra tabs to be seen. Don't allow tabs smaller than the
31795         width of a window to be scrolled out of view.
31796         * TreeNode.cs:
31797         * TreeView.cs: Use measure string to calculate a nodes width, the
31798         width is cached and only updated when the text or the font is
31799         changed. Don't check for expand/collapse clicks on the first level
31800         nodes if root lines are disabled.
31801         
31802 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
31803
31804         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
31805
31806 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
31807
31808         * DataGridBoolColumn.cs: fixes warning
31809
31810 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
31811
31812         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
31813         to match more to match more precisely the MS Net behavior
31814
31815 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
31816
31817         * Hwnd.cs: Added field to track if window is mapped
31818         * XplatUIX11.cs: 
31819           - Unmap windows if they become 0-size, re-map when 
31820             they are >0 again; fixes #76035
31821           - Re-set our error handler after initializing X11Desktop
31822             to override any error handlers Gtk or whatever was called
31823             may have set.
31824
31825 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
31826
31827         * CheckedListBox.cs: Removed unused vars
31828         * ListView.cs: Fixed signatures
31829         * RichTextBox.cs: Removed unused vars
31830         * TextBoxBase.cs: Removed unused vars
31831         * XplatUIWin32.cs: Removed unused vars
31832         * XplatUIX11.cs: Removed unused vars
31833         * XplatUI.cs: Updated version and date to latest published
31834
31835 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
31836
31837         * Cursor.cs: Added private .ctor to work around a bug in
31838           resourceset (Thanks to Geoff Norton for the help on this)
31839         * SplitterEventArgs.cs: Made fields accessible so we don't
31840           waste boatloads of objects and can reuse the same one
31841           in Splitter
31842         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
31843           any captions and borders when generating screen coordinates
31844         * Splitter.cs: Reimplemented control, now fully complete, uses
31845           rubberband drawing, supports and obeys all properties, has
31846           proper cursors
31847
31848 2005-10-13  Miguel de Icaza  <miguel@novell.com>
31849
31850         * Form.cs (Form): Setup default values for autoscale and
31851         autoscale_base_size;  Make these instance variables, not static
31852         variables. 
31853
31854         (OnLoad): on the first load, adjust the size of the form.
31855
31856 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
31857
31858         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
31859           width argument to DrawReversibleRectangle()
31860         * XplatUIWin32.cs, XplatUIX11.cs: 
31861           - Implemented width for DrawReversibleRectangle()
31862           - Added logic to DrawReversibleRectangle that recognizes a zero
31863             width or height and only draws a line in that situation
31864         
31865 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
31866
31867         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
31868         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
31869         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
31870           method (it uses our FosterParent window to get a graphics context)
31871
31872 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
31873
31874         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
31875           and SetWindowBackground methods
31876         * Control.cs:
31877           - Setting proper ControlStyles
31878           - We no longer call XplatUI.SetWindowBackground and XplatUI.
31879             EraseWindowBackground, instead we draw the window background
31880             ourselves in PaintControlBackground. This behaviour is
31881             required to match MS, where, when OnPaintBackground is not
31882             called, the background is not drawn.
31883           - Removed unneeded Refresh() in set_Text
31884         * Hwnd.cs: Dropped the ErasePending support. No longer needed
31885         * XplatUIX11.cs:
31886           - Created DeriveStyles method to translate from CreateParams to
31887             FormBorderStyle and TitleStyle, also handles BorderStyle (which
31888             matches FormBorderStyle enum values)
31889           - Consolidated SetHwndStyles and CalculateWindowRect border/title
31890             style calculations into single DeriveStyles method
31891           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
31892             from redrawing the whole window on any resize or expose.
31893           - Fixed CreateWindow usage of SetWindowValuemask. Before not
31894             all styles were applied to our whole/client window appropriately
31895           - Removed EraseWindowBackground() and SetWindowBackground() methods
31896           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
31897             no longer clear/redraw the background through X
31898           - Removed handling of erase_pending bit, we have no use for it (or
31899             so it seems)
31900         * XplatUIOSX.cs:
31901           - Removed generation and handling of WM_ERASEBKGND message
31902           - Removed EraseWindowBackground() and SetWindowBackground() methods
31903           - Removed handling of hwnd.ErasePending flag
31904         * XplatUIWin32.cs:
31905           - Removed EraseWindowBackground() and SetWindowBackground() methods
31906           - We no longer call EraseWindowBackground on PaintEventStart, we 
31907             ignore the fErase flag, erasing is handled in Control in the
31908             background handler
31909         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
31910           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
31911           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
31912           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
31913           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
31914           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
31915           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
31916
31917 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
31918
31919         * PropertyGrids.cs: Get sub properties
31920         * PropertyGridView.cs: Fix drawing code
31921
31922 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31923
31924         * ListBox.cs: Fixes 76383
31925
31926 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31927
31928         * DataGridTextBoxColumn.cs: Sets location and size before attachment
31929         * ThemeWin32Classic.cs: Fixes border drawing and calculations
31930         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
31931
31932
31933 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31934
31935         * ComboBox.cs: Fixes border drawing
31936
31937 2005-10-10  Miguel de Icaza  <miguel@novell.com>
31938
31939         * MimeIcon.cs: Ignore errors if the file can not be read.
31940
31941 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31942
31943         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
31944          - Fixed border calculations
31945          - Fixed horizontal scrolling in single column listboxes
31946          - Fixed drawing issues
31947
31948 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
31949
31950         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
31951           FormBorderStyle enum
31952         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
31953           code to determine FormBorderStyles from CreateParams
31954         * Form.cs:
31955           - Fixed bug where we'd set the wrong window styles if we were
31956             not creating an MDI window
31957           - Added call to XplatUI.SetBorderStyle when form borders are set
31958         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
31959         * Hwnd.cs:
31960           - Removed obsolete edge style
31961           - Switched from BorderStyle to FormBorderStyle
31962         
31963 2005-10-10  Jackson Harper  <jackson@ximian.com>
31964
31965         * Form.cs: Use the property to get the window handle instead of
31966         accessing it directly. Prevents a null reference exception.
31967
31968 2005-10-10  Jackson Harper  <jackson@ximian.com>
31969
31970         * TreeView.cs: Don't adjust the rect given to DrawString now that
31971         our libgdiplus draws correctly.
31972
31973 2005-10-08  Jackson Harper  <jackson@ximian.com>
31974
31975         * TreeView.cs: Don't try to find the clicked on node if there are
31976         no nodes in the tree.
31977
31978 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
31979
31980         * RichTextBox.cs:
31981
31982           restore
31983
31984 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
31985
31986         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
31987           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
31988           ErrorProvider.cs:
31989           Use ResPool for brushes and dispose System.Drawing objects that
31990           are not used anymore.
31991
31992 2005-10-07  Jackson Harper  <jackson@ximian.com>
31993
31994         * MdiChildContext.cs: Use the new borders instead of drawing them
31995         ourselves.
31996
31997 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
31998
31999         * Calling UpdateBounds after changing the window's BorderStyle 
32000         since the style can change the ClientSize
32001
32002 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
32003
32004         * Control.cs: Made PaintControlBackground virtual
32005         * Panel.cs: Overriding PaintControlBackground instead of using paint
32006           event; paint event method was interfering with 'real' users of the
32007           event.
32008
32009 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
32010
32011         * ThemeWin32Classic.cs: remove border drawing since it is handled
32012         by the base control class now and was causing double border drawing.
32013
32014 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
32015
32016         * Panel.cs: Redraw our background on paint. Not a pretty solution,
32017           but it does seem to match MS behaviour. This fixes bug #75324
32018
32019 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
32020
32021         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
32022           somewhat hackish looking
32023
32024 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
32025
32026         * TextBoxBase.cs:
32027           - We now accept Enter even if AcceptEnter is false, if the containing
32028             form does not have an AcceptButton configured (fixes bug #76355)
32029           - Calculations are now fixed to no longer use Width/Height, but
32030             ClientSize.Width/Height, since we now support borders (this was
32031             a result of fixing borders and therefore bug #76166)
32032           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
32033             true (fixes bug #76354)
32034         
32035 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
32036
32037         * Control.cs: 
32038           - Defaulting BorderStyle and setting it in XplatUI when our window 
32039             is created
32040           - Added enum check to InternalBorderStyle setter
32041         * XplatUIX11.cs: 
32042           - Added drawing of window borders
32043           - Now properly calculates WM decorations offset for toplevel 
32044             windows (fixes bug #74763)
32045         * XplatUIWin32.cs: 
32046           - Implemented BorderStyles for windows (we're letting win32 draw 
32047             the border for us)
32048           - Fixed the signature for SetWindowLong
32049         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
32050           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
32051           setting borders
32052         * UpDownBase.cs: Remove drawing of borders, this is handled by
32053           the driver, outside the client area
32054         * ListView.cs: Removed bogus border calculations. The control should
32055           be oblivious to borders, since those are not part of the client
32056           area. 
32057         * X11DesktopColors.cs: Commented out (currently) unneeded variables
32058         * ThemeWin32Classic.cs: Removed border calculations from ListView 
32059           drawing code
32060
32061 2005-10-06  Jackson Harper  <jackson@ximian.com>
32062
32063         * MdiChildContext.cs: Clear out the old virtual position remove
32064         all the unneeded calls to CreateGraphics.
32065
32066 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
32067
32068         * TextControl.cs: Use proper color for highlighted text; fixes #76350
32069
32070 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
32071
32072         * Form.cs: 
32073           - Added loading and setting of our new default icon
32074           - Only set icon if window is already created
32075
32076 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
32077
32078         * Label.cs:
32079           - Do not explicitly set the foreground and background colors, to
32080             allow inheriting from parents (fixes #76302)
32081           - Use Control's InternalBorderStyle property to deal with borders
32082
32083 2005-10-06  Jackson Harper  <jackson@ximian.com>
32084
32085         * MdiChildContext.cs: Use the new xplatui function to draw a
32086         reversible rect.
32087
32088 2005-10-06  Jackson Harper  <jackson@ximian.com>
32089
32090         * Form.cs: Add the parent before creating the child context cause
32091         we need the parent when setting up the child.
32092
32093 2005-10-06  Jackson Harper  <jackson@ximian.com>
32094
32095         * FolderBrowserDialog.cs: redo the tree population code so a
32096         second thread isn't used. Should be a lot faster and more stable
32097         now.
32098
32099 2005-10-05  Jackson Harper  <jackson@ximian.com>
32100
32101         * TreeView.cs: There are no expand/collapse boxes if the node has
32102         no children.
32103
32104 2005-10-05  Jackson Harper  <jackson@ximian.com>
32105
32106         * X11DesktopColors.cs: Get menu colours for the gtk theme.
32107
32108 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
32109
32110         * FileDialog.cs: Fix InitialDirectory
32111
32112 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
32113
32114         * ComboBox.cs:
32115                 - Fixes changing between styles
32116                 - Fixes simple mode
32117                 - Fixes last item crashing when navigating with keyboard
32118
32119 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
32120
32121         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
32122
32123 2005-10-05  Jackson Harper  <jackson@ximian.com>
32124
32125         * TreeView.cs: If updating the root node do a full refresh.
32126         * TreeNode.cs: The root node should be expanded by default. Also
32127         added a utility prop to tell if we are the root node.
32128         * TreeNodeCollection.cs: Only refresh if the node we are being
32129         added to is expanded. Also added a comment on a potential
32130         optimization.
32131         
32132 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
32133
32134         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
32135           in dispose method. Fixes #76330
32136
32137 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
32138
32139         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
32140
32141                 - Implements vertical and horizontal scrolling using XplatUI
32142                 - Fixes keyboard navagation
32143                 - Fixes EnsureVisible
32144                 - Drawing fixes
32145                 - Handles and draws focus properly
32146
32147
32148 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
32149
32150         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
32151           Create handle. NET_2_0: Destroy handle when value is null.
32152
32153 2005-10-03  Jackson Harper  <jackson@ximian.com>
32154
32155         * ScrollBar.cs: My last scrollbar patch was broken. This is a
32156         revert and a new patch to prevent the thumb from refreshing so
32157         much.
32158
32159 2005-10-02  Jackson Harper  <jackson@ximian.com>
32160
32161         * ScrollBar.cs: Don't update position if it hasn't actually
32162         changed. This occurs when you hold down the increment/decrement
32163         buttons and the thumb gets to the max/min.
32164
32165 2005-10-01  Jackson Harper  <jackson@ximian.com>
32166
32167         * Form.cs:
32168         * MdiChildContext.cs:
32169         * MdiClient.cs: Implement ActiveMdiChild in Form.
32170
32171 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
32172
32173         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
32174
32175 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
32176
32177         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
32178           be found
32179
32180 2005-09-30  Jackson Harper  <jackson@ximian.com>
32181
32182         * ListBox.cs: Don't do a full refresh unless some data has
32183         actually changed.
32184
32185 2005-09-30  Jackson Harper  <jackson@ximian.com>
32186
32187         * TreeView.cs: Make sure that the checkboxes size is factored in
32188         even when not visible.
32189
32190 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
32191
32192         * FileDialog.cs: Fix Jordi's build break
32193
32194 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
32195
32196         * FileDialog.cs: 
32197                 - Use standard the Windows colours for the combobox as espected
32198                 - Dispose objects that use resouces when no longer need them
32199
32200 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
32201
32202         * X11DesktopColors.cs: Initial incomplete implementation
32203         * XplatUIX11.cs: Added call to initialize X11DesktopColors
32204
32205 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
32206
32207         * Theme.cs: 
32208           - Switched Theme color names to match the names defined in 
32209             System.Drawing.KnownColors. Life's hard enough, no need to make 
32210             it harder.
32211           - Added setters to all theme color properties so themes can set
32212             their color schemes. The setters also propagate the color changes
32213             to System.Drawing.KnownColors via reflection
32214         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
32215           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
32216           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
32217           use the new, more logical theme color names
32218         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
32219           post-NT colors
32220         * ThemeWin32Classic.cs:
32221           - Removed code to set the old classic Windows colors. Instead it
32222             now relies on the colors returned by System.Drawing.KnownColors
32223             which will be either modern static colors (Unix) or colors
32224             read from the user's configuration (Win32)
32225           - Updated to use the new, more logical theme color names
32226           - Switched DataGrid drawing code to use only Theme colors instead of
32227             a mix of System.Drawing.KnownColors and Theme colors
32228           - DrawFrameControl(): Removed code that fills the button area, the
32229             fill would overwrite any previous fill done by a control. This
32230             fixes bug #75338 
32231           - Added DrawReversibleRectangle() stub
32232         * ScrollableControl.cs: Set visible state to false when scrollbars
32233           are removed (pdn fix)
32234         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
32235           DrawReversibleRectangle() method to allow drawing primitive 
32236           'rubber bands'
32237         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
32238
32239 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32240
32241         * ImageList.cs: Add(Icon): Create handle.
32242
32243 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
32244
32245         * ListView.cs:
32246         * ThemeWin32Classic.cs:
32247                 - Fixes detail mode
32248                 - Sets clippings
32249                 - Issues with drawing
32250
32251 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32252
32253         * ImageList.cs: Moved RecreateHandle back to ImageList as event
32254           source has to be the ImageList.
32255
32256 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32257
32258         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
32259
32260 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32261
32262         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
32263
32264 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32265
32266         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
32267
32268 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
32269         * GridItem.cs: Fixed TODOs
32270         * GridItemCollection.cs: Added ICollection interface
32271
32272 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32273
32274         * ImageList.cs: Resize icons when needed.
32275
32276 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
32277
32278         * ListViewItem.cs
32279                 - Fixes GetBounds and returns on screen rects
32280         * ListView.cs:
32281                 - Fixes vertical and horzintal scrolling of items
32282         * ThemeWin32Classic.cs:
32283                 - Fixes drawing
32284                 
32285 2005-09-29  Raja R Harinath  <harinath@gmail.com>
32286
32287         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
32288
32289 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
32290
32291         * ImageList.cs: Added comments about handle creation. Moved Handle,
32292           HandleCreated and OnRecreateHandle implementations to ImageCollection.
32293           Handle is created in Add methods.
32294
32295 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
32296          
32297         * DataGridDrawingLogic.cs: 
32298                 - Takes rows into account on Colum calculations
32299                 - Returns the column when clickig
32300         * DataGrid.cs:
32301                 - Fixes default HitTestInfo values
32302                 - Fixes HitTestInfo.ToString
32303                 - Fixes ResetBackColor          
32304         
32305 2005-09-28  Jackson Harper  <jackson@ximian.com>
32306
32307         * MdiChildContext.cs: Obey rules for fixed sized windows (no
32308         sizing or cursor changes). Also added some temp code to draw the
32309         titlebars text (Makes dev a little easier).
32310
32311 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
32312
32313         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
32314
32315 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
32316          
32317         * ListBox.cs: Fixes bug 76253
32318
32319 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
32320
32321         * ImageList.cs: Added comments about the current implementation. Added
32322           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
32323           Format32bppArgb to preserve transparency and can use Graphics.FromImage
32324           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
32325           with Bitmap.LockBits for better performance. Revised the whole file to
32326           match MS.NET behaviour and provide better performance. Non-public
32327           interface members are calling public members even when they throw
32328           NotSupportedException for better maintainability. Moved ColorDepth,
32329           ImageSize, ImageStream and TransparentColor implementations to
32330           ImageCollection for better performance as these properties are not used
32331           by ImageList.
32332         * ImageListStreamer.cs: Added a new internal constructor that takes an
32333           ImageList.ImageCollection and serializes Images based on
32334           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
32335           match ImageList property name.
32336
32337 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
32338
32339         * ListBox.cs: Fixes IndexFromPoint for last item
32340
32341 2005-09-27  Jackson Harper  <jackson@ximian.com>
32342
32343         * Form.cs: Set the position of new mdi children correctly.
32344
32345 2005-09-27  Jackson Harper  <jackson@ximian.com>
32346
32347         * MdiClient.cs: New mdi children need to be added to the back of
32348         the controls collection so the zorder is set correctly. Also add a
32349         count of all the child windows that have been created.
32350
32351 2005-09-27  Jackson Harper  <jackson@ximian.com>
32352
32353         * Form.cs (CreateParams): Setup MDI forms correctly.
32354
32355 2005-09-27  Jackson Harper  <jackson@ximian.com>
32356
32357         * MdiChildContext.cs:
32358         * MonthCalendar.cs:
32359         * UpDownBase.cs:
32360         * ListBox.cs:
32361         * ListView.cs:
32362         * TextBoxBase.cs:
32363         * TreeView.cs:
32364         * ScrollableControl.cs:
32365         * ComboBox.cs: Add implicit controls using the new implict control
32366         functionality in ControlCollection. Also try to block multiple
32367         control add in a suspend/resume layout to save some cycles.
32368         
32369 2005-09-27  Jackson Harper  <jackson@ximian.com>
32370
32371         * Control.cs: Add functionality to the controls collection to add
32372         'implicit controls' these are controls that are created by the
32373         containing control but should not be exposed to the user. Such as
32374         scrollbars in the treeview.
32375         * Form.cs: The list var of the ControlsCollection is no longer
32376         available because of the potential of implicit controls getting
32377         ignored by someone accessing the list directly.
32378
32379 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
32380
32381         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
32382           loose it's parent. (Fixed bug introduced in r49103 when we added
32383           setting the child parent to null on Remove)
32384
32385 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
32386
32387         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
32388         * Splitter.cs: Added missing attributes for BorderStyle property.
32389         * TextBoxBase.cs: Marked Calculate* methods internal.
32390         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
32391         MS.NET.
32392
32393 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
32394          
32395         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
32396
32397 2005-09-25  Jackson Harper  <jackson@ximian.com>
32398
32399         * TreeView.cs: Update the node bounds correctly regardless of
32400         whether the node is visible.
32401
32402 2005-09-25  Jackson Harper  <jackson@ximian.com>
32403
32404         * ImageList.cs: Don't dispose the image after it is added to the
32405         image list. Only reformat images that need to be resized.
32406
32407 2005-09-25  Jackson Harper  <jackson@ximian.com>
32408
32409         * ImageList.cs: Don't set the format when changing the image.
32410
32411 2005-09-25  Jackson Harper  <jackson@ximian.com>
32412
32413         * TreeView.cs: We can't just assume the node has a font. Use the
32414         treeviews font if no node font is available.
32415
32416 2005-09-25  Jackson Harper  <jackson@ximian.com>
32417
32418         * TreeView.cs: Allow the scrollbars to be reset with negative
32419         values.
32420         - Don't add scrollbars to negative sized windows.
32421
32422 2005-09-23  Jackson Harper  <jackson@ximian.com>
32423
32424         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
32425         old Mono.Posix. Also remove some stray code that shouldn't have
32426         been committed.
32427
32428 2005-09-23  Jackson Harper  <jackson@ximian.com>
32429
32430         * TreeView.cs: Attempt at proper sizing of the horizontal
32431         scrollbar. Also don't resize the scrollbars unless they are
32432         visible.
32433
32434 2005-09-23  Jackson Harper  <jackson@ximian.com>
32435
32436         * TreeView.cs: We don't need to expand the invalid area when the
32437         selection changes, as this is all drawn in the node's bounding
32438         box. The area needs to be expanded (previous typo was contracting
32439         it) when the focus rect moves.
32440
32441 2005-09-23  Jackson Harper  <jackson@ximian.com>
32442
32443         * TreeView.cs: Display the selection box under the correct
32444         circumstances. We were rendering white text with no selection box
32445         before.
32446
32447 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
32448
32449         * TextControl.cs(Split): Now updates selection start/end if it points 
32450           into a line that's being split. Fixes a FIXME and bug #75258
32451
32452 2005-09-23  Jackson Harper  <jackson@ximian.com>
32453
32454         * Binding.cs:
32455         * ListControl.cs: Don't use the path when retrieving binding
32456         managers from the binding context. My bat sense tells me that the
32457         path is only used on insertion.
32458
32459 2005-09-22  Jackson Harper  <jackson@ximian.com>
32460
32461         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
32462
32463 2005-09-22  Jackson Harper  <jackson@ximian.com>
32464
32465         * Splitter.cs: There are special cursors used for splitting.
32466         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
32467
32468 2005-09-22  Jackson Harper  <jackson@ximian.com>
32469
32470         * Splitter.cs: Change the cursor appropriately when the splitter
32471         is moused over, so the user actually knows there is a splitter
32472         there.
32473
32474 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
32475
32476        * Label.cs : Fix ToString method to give same output as MS.NET
32477
32478 2005-09-22  Jackson Harper  <jackson@ximian.com>
32479
32480         * TreeView.cs: Create the scrollbars when the handle is created
32481         and add them right away, just make them invisble. Also account for
32482         the window being shrunk vertically to the point that the vert
32483         scrollbar needs to be added.
32484         - Remove some 0.5 adjustments to get around anti aliasing issues.
32485         
32486 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
32487          
32488         * MainMenu.cs: Fixes default value
32489         * MenuItem.cs: Fixes default value
32490
32491 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
32492
32493         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
32494
32495 2005-09-21  Jackson Harper  <jackson@ximian.com>
32496
32497         * Control.cs: Don't try to set the border style on the window if
32498         it hasn't been created. When the window is created the border
32499         style will be used.
32500
32501 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
32502
32503         * Control.cs (Update): Don't call XplatUI if we don't have a
32504           window handle yet
32505
32506 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
32507
32508         * ContainerControl.cs: Instead of throwing an exception, print
32509           a one-time warning about Validate not being implemented
32510         * XplatUIWin32.cs: Removed debug output
32511
32512 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
32513
32514         * Control.cs: Only set XplatUI background if we expect the windowing
32515           system to handle the background. This stops controls that draw their
32516           own background from flickering
32517
32518         * XplatUIX11.cs: Support custom visuals and colormaps for window 
32519           creation. This allows, amongst other things, using MWF X11 windows 
32520           with OpenGL.
32521
32522 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
32523
32524         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
32525           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
32526           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
32527           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
32528           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
32529           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
32530           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
32531           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
32532           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
32533           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
32534           GridColumnStylesCollection.cs, 
32535           IDataGridColumnStyleEditingNotificationService.cs,
32536           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
32537           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
32538           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
32539           TreeNodeCollection.cs, AmbientProperties.cs, 
32540           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
32541           DataObject.cs, ErrorProvider.cs, Splitter.cs,
32542           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
32543           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
32544           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
32545           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
32546           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
32547           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
32548           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
32549           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
32550           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
32551           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
32552           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
32553           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
32554           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
32555           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
32556           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
32557           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
32558           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
32559           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
32560           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
32561           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
32562           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
32563           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
32564           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
32565           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
32566           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
32567           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
32568           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
32569           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
32570           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
32571           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
32572           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
32573           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
32574           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
32575           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
32576           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
32577
32578 2005-09-21  Jackson Harper  <jackson@ximian.com>
32579
32580         * TreeNode.cs: Call Before/After Expand not Collapse when
32581         expanding.
32582
32583 2005-09-20  Jackson Harper  <jackson@ximian.com>
32584         
32585         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
32586
32587 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
32588          
32589         * ListViewItem.cs:
32590                 - Fixes bug 76120
32591                 - Fixes proper storing of subitems
32592                 - Fixes not updated items
32593
32594 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
32595
32596         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
32597           things if our window handle isn't created yet. Also disabled 
32598           debug for TextBoxBase
32599
32600 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
32601
32602         * MenuAPI.cs: Remove filtering of events to allow menu usage
32603
32604 2005-09-20  Miguel de Icaza  <miguel@novell.com>
32605
32606         * Cursor.cs: Allow null to be passed to Cursor.Current.
32607
32608 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
32609
32610         * ThemeWin32Classic.cs:
32611           - Change some private methods/fields to protected virtual so that 
32612             they can be accessed and overriden in derived classes
32613           - First refactoring of some methods. Derived themes now don't 
32614             need to duplicate the complete code from ThemeWin32Classic
32615         * ThemeNice.cs:
32616           - Added nice StatusBar
32617           - Derive from ThemeWin32Classic and not Theme
32618           - Removed duplicate ThemeWin32Classic code
32619
32620 2005-09-20  Miguel de Icaza  <miguel@novell.com>
32621
32622         * Control.cs (ControlCollection.Add): If the value null is passed
32623         the control is ignored. 
32624
32625         Optimize this loop.
32626
32627 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
32628
32629         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
32630           PostQuitMessage state.
32631         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
32632
32633 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
32634
32635         * Application.cs: Our constructor will never get called, move 
32636           initialization to fields; fixes bug #75933
32637
32638 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
32639
32640         * FileDialog.cs :
32641                 - Allow files to be selected properly using file name
32642                 combo box.
32643                 - Add ability to change diretory (absolute / relative)
32644                 using file name combo box.
32645
32646 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
32647          
32648         * ListBox.cs: 
32649                 - Fixes Multicolumn listboxes item wrong calculations
32650                 - Allows to click when only one item is in the listbox
32651                 - Fixes crash when no items using keyboard navigation
32652
32653 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
32654
32655         * ComboBox.cs: Reverted almost everything from the latest patch which
32656           broke ComboBox
32657
32658 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
32659         
32660         * ToolTip.cs:
32661                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
32662         * ComboBox.cs:
32663                 - When DropDownStyle is Simple, it does not show scrollbar 
32664                 to the last item of the list.
32665                 - When DropDownStyle is Simple, it crashed when the list was 
32666                 scrolled down with the down cursor key.
32667                 - Fixed a bug that when DropDownStyle is DropDownList, the 
32668                 selected item was not shown.
32669                 - The position of the selected item was not preserved when 
32670                 the next dropdown happened.
32671         * ThemeWin32Classic.cs:
32672                 - Items were wrapped at the right end.
32673         * CheckedListBox.cs:
32674                 - Fixed Add method
32675         * ListBox.cs:
32676                 - Items should be fully shown.
32677                 - When resizing and vertical scrollbar disappeared, the item 
32678                 of index 0 should be on the top of the list.
32679                 - GetItemRectangle should consider the size of ver. scrollbar
32680         * StatusBar.cs:
32681                 - SizingGrip area should not be allocated when it is not 
32682                 displayed.
32683                 - Now it reflects MinWidth of the containing panel and 
32684                 fixed a crash that happens when its width becomes so small.
32685
32686 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
32687
32688         * CheckedListBox.cs: Fixes bug 76028
32689         * ListBox.cs: Fixes bug 76028
32690
32691 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
32692
32693         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
32694         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
32695
32696 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
32697
32698         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
32699
32700 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
32701
32702         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
32703
32704 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
32705
32706         * IRootGridEntry.cs: Added
32707         * PropertyGridCommands.cs: Added
32708         * PropertiesTab.cs: Added missing methods and property
32709         * PropertyGridView.cs: Made class internal
32710         * PropertyGridTextBox.cs: Made class internal
32711
32712 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
32713
32714         * MimeIcon.cs: Try to check some other environment variables
32715           if "DESKTOP_SESSION" returns "default"
32716
32717 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
32718
32719         * ThemeNice.cs: Corrected background colors (e.g. menus)
32720         * ColorDialog.cs: Use correct background colors for controls
32721
32722 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
32723
32724         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
32725
32726 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
32727
32728         * RichTextBox.cs: Added initial implementation
32729         * lang.cs: Removed. Was accidentally checked in long time ago
32730         * TODO: Removed. Contents were obsolete
32731
32732 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
32733                                                                                 
32734         * PropertiesTab.cs : Added
32735
32736 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
32737                                                                                 
32738         * PropertyGrid.cs : Update
32739         * PropertyGridView.cs : Update
32740         * System.Windows.Forms.resx : Added images and strings
32741
32742 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
32743
32744         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
32745  
32746 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
32747
32748         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
32749           a busy loop right after the Ungrab the X11 display is otherwise 
32750           blocked
32751
32752 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
32753
32754         * ThemeWin32Classic.cs: Optimise the use of clipping
32755
32756 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
32757
32758         * DataGrid.cs: fixes recursion bug
32759
32760 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
32761
32762         * ThemeNice.cs: 
32763           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
32764           - Cleanup
32765
32766 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
32767
32768         * ThemeNice.cs: Draw nice ProgressBars
32769
32770 2005-09-01  Miguel de Icaza  <miguel@novell.com>
32771
32772         * VScrollBar.cs: Another buglet found by Aaron's tool. 
32773
32774         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
32775         bug finder.
32776
32777 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
32778
32779         * ThemeNice.cs:
32780           - Added nicer menu drawing
32781           - Updated DrawTab
32782           - some refactoring
32783
32784 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
32785
32786         * CreateParams.cs (ToString): Made output match MS
32787         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
32788             handle is already created (to avoid forcing window creation)
32789         * XplatUIX11.cs: Set window text to caption after creating window,
32790           in case Text was set before window was created
32791         * Form.cs: Use this.Text instead of a static string as caption
32792
32793 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
32794
32795         * NotifyIcon.cs: Don't set the window to visible; this screws
32796           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
32797           OnPaint without a bitmap)
32798         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
32799           happen very often anyway; we could add the check to the WM_PAINT 
32800           event generation code
32801
32802 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
32803
32804         * NotifyIcon.cs: Fill the icon area with a background color, to 
32805           avoid 'residue' when transparent icons are drawn
32806         * XplatUIX11.cs:
32807           - Handle whole_window == client_window when destroying windows
32808           - SystrayAdd(): Set client_window to whole_window value to
32809             get mouse and other events passed to NotifyIcon
32810
32811 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
32812
32813         * Form.cs: Set proper default for Opacity property
32814         * NotifyIcon.cs:
32815           - ShowSystray(): Don't bother creating telling the OS
32816             about the systray item if no icon is provided
32817           - Now handles WM_NCPAINT message to deal with whole/client window
32818             split
32819           - Create window as visible to not get caught by Expose optimization
32820         * Hwnd.cs: Removed debug message
32821         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
32822           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
32823             PaintEventStart/End to use new client argument
32824         * TextBoxBase.cs:
32825           - Commented out debug messages
32826           - Switched PaintEventStart/End to use new client argument
32827         * XplatUI.cs: Added client window bool to PaintEventStart()/
32828           PaintEventEnd() calls, to support drawing in non-client areas
32829         * XplatUIDriver.cs: 
32830           - Added client window bool to PaintEventStart()/PaintEventEnd() 
32831             calls, to support drawing in non-client areas
32832           - Added conditional compile to allow using MWF BeginInvoke 
32833             on MS runtime
32834         * XplatUIX11.cs:
32835           - Added some conditional debug output
32836           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
32837             whole/client window split
32838           - Implemented handling of client argument to PaintEventStart()/End()
32839         * Control.cs:
32840           - Throw exception if BeginInvoke() is called and the window handle
32841             or one of the window's parent handles is not created
32842           - Added conditional compile to allow using MWF BeginInvoke on
32843             MS runtime
32844           - get_Parent(): Only sets parent if handle is created. This avoids
32845             forcing window handle creation when parent is set.
32846           - Now fires Layout and Parent changed events in proper order
32847           - Switched to use Handle instead of window.Handle for Z-Order setting,
32848             the get_Parent() patch above causes us to possibly get null for 'window'
32849           - Implemented handling of client argument to PaintEventStart()/End()
32850           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
32851             default handling)
32852           - Now sends a Refresh() to all child windows when Refresh() is called
32853
32854 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
32855
32856         * Form.cs: Added (non-functional) Opacity property
32857         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
32858
32859 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
32860         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
32861           use export MONO_THEME=nice to activate it.
32862           Currently supported controls:
32863           - Button
32864           - ComboBox
32865           - ScrollBar
32866           - TabControl (TabAlignment.Top only, other will follow)
32867         * ThemeEngine.cs: Add theme nice
32868         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
32869           if enabled
32870
32871 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
32872
32873         * Splitter.cs: Resize docked control and its neighbor.
32874
32875 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
32876         -- Making Windows with Menus layout correctly --
32877         * Form.cs : The first leg of the fix
32878                 Menu setter - adjust Client Size as needed to make space for the menu
32879                 SetClientSizeCore - doesn't call base version to be able to pass the 
32880                         menu handle to XplatUI.CalculateWindowRect
32881         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
32882         * XplatUIX11.cs: The critical second leg of the fix
32883                 GetWindowPos needs to use a recalculated client_rect
32884                 so that resizing the window doesn't break layout of child controls. 
32885                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
32886                 Lots of \t\n killed
32887
32888 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
32889
32890         * Label.cs: Now properly recalculates width and height on Font and Text
32891           changes if AutoSize is set
32892
32893 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
32894         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
32895
32896 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
32897
32898         * ImageList.cs: Makes ToString method compatible with MS
32899
32900 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
32901
32902         * MenuAPI.cs: fixes bug 75716
32903
32904 2005-08-11 Umadevi S <sumadevi@novell.com>
32905         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
32906
32907 2005-08-11 Umadevi S <sumadevi@novell.com>
32908         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
32909
32910 2005-08-10  Umadevi S <sumadevi@novell.com>
32911         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
32912
32913 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
32914
32915         * Menu.cs: fixes bug 75700
32916         * MenuAPI.cs: fixes navigation issues
32917
32918 2005-08-09  Umadevi S <sumadevi@novell.com>
32919         * CheckedListBox.cs - simple fix for GetItemChecked.
32920
32921 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
32922
32923         * ComboBox.cs: Serveral fixes
32924         * ListBox.cs: Serveral fixes
32925
32926 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
32927
32928         * ComboBox.cs: Fixes FindString methods and GetItemHeight
32929         * ListBox.cs: Fixes FindString methods
32930
32931 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
32932
32933         * DataGrid.cs: fixes bugs exposed by new tests
32934
32935 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
32936
32937         * Mime.cs: Compile Mono assembly references only if compiling
32938           with Mono (Allows to build with VS.Net again)
32939
32940 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
32941
32942         * Control.cs (PaintControlBackground): Draw background image
32943         corrrectly.
32944         (CheckForIllegalCrossThreadCalls): Stubbed.
32945         
32946         * Form.cs (OnCreateControl): Center when should be centered.
32947         
32948         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
32949
32950 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
32951
32952         * Binding.cs: Binding to properties should be case unsensitive
32953
32954 2005-07-18 vlindos@nucleusys.com
32955
32956         * DataGrid.cs: fixes setmember order
32957
32958 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
32959
32960         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
32961         * FileDialog.cs: FileDialog is now resizable and uses the new
32962           MimeIconEngine
32963
32964 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
32965
32966         * DataGridTextBoxColumn.cs: default value
32967         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
32968         * GridTableStylesCollection.cs: fixes checking MappingName
32969         * DataGridDrawingLogic.cs: fixes drawing logic issues
32970         * DataSourceHelper.cs: rewritten to make compatible with more data sources
32971         * DataGrid.cs: fixes    
32972
32973 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
32974
32975         * MimeGenerated.cs: Use case sensitive comparer for
32976           NameValueCollections
32977
32978 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
32979
32980         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
32981         * ThemeWin32Classic.cs: bug fixes, code refactoring
32982         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
32983         * DataGrid.cs: bug fixes, code refactoring
32984         * DataGridTextBox.cs: bug fixes, code refactoring
32985         * DataGridColumnStyle.cs:  bug fixes, code refactoring
32986         * Theme.cs:  bug fixes, code refactoring
32987
32988 2005-07-01  Peter Bartok  <pbartok@novell.com> 
32989
32990         * TextControl.cs: Quick fix for the reported crash on ColorDialog
32991           and other text box usage
32992
32993 2005-07-01  Jackson Harper  <jackson@ximian.com>
32994
32995         * TabControl.cs: Make sure the bottom of the tab covers the pages
32996         border.
32997
32998 2005-06-30  Peter Bartok  <pbartok@novell.com> 
32999
33000         * Form.cs (ShowDialog): Assign owner of the dialog
33001         * TextBoxBase.cs: Always refresh caret size when deleting, caret
33002           might have been moved to a tag with different height
33003
33004 2005-06-30  Jackson Harper  <jackson@ximian.com>
33005
33006         * Form.cs: Don't create an infinite loop when setting focus
33007         * MenuItem.cs: Don't dirty the parents if we don't have any
33008
33009 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
33010
33011         * LibSupport.cs: Rename
33012
33013 2005-06-29  Peter Bartok  <pbartok@novell.com>
33014
33015         * TextBoxBase.cs: Re-align caret after deleting a character
33016         * TextControl.cs:
33017           - DeleteChars(): Ensure that tag covers the provided position
33018           - StreamLine(): Drop reference for dropped tag
33019
33020 2005-06-29  Peter Bartok  <pbartok@novell.com> 
33021
33022         * TextControl.cs: 
33023           - Selections now work properly, anchoring at the initial location
33024             and properly extending in either direction (SetSelectionToCaret(),
33025             SetSelectionStart() and SetSelectionEnd())
33026           - No longer redraws the whole control on selection change, now
33027             calculates delta between previous and new selection and only
33028             invalidates/redraws that area
33029           - Fixed FindPos() math off-by-one errors
33030           - Changed DeleteChars() to verify the provided tag covers the
33031             provided position, selections may have a tag that doesn't cover
33032             the position if the selection is at a tag border
33033           - Fixed off-by-one errors in DeleteChars()
33034           - Added missing streamlining check in DeleteChars() to remove
33035             zero-length tags
33036           - Implemented Invalidate() method, now properly calculates exposures
33037             between two given lines/positions
33038           - Implemented SetSelection()
33039           - Obsoleted and removed FixupSelection()
33040           - Improved RecalculateDocument() logic, removing code duplication
33041
33042 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
33043
33044         * LibSupport.cs: changes to match different input/output arguments.
33045
33046 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
33047
33048         * LibSupport.cs: added libsupport.so init routine.
33049
33050 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
33051         
33052         * ControlBindingsCollection.cs
33053                 - Throws an exception on null datasource when adding
33054                 - Checks for duplicated bindings when adding
33055
33056 2005-06-28  Jackson Harper  <jackson@ximian.com>
33057
33058         * TreeView.cs (OnKeyDown): Support left and right properly
33059         (navigates as well as expanding and collapsing.
33060         - Add support for Multiply, this expands all the selected nodes
33061         children.
33062         - Fix some tabbing.
33063
33064 2005-06-28  Jackson Harper  <jackson@ximian.com>
33065
33066         * TreeView.cs: Implement keyboard navigation, currently supports,
33067         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
33068         support for toggling checkboxes with the space bar.
33069
33070 2005-06-28  Jackson Harper  <jackson@ximian.com>
33071
33072         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
33073         tree.
33074
33075 2005-06-28  Jackson Harper  <jackson@ximian.com>
33076
33077         * TreeView.cs: Add missing event.
33078
33079 2005-06-27  Peter Bartok  <pbartok@novell.com> 
33080
33081         * TextControl.cs:
33082           - Made line ending size configurable (now allows for counting 
33083             lineendings as \n or \r\n)
33084           - Added margin to viewport to keep caret visible on right side
33085           - Fixed translation routines for line/pos to documentpos to consider
33086             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
33087           - Fixed some line-endings to be unix style
33088           - Fixed Document.FormatText to perform it's calculations 1-based
33089           - Added descriptions for a few methods that might otherwise get 
33090             used wrong
33091           - Added NOTE section with some basic conventions to remember at 
33092             the top of the file
33093           - Major fixup for RichTextBox selection drawing:
33094             * Fixed crashes when multiple tags on a single line were selected
33095             * fixed selection box drawing not overlaying text
33096             * fixed bogus offset calculation for tags not starting at index 1
33097             * Switched behaviour from using multiple Substrings of a 
33098               StringBuilder.ToString() to using multiple 
33099               StringBuilder.ToString(start, length) statements, hoping this is
33100               faster (kept original version commented out in the code, in case
33101               original version was faster)
33102         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
33103           alignment != Left
33104         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
33105           call it as well
33106
33107 2005-06-27  Jackson Harper  <jackson@ximian.com>
33108
33109         * TabControl.cs: Move to the left and right with the arrow
33110         keys. These keys don't cycle beyond first and last like
33111         tab. Refresh all the tabs when scrolling them to the left or
33112         right.
33113
33114 2005-06-27  Jackson Harper  <jackson@ximian.com>
33115
33116         * TabControl.cs:
33117           - ToString: Added method
33118           - CreateParams: Remove TODO and comment
33119           - OnKeyDown: Cycle through bounds properly.
33120           - SelectedIndex: Scroll to the right or left if we need to
33121           display the newly selected tab.
33122
33123 2005-06-23  Jackson Harper  <jackson@ximian.com>
33124
33125         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
33126         set.
33127
33128 2005-06-23  Jackson Harper  <jackson@ximian.com>
33129
33130         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
33131         CTRL-SHIFT-TAB, and HOME, END are there any others?
33132
33133 2005-06-23  Jackson Harper  <jackson@ximian.com>
33134
33135         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
33136
33137 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
33138         
33139         * DataGridTextBoxColumn.cs: fixes and enhancements
33140         * ThemeWin32Classic.cs: fixes and enhancements
33141         * DataGridBoolColumn.cs:  fixes and enhancements
33142         * DataGridDrawingLogic.cs:  fixes and enhancements
33143         * CurrencyManager.cs: fixes and enhancements
33144         * DataGrid.cs: fixes and enhancements
33145         * DataGridColumnStyle.cs:  fixes and enhancements
33146
33147 2005-06-22  Jackson Harper  <jackson@ximian.com>
33148
33149         * TabControl.cs: Add some missing methods that just call into the
33150         base. Make the TabPageCollection's IList interface behave in the
33151         same manner as the MS implementation.
33152
33153 2005-06-22  Peter Bartok  <pbartok@novell.com> 
33154
33155         * TextControl.cs: Added sanity check
33156         * TextBoxBase.cs: 
33157           - Fixed wrapping behaviour, don't set wrap on single line controls
33158             (this fixes the breakage of colordialog introduced in an earlier
33159              checkin)
33160           - Added rudimentary support for autoscrolling right-aligned controls
33161             (still needs fixing, also, center alignment scroll is missing)
33162
33163 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
33164         
33165         * ScrollBar.cs: Fixes thumbpos on Maximum values
33166
33167 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
33168         
33169         * PropertyGridView.cs: Pass context information to UITypeEditors 
33170
33171 2005-06-21  Peter Bartok  <pbartok@novell.com> 
33172
33173         * TextBoxBase.cs:
33174           - Now calling PositionCaret with absolute space coordinates
33175           - Enabled vertical scrolling
33176           - Better tracking of scrollbar changes, tied into WidthChange
33177             event
33178           - Improved cursor tracking
33179           - Removed debug output
33180         * TextControl.cs:
33181           - PositionCaret coordinates are now works in absolute space, not 
33182             the canvas
33183           - Improved tracking of document size
33184           - Added events for width and height changes
33185
33186 2005-06-21  Peter Bartok  <pbartok@novell.com>
33187
33188         * Form.cs: Set focus to active control when form is activated
33189         * TextControl.cs: 
33190           - Added word-wrap functionality to RecalculateLine() 
33191           - Added some short function descriptions for VS.Net to aid in
33192             writing dependent controls
33193           - Added Caret property, returning the current coords of the caret
33194           - Added ViewPortWidth and ViewPortHeight properties
33195           - Added Wrap property
33196           - Added CaretMoved event
33197           - Removed some old debug code
33198           - Split() can now create soft splits
33199           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
33200           - Added method to format existing text
33201           - Fixed size/alignment calculations to use viewport
33202           - RecalculateDocument now can handle changing line-numbers while
33203             calculating lines
33204
33205         * TextBox.cs:
33206           - Added some wrap logic, we don't wrap if alignment is not left
33207           - Added casts for scrollbar var, base class switched types to
33208             also support RichTextBoxA
33209           - Implemented handling of scrollbar visibility flags
33210
33211         * TextBoxBase.cs:
33212           - Switched scrollbars type to RichTextBoxScrollBars to support
33213             RichTextBox
33214           - Added tracking of canvas width/height
33215           - Switched scrollbars to be not selectable (to keep focus on text)
33216           - Added central CalculateDocument() method to handle all redraw
33217             requirements
33218           - Added ReadOnly support
33219           - Added WordWrap support
33220           - Fixed handling of Enter key (we now treat it as a DialogKey)
33221           - Fixed caret positioning when h or v scroll is not zero
33222           - Fixed placing/generation of vertical scrollbar
33223           - Added CalculateScrollBars() method to allow updating scrollbar
33224             limits and visibility
33225           - Fixed handling of horizontal scroll
33226           - Added handling of vertical scroll
33227           - Implemented auto-'jump' when caret moves to close to a left or
33228             right border and there is text to be scrolled into view (currently
33229             there's the potential for a stack overflow, until a bug in
33230             scrollbar is fixed)
33231
33232 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
33233         
33234         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
33235
33236 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
33237
33238         * Mime.cs:
33239         - added inodes.
33240         - return application/x-zerosize for files with size zero
33241           (if no extension pattern matches).
33242         - check matches collection for strings too.
33243         - return only the first mime type if the name value
33244           collection has more than one mime type.
33245
33246 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
33247         
33248         * PropertyGrid.cs: Cleaned up some TODOs
33249         * PropertyGridView.cs: Added support for UITypeEditors
33250
33251 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
33252         
33253         * DataGrid.cs: clears cached value
33254
33255 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
33256
33257         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
33258         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
33259         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
33260         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
33261         
33262 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
33263
33264         * ThemeWin32Classic.cs: fixes colour
33265
33266 2005-06-15  Peter Bartok  <pbartok@novell.com>
33267
33268         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
33269         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
33270         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
33271         * Control.cs: Added some MWFCategory and MWFDescription attributes
33272         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
33273
33274 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
33275
33276         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
33277         usage
33278
33279 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
33280
33281         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
33282         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
33283         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
33284         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
33285         * DataGrid.cs: default datagrid settings for Default Styles, fixes
33286         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
33287
33288 2005-06-13  Jackson Harper  <jackson@ximian.com>
33289
33290         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
33291         isn't printed when the user enables dropping. (X11 does accept
33292         drops).
33293         
33294 2005-06-13  Jackson Harper  <jackson@ximian.com>
33295
33296         * TreeView.cs: Remove some TODOS.
33297
33298 2005-06-13  Jackson Harper  <jackson@ximian.com>
33299
33300         * Form.cs: Hook into the mdi framework.
33301         * MdiClient.cs: Use the base control collections add method so
33302         parents get setup correctly. Set the default back colour and dock
33303         style.
33304         * MdiChildContext.cs: New class, this bad actor handles an
33305         instance of an MDI window. Right now there is only basic
33306         support. You can drag, close, and resize windows. Minimize and
33307         Maximize are partially implemented.
33308
33309 2005-06-13  Jackson Harper  <jackson@ximian.com>
33310
33311         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
33312         freaky when both vals are negative. NOTE: There are probably other
33313         places in XplatUIX11 that this needs to be done.
33314
33315 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
33316
33317         * DataGrid.cs: implement missing methods, move KeyboardNavigation
33318         * DataGridColumnStyle.cs: fixes signature
33319
33320 2005-06-12  Jackson Harper  <jackson@ximian.com>
33321
33322         * XplatUIX11.cs: Use sizing cursors similar to the ones on
33323         windows.
33324
33325 2005-06-11  Jackson Harper  <jackson@ximian.com>
33326
33327         * StatusBarPanel.cs: Signature cleanups. Implement
33328         BeginInit/EndInit.
33329
33330 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
33331
33332         * DataGridTextBoxColumn.cs: Honors aligment
33333         * GridColumnStylesCollection.cs: Contains is case unsensitive
33334         * GridTableStylesCollection.cs: several fixes
33335         * DataGridTableStyle.cs: default column creation
33336         * DataGridDrawingLogic.cs: fixes
33337         * CurrencyManager.cs: ListName property
33338         * DataGrid.cs: multiple styles support
33339         * DataGridColumnStyle.cs: fixes
33340         
33341
33342 2005-06-10  Peter Bartok  <pbartok@novell.com>
33343
33344         * Control.cs(Select): Moved SetFocus call to avoid potential
33345           loops if controls change the active control when getting focus
33346         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
33347           the up/down buttons
33348
33349 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
33350
33351         * ImageListConverter.cs: Implemented
33352
33353 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
33354
33355         * MonthCalendar.cs: Wired in NumericUpDown control for year
33356
33357 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
33358
33359         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
33360           DoubleClick events, since they are not meant to be fired.
33361
33362 2005-06-09  Peter Bartok  <pbartok@novell.com>
33363
33364         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
33365           Jonathan's standalone controls into MWF, implemented missing
33366           events, attributes and methods; added xxxAccessible classes
33367         * AccessibleObject.cs: Made fields internal so other classes
33368           can change them if needed
33369
33370 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
33371
33372         * UpDownBase.cs: Complete implementation
33373         * NumericUpDown.cs: Complete implementation
33374         * DomainUpDown.cs: Complete implementation
33375
33376 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
33377
33378         * DataGridTextBoxColumn.cs: drawing fixes
33379         * DataGridCell.cs: fixes ToString method to match MSNet
33380         * DataGridTableStyle.cs: fixes
33381         * DataGridBoolColumn.cs: fixes, drawing
33382         * DataGridDrawingLogic.cs: fixes, new methods
33383         * DataGridTextBox.cs: Keyboard and fixes
33384         * DataGrid.cs:
33385                 - Keyboard navigation
33386                 - Scrolling fixes
33387                 - Row selection (single, multiple, deletion, etc)
33388                 - Lots of fixes
33389         
33390 2005-06-07  Jackson Harper  <jackson@ximian.com>
33391
33392         * ThemeWin32Classic.cs: Clear the background area when drawing
33393         buttons.
33394
33395 2005-06-06  Peter Bartok  <pbartok@novell.com>
33396
33397         * ImageListStreamer.cs: Fixed signature for GetData
33398         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
33399         * ComboBox.cs:
33400           - Added missing ChildAccessibleObject class
33401           - Added missing OnXXXFocus overrides, switched to using those
33402             instead of the event handler
33403         * Control.cs:
33404           - Added Parent property for ControlAccessibleObject
33405           - Fixed signatures
33406           - Fixed attributes
33407           - Added ResetBindings()
33408         * ListBindingConverter.cs: Implemented some methods
33409         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
33410         * ImageList.cs: Implemented basic handle scheme, removed TODOs
33411         * ContainerControl.cs: Fixed signature, now subscribing to the
33412           ControlRemoved event instead of overriding the handler, LAMESPEC
33413         * CurrencyManager.cs: Added missing attribute
33414         * MonthCalendar.cs: Added missing properties
33415
33416 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
33417
33418         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
33419         
33420 2005-06-06  Gaurav Vaish and Ankit Jain
33421
33422         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
33423         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
33424         
33425 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
33426
33427         * Control.cs: fixes CreateParams Width / Height.
33428
33429 2005-06-05  Peter Bartok  <pbartok@novell.com>
33430
33431         * Win32DnD.cs: Removed compilation warnings
33432
33433 2005-06-05  Peter Bartok  <pbartok@novell.com>
33434
33435         * Control.cs (CreateParams): Since we don't know if one of the
33436           properties we use is overridden, lets make sure if we fail accessing
33437           we continue with a backup plan
33438
33439 2005-06-05  Peter Bartok  <pbartok@novell.com>
33440
33441         * Win32DnD.cs:
33442           - Removed debug output
33443           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
33444             struct
33445           - Plugged resource leak
33446         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
33447           MS size
33448
33449 2005-06-05  Peter Bartok  <pbartok@novell.com>
33450
33451         * XplatUIWin32.cs: Removed DnD code
33452         * Win32DnD.cs: Implemented drop source and drop target functionality
33453
33454 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
33455
33456         * UpDownBase.cs: remove duplicate addition of event, enable some code
33457         that was commented out.
33458         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
33459         Validate input when a key is pressed. It works fine now for every
33460         combination of Hexadecimal. Only missing some drawing love when sharing
33461         space with other controls.
33462
33463 2005-06-04  Peter Bartok  <pbartok@novell.com>
33464
33465         * Control.cs:
33466           - We need to pass a window for DragDrop, so enable callback events
33467           - Added DnD callback events when being a DragSource
33468         * XplatUI.cs (StartDrag): Added window handle argument
33469         * XplatUIDriver.cs (StartDrag): Added window handle argument
33470         * QueryContinueDragEventArgs: Made fields internally accessible so
33471           drivers can set them
33472         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
33473           can set them
33474
33475 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
33476
33477         * DataGridTextBoxColumn.cs: column text editing
33478         * DataGridTableStyle.cs: Respect columns styles created by the user
33479         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
33480         * DataGridBoolColumn.cs: bool column editing
33481         * DataGrid.cs: fixes to scrolling, properties, etc
33482         * DataGridTextBox.cs: handle keyboard
33483         * DataGridColumnStyle.cs: fixes
33484
33485 2005-06-02  Jackson Harper  <jackson@ximian.com>
33486
33487         * ImageListStreamer.cs: Somewhat broken implementation of
33488         GetObjectData. The RLE needs some work to match MS properly.
33489
33490 2005-06-02  Jackson Harper  <jackson@ximian.com>
33491
33492         * X11Dnd.cs: Attempting to keep at least one file in MWF
33493         monostyled.
33494
33495 2005-06-02  Peter Bartok  <pbartok@novell.com>
33496
33497         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
33498           that way
33499
33500 2005-06-02  Peter Bartok  <pbartok@novell.com>
33501
33502         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
33503         * XplatUI.cs: Added DoDragDrop() method
33504         * XplatUIDriver.cs: Added DoDragDrop() method
33505
33506 2005-06-02  Jackson Harper  <jackson@ximian.com>
33507
33508         * Splitter.cs: Implement BorderStyle.
33509
33510 2005-06-02  Jackson Harper  <jackson@ximian.com>
33511
33512         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
33513         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
33514         X11 using XDND.
33515
33516 2005-06-02  Peter Bartok  <pbartok@novell.com>
33517
33518         * DataObject.cs:
33519           - Added Data setter
33520           - Fixed broken insertion code for SetData, now also
33521             overwrites any existing entry of the same format name
33522         * Hwnd.cs: Added list of pointers that automatically gets
33523           freed when the window is disposed
33524         * XplatUI.cs: Call driver initialization method when loading
33525           a driver
33526         * Control.cs:
33527           - OnDragLeave takes EventArgs, not DragEventArgs
33528           - Added setting of WS_EX_ACCEPTFILES style when dropping is
33529             supported
33530           - Forces style update when drop state changes
33531         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
33532           not perfect since we cannot (yet) call the IDataObject.GetData()
33533           method, we keep getting 0x80004005 error, dunno why)
33534
33535 2005-06-02  Peter Bartok  <pbartok@novell.com>
33536
33537         * DragEventArgs.cs: Make fields internal so we can cache the
33538           object and re-set the fields from XplatUI
33539
33540 2005-06-02  Jackson Harper  <jackson@ximian.com>
33541
33542         * Control.cs: Add some internal methods so the DnD subsystem can
33543         raise DnD events. Also call into the driver when AllowDrop is set.
33544         * XplatUI.cs:
33545         * XplatUIDriver.cs: New method for setting whether or not a window
33546         is allowed to accept drag and drop messages.
33547                 
33548 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
33549         
33550         * ScrollBar.cs: Make sure that values sent in Scroll events
33551         are always between Maximum and Minimum.
33552
33553 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
33554
33555         * Menu.cs: Call MenuChanged when menuitem visibility has been
33556         changed.
33557         * MenuItem.cs: Rebuild menu when item is (not) visible.
33558         * MainMenu.cs: MainMenu has special MenuChanged.
33559         * Theme.cs: Caption and FrameBorderSize are not fixed.
33560         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
33561         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
33562         * XplatUIX11.cs,
33563         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
33564         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
33565
33566 2005-05-30  Jackson Harper  <jackson@ximian.com>
33567
33568         * DataFormat.cs: We can't statically initialize this stuff because
33569         it calls into the xplatui and could create a loop. So we lazy init
33570         it.
33571
33572 2005-05-28  Jackson Harper  <jackson@ximian.com>
33573
33574         * Control.cs: Proper implementation of Product(Name/Version).
33575
33576 2005-05-27  Jackson Harper  <jackson@ximian.com>
33577
33578         * DataObject.cs: Dont crash if no data is found.
33579
33580 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
33581         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
33582                 as per status page, guessing it should be set to true
33583
33584 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
33585
33586         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
33587         * DataGridTableStyle.cs: set proper formatting text, def header text
33588         * ThemeWin32Classic.cs: new themable paramaters
33589         * DataGridBoolColumn.cs: paint check box, get data, fixes
33590         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
33591         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
33592         * DataGridColumnStyle.cs: fixes
33593         * Theme.cs: new themable paramaters
33594                 
33595 2005-05-26  Peter Bartok  <pbartok@novell.com>
33596
33597         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
33598
33599 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
33600         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
33601
33602 2005-05-24  Peter Bartok  <pbartok@novell.com>
33603
33604         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
33605           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
33606           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
33607           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
33608           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
33609           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
33610           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
33611           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
33612           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
33613           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
33614           missing attributes, etc
33615         * DataGridPreferredColumnWidthTypeConverter.cs: Added
33616
33617 2005-05-24  Peter Bartok  <pbartok@novell.com>
33618
33619         * Help.cs: Added, implemented trivial functions, throws up MessageBox
33620           when user tries to get help
33621         * DataObject.cs, DataFormats.cs, LinkArea.cs,
33622           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
33623           to suppress warnings
33624         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
33625           avoid unreachable code warning
33626
33627 2005-05-20  Peter Bartok  <pbartok@novell.com>
33628
33629         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
33630
33631 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
33632
33633         * DataGridTextBoxColumn.cs: Basic painting methods
33634         * DataGridTableStyle.cs: Set table style in the column
33635         * ThemeWin32Classic.cs: Use Theme for colors
33636         * DataGridDrawingLogic.cs: Implement more drawing
33637         * DataGrid.cs: drawing, theming, enhacements, fixes
33638         * DataGridColumnStyle.cs: fixes, drawing
33639         * Theme.cs: theming for Datagrid
33640
33641 2005-05-20  Peter Bartok  <pbartok@novell.com>
33642
33643         * Cursor.cs: Implemented GetObjectData() method
33644
33645 2005-05-20  Peter Bartok  <pbartok@novell.com>
33646
33647         * Cursors.cs: Added setting of cursor name
33648         * Cursor.cs:
33649           - Implemented constructors
33650           - Implemented Draw and DrawStretched
33651           - Implemented Current property
33652           - Implemented == and != operators
33653           - Implemented Dispose()
33654           - Implemented ToString
33655           - Added missing attributes
33656         * XplatUIX11.cs:
33657           - Added missing reset for OverrideCursor when DoEvents is called
33658           - Fixed creation of cursor, logic was wrong
33659         * XplatUIWin32.cs:
33660           - Added missing reset for OverrideCursor when DoEvents is called
33661           - Fixed creation of cursor, bit arrays were swapped
33662         * Clipboard.cs: Removed obsolete MonoTODO attribute
33663
33664 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
33665
33666         * ComboBox.cs: fixes OnSelectedItemChanged
33667         * ControlBindingsCollection.cs: fixes item range check
33668
33669 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
33670
33671         * UpDownBase.cs:
33672                 - Calc preferred height properly
33673                 - Implement missing properties
33674                 
33675         * NumericUpDown.cs: Implement missing events
33676
33677 2005-05-19  Jackson Harper  <jackson@ximian.com>
33678
33679         * TabControl.cs: New method that resizes the tab pages before
33680         redrawing them. This as needed as the control is double buffered
33681         and sizing will not be recalculated unless ResizeTabPages is
33682         called.
33683         * TabPage.cs: Set base.Text instead of Text in the constructor so
33684         that UpdateOwner does not get called. Use the new Redraw method of
33685         TabControl instead of Refresh so the sizing is recalculated.
33686         * ThemeWin32Classic.cs: Draw the text for button tabs.
33687
33688 2005-05-19  Jackson Harper  <jackson@ximian.com>
33689
33690         * Control.cs: Paint control background images. Fix typo where
33691         PaintControlBackground was not getting called correctly.
33692
33693 2005-05-19  Peter Bartok  <pbartok@novell.com>
33694
33695         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
33696           I can investigate, apparently I broke FileDialog
33697
33698 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
33699
33700         * AxHost.cs: Some simple properties.
33701         * Control.cs: window must be accessible after ctor.
33702         * Form.cs: Added TransparencyKey property.
33703         * TextBoxBase.cs: Implemented Clear. Text property can be null.
33704         * XplatUIWin32.cs: SetBorderStyle implemented.
33705
33706 2005-05-18  Peter Bartok  <pbartok@novell.com>
33707
33708         * DataObject.cs: Entries are not global but particular to the
33709           DataObject, now it behaves that way
33710         * XplatUIWin32.cs: Implemented Clipboard methods
33711         * Clipboard.cs: Implemented
33712         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
33713         * XplatUIOSX.cs: Updated to final clipboard prototypes
33714         * XplatUIX11.cs: Implemented Clipboard methods
33715         * XplatUIDriver.cs: Updated to final clipboard prototypes
33716         * XplatUIStructs.cs:
33717           - Added BITMAPINFOHEADER struct
33718           - Added ClipboardFormats enum
33719         * X11Structs.cs:
33720           - Added ClipboardStruct
33721           - Added Atom enum items for clipboard types
33722           - Fixed atom types for Selection event structures
33723         * DataFormats.cs:
33724           - Added internal properties and methods for drivers to enumerate
33725             all known formats
33726           - Switched initialization method to allow drivers to assign their
33727             own IDs even for the MS predefined clipboard IDs
33728         * XplatUI.cs: Updated to final clipboard interface
33729
33730 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
33731         * PropertyGridView.cs: Fixed compiler warnings.
33732
33733 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
33734         * PropertyGrid.cs: Added some event calls
33735         * PropertyGridView.cs: Change drawing code to use double buffering
33736         * PropertyGridTextBox.cs: Changed Text property name
33737         * GridItem.cs: Added Bounds property.
33738         * GridEntry.cs: Added Bounds property.
33739
33740 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
33741
33742         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
33743         since GetType() may not return the correct type if the object is
33744         a remoting proxy.
33745
33746 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
33747
33748         * TreeNodeCollection.cs: fixes get/set item ranges
33749         
33750 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
33751
33752         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
33753                 
33754 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
33755
33756         * ComboBox.cs: Fix item range comparation
33757         * ListView.cs: Fix item range comparation
33758
33759 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
33760
33761         * FontDialog.cs:
33762           - Clear example panel when OnPaint is called
33763           - Better solution for displaying the example panel text
33764           - Select default indexes in the ListBoxes
33765
33766 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
33767
33768         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
33769
33770 2005-05-11  Peter Bartok  <pbartok@novell.com>
33771
33772         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
33773         * SelectionRangeConverter.cs: Implemented
33774         * PropertyGrid.cs: Fixed attribute value
33775         * Control.cs:
33776           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
33777           - Added Sebastien Pouliot's CAS Stack Propagation fixes
33778         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
33779           that's common to all drivers. First methods to go there are
33780           Sebastien Pouliot's CAS Stack Propagation helper methods
33781         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
33782           Sebastien Pouliot for CAS Stack Propagation
33783
33784 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
33785
33786         * OSXStructs.cs:
33787           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
33788
33789 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
33790
33791         * DataGridTextBoxColumn.cs: fixed some members
33792         * GridColumnStylesCollection.cs: indexed column is case insensitive
33793         * DataGridTableStyle.cs: fixes
33794         * ThemeWin32Classic.cs: add new theme parameter
33795         * Theme.cs: add new theme parameter
33796         * DataGridDrawingLogic.cs: Datagrid's drawing logic
33797         * DataGrid.cs: fixes, new internal properties, etc.
33798         * DataGridColumnStyle.cs: allows to set grid value
33799         *
33800
33801 2005-05-10  Peter Bartok  <pbartok@novell.com>
33802
33803         * AccessibleObject.cs:
33804           - Removed MonoTODO attribute on help, method is correct
33805           - Fixed Bounds property
33806         * AxHost.cs: Moved MonoTODO
33807         * ButtonBase.cs: Now setting AccessibleObject properties
33808         * RadioButton.cs: Setting proper AccessibleObject role
33809         * CheckBox.cs: Setting proper AccessibleObject role
33810         * ControlBindingsCollection.cs: Added properties, methods and attributes
33811         * DataFormats.cs: Fixed awkward internal API, and changed to enable
33812           userdefined DataFormats.Format items as well
33813         * ListControl.cs: Removed data_member from the public eye
33814         * OpenFileDialog.cs:
33815           - Made class sealed
33816           - Added missing attributes
33817         * SaveFileDialog.cs: Added missing attributes
33818         * ImageListStreamer.cs: Fixed code that caused warnings
33819         * LinkLabel.cs: Removed unreachable code
33820         * TreeView.cs: Fixed code that caused warnings
33821         * PropertyGridView.cs: Fixed code that caused warnings
33822         * GridColumnStylesCollection.cs: Added missing attributes
33823         * GridTableStylesCollection: Added missing attribute
33824         * PropertyManager: Added .ctor
33825         * SecurityIDType: Added
33826         * DataObject.cs: Implemented class
33827         * LinkArea.cs: Added missing attribute
33828
33829 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
33830
33831         * RadioButton.cs: call base method to allow to fire OnClick event
33832         * UpDownBase.cs: OnMouseUp call base method
33833         * CheckedListBox.cs: call base method before returning
33834         * TrackBar.cs: call base method before returning
33835         
33836
33837 2005-05-10  Peter Bartok  <pbartok@novell.com>
33838
33839         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
33840           for messages
33841
33842 2005-05-10  Peter Bartok  <pbartok@novell.com>
33843
33844         * DataFormats.cs: Implemented
33845         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
33846           XplatUIX11.cs: Added Clipboard APIs
33847         * XplatUIWin32.cs: Implemented Clipboard APIs
33848         * FolderBrowserDialog.cs: Added missing event, attributes
33849
33850 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
33851
33852         * CheckBox.cs: call base method to allow to fire OnClick event
33853
33854 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
33855
33856         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
33857
33858 2005-05-06  Peter Bartok  <pbartok@novell.com>
33859
33860         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
33861         * Screen.cs: Implemented
33862         * HelpNavigator.cs: Added
33863         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
33864           property
33865         * HelpProvider.cs: Implemented all we can do until we have a CHM
33866           help library (which means that "What's This" does work now)
33867
33868 2005-05-06  Jackson Harper  <jackson@ximian.com>
33869
33870         * XplatUIX11.cs: Fix waking up the main loop.
33871                 
33872 2005-05-05  Peter Bartok  <pbartok@novell.com>
33873
33874         * XplatUI.cs: Updated revision
33875         * Form.cs: Removed enless loop
33876         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
33877         * Label.cs (OnPaint): Added call to base.OnPaint()
33878         * ToolTip.cs: Made ToolTipWindow reusable for other controls
33879         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
33880         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
33881         * AxHost.cs: Added
33882         * ButtonBase.cs: Moved base.OnPaint() call to end of method
33883         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
33884           to ToolTip.ToolTipWindow for drawing and size methods; this allows
33885           reuse of ToolTipWindow by other controls
33886         * SizeGrip.cs: Moved base.OnPaint() call to end of method
33887         * XplatUIX11.cs: Now clipping drawing area (experimental)
33888         * PictureBox.cs: Moved base.OnPaint() call to end of method
33889         * Theme.cs: Fixed ToolTip abstracts to match new format
33890         * ErrorProvider.cs: Implemented
33891
33892 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
33893
33894         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
33895         * LinkLabel.cs:
33896                 - Adds cursors
33897                 - Handles focus
33898                 - Implements LinkBehavior
33899                 - Fixes many issues
33900
33901 2005-05-03  Jackson Harper  <jackson@ximian.com>
33902
33903         * ListView.cs: Calculate the scrollbar positioning on resize and
33904         paint, so they get put in the correct place.
33905
33906 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
33907
33908         * ColorDialogs.cs: The small color panels are now handled by
33909           SmallColorControl. This fixes drawing of the focus rectangle
33910           and adds a 3D border.
33911
33912 2005-05-03  Peter Bartok  <pbartok@novell.com>
33913
33914         * Control.cs: Modified version of Jonathan Chamber's fix for
33915           double-buffering
33916
33917 2005-05-03  Jackson Harper  <jackson@ximian.com>
33918
33919         * ListView.cs: Remove redraw variable. Control now handles whether
33920         or not a redraw needs to be done, and will only raise the paint
33921         event if redrawing is needed.
33922
33923 2005-05-03  Jackson Harper  <jackson@ximian.com>
33924
33925         * Splitter.cs: No decorations for the splitter form. Cache the
33926         hatch brush.
33927
33928 2005-05-03  Jackson Harper  <jackson@ximian.com>
33929
33930         * TreeView.cs: Use dashed lines to connect nodes. Use the
33931         ControlPaint method for drawing the focus rect instead of doing
33932         that in treeview.
33933
33934 2005-05-02  Peter Bartok  <pbartok@novell.com>
33935
33936         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
33937
33938 2005-04-29  Jackson Harper  <jackson@ximian.com>
33939
33940         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
33941         entire image buffer. Just clear the clipping rectangle.
33942
33943 2005-04-29  Jackson Harper  <jackson@ximian.com>
33944
33945         * ThemeWin32Classic.cs: Don't draw list view items that are
33946         outside the clipping rectangle.
33947
33948 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
33949
33950         * ListBox.cs: added horizontal item scroll
33951
33952 2005-04-29  Jackson Harper  <jackson@ximian.com>
33953
33954         * ThemeWin32Classic.cs: Remove some old debug code that was
33955         causing flicker with the new double buffering code.
33956
33957 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
33958
33959         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
33960         behave like combobox and comboboxlist (still not sure if this is
33961         correct though).
33962
33963 2005-04-28  Jackson Harper  <jackson@ximian.com>
33964
33965         * ThemeWin32Classic.cs: Don't fill the middle of progress
33966         bars. This fills areas outside of the clip bounds that don't need
33967         to be filled.
33968
33969 2005-04-28  Jackson Harper  <jackson@ximian.com>
33970
33971         * Control.cs: Don't expose functionality to touch the image buffers.
33972         * ProgressBar.cs:
33973         * ListView.cs: We do not need to (and no longer can) manipulate
33974         the image buffers directly. All of this is handled by Control.
33975
33976 2005-04-28  Peter Bartok  <pbartok@novell.com>
33977
33978         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
33979           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
33980           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
33981
33982 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
33983
33984         * Combobox:
33985                 - Adjust control's height for non-simple comboboxes (bug fix)
33986                 - Remove dead code
33987         * MenuAPI.cs: remove unused var
33988         * ScrollBar.cs: remove unsed var
33989                  
33990         * ListBox.cs: unselect items when clearing
33991
33992 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
33993
33994         * ListControl.cs: honors OnPositionChanged and default Selected Item
33995         * ListBox.cs: unselect items when clearing
33996
33997 2005-04-27  Jackson Harper  <jackson@ximian.com>
33998
33999         * X11Keyboard.cs: Initialize a default keyboard and give a warning
34000         if a "correct" keyboard is not found. This will make us not crash,
34001         but might give some users bad keyboard layouts...seems to be the
34002         same thing rewind does.
34003
34004 2005-04-27  Jackson Harper  <jackson@ximian.com>
34005
34006         * BindingManagerBase.cs: Attach the current/position changed
34007         handlers to their respective events.
34008
34009 2005-04-27  Jackson Harper  <jackson@ximian.com>
34010
34011         * Control.cs: Make sure that the first WM_PAINT does a full draw,
34012         not just a blit.
34013         * ThemeWin32Classic.cs: Don't fill the background for picture
34014         boxes. This could overright user drawing.
34015         * ComboBox.cs: Just fill the clipping rect not the entire client
34016         rect when drawing the background. This prevents pieces of the
34017         image buffer from getting overwritten and is theoretically faster.
34018
34019 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
34020
34021         * ComboBox.cs: Databinding support fixes, fire missing events
34022         * ListControl.cs: implement missing methods and properties, fixes
34023         * ThemeWin32Classic.cs: Databiding support on Drawing
34024         * CheckedListBox.cs: Databinding support fixes, fire missing events
34025         * ListBox.cs: Databinding support fixes, fire missing events
34026         
34027 2005-04-25  Peter Bartok  <pbartok@novell.com>
34028
34029         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
34030
34031 2005-04-25  Jackson Harper  <jackson@ximian.com>
34032
34033         * TreeView.cs: Use the horizontal scrollbars height not width when
34034         determining how much of the client area is available.
34035
34036 2005-04-25  Jackson Harper  <jackson@ximian.com>
34037
34038         * Control.cs: Double buffering is handled differently now. As per
34039         the spec, the extra buffer is created in the WM_PAINT message and
34040         passed down to the control's drawing code.
34041         * GroupBox.cs:
34042         * Label.cs:
34043         * CheckBox.cs:
34044         * ProgressBar.cs:
34045         * RadioButton.cs:
34046         * ColorDialog.cs:
34047         * ComboBox.cs:
34048         * PropertyGridView.cs:
34049         * UpDownBase.cs:
34050         * MessageBox.cs:
34051         * MenuAPI.cs:
34052         * ListView.cs:
34053         * ButtonBase.cs:
34054         * SizeGrip.cs:
34055         * ScrollBar.cs:
34056         * ListBox.cs:
34057         * TrackBar.cs:
34058         * ToolBar.cs:
34059         * PictureBox.cs:
34060         * DateTimePicker.cs:
34061         * StatusBar.cs:
34062         * TreeView.cs: Update to new double buffering system.
34063         * MonthCalendar.cs: Uncomment block, as Capture is now
34064         working. Update to new double buffering
34065         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
34066         * PaintEventArgs.cs: New internal method allows us to set the
34067         graphics object. This is used for double buffering.
34068         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
34069         rectangle. The internal paint_area var has been removed from
34070         StatusBar. The clipping rect should be used instead.
34071         * Theme.cs: Give the PictureBox drawing method a clipping rect.
34072         * TabPage.cs: The RefreshTabs method was removed, so just call the
34073         tab controls Refresh method now.
34074         * TabControl.cs: Update to new double buffering. Make sure the
34075         handle is created before sizing the tab pages, otherwise we will
34076         get stuck in a loop.
34077
34078 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
34079
34080         * LinkLabel.cs: Fix typo, bug #74719; patch
34081           from Borja Sanchez Zamorano
34082
34083 2005-04-22  Jackson Harper  <jackson@ximian.com>
34084
34085         * TreeNode.cs: Implement Handle stuff.
34086         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
34087
34088 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
34089
34090         * DataGridTextBoxColumn.cs: call base constructors, fixes
34091         * GridColumnStylesCollection.cs: missing events, methods, and functionality
34092         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
34093         * DataGridTableStyle.cs: implements create default column styles
34094         * DataGridBoolColumn.cs: which types can handle
34095         * DataGrid.cs: missing methods, fixes, new functionality
34096         * DataGridColumnStyle.cs: fixes
34097
34098 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
34099         * FolderBrowserDialog.cs:
34100         - Use a thread to fill the TreeView
34101         - Adjusted some sizes
34102
34103 2005-04-19  Peter Bartok  <pbartok@novell.com>
34104
34105         * LinkLabel.cs: (Re-)create the pieces when setting the Text
34106           property. Fixes #74360.
34107
34108 2005-04-19  Jackson Harper  <jackson@ximian.com>
34109
34110         * XEventQueue.cs: Lock when getting the lockqueue size.
34111         * PictureBox.cs: Call base OnPaint
34112         
34113 2005-04-19  Peter Bartok  <pbartok@novell.com>
34114
34115         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
34116           messages were no longer being processed (this broke BeginInvoke)
34117
34118           
34119 2005-04-18  Jackson Harper  <jackson@ximian.com>
34120
34121         * TreeView.cs: buglet that caused node images to get drawn
34122         regardless of whether or not they were in the clipping rectangle.
34123
34124 2005-04-18  Jackson Harper  <jackson@ximian.com>
34125
34126         * CurrencyManager.cs: There are four rules for GetItemProperties:
34127         - If the type is an array use the element type of the array
34128         - If the type is a typed list, use the type
34129         - If the list contains an Item property that is not an object, use
34130         that property
34131         - use the first element of the list if there are any elements in
34132         the list.
34133         
34134 2005-04-17  Jackson Harper  <jackson@ximian.oom>
34135
34136         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
34137         click. This handles offsets for scrolling properly and reduces
34138         memory. Also fixed GetNode to not offset now that TopNode works
34139         properly.
34140         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
34141         
34142 2005-04-17  Jackson Harper  <jackson@ximian.com>
34143
34144         * CursorConverter.cs: Initial implementation.
34145
34146 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
34147
34148         * ListControl.cs: work towards complex data binding support on ListControl
34149         * CurrencyManager.cs: work towards complex data binding support on ListControl
34150         * ListBox.cs: work towards complex data binding support on ListControl
34151
34152
34153 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
34154
34155         * GridTableStylesCollection.cs: fixes name and constructor
34156         * DataGridTableStyle.cs: fixes
34157         * DataGridBoolColumn.cs: fixes names and constructors
34158         * DataGrid.cs: define methods and properties. Some init implementations
34159         * DataGridCell.cs: define methods and properties. Some init implementations
34160         * GridTablesFactory.cs: Define methods and properties
34161
34162 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
34163
34164         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
34165         graphics port changes.  We still want the coordinates in global screen
34166         coordinates.
34167
34168 2005-04-14  Jackson Harper  <jackson@ximian.com>
34169
34170         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
34171         check plus minus or checkbox clicks unless those features are enabled.
34172
34173 2005-04-14  Jackson Harper  <jackson@ximian.com>
34174
34175         * TreeView.cs: Add methods for setting the top and bottom visible
34176         nodes. TreeNode::EnsureVisible uses these methods.
34177         * TreeNode.cs: Implement EnsureVisible
34178
34179 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
34180
34181         * Form.cs: Pospone menu assignation if the window has not been created yet
34182         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
34183         size and position
34184
34185 2005-04-12  Jackson Harper  <jackson@ximian.com>
34186
34187         * TreeView.cs: Set the TopNode properly when scrolling
34188         occurs. This has the added benifit of reducing the amount of
34189         walking that needs to be done when drawing. Also removed an old
34190         misleading TODO.
34191         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
34192         
34193 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
34194
34195         * Timer.cs: fixes interval setting when the timer is already enabled
34196         
34197 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
34198
34199         * FolderBrowserDialog.cs: First approach
34200
34201 2005-04-09  Peter Bartok  <pbartok@novell.com>
34202
34203         * FolderBrowserDialog: Added
34204
34205 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
34206
34207         * LinkLabel.cs: move drawing code into the theme
34208         * ThemeWin32Classic.cs: drawing code and painting background bugfix
34209         * Theme.cs: define DrawLinkLabel method
34210
34211 2005-04-05  Jackson Harper  <jackson@ximian.com>
34212
34213         * BindingContext.cs: Use weak references so these bad actors don't
34214         stay alive longer then they need to.
34215
34216 2005-04-05  Jackson Harper  <jackson@ximian.com>
34217
34218         * ListControl.cs: Basic implementation of complex databinding.
34219         * ComboBox.cs:
34220         * ListBox.cs: Add calls to ListControl databinding methods.
34221
34222 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
34223
34224         * FileDialog.cs:
34225           - Don't change PopupButtonState to Normal when the
34226             PopupButton gets pressed several times.
34227           - Renamed ButtonPanel to PopupButtonPanel
34228
34229 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
34230
34231         * ColorDialog.cs: Use cached objects instead of creating them
34232         * LinkLabel.cs: Use cached objects instead of creating them
34233         * Splitter.cs: Use cached objects instead of creating them
34234         * FontDialog.cs: Use cached objects instead of creating them
34235         * PropertyGridView.cs: Use cached objects instead of creating them
34236         * MessageBox.cs: Use cached objects instead of creating them
34237         * FileDialog.cs: Use cached objects instead of creating them
34238         * ThemeWin32Classic.cs: Use cached objects instead of creating them
34239         * TreeView.cs: Use cached objects instead of creating them
34240         
34241 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
34242
34243         * Control.cs: use Equals to compare the font since no == op
34244         * ScrollBar.cs: use Equals to compare the font since no == op
34245
34246 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
34247
34248         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
34249
34250 2005-04-01  Jackson Harper  <jackson@ximian.com>
34251
34252         * Binding.cs: Implement IsBinding.
34253         * BindingManagerBase.cs:
34254         * PropertyManager.cs:
34255         * CurrencyManager.cs: Add IsSuspended property.
34256
34257 2005-04-01  Jackson Harper  <jackson@ximian.com>
34258
34259         * Binding.cs: Had some IsAssignableFrom calls backwards.
34260
34261 2005-04-01  Jackson Harper  <jackson@ximian.com>
34262
34263         * Binding.cs: Handle null data members when pulling data.
34264         * PropertyManager.cs: Handle the data member being a property that
34265         does not exist.
34266
34267 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
34268
34269         * DataGridTextBoxColumn.cs: fixes signature
34270         * DataGrid.cs: calls right constructor
34271
34272 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
34273
34274         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
34275         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
34276         * GridTableStylesCollection.cs: implements GridTableStylesCollection
34277         * DataGridTableStyle.cs: implements DataGridTableStyle
34278         * DataGridBoolColumn.cs: implements DataGridBoolColumn
34279         * DataGridTextBox.cs: implements DataGridTextBox
34280         * DataGridColumnStyle.cs: implements DataGridColumnStyle
34281
34282 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
34283
34284         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
34285
34286 2005-03-29  Peter Bartok  <pbartok@novell.com>
34287
34288         * Application.cs:
34289           - Properly implemented CompanyName property
34290           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
34291             returns a path that includes CompanyName, ProductName and
34292             Version (fixes bug #70330)
34293
34294 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
34295
34296         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
34297           fixes bug #72588.
34298
34299 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
34300
34301         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
34302         
34303           - Added ReadOnly CheckBox
34304           - Further refactoring: moved some code from Open-/SaveFileDialog
34305             to FileDialog
34306
34307 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
34308
34309         * OpenFileDialog.cs: Fixed CheckFileExists
34310         * FileDialog.cs:
34311           Moved FileView and DirComboBox outside FileDialog class.
34312           They can now be used outside FileDialog
34313
34314 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
34315
34316         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
34317         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
34318
34319 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
34320
34321         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
34322           - Added missing CreatePrompt property in SaveDialog
34323           - Overall SaveDialog handling should be better now
34324           - Added non standard ShowHiddenFiles property
34325           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
34326           - Added InitialDirectory and RestoreDirectory support
34327
34328 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
34329
34330         * FileDialog.cs: Made dirComboBox usable
34331
34332 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
34333
34334         * FileDialog.cs: Added Filter support (case sensitiv)
34335
34336 2005-03-24  Jackson Harper  <jackson@ximian.com>
34337
34338         * TabControl.cs: Need a couple more pixels for the lines.
34339
34340 2005-03-23  Jackson Harper  <jackson@ximian.com>
34341
34342         * TabControl.cs: Give the tab page focus when it is selected.
34343
34344 2005-03-23  Jackson Harper  <jackson@ximian.com>
34345
34346         * TabControl.cs: Account for the drawing of tabs borders when
34347         invalidating. If the slider was clicked dont do click detection on
34348         the tabs.
34349
34350 2005-03-23  Jackson Harper  <jackson@ximian.com>
34351
34352         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
34353
34354 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
34355
34356         * CategoryGridEntry.cs: Added
34357         * GridItem.cs: Added helper properties
34358         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
34359         * GridEntry.cs: Updated code for collection
34360         * PropertyGrid.cs: Cleaned up some formatting
34361         * PropertyGridView.cs: Added drop down functionality for enums.
34362         * GridItemCollection.cs: Added enumerator logic
34363         * PropertyGridEntry.cs: Added
34364
34365 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
34366
34367         * FileDialog.cs:
34368           - Removed unnecessary commented code
34369           - Fixed handling for entering the filename manually in the combobox
34370
34371 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
34372
34373         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
34374
34375 2005-03-18  Peter Bartok  <pbartok@novell.com>
34376
34377         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
34378           them being touching the border
34379
34380 2005-03-18  Peter Bartok  <pbartok@novell.com>
34381
34382         * TextControl.cs: Quick hack to center text better
34383
34384 2005-03-18  Peter Bartok  <pbartok@novell.com>
34385
34386         * ControlPaint.cs:
34387           - Don't throw NotImplemented exceptions, just print a notice once
34388             instead (requested by Miguel). This makes running existing SWF
34389             apps a bit easier
34390         * Control.cs:
34391           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
34392           - Added context menu trigger on right click
34393         * Panel.cs: Trigger invalidate on resize
34394         * StatusBar.cs:
34395           - Removed old double-buffer drawing
34396           - Added ResizeRedraw style to force proper update of statusbar
34397         * ListView.cs:
34398           - Removed debug output
34399         * ThemeWin32Classic.cs:
34400           - Fixed drawing of status bar, now draws Text property if there
34401             are no defined panels
34402
34403 2005-03-18  Jackson Harper  <jackson@ximian.com>
34404
34405         * ImageList.cs: When the image stream is set pull all the images
34406         from it.
34407         * ImageListStreamer.cs: Implement reading image list streams.
34408
34409 2005-03-18  Peter Bartok  <pbartok@novell.com>
34410
34411         * ThemeWin32Classic.cs (DrawPictureBox):
34412           - Fixed calculations for centered drawing
34413           - Fixed drawing for normal mode, not scaling the image on normal
34414
34415 2005-03-18  Peter Bartok  <pbartok@novell.com>
34416
34417         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
34418           textbox
34419         * FileDialog.cs:
34420           - Made Open/Save button the accept button for FileDialog
34421           - Tied the cancel button to the IButtonControl cancel button
34422           - Save/Open now properly builds the pathname
34423           - Now handles user-entered text
34424           - Preventing crash on right-click if no item is selected
34425           - Fixed Text property, now uses contents of textbox
34426           - Fixed SelectedText property, now just returns the text part that
34427             is selected in the text box
34428
34429 2005-03-18  Jackson Harper  <jackson@ximian.com>
34430
34431         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
34432         rect, make sure to de-adjust the interior rect after drawing the
34433         tab text.
34434
34435 2005-03-18  Peter Bartok  <pbartok@novell.com>
34436
34437         * MenuAPI.cs: Remove menu *before* executing selected action to
34438           prevent the menu from 'hanging around'
34439           
34440 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
34441
34442         * XplatUIOSX.cs: Implemented WorkingArea property
34443
34444 2005-03-17  Peter Bartok  <pbartok@novell.com>
34445
34446         * XplatUIX11.cs: Fixed menu coord calculations
34447         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
34448           for calculating offsets
34449
34450 2005-03-17  Peter Bartok  <pbartok@novell.com>
34451
34452         * Hwnd.cs: Do not consider menu presence for default client
34453           rectangle location/size
34454         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
34455           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
34456           translation functions
34457         * FileDialog.cs: Fixed (what I presume is a) typo
34458
34459 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
34460
34461         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
34462           X access (avoids X-Async errors)
34463
34464 2005-03-16  Jackson Harper  <jackson@ximian.com>
34465
34466         * TabControl.cs: Raise the SelectedIndexChanged event.
34467
34468 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
34469
34470         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
34471           - Removed vertical ToolBar and replaced it with a custom panel
34472             (desktop and home button already work)
34473           - Added Help button (some controls get resized or relocated then)
34474           - Draw correct text depending on Open or Save.
34475           - Fixed some typos...
34476
34477 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
34478
34479         * ScrollBar.cs:
34480           - Only change Maximum and Minimum when need it (bug fix)
34481
34482 2005-03-15  Peter Bartok  <pbartok@novell.com>
34483
34484         * Form.cs: Use Handle for icon, to trigger creation if
34485           the window does not yet exist
34486         * Control.cs:
34487           - CanSelect: Slight performance improvement
34488           - Focus(): Preventing possible recursion
34489           - Invalidate(): Removed ControlStyle based clear flag setting
34490           - WM_PAINT: fixed logic for calling OnPaintBackground
34491           - WM_ERASEBKGND: Fixed logic, added call to new driver method
34492             EraseWindowBackground if the control doesn't paint background
34493         * XplatUIWin32.cs:
34494           - Moved EraseWindowBackground() method to internal methods
34495           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
34496             is sent via SendMessage on BeginPaint call on Win32
34497         * XplatUIX11.cs:
34498           - Added EraseWindowBackground() method
34499           - No longer sends WM_ERASEBKGND on .Expose, but on call to
34500             PaintEventStart, which more closely matches Win32 behaviour
34501           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
34502           - Fixed SetFocus() to properly deal with client and whole windows
34503         * Hwnd.cs: Added ErasePending property
34504         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
34505         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
34506
34507 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
34508
34509         * XplatUIOSX.cs:
34510           - Fix hard loop when timers exist.
34511           - Fix bugs with middle and right click for 3 button mice.
34512
34513 2005-03-11  Peter Bartok  <pbartok@novell.com>
34514
34515         * XplatUIX11.cs:
34516           - get_WorkingArea: Need to call X directly, GetWindowPos only
34517             returns cached data now
34518           - Added sanity check to GetWindowPos hwnd usage
34519
34520 2005-03-11  Jackson Harper  <jackson@ximian.com>
34521
34522         * BindingManagerBase.cs: This method isn't used anymore as
34523         PullData now updates the data in the control.
34524
34525 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
34526
34527         * Form.cs: fixes menu drawing on X11
34528         * MenuAPI.cs:  fixes menu drawing on X11
34529
34530 2005-03-11  Peter Bartok  <pbartok@novell.com>
34531
34532         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
34533           from Jonathan Gilbert; should fix bug #73606
34534         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
34535           in Screen coordinates. Thanks, Jordi.
34536         * Form.cs: Added missing attribute
34537
34538 2005-03-11  Peter Bartok  <pbartok@novell.com>
34539
34540         * Form.cs:
34541           - Rudimentary Mdi support
34542           - Removed outdated FormParent code
34543           - Implemented lots of missing properties and methods, still missing
34544             transparency support
34545           - Added missing attributes
34546           - Implemented support for MaximumBounds
34547           - Added firing of various events
34548         * XplatUI.cs: Added SetIcon() method
34549         * XplatUIDriver.cs: Added SetIcon() abstract
34550         * XplatUIOSX.cs: Stubbed out SetIcon() method
34551         * XplatUIX11.cs:
34552           - Implemented SetIcon() support
34553           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
34554           - Switched to unix line endings
34555         * XplatUIWin32.cs:
34556           - Made POINT internal so for can access it as part of MINMAX
34557           - Implemented SetIcon() support
34558           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
34559             native Mdi support again, might have to go managed)
34560         * Control.cs: Now fires the StyleChanged event
34561         * MdiClient.cs: Added; still mostly empty
34562
34563 2005-03-10  Peter Bartok  <pbartok@novell.com>
34564
34565         * SaveFileDialog.cs: Added emtpy file
34566
34567 2005-03-08  Peter Bartok  <pbartok@novell.com>
34568
34569         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
34570           in turn triggers OnCreateContro) when creating a handle for the
34571           first time.
34572         * TextControl.cs: Fixed endless loop in certain cases when
34573           replacing the current selection
34574
34575 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
34576
34577         * ScrollBar.cs:
34578           - Honors NewValue changes in Scroll events allowing apps to change it
34579           - Adds First and Last Scroll events
34580           - Fixes Thumb events
34581
34582 2005-03-07  Peter Bartok  <pbartok@novell.com>
34583
34584         * Hwnd.cs: Added DefaultClientRectangle property
34585         * XplatUI.cs: Now using the X11 driver Where() method, which provides
34586           more detailed debug information
34587         * XplatUIX11.cs:
34588           - Fixed size-change feedback loop, where we would pull an old size
34589             off the queue and mistakenly change our window's size to an
34590             earlier value
34591           - Now compressing ConfigureNotify events, to reduce looping and
34592             redraw issues
34593         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
34594           is called
34595
34596 2005-03-07  Jackson Harper  <jackson@ximian.com>
34597
34598         * Binding.cs: Push data pushes from data -> property. Check if the
34599         property is readonly when attempting to set it.
34600
34601 2005-03-07  Jackson Harper  <jackson@ximian.com>
34602
34603         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
34604         instead of IsSubclassOf. Pulling data now sets the value on the
34605         control.
34606         * PropertyManager.cs:
34607         * CurrencyManager.cs: Just need to pull data when updating now,
34608         because PullData will set the value on the control.
34609
34610 2005-03-04  Jackson Harper  <jackson@ximian.com>
34611
34612         * Binding.cs: Implement data type parsing and converting on pulled
34613         data. TODO: Are there more ways the data can be converted?
34614
34615 2005-03-04  Jackson Harper  <jackson@ximian.com>
34616
34617         * Binding.cs: Support <Property>IsNull checks. Also bind to the
34618         controls Validating method so we can repull the data when the
34619         control loses focus.
34620
34621 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
34622
34623         * ColumnHeader.cs:
34624           - Fixes null string format
34625           
34626         * ListView.cs:
34627           - Adds enum type checks
34628           - Fixes redrawing and recalc need after changing some properties
34629           - Fixes on focus_item set after the event
34630           - Fixes adding columns after the control has been created
34631           
34632         * ThemeWin32Classic.cs:
34633           - Fixes CheckBox focus rectangle
34634           - Fixes ColumnHeader drawing
34635
34636
34637 2005-03-03  Jackson Harper  <jackson@ximian.com>
34638
34639         * Binding.cs: Bind to <Property>Changed events so we can detect
34640         when properties are changed and update the data.
34641
34642 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
34643
34644         * ImageList.cs:
34645           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
34646           - Fixes ImageList constructor with ImageList container
34647           - Fixes image scaling (wrong parameters at DrawImage)
34648
34649 2005-02-02  Jackson Harper  <jackson@ximian.com>
34650
34651         * Binding.cs: Make property searches case-insensitive. Eliminate
34652         some duplicated code.
34653
34654 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
34655
34656         * ComboBox.cs:
34657                 - Handle focus event
34658                 - Fix scrollbar events
34659                 - Discard highlighted item if remove it
34660                 - Fixes SelectedItem with strings
34661
34662 2005-03-01  Peter Bartok  <pbartok@novell.com>
34663
34664         * Control.cs:
34665           - Fixed Visible property, now follows (once again) parent chain
34666             to return false if any control in the chain is visible=false
34667           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
34668           - Fixed several places where is_visible instead of Visible was used
34669           - Implemented FIXME related to focus selection when setting focused
34670             control to be invisible
34671
34672         * XplatUIWin32.cs: Now using proper method to find out if window is
34673           visible. Thanks to Jordi for pointing it out
34674
34675 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
34676
34677         * ComboBox.cs: show/hide scrollbar instead of creating it
34678
34679 2005-02-27  Jackson Harper  <jackson@ximian.com>
34680
34681         * CurrencyManager.cs: Add PositionChanged stuff.
34682
34683 2005-02-27  Peter Bartok  <pbartok@novell.com>
34684
34685         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
34686         * XplatUIOSX.cs: Added GetMenuOrigin() stub
34687         * XplatUIWin32.cs: Implemented GetMenuOrigin()
34688         * XplatUIX11.cs:
34689           - Implemented GetMenuDC()
34690           - Implemented GetMenuOrigin()
34691           - Implemented ReleaseMenuDC()
34692           - Implemented generation of WM_NCPAINT message
34693           - Implemented generation and handling of WM_NCCALCSIZE message
34694         * Form.cs: Added debug helper message for Jordi's menu work
34695         * Hwnd.cs:
34696           - Modified ClientRect property; added setter, fixed getter to handle
34697             setting of ClientRect
34698           - Added MenuOrigin property
34699
34700 2005-02-26  Peter Bartok  <pbartok@novell.com>
34701
34702         * XplatUIX11.cs:
34703           - Destroys the caret if a window that's being destroyed contains it
34704           - Ignores expose events coming from the X11 queue for windows that
34705             already are destroyed
34706           - Now uses the proper variable for handling DestroyNotify, before we
34707             marked the wrong window as destroyed
34708           - Improved/added some debug output
34709
34710 2005-02-26  Peter Bartok  <pbartok@novell.com>
34711
34712         * X11Keyboard.cs: Fixes to work on 64bit systems
34713
34714 2005-02-26  Peter Bartok  <pbartok@novell.com>
34715
34716         * Control.cs:
34717           - Now calling OnHandleDestroyed from DestroyHandle()
34718             instead of Dispose()
34719           - Removed bogus call to controls.Remove() from DestroyHandle()
34720
34721 2005-02-26  Peter Bartok  <pbartok@novell.com>
34722
34723         * Control.cs: Properly destroy child windows when our handle is
34724           destroyed
34725
34726 2005-02-25  Peter Bartok  <pbartok@novell.com>
34727
34728         * XplatUI.cs:
34729           - Added 'DriverDebug' define to allow tracing XplatUI API calls
34730           - Alphabetized Static Methods and Subclasses
34731
34732         * XplatUIX11.cs:
34733           - Added XException class to allow custom handling of X11 exceptions
34734           - Created custom X11 error handler, tied into XException class
34735           - Added support for MONO_XEXCEPTIONS env var to allow the user
34736             to either throw an exception on X errors or continue running
34737             after displaying the error
34738           - Added handling of DestroyNotify message
34739           - Added handler for CreateNotify message (still disabled)
34740           - Improved (tried to at least) Where method to provide file and lineno
34741         * X11Structs.cs:
34742           - Added XErrorHandler delegate
34743           - Added XRequest enumeration (to suppor translation of errors)
34744
34745 2005-02-25  Jackson Harper  <jackson@ximian.com>
34746
34747         * PropertyManager.cs: Implement editing features
34748         * CurrencyManager.cs:
34749         * Binding.cs: First attempt at UpdateIsBinding
34750         * BindingManagerBase.cs: Call UpdateIsBinding before
34751         pushing/pulling data.
34752
34753 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
34754
34755         * MenuAPI.cs: Respect disabled items
34756         * ThemeWin32Classic.cs
34757                 - Caches ImageAttributes creation for DrawImageDisabled
34758                 - Fixes vertical menu line drawing
34759                 - Draws disabled arrows in disable menu items
34760
34761 2005-02-24  Peter Bartok  <pbartok@novell.com>
34762
34763         * Hwnd.cs:
34764           - Added UserData property to allow associating arbitrary objects
34765             with the handle
34766           - Fixed leak; now removing Hwnd references from static windows array
34767         * XplatUIWin32.cs:
34768           - Fixed Graphics leak in PaintEventEnd
34769           - Removed usage of HandleData, switched over to Hwnd class
34770         * HandleData.cs: Removed, obsoleted by Hwnd.cs
34771
34772 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
34773
34774         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
34775         * ScrollBar.cs: Fixes bug
34776         * TrackBar.cs: removes death code, clipping, mimize refreshes,
34777          keyboard navigation enhancements
34778
34779 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
34780
34781         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
34782         * GroupBox.cs: Add control styles
34783         * Label.cs: Add control styles
34784         * UpDownBase.cs: Add control styles
34785         * ListBox.cs: Add control styles
34786         * XplatUIWin32.cs: Fixes wrong parameter order
34787
34788
34789 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
34790
34791         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
34792
34793 2005-02-23  Jackson Harper  <jackson@ximian.com>
34794
34795         * PropertyManager.cs: Implement property binding. This doesn't
34796         seem to work yet though as (I think) there are some bugs in
34797         System.ComponentModel.PropertyDescriptor.
34798         * BindingContext.cs: Use new PropertyManager constructor.
34799
34800 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
34801
34802         * ProgressBar.cs: use clip region in ProgressBar
34803         * ThemeWin32Classic.cs: use clip region in ProgressBar
34804
34805 2004-02-22  Jackson Harper  <jackson@ximian.com>
34806
34807         * BindingsCollection.cs: Remove some debug code.
34808
34809 2005-02-22  Jackson Harper  <jackson@ximian.com>
34810
34811         * BindingContext.cs:
34812         * ControlBindingsCollection.cs:
34813         * CurrencyManager.cs:
34814         * Binding.cs:
34815         * BindingManagerBase.cs: Initial implementation
34816         * BindingsCollection.cs: Add an internal contains method that the
34817         BindingManagerBase uses to ensure bindings aren't added twice to
34818         the collection.
34819         * PropertyManager.cs: Stubbed out.
34820         * Control.cs:
34821         * ContainerControl.cs: Hook up databinding
34822         
34823 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
34824
34825         * XplatUIOSX.cs:
34826           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
34827           Fixed Invalidate/Update chain.
34828           Fixed tons of other minor bugs (this is almost a complete rewrite).
34829
34830 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
34831
34832         * ComboBox.cs: do subcontrol creation when the control is created
34833
34834 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
34835
34836         * Label.cs: fixes image drawing (image and imagelist)
34837         * ThemeWin32Classic.cs: cache brushes
34838         
34839 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
34840
34841         * Form.cs: Move menu drawing code to Theme class
34842         * ComboBox.cs: Move ComboBox drawing code to Theme class
34843         * MenuItem.cs: Move menu drawing code to Theme class
34844         * MenuAPI.cs: Move menu drawing code to Theme class
34845         * ThemeWin32Classic.cs: New methods
34846         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
34847         * ListBox.cs: Move Listbox drawing code to Theme class
34848         * Theme.cs: New methods
34849
34850 2005-02-20  Peter Bartok  <pbartok@novell.com>
34851
34852         * Control.cs:
34853           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
34854             only process mnemonics on those)
34855           - Fixed event sequence for key handling; first calling
34856             ProcessKeyEventArgs now
34857         * TextBoxBase.cs:
34858           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
34859             for processing non-character keys
34860           - Fixed WM_CHAR to generate proper event sequence before processing
34861         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
34862           generation
34863
34864 2005-02-19  Peter Bartok  <pbartok@novell.com>
34865
34866         * UserControl.cs: Added TextChanged event; added attributes
34867         * SizeGrip.cs: Implemented resizing and optional display of grip
34868         * Form.cs: Fixed attribute
34869         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
34870           Changed meaning of ScrollWindow bool argument; instead of the
34871           clear attribute (which will be true usually anyway), it gives the
34872           option of moving child controls as well.
34873         * XplatUIX11.cs:
34874           - Changed to match new ScrollWindow argument
34875           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
34876             now handles the implicit parent window a WM puts around us
34877         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
34878           to work)
34879         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
34880         * TreeView.cs: Adjusted to new ScrollWindow arguments
34881
34882 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
34883
34884         * Form.cs: Menu integration with non-client area
34885         * MenuItem.cs: Menu integration with non-client area
34886         * MenuAPI.cs: Menu integration with non-client area
34887
34888 2005-02-18  Peter Bartok  <pbartok@novell.com>
34889
34890         * MethodInvoker.cs: Added
34891         * MdiLayout.cs: Added
34892         * SendKeys.cs: Started implementation
34893         * ErrorIconAlignment.cs: Added
34894
34895 2005-02-18  Peter Bartok  <pbartok@novell.com>
34896
34897         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
34898         * Form.cs: Added handling for Menu-related Non-client messages
34899
34900 2005-02-17  Peter Bartok  <pbartok@novell.com>
34901
34902         * UpDownBase.cs: Fixed typo, compilation errors
34903         * DomainUpDown.cs: Fixed attribute value
34904
34905 2005-02-16  Miguel de Icaza  <miguel@novell.com>
34906
34907         * UpDownBase.cs: Attach entry events.
34908         Propagate events.
34909         Add ForeColor property, Focused, InterceptArrowKeys (interception
34910         does not work yet).
34911
34912 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
34913
34914         * Form.cs:
34915                 - Redraw non client are on Setmenu
34916                 - Calc proper menu starting point
34917
34918 2005-02-17  Peter Bartok  <pbartok@novell.com>
34919
34920         * Application.cs: Fixed message_filter check
34921
34922 2005-02-17  Peter Bartok  <pbartok@novell.com>
34923
34924         * Application.cs: Now calls registered message filters
34925         * DockStyle.cs: Fixed attribute
34926         * Form.cs: Fixed attribute
34927         * Menu.cs: Fixed attribute
34928         * ToolTip.cs: Fixed attribute
34929         * TreeNode.cs: Added missing attributes and arranged in regions
34930         * PropertyGrid.cs: Fixed signatures
34931         * TreeNodeCollection.cs: Added attributes
34932         * Splitter.cs: Added missing attributes; arranged into regions
34933         * TabPage.cs: Added missing attributes; arranged into regions
34934         * TextBoxBase.cs: Added missing attributes
34935         * TextBox.cs: Added missing attributes
34936         * ArrangeDirection.cs: Added missing attributes
34937         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
34938         * ToolBarButton.cs: Fixed attributes
34939         * AnchorStyles.cs: Fixed attribute
34940         * TrackBar.cs: Fixed attributes
34941         * TabControl.cs: Added missing attributes and arranged into regions
34942         * ToolBar.cs: Fixed attribute
34943         * StatusBar.cs: Fixed signature, organized into regions and added
34944           attributes
34945         * StatusBarPanel.cs: Fixed attributes
34946         * ContentsResizedEventArgs.cs: Implemented
34947         * ContentsResizedEventHandler.cs: Implemented
34948         * DateBoldEventArgs.cs: Implemented
34949         * DateBoldEventHandler.cs: Implemented
34950         * UpDownEventArgs.cs: Implemented
34951         * UpDownEventHandler.cs: Implemented
34952         
34953 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
34954
34955         * Form.cs: first Menu NC refactoring
34956         * MenuAPI.cs: first Menu NC refactoring
34957         
34958 2005-02-16  Peter Bartok  <pbartok@novell.com>
34959
34960         * ImeMode.cs: Added missing attributes
34961         * Menu.cs: Fixed attribute
34962         * GroupBox.cs: Fixed attribute
34963         * Label.cs: Fixed attribute
34964         * ColorDialog.cs (RunDialog): Removed TODO attribute
34965         * ComboBox.cs: Fixed attributes
34966         * ListControl.cs: Added missing attributes
34967         * PropertyGrid.cs: Fixed attributes
34968         * Control.cs: Fixed attributes
34969         * ListViewItem.cs: Added TypeConverter attribute
34970         * NotifyIcon.cs: Fixed attributes
34971         * ListView.cs: Fixed attributes
34972         * ButtonBase.cs: Fixed attribute
34973         * ImageList.cs: Added missing attributes
34974         * ContainerControl.cs: Fixed signature
34975         * CheckedListBox.cs: Fixed attribute; added missing attributes
34976         * Panel.cs: Fixed attributes
34977         * PropertyTabChangedEventArgs.cs: Added missing attribute
34978         * PropertyValueChangedEventArgs.cs: Added missing attribute
34979         * Binding.cs: Fixed attribute
34980         * ListViewItemConverter: Implemented ListViewSubItemConverter class
34981         * ListBox.cs: Fixed attribute; added missing attributes;
34982         * ScrollableControl.cs: Added missing attributes
34983         * PictureBox.cs: Added missing attributes; implemented missing property
34984         * DateTimePicker.cs: Added missing attributes
34985         * Theme.cs (ToolWindowCaptionHeight): Fixed type
34986         * MonthCalendar.cs: Fixed attributes
34987         * StatusBarPanel.cs: Added missing attributes
34988         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
34989
34990 2005-02-16  Peter Bartok  <pbartok@novell.com>
34991
34992         * TextBoxBase.cs: The previous method to enforce height yet remember
34993           the requested high was less than ideal, this is an attempt to do
34994           it better.
34995         * Control.cs: Added comment about possible problem
34996         * Copyright: Updated format
34997         * GridItemType.cs: Fixed swapped values
34998
34999 2005-02-15  Jackson Harper  <jackson@ximian.com>
35000
35001         * BaseCollection.cs: Use property so we never access an
35002         uninitialized list. Also initialize the list in the property.
35003
35004 2005-02-15  Peter Bartok  <pbartok@novell.com>
35005
35006         * GroupBox.cs (ProcessMnemonic): Implemented
35007         * Label.cs (ProcessMnemonic): Implemented
35008         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
35009           hotkeys
35010
35011 2005-02-15  Peter Bartok  <pbartok@novell.com>
35012
35013         * RadioButton.cs (ProcessMnemonic): Implemented
35014         * CheckBox.cs (ProcessMnemonic): Implemented
35015         * Control.cs:
35016           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
35017             handling
35018           - Added internal method to allow calling ProcessMnemonic from other
35019             controls
35020         * ContainerControl.cs:
35021           - Started support for handling validation chain handling
35022           - Implemented ProcessMnemonic support
35023           - Added Select() call to Active, to make sure the active control
35024             receives focus
35025         * Form.cs: Setting toplevel flag for Forms (this was lost in the
35026           FormParent rewrite)
35027         * ThemeWin32Classic.cs:
35028           - DrawCheckBox(): Fixed stringformat to show hotkeys
35029           - DrawRadioButton(): Fixed stringformat to show hotkeys
35030         * CommonDialog.cs: Removed WndProc override, not needed
35031
35032 2005-02-14  Peter Bartok  <pbartok@novell.com>
35033
35034         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
35035           missed those in the rewrite
35036
35037 2005-02-14  Miguel de Icaza  <miguel@novell.com>
35038
35039         * NumericUpDown.cs (Increment, ToString): Add.
35040         (DecimalPlaces): implement.
35041         
35042         Add attributes.
35043         
35044         * UpDownBase.cs: Add the designer attributes.
35045
35046 2005-02-13  Peter Bartok  <pbartok@novell.com>
35047
35048         * Panel.cs: Removed border_style, now in Control
35049         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
35050           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
35051
35052 2005-02-13  Peter Bartok  <pbartok@novell.com>
35053
35054         * MouseButtons.cs: Added missing attributes
35055         * XplatUIStructs.cs: Added enumeration for title styles
35056         * LeftRightAlignment.cs: Added missing attributes
35057         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
35058           it compatible with Graphics.FromHwnd()
35059         * SelectedGridItemChangedEventArgs.cs: Fixed property type
35060         * Keys.cs: Added missing attributes
35061         * SelectionRange.cs: Added missing attributes
35062         * SelectionRangeConverter.cs: Added
35063         * XplatUI.cs:
35064           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
35065             ReleaseMenuDC methods
35066           - Renamed ReleaseWindow to UngrabWindow
35067           - Added proper startup notice to allow version identification
35068         * Form.cs:
35069           - Added missing attributes
35070           - Removed FormParent concept
35071         * Label.cs: Removed border_style field, now in Control
35072         * RadioButton.cs: Now properly selects RadioButton when focus is
35073           received
35074         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
35075         * Control.cs:
35076           - Added missing attributes
35077           - Added borderstyle handling
35078           - Removed FormParent concept support
35079           - Fixed calls to XplatUI to match changed APIs
35080           - Fixed bug that would case us to use disposed Graphics objects
35081           - Removed unneeded internal methods
35082           - PerformLayout(): Fixed to handle DockStyle.Fill properly
35083           - SelectNextControl(): Fixed to properly check common parents
35084         * TextBoxBase.cs: Removed border_style field (now in Control)
35085         * MessageBox.cs:
35086           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
35087             fixed calculations for form size
35088           - Added support for localized strings and icons
35089           - Improved form size calculations, added border
35090         * ListView.cs: Removed border_style field (now in Control)
35091         * X11Structs.cs: Moved several structs from X11 driver here
35092         * X11Keyboard.cs: Changed debug message
35093         * Application.cs: Removed FormParent concept support
35094         * CommonDialog.cs:
35095           - Resetting end_modal flag
35096           - Removed FormParent concept support
35097         * NativeWindow.cs: Removed FormParent concept support
35098         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
35099           Client area and Non-Client whole window to allow support for WM_NC
35100           messages
35101         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
35102           prevent using it until it supports Hwnd as per Geoff Norton's request
35103         * ToolBar.cs: Fixed drawing, was not doing proper drawing
35104         * PictureBox.cs: Removed border_style field, now in Control
35105         * XplatUIWin32.cs: Added new driver methods
35106
35107 2005-02-12  Peter Bartok  <pbartok@novell.com>
35108
35109         * OpacityConverter.cs: Implemented
35110         * Hwnd.cs: Internal class to support drivers that need to emulate
35111           client area/non-client area window behaviour
35112
35113 2005-02-11  Peter Bartok  <pbartok@novell.com>
35114
35115         * KeysConverter.cs: Implemented
35116
35117 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
35118
35119         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
35120         * LinkLabel: Added missing attributes
35121         * MainMenu.cs: fixes ToString
35122         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
35123         * ListBox.cs: fixes event position
35124         * TrackBar.cs: adds missing attributes and events
35125         
35126 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
35127
35128         * MenuItem.cs: Use SystemInformation and bug fixes
35129         * MenuAPI.cs: Use SystemInformation and bug fixes
35130
35131 2005-02-09  Jackson Harper  <jackson@ximian.com>
35132
35133         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
35134         their keystate otherwise things like VK_MENU get stuck "on".
35135
35136 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
35137
35138         * ListBox.cs: Fixes AddRange bug
35139         
35140 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
35141
35142         * ProgressBar.cs
35143                 - Add missing attributes
35144                 - Add missing method
35145                 
35146         * CheckedListBox.cs: Added missing attributes
35147                 - Add missing attributes
35148                 - Remove extra method
35149         
35150         * ComboBox.cs: Added missing attributes
35151         * VScrollBar.cs: Added missing attributes
35152         * ScrollBar.cs:  Added missing attributes
35153         * ListBox.cs: Fixes signature, add missing consts
35154         * LinkArea.cs:   Added missing attributes
35155         
35156
35157 2005-02-08  Peter Bartok  <pbartok@novell.com>
35158
35159         * Menu.cs: Added missing attributes
35160         * MainMenu.cs: Added missing attributes
35161         * GroupBox.cs: Added missing attributes
35162         * Label.cs: Added missing attributes
35163         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
35164         * ColorDialog.cs:
35165           - Added Instance and Options properties
35166           - Added missing attributes
35167         * Cursor.cs: Made Serializable
35168         * NotifyIcon: Added missing attributes
35169         * MenuItem.cs: Added missing attributes
35170         * TextBoxBase.cs: Implemented AppendText() and Select() methods
35171         * Panel.cs: Added Missing attributes
35172         * MonthCalendar.cs: Fixed CreateParams
35173
35174 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
35175         
35176         * LinkLabel.cs:
35177                 - Fixes signature
35178                 - Fixes issues with links
35179                 - Adds the class attributes
35180
35181 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
35182         
35183         * ComboBox.cs:
35184                 - Fixes button when no items available in dropdown
35185                 - Fixes repainting problems
35186                 - Adds the class attributes
35187                 
35188 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
35189
35190         * XplatUIOSX.cs: Detect the menu bar and title bar height from
35191         the current theme.  Cache these on startup.
35192
35193 2005-02-07  Jackson Harper  <jackson@ximian.com>
35194
35195         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
35196         the scrollbar buttons when they are depressed.
35197
35198 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
35199
35200         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
35201         Get the display size from the main displayid.  We currently dont
35202         support multiple display configurations.
35203
35204 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
35205
35206         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
35207
35208 2005-02-07  Miguel de Icaza  <miguel@novell.com>
35209
35210         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
35211
35212 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
35213
35214         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
35215
35216 2005-02-04  Jackson Harper  <jackson@ximian.com>
35217
35218         * ThemeWin32Classic.cs: Respect the clipping rect when
35219         drawing. Only fill the intersection of clips and rects so there
35220         isn't a lot of large fills.
35221         * ScrollBar.cs: Pass the correct clipping rect to the theme
35222         engine. Remove some debug code.
35223
35224 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
35225         
35226         * DateTimePicker.cs:
35227                 - Fixed crash on DateTime.Parse, use Constructor instead
35228
35229 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
35230         
35231         * MenuItem.cs:
35232         * MenuAPI.cs:
35233                 - Owner draw support (MeasureItem and DrawItem)
35234
35235 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
35236         
35237         *  Menu.cs:
35238                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
35239                 - Fixes MenuItems.Add range
35240         * MenuItem.cs:
35241                 - MergeMenu and Clone and CloneMenu functions
35242
35243 2005-02-03  Jackson Harper  <jackson@ximian.com>
35244
35245         * ScrollBar.cs: Make abstract
35246         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
35247         is abstract.
35248
35249 2005-02-03  Jackson Harper  <jackson@ximian.com>
35250
35251         * ScrollBar.cs: First part of my scrollbar fixups. This removes
35252         all the unneeded refreshes and uses invalidates with properly
35253         computed rects.
35254
35255 2005-02-03  Peter Bartok  <pbartok@novell.com>
35256
35257         * ComponentModel.cs: Added
35258         * IDataGridEditingService.cs: Added
35259         * Timer.cs: Added missing attributes
35260         * ToolTip.cs: Added missing attributes
35261
35262 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
35263
35264         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
35265
35266 2005-02-03  Peter Bartok  <pbartok@novell.com>
35267
35268         * ListBox.cs: Added missing attributes
35269
35270 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
35271         
35272         * ListBox.cs:
35273                 - Fixes font height after font change
35274                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
35275                 
35276 2005-02-02  Peter Bartok  <pbartok@novell.com>
35277
35278         * HandleData.cs: Introduced static methods to allow class
35279           to be more self-contained and track it's own HandleData objects
35280         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
35281           HandleData to use new static methods
35282
35283 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
35284
35285         * Combobox.cs:
35286                 - Fixes default size and PreferredHeight
35287                 - Missing events
35288                 - ObjectCollection.Insert implementation
35289                 
35290         * ListControl.cs
35291                 - Fixes signature
35292         * ListBox.cs:
35293                 - Several fixes
35294                 - ObjectCollection.Insert implementation
35295                 - No selection after clean
35296                 - Small fixes
35297
35298 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
35299
35300         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
35301
35302 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
35303
35304         * Combobox.cs:
35305                 - Caches ItemHeight calculation for OwnerDrawVariable
35306                 - Handles dropdown properly
35307                 - Fixes several minor bugs
35308
35309 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
35310
35311         * ListBox.cs:
35312                 - Fixes 71946 and 71950
35313                 - Fixes changing Multicolumn on the fly
35314                 - Fixes keyboard navigation on Multicolumn listboxes
35315
35316 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
35317         
35318         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
35319         crash reporter log.
35320
35321 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
35322
35323         * XplatUIOSX.cs: Allow applications to actually exit.
35324
35325 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
35326
35327         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
35328         their parent at creation time rather than lazily later.  Fixes a major
35329         regression we were experiencing.
35330
35331 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
35332
35333         * ThemeWin32Classic.cs: more date time picker painting fixes
35334         * DateTimePicker.cs: more monthcalendar drop down fixes
35335         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
35336
35337 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
35338
35339         * ScrollBar.cs:
35340                 - When moving the thumb going outside the control should stop the moving
35341                 - Adds the firing of missing events
35342                 - Fixes no button show if Size is not specified
35343                 - End / Home keys for keyboard navigation
35344
35345 2005-01-30  Peter Bartok  <pbartok@novell.com>
35346
35347         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
35348           sanity check to prevent theoretical loop
35349         * XplatUIWin32.cs (SetVisible): Removed debug output
35350         * XplatUIX11.cs (SystrayChange): Added sanity check
35351         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
35352         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
35353           behaviour, valid until the X11 client window rewrite is done
35354         * TextBox.cs (ctor): Setting proper default foreground and background
35355           colors
35356
35357 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
35358
35359         * Theme: Added DrawDateTimePicker to interface
35360         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
35361         * DateTimePicker.cs: Created (still needs keys and painting code)
35362         * DateTimePickerFormat.cs: added
35363         * MonthCalendar.cs: fixed CreateParams for popup window mode
35364           
35365 2005-01-29  Peter Bartok  <pbartok@novell.com>
35366
35367         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
35368           this should also the calculations for ligher/darker
35369         * Theme.cs: Fixed defaults for ScrollBar widths/heights
35370
35371 2005-01-29  Peter Bartok  <pbartok@novell.com>
35372
35373         * ArrangeDirection.cs: Added
35374         * ArrangeStartingPositon.cs: Added
35375         * SystemInformation.cs: Implemented
35376         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
35377           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
35378           used by SystemInformation class
35379         * X11Strucs.cs: Added XSizeHints structure
35380         * MenuAPI.cs:
35381           - Fixed CreateParams to make sure the menu window is always visible
35382           - TrackPopupMenu: Added check to make sure we don't draw the
35383             menu offscreen
35384
35385 2005-01-29  Peter Bartok  <pbartok@novell.com>
35386
35387         * HandleData.cs: Added method for altering invalid area
35388         * TextBoxBase.cs: Implemented TextLength
35389
35390 2005-01-28  Peter Bartok  <pbartok@novell.com>
35391
35392         * XplatUIX11.cs: Improvement over last patch, not sending
35393           the WM_PAINT directly anymore, instead we scroll any pending
35394           exposed areas and let the system pick out the WM_PAINT later
35395
35396 2005-01-28  Peter Bartok  <pbartok@novell.com>
35397
35398         * SWF.csproj: Deleted, no longer used. Instead,
35399           Managed.Windows.Forms/SWF.csproj should be used
35400         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
35401           directly, to avoid a potential race condition with the next
35402           scroll
35403
35404 2005-01-28  Peter Bartok  <pbartok@novell.com>
35405
35406         * XplatUI.cs: Made class internal
35407
35408 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
35409
35410         * CheckedListBox.cs:
35411                 - Draw focus
35412                 - Fixed Drawing
35413                 - Missing methods and events
35414
35415 2005-01-27  Peter Bartok  <pbartok@novell.com>
35416
35417         * Application.cs (Run): Don't use form if we don't have one
35418
35419 2005-01-27  Peter Bartok  <pbartok@novell.com>
35420
35421         * TextBoxBase.cs (get_Lines): Fixed index off by one error
35422
35423 2005-01-27  Peter Bartok  <pbartok@novell.com>
35424
35425         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
35426         * GridItem.cs: Added; Patch by Jonathan S. Chambers
35427         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
35428         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
35429         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
35430         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
35431         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35432         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
35433         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35434         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35435         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35436         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
35437
35438 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
35439
35440         * Combobox.cs:
35441                 - Draw focus on Simple Combobox
35442                 - Fixes drawing issues
35443                 - fixes 71834
35444
35445 2005-01-27  Peter Bartok  <pbartok@novell.com>
35446
35447         * Form.cs:
35448           - Place window in default location, instead of hardcoded 0/0
35449           - Send initial LocationChanged event
35450         * Control.cs:
35451           - UpdateBounds after creation to find out where the WM placed us
35452           - Make sure that if the ParentForm changes location the Form
35453             is notified
35454         * XplatUIX11.cs: XGetGeometry will not return the coords relative
35455             to the root, but to whatever the WM placed around us.
35456             Translate to root coordinates before returning toplevel
35457             coordinates
35458         * XplatUIWin32.cs: Removed debug output
35459         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
35460           flag to GetWindowPos, to allow translation of coordinates on X11
35461
35462 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
35463
35464         * ListBox.cs: connect LostFocus Event
35465
35466 2005-01-27  Peter Bartok  <pbartok@novell.com>
35467
35468         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
35469           XplatUIX11.cs: Extended the Systray API
35470         * Form.cs: Removed debug output
35471         * Application.cs: Fixed focus assignment, always need to call
35472           XplatUI.Activate() since Form.Activate() has rules that may
35473           prevent activation
35474         * NotifyIcon.cs: Should be complete now
35475         * ToolTip.cs: Worked around possible timer bug
35476
35477 2005-01-27  Jackson Harper  <jackson@ximian.com>
35478
35479         * TabControl.cs:
35480         - Only invalidate the effected tabs when the
35481         selected index changes. This reduces drawing and gets rid of some
35482         flicker.
35483         - Only refresh if the tabs need to be shifted, otherwise only
35484         invalidate the slider button.
35485         - On windows the tabs are not filled to right if the slider is
35486         visible.
35487         
35488 2005-01-27  Jackson Harper  <jackson@ximian.com>
35489
35490         * TabControl.cs: Only refresh on mouseup if we are showing the
35491         slider. Also only invalidate the button whose state has changed.
35492
35493 2005-01-26  Peter Bartok  <pbartok@novell.com>
35494
35495         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
35496         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
35497           and SystrayRemove() methods
35498         * XplatUIOSX.cs: Stubbed Systray methods
35499         * XplatUIX11.cs:
35500           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
35501             methods
35502           - Fixed broken XChangeProperty calls (marshalling messed up things)
35503         * X11Structs.cs: Added enums and structs required for Size hinting
35504         * NotifyIcon.cs: Added & implemented
35505
35506 2005-01-26  Jackson Harper  <jackson@ximian.com>
35507
35508         * TabControl.cs: Space vertically layed out tabs properly.
35509
35510 2005-01-26  Peter Bartok  <pbartok@novell.com>
35511
35512         * Form.cs (CreateClientParams): Always set the location to 0,0
35513           since we're a child window.
35514
35515         * Control.cs (SetVisibleCore): Always explicitly setting the location
35516           of a toplevel window, apparently X11 doesn't like to move windows
35517           while they're not mapped.
35518
35519 2005-01-26  Jackson Harper  <jackson@ximian.com>
35520
35521         * TabControl.cs: Implement FillToRight size mode with vertically
35522         rendered tabs.
35523
35524 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
35525
35526         * ControlPaint.cs, ThemeWin32Classic.cs
35527                 - Fixes DrawFocusRectangle
35528
35529 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
35530
35531         * MenuAPI.cs:
35532                 - MenuBar tracking only starts when item is first clicked
35533                 - Fixes menu hidding for multiple subitems
35534                 - Unselect item in MenuBar when item Executed
35535                 - Fixes bug 71495
35536
35537 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
35538
35539         * ListControl.cs:
35540                 - IsInputKey for ListBox
35541         * ListBox.cs:
35542                 - Focus item
35543                 - Shift and Control item selection
35544                 - Implement SelectionMode.MultiExtended
35545                 - Fixes RightToLeft
35546         * ComboBox.cs:
35547                 - IsInputKey implemented
35548                 - Do not generate OnTextChangedEdit on internal txt changes
35549                 
35550 2005-01-23  Peter Bartok  <pbartok@novell.com>
35551
35552         * AccessibleObject.cs: Partially implemented Select()
35553         * MonthCalendar.cs: Added missing attributes and events
35554         * Form.cs: Fixed CreateParams behaviour, now controls derived from
35555           form can properly override CreateParams.
35556         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
35557           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
35558           Control performs Invalidate & Update
35559         * NativeWindow (CreateHandle): Added special handling for Form
35560           and Form.FormParent classes to allow overriding of From.CreateParams
35561         * Control.cs:
35562           - ControlNativeWindow: Renamed 'control' variable to more intuitive
35563             name 'owner'
35564           - ControlNativeWindow: Added Owner property
35565           - Removed usage of Refresh() on property changes, changed into
35566             Invalidate(), we need to wait until the queue is processed for
35567             updates, direct calls might cause problems if not all vars for
35568             Paint are initialized
35569           - Added call to UpdateStyles() when creating the window, to set any
35570             styles that CreateWindow might have ignored.
35571           - Added support for Form CreateParent overrides to UpdateStyles()
35572         * MessageBox.cs: Removed no longer needed FormParent override stuff,
35573           CreateParams are now properly overridable
35574         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
35575           CreateParams are now properly overridable
35576
35577 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
35578
35579         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
35580         OnTextBoxChanged.
35581
35582         Capture LostFocus and OnTextBoxChanged.  The later introduces a
35583         recursive invocation that I have not figured out yet.
35584
35585         Reset the timer when not using (it was accumulating).
35586
35587
35588         (OnTextBoxChanged): Set UserEdit to true here to track whether the
35589         user has made changes that require validation.
35590
35591         Reset changing to avoid loops.
35592
35593 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
35594
35595         * NumericUpDown.cs: Display value at startup.
35596
35597         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
35598         ValidateEditText.
35599
35600         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
35601         filled in.  Added some basic parsing of text.
35602
35603         Still missing the OnXXX method overrides, and figuring out the
35604         events that must be emitted.
35605
35606         * UpDownBase.cs: Handle UserEdit on the Text property.
35607         
35608 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
35609
35610         * ComboBox.cs:
35611           - Fixes IntegralHeight
35612           - ToString method
35613
35614 2005-01-21  Jackson Harper  <jackson@ximian.com>
35615
35616         * TabControl.cs: Set the SelectedIndex property when SelectedTab
35617         is set so that the page visibility is updated and the tabs are
35618         sized correctly.
35619
35620 2005-01-21  Jackson Harper  <jackson@ximian.com>
35621
35622         * TabControl.cs: Use cliping rectangle for blitting. Give the
35623         theme the clipping rect so we can do clipping while
35624         drawing. Remove some debug code.
35625
35626 2005-01-21  Jackson Harper  <jackson@ximian.com>
35627
35628         * TabPage.cs: Add a new method so tab pages can force the tab
35629         control to recalculate the tab page sizes.
35630         * TabControl.cs: UpdateOwner needs to make the tab control recalc
35631         sizes.
35632
35633 2005-01-20  Jackson Harper  <jackson@ximian.com>
35634
35635         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
35636
35637 2005-01-20  Jackson Harper  <jackson@ximian.com>
35638
35639         * TreeView.cs: Set the bounds for nodes properly. They were
35640         getting screwed up when checkboxes were not enabled, but images
35641         were.
35642
35643 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
35644
35645         * ListBox.cs:
35646                 - Owner draw support
35647                 - Fixes
35648                 
35649 2005-01-20  Jackson Harper  <jackson@ximian.com>
35650
35651         * XplatUIStructs.cs: More misc keys
35652         * X11Keyboard.cs: Ignore some control keys.
35653
35654 2005-01-20  Jackson Harper  <jackson@ximian.com>
35655
35656         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
35657         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
35658
35659 2005-01-19  Peter Bartok  <pbartok@novell.com>
35660
35661         * Control.cs: Un-selecting the control when it is loosing focus
35662
35663 2005-01-19  Jackson Harper  <jackson@ximian.com>
35664
35665         * TreeView.cs: Hook up to the text controls leave event so we can
35666         end editing when the users clicks outside the text box.
35667         
35668 2005-01-19  Jackson Harper  <jackson@ximian.com>
35669
35670         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
35671         get set in the conversion array.
35672
35673 2005-01-19  Peter Bartok  <pbartok@novell.com>
35674
35675         * Application.cs (ModalRun): Added a call to CreateControl to ensure
35676           focus is properly set
35677         * Button.cs:
35678           - Added missing attributes
35679           - removed styles, those are already set in the base class
35680         * ButtonBase.cs:
35681           - Added missing attributes
35682           - Added clip window styles
35683         * CheckBox.cs: Added missing attributes
35684         * CommonDialog.cs:
35685           - FormParentWindow.CreateParams: Added required clip styles
35686         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
35687           also filters modifier keys
35688         * MessageBox.cs:
35689           - Added assignment of Accept and Cancel button to enable Enter
35690             and Esc keys in MessageBox dialogs
35691           - FormParentWindow.CreateParams: Added required clip styles
35692         * RadioButton.cs: Added missing attributes
35693         * TextControl.cs: No longer draws selection if control does not
35694           have focus
35695         * TextBoxBase.cs:
35696           - Now draws simple rectangle around test area to make it obvious
35697             there's a control. This is a hack until we properly support borders
35698           - A few simple fixes to support selections better, now erases selected
35699             text when typing, and resets selection when using movement keys
35700
35701 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
35702
35703         * UpDownBase.cs: Added some new properties.
35704
35705         * DomainUpDown.cs: Implement a lot to get my test working.
35706
35707 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35708
35709         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
35710
35711 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35712
35713         * OSXStructs (WindowAttributes): Fixed csc complaints
35714
35715 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35716
35717         * XplayUIOSX.cs:
35718           OSXStructs.cs: Initial refactor to move enums and consts into
35719           OSXStructs and use them in the driver for greater readability.
35720
35721 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35722
35723         * XplatUIOSX.cs: Initial support for Standard Cursors.
35724         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
35725
35726 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
35727
35728         * ComboBox.cs: ability to change style when the ctrl is already
35729         created, missing methods and events, bug fixes, signature fixes
35730
35731 2005-01-19  Peter Bartok  <pbartok@novell.com>
35732
35733         * Cursors.cs (ctor): Added ctor to fix signature
35734
35735 2005-01-18  Peter Bartok  <pbartok@novell.com>
35736
35737         * Button.cs: Implemented DoubleClick event
35738         * ButtonBase.cs:
35739           - Fixed keyboard handling to behave like MS, where the press of
35740             Spacebar is equivalent to a mousedown, and the key release is
35741             equivalent to mouseup. Now a spacebar push will give the same
35742             visual feedback like a mouse click.
35743           - Added missing attributes
35744           - Added ImeModeChanged event
35745           - Added support for generating DoubleClick event for derived classes
35746         * CheckBox.cs:
35747           - Implemented DoubleClick event
35748           - Added missing attributes
35749         * CommonDialog.cs: Added missing attribute
35750         * ContextMenu.cs: Added missing attributes
35751         * RadioButton.cs:
35752           - AutoChecked buttons do not allow to be unselected when clicked
35753             (otherwise we might end up with no selected buttons in a group)
35754           - Added missing attributes
35755           - Implemented DoubleClickEvent
35756         * ThreadExceptionDialog.cs: Enabled TextBox code
35757
35758 2005-01-18  Peter Bartok  <pbartok@novell.com>
35759
35760         * Form.cs: Removed debug output
35761         * Button.cs: Added support for DoubleClick method
35762
35763 2005-01-18  Peter Bartok  <pbartok@novell.com>
35764
35765         * Form.cs:
35766           - Added method to parent window that allows triggering size
35767             calculations when a menu is added/removed
35768           - set_Menu: Cleaned up mess from early days of Form and Control,
35769             now properly triggers a recalc when a menu is added/removed
35770           - Added case to select form itself as focused form if no child
35771             controls exist
35772           - Added PerformLayout call when showing dialog, to ensure properly
35773             placed controls
35774         * Control.cs:
35775           - Select(): Made internal so Form can access it
35776           - Focus(): Only call Xplat layer if required (avoids loop), and sets
35777             status
35778         * Application.cs (Run): Removed hack and calls PerformLayout instead
35779           to trigger calculation when Form becomes visible
35780
35781 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
35782
35783         * ComboBox.cs: fixes for ownerdraw
35784
35785 2005-01-18  Peter Bartok  <pbartok@novell.com>
35786
35787         * TextControl.cs:
35788           - Sentinel is no longer static, each Document gets it's own, this
35789             avoids locking or alternatively overwrite problems when more
35790             than one text control is used simultaneously.
35791           - Switched to use Hilight and HilightText brushes for text selection
35792
35793         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
35794
35795 2005-01-18  Peter Bartok  <pbartok@novell.com>
35796
35797         * Control.cs:
35798           - Hooked up the following events:
35799                 o ControlAdded
35800                 o ControlRemoved
35801                 o HandleDestroyed
35802                 o ImeModeChanged
35803                 o ParentChanged
35804                 o TabStopChanged
35805                 o Invalidated
35806                 o SystemColorsChanged
35807                 o ParentFontChanged
35808                 o Move
35809           - Removed debug output
35810           - Added a call to the current theme's ResetDefaults when a color change
35811             is detected
35812         * Form.cs: Now setting the proper ImeMode
35813         * Theme.cs: Defined a method to force recreation of cached resources
35814           and rereading of system defaults (ResetDefaults())
35815         * ThemeWin32Classic.cs: Added ResetDefaults() stub
35816
35817 2005-01-17  Peter Bartok  <pbartok@novell.com>
35818
35819         * Control.cs: Added missing attributes
35820
35821 2005-01-17  Jackson Harper  <jackson@ximian.com>
35822
35823         * TreeNode.cs: Implement editing. Add missing properties selected
35824         and visible.
35825         * TreeView.cs: Implement node editing. Also some fixes to use
35826         Invalidate (invalid area) instead of Refresh when selecting.
35827
35828 2005-01-17  Peter Bartok  <pbartok@novell.com>
35829
35830         * Control.cs:
35831           - Implemented InvokeGotFocus() method
35832           - Implemented InvokeLostFocus() method
35833           - Implemented InvokePaint() method
35834           - Implemented InvokePaintBackground() method
35835           - Implemented InvokeClick() method
35836           - Implemented FindForm() method
35837           - Implemented RectangleToClient() method
35838           - Implemented ClientToRectangle() method
35839           - Implemented ResetBackColor() method
35840           - Implemented ResetCursor() method
35841           - Implemented ResetFont() method
35842           - Implemented ResteForeColor() method
35843           - Implemented ResetImeMode() method
35844           - Implemented ResetLeftToRight() method
35845           - Implemented ResetText() method
35846           - Implemented Scale() methods
35847           - Implemented ScaleCore() method
35848           - Implemented Update() method
35849           - Removed unused variables
35850           - Stubbed AccessibilityNotifyClients and
35851             ControlAccessibleObject.NotifyClients() methods (dunno what to do
35852             with those yet)
35853           - Now setting proper default for RightToLeft property
35854           - Fixed bug in SetClientSizeCore that would cause windows to get
35855             really big
35856           - Now sending Click/DoubleClick events
35857           - Now selecting controls when left mouse button is clicked on
35858             selectable control
35859         * AccessibleEvents.cs: Added
35860         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
35861         * XplatUIOSX.cs: Stubbed UpdateWindow() method
35862         * XplatUIWin32.cs: Implemented UpdateWindow() method
35863         * XplatUIX11.cs: Implemented UpdateWindow() method
35864         * Form.cs: Removed stray semicolon causing CS0162 warning
35865         * ThemeWin32Classic.cs: Fixed unused variable warnings
35866         * ScrollableControl.cs: Now calls base method for ScaleCore
35867         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
35868           style to avoid interference with internal click handler (which is
35869           different than standard Control click handling)
35870         * RadioButton.cs:
35871           - Now unchecks all sibling radio buttons when control is
35872             selected (Fixes #68756)
35873           - Removed internal tabstop variable, using the one inherited from
35874             Control
35875
35876 2005-01-17  Jackson Harper  <jackson@ximian.com>
35877
35878         * NavigateEventArgs.cs: Fix base type.
35879         * LinkLabel.cs: Sig fix
35880         
35881 2005-01-17  Jackson Harper  <jackson@ximian.com>
35882
35883         * TreeView.cs: Only invalidate the effected nodes bounds when
35884         selecting nodes.
35885
35886 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
35887
35888         * XplatUIWin32.cs: fixes Win32 marshaling
35889         * XplatUIX11.cs: fixes method signature
35890
35891 2005-01-17  Peter Bartok  <pbartok@novell.com>
35892
35893         * XplatUIX11.cs: Clean up resources when we no longer need them
35894
35895 2005-01-17  Peter Bartok  <pbartok@novell.com>
35896
35897         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
35898           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
35899           and DestroyCursor() methods.
35900         * Cursor.cs: Partially implemented, now supports standard cursors;
35901           still contains some debug code
35902         * Cursors.cs: Implemented class
35903         * Control.cs:
35904           - WndProc(): Added handling of WM_SETCURSOR message, setting the
35905             appropriate cursor
35906           - Implemented Cursor property
35907           - Replaced break; with return; more straightforwar and possibly
35908             faster
35909           - Now properly setting the result for WM_HELP
35910         * X11Structs.cs: Added CursorFontShape enum
35911         * XplatUIStructs.cs:
35912           - Added StdCursor enum (to support DefineStdCursor() method)
35913           - Added HitTest enum (to support sending WM_SETCURSOR message)
35914         * XplatUIX11.cs:
35915           - Now sends the WM_SETCURSOR message
35916           - Implemented new cursor methods
35917         * XplatUIOSX.cs: Stubbed new cursor methods
35918         * XplatUIWin32.cs:
35919           - Implemented new cursor methods
35920           - Added GetSystemMetrics function and associated enumeration
35921
35922 2005-01-15  Peter Bartok  <pbartok@novell.com>
35923
35924         * Control.cs:
35925           - WndProc(): Now handles EnableNotifyMessage
35926           - SelectNextControl(): Fixed bug where if no child or sibling
35927             controls exist we looped endlessly
35928
35929 2005-01-14  Jackson Harper  <jackson@ximian.com>
35930
35931         * TreeView.cs: Recalculate the tab pages when a new one is added
35932         so that the proper bounding rects are created.
35933
35934 2005-01-14  Jackson Harper  <jackson@ximian.com>
35935
35936         * TreeView.cs: Draw a gray box instead of a grip in the lower
35937         right hand corner when there are both horizontal and vertical
35938         scroll bars.
35939
35940 2005-01-14  Jackson Harper  <jackson@ximian.com>
35941
35942         * Control.cs: When erasing backgrounds use FromHwnd instead of
35943         FromHdc when there is a NULL wparam. This occurs on the X driver.
35944         * XplatUIX11.cs: Set the wparam to NULL.
35945
35946 2005-01-13  Jackson Harper  <jackson@ximian.com>
35947
35948         * PictureBox.cs: Implement missing methods (except ToString, need
35949         to test that on windows) and events. When visibility is changed we
35950         need to redraw the image because the buffers are killed. When size
35951         is changed refresh if the sizemode needs it.
35952
35953 2005-01-13  Peter Bartok  <pbartok@novell.com>
35954
35955         * Control.cs (SelectNextControl): Was using wrong method to select
35956           a control
35957
35958 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
35959
35960         * ComboBox.cs: fixes dropstyle
35961
35962 2005-01-13  Peter Bartok  <pbartok@novell.com>
35963
35964         * Form.cs:
35965           - Implemented Select() override
35966           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
35967           - Now sets keyboard focus on startup
35968         * Control.cs (SelectNextControl): Now properly handles directed=true
35969         * TextBoxBase.cs:
35970           - WndProc: Now passes tab key on to base if AcceptTabChar=false
35971           - Added (really bad) focus rectangle (mostly for testing)
35972         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
35973           to enforce redraw on focus changes
35974         * ContainerControl.cs:
35975           - Fixed detection of Shift-Tab key presses
35976           - Fixed traversal with arrow keys
35977         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
35978           gonna keep this or if it's complete yet
35979         
35980 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
35981
35982         * ComboBox.cs: missing properties, fixes
35983
35984 2005-01-13  Peter Bartok  <pbartok@novell.com>
35985
35986         * Panel.cs (ctor): Setting Selectable window style to off
35987         * Splitter.cs (ctor): Setting Selectable window style to off
35988         * GroupBox.cs (ctor): Setting Selectable window style to off
35989         * Label.cs (ctor): Setting Selectable window style to off
35990
35991 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
35992
35993         * UpDownBase.cs (InitTimer): If the timer has been already
35994         created, enable it.
35995
35996         Use a TextBox instead of a Label.
35997
35998 2005-01-12  Jackson Harper  <jackson@ximian.com>
35999
36000         * TreeView.cs: Refresh the tree after sorting the nodes. Always
36001         draw the connecting node lines (when ShowLines is true).
36002         * TreeNode.cs: The nodes index can now be updated. This is used
36003         when a node collection is sorted.
36004         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
36005         insert or an existing unsorted node collection can be sorted.
36006         
36007 2005-01-12  Peter Bartok  <pbartok@novell.com>
36008
36009         * ContainerControl.cs: Implemented ProcessDialogKeys()
36010
36011 2005-01-12  Peter Bartok  <pbartok@novell.com>
36012
36013         * Control.cs:
36014           - Implemented SelectNextControl() method
36015           - Several focus related bug fixes
36016           - Fixed Docking calculations to match MS documentation and
36017             behaviour
36018
36019 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
36020
36021         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
36022         bug fixes
36023
36024 2005-01-12  Peter Bartok  <pbartok@novell.com>
36025
36026         * Control.cs:
36027           - Fixed broken Contains() method
36028           - Implemented GetNextControl() method. Finally. This is the pre-
36029             requisite for focus handling.
36030
36031 2005-01-12  Peter Bartok  <pbartok@novell.com>
36032
36033         * OSXStrucs.cs: Added
36034
36035 2005-01-12  Peter Bartok  <pbartok@novell.com>
36036
36037         * XplatUIWin32.cs:
36038           - Removed PeekMessageFlags
36039           - Implemented SetWindowStyle() method
36040         * XplatUIStructs.cs: Added PeekMessageFlags
36041         * X11Structs: Added missing border_width field to XWindowChanges struct
36042         * XplatUIX11.cs:
36043           - PeekMessage: Now throws exception if flags which are not yet
36044             supported are passed
36045           - Implemented SetWindowStyle() method
36046           - Fixed SetZOrder to handle AfterHwnd properly
36047         * XplatUI.cs: Added SetWindowStyle() method
36048         * XplatUIDriver.cs: Added SetWindowStyle() abstract
36049         * Control.cs:
36050           - Implemented UpdateStyles() method
36051           - Implemented UpdateZOrder() method
36052         * XplatUIOSX.cs: Added SetWindowStyle() stub
36053
36054 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
36055
36056         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
36057         button mouse).
36058
36059
36060 2005-01-11  Jackson Harper  <jackson@ximian.com>
36061
36062         * TreeView.cs: Still need to draw lines to siblings even if out of
36063         the current node is out of the clip.
36064
36065 2005-01-11  Jackson Harper  <jackson@ximian.com>
36066
36067         * TreeView.cs: When setting the hbar/vbar/grip position use
36068         SetBounds so that perform layout is only called once. Also suspend
36069         and resume layout so layout is only done once for all controls.
36070         - Removed some debug fluff
36071         * SizeGrip.cs: Call base implmentation in overriding methods.
36072         - When visibility is changed the drawing buffers are killed so we
36073         need to redraw.
36074
36075 2005-01-11  Jackson Harper  <jackson@ximian.com>
36076
36077         * TreeView.cs: Calculate the open node count while drawing. This
36078         saves us an entire tree traversal for every paint operation. Use
36079         a member var for the open node count so less vars are passed around.
36080
36081 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
36082
36083         * MonthCalendar.cs:
36084         - fixed selection to use mousemove, not mouse polling on timer
36085         * ThemeWin32Classic.cs
36086         - removed redundant unused variable "no_more_content"
36087         
36088 2005-01-11  Peter Bartok  <pbartok@novell.com>
36089
36090         * XplatUIX11.cs (DoEvents): Needs to return when no more events
36091           are pending, so it now calls PeekMessage instead of GetMessage;
36092           implemented a incomplete version of PeekMessage
36093         
36094 2005-01-11  Peter Bartok  <pbartok@novell.com>
36095
36096         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
36097           I18n issues
36098         * TextBoxBase.cs: Added sending of TextChanged event
36099
36100 2005-01-10  Jackson Harper  <jackson@ximian.com>
36101
36102         * TreeView.cs: Try not to draw outside the clipping rectangle on
36103         each node element.
36104
36105 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
36106
36107         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
36108
36109 2005-01-10  Jackson Harper  <jackson@ximian.com>
36110
36111         * TreeView.cs:
36112         - Implement fast scrolling. Now only the newly
36113         exposed nodes are drawn and the old image is moved using the
36114         XplatUI::ScrollWindow method.
36115         - Factor in height of nodes when calculating whether or not the
36116         node is in the clipping rect.
36117
36118 2005-01-10  Jackson Harper  <jackson@ximian.com>
36119
36120         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
36121
36122 2005-01-10  Peter Bartok  <pbartok@novell.com>
36123
36124         * Application.cs: Added temporary hack to resolve all our resize
36125           required issues on startup. This will get fixed properly at
36126           some point in the future
36127
36128 2005-01-10  Jackson Harper  <jackson@ximian.com>
36129
36130         * SizeGrip.cs: New internal class that is used as a sizing
36131         grip control...hence the name.
36132
36133 2005-01-10  Peter Bartok  <pbartok@novell.com>
36134
36135         * Control.cs: Implemented proper TabIndex handling, now assigning
36136           a tabindex when a control is added to a container
36137         * GroupBox.cs (ctor): Now sets the Container style bit, required
36138           for Control.GetNextControl()
36139
36140 2005-01-09  Jackson Harper  <jackson@ximian.com>
36141
36142         * TextBoxBase.cs: Clear window when scrolling (fixes build).
36143
36144 2005-01-09  Peter Bartok <pbartok@novell.com>
36145
36146         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
36147           XplatUIX11.cs: Added ability to control ScrollWindow expose and
36148           an overload for ScrollWindow to allow only scrolling a rectangle
36149
36150 2005-01-09  Peter Bartok <pbartok@novell.com>
36151
36152         * Form.cs:
36153           - Implemented SetDesktopBounds method
36154           - Implemented SetDesktopLocation method
36155
36156 2005-01-08  Jackson Harper  <jackson@ximian.com>
36157
36158         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
36159         the node count has changed, this removes to VScroll::Refresh calls
36160         when drawing.
36161
36162 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
36163
36164         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
36165
36166 2005-01-07  Jackson Harper  <jackson@ximian.com>
36167
36168         * TreeNode.cs: Just update the single node when it is
36169         checked. Don't refresh after toggling, the Expand/Collapse already
36170         handles this.
36171         * TreeView.cs: Respect clipping a little more when drawing. Try
36172         not to redraw things that don't need to be redrawn. Just hide the
36173         scrollbars when they are no longer needed instead of removing
36174         them, so they don't have to be created again and again.
36175         
36176 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
36177
36178         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
36179         coordinates to window space to place the caret properly, FIXED.
36180         Implement GetWindowState & SetWindowState
36181
36182 2005-01-06  Peter Bartok <pbartok@novell.com>
36183
36184         * Form.cs:
36185           - Implemented ClientSize property
36186           - Implemented DesktopBounds property
36187           - Implemented DesktopLocation property
36188           - Implemented IsRestrictedWindow property
36189           - Implemented Size property
36190           - Implemented TopLevel property
36191           - Implemented FormWindowState property
36192         * Control.cs:
36193           - Implemented GetTopLevel() method
36194           - Implemented SetTopLevel() method
36195         * X11Structs.cs (Atom):
36196           - Added AnyPropertyType definition
36197           - Added MapState definiton and updated XWindowAttribute struct
36198         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
36199         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
36200         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
36201         * XplatUIWin32.cs:
36202           - Implemented GetWindowState() and SetWindowState() methods
36203           - Fixed Win32GetWindowLong return type
36204         * XplatUIX11.cs:
36205           - Introduced central function for sending NET_WM messages
36206           - Implemented GetWindowState() and SetWindowState() methods
36207         * TextBoxBase.cs (set_Lines):
36208           - Now uses Foreground color for text added via Text property (Duh!)
36209           - Added code to remember programmatically requested size (fixes
36210             behaviour when Multiline is set after Size)
36211           - Added AutoSize logic
36212
36213 2005-01-06  Jackson Harper  <jackson@ximian.com>
36214
36215         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
36216
36217 2005-01-06  Jackson Harper  <jackson@ximian.com>
36218
36219         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
36220         set to less then 0.
36221
36222 2005-01-06  Jackson Harper  <jackson@ximian.com>
36223
36224         * ScrollableControl.cs: Lazy init the scrollbars.
36225         
36226 2005-01-06  Jackson Harper  <jackson@ximian.com>
36227
36228         * Theme.cs: Speed up getting pens and solid brushes, by using
36229         their ARGB as a hash instead of tostring and not calling Contains.
36230
36231 2005-01-06  Peter Bartok <pbartok@novell.com>
36232
36233         * Form.cs:
36234           - Implemented OnActivated and OnDeactivate event trigger
36235           - Implemented Activate() method
36236           - Fixed ShowDialog() to activate the form that was active before
36237             the dialog was shown
36238         * XplatUIX11.cs:
36239           - Added global active_window var that tracks the currently active
36240             X11 window
36241           - Now always grabs Property changes from the root window to always
36242             catch changes on the active window property
36243           - Added code to PropertyNotify handler to send Active/Inactive
36244             messages when state changes. This puts X11 and Win32 en par on
36245             WM_ACTIVATE notifications (except for double notifications when
36246             the user clicks away from our modal window to another one of our
36247             windows)
36248
36249 2005-01-05  Jackson Harper  <jackson@ximian.com>
36250
36251         * ImageList.cs: Implment ctor
36252
36253 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
36254
36255         * XplatUIOSX.cs: Implement Activate/SetTopmost
36256
36257 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
36258
36259         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
36260
36261 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
36262
36263         * XplatUIOSX.cs: Implement GetActive/SetFocus.
36264
36265 2005-01-05  Peter Bartok <pbartok@novell.com>
36266
36267         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
36268           XplatUIOSX.cs: Added GetActive method to return the currently
36269           active window for the application (or null, if none is active)
36270         * Form.cs:
36271           - Implemented ActiveForm
36272           - Commented out owner assignment for modal dialogs (causes problems
36273             on Win32, since the owner will be disabled)
36274           - Reworked some Active/Focus handling (still incomplete)
36275         * CommonDialog.cs: Commented out owner assignment for modal dialogs
36276           (causes problems on Win32, since the owner will be disabled)
36277         * IWin32Window: Added ComVisible attribute
36278
36279 2005-01-05  Peter Bartok <pbartok@novell.com>
36280
36281         * ToolTip.cs (WndProc): Enable setting focus now that we have the
36282           required XplatUI functions.
36283
36284 2005-01-05  Peter Bartok <pbartok@novell.com>
36285
36286         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
36287           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
36288           to implement focus and activation handling; still incomplete and
36289           with debug output
36290
36291 2005-01-04  Peter Bartok <pbartok@novell.com>
36292
36293         * TextBoxBase.cs: Changed access level for Document property to
36294           match switch to internal for TextControl
36295
36296 2005-01-04  Peter Bartok <pbartok@novell.com>
36297
36298         * AccessibleObject: Added ComVisible attribute
36299
36300 2005-01-04  Jackson Harper  <jackson@ximian.com>
36301
36302         * X11Keyboard.cs: Remove unneeded var.
36303
36304 2005-01-04  Jackson Harper  <jackson@ximian.com>
36305
36306         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
36307         but PAINT.
36308         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
36309         ClientMessage. This makes apps exit cleanly (more often).
36310         
36311 2005-01-04  Jackson Harper  <jackson@ximian.com>
36312
36313         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
36314         handling focus, return correct colors and fonts,
36315         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
36316         handle selection, horizontal scrolling, and mouse interaction.
36317
36318 2005-01-04  Peter Bartok <pbartok@novell.com>
36319
36320         * ICommandExecutor.cs: Added
36321         * IDataGridColumnStyleEditingNotificationService.cs: Added
36322         * IFeatureSupport.cs: Added
36323         * IFileReaderService.cs: Added
36324         * IDataObject.cs: Added ComVisible attribute
36325         * AmbientProperties.cs: Added
36326         * BaseCollection.cs: Added missing attributes
36327         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
36328         * BaseCollection.cs: Added missing attributes
36329         * Binding.cs: Added TypeConverter attribute
36330         * BindingContext.cs: Added DefaultEvent attribute
36331         * BindingsCollection.cs: Added DefaultEvent attribute
36332         * Button.cs: Added DefaultValue attribute
36333         * DragEventArgs.cs: Added ComVisible attribute
36334         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
36335         * KeyEventArgs.cs: Added ComVisible attribute
36336         * KeyPressEventArgs.cs: Added ComVisible attribute
36337         * MouseEventArgs.cs: Added ComVisible attribute
36338         * NavigateEventArgs.cs: Added
36339         * NavigateEventHandler.cs: Added
36340         * FeatureSupport.cs: Added
36341         * OSFeature.cs: Added
36342         * Theme.cs: Added abstract Version property to support OSFeature
36343         * ThemeWin32Classic.cs: Added Version property to
36344           support OSFeature.Themes
36345         * ProgressBar.cs: Removed OnPaintBackground override, not required since
36346           the proper styles to avoid background drawing are set, also doesn't
36347           match MS signature
36348         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
36349         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
36350         * ScrollEventArgs.cs: Added ComVisible attribute
36351         * SplitterEventArgs.cs: Added ComVisible attribute
36352         * AccessibleSelection.cs: Added Flags attribute
36353         * Appearance.cs: Added ComVisible attribute
36354         * Border3DSide.cs: Added ComVisible attribute
36355         * Border3DStyle.cs: Added ComVisible attribute
36356         * BorderStyle.cs: Added ComVisible attribute
36357         * DragAction.cs: Added ComVisible attribute
36358         * ErrorBlinkStyle.cs: Added
36359         * ScrollEventType.cs: Added ComVisible attribute
36360         * AnchorStyles.cs: Added Editor attribute
36361         * DockStyle.cs: Added Editor attribute
36362         * HorizontalAlignment.cs: Added ComVisible attribute
36363         * HelpEventArgs.cs: Added ComVisible attribute
36364         * PaintEventArgs.cs: Added IDisposable
36365
36366 2005-01-04  Peter Bartok <pbartok@novell.com>
36367
36368         * TextControl.cs: Switched Line, LineTag and Document classes to
36369           internal
36370
36371 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
36372
36373         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
36374         Simple mode, fixes, IntegralHeight, etc.
36375
36376 2005-01-04  Peter Bartok <pbartok@novell.com>
36377
36378         * TextBoxBase.cs: Using proper font variable now
36379
36380 2005-01-04  Peter Bartok <pbartok@novell.com>
36381
36382         * Form.cs (ShowDialog): Set parent to owner, if provided
36383         * GroupBox.cs: Removed unused vars
36384         * TextControl.cs:
36385           - Added GetHashCode() for Document and LineTag classes
36386           - Removed unused variables
36387           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
36388             to allow translation between continuous char position and line/pos
36389         * CheckBox.cs: Removed vars that are provided by base class
36390         * RadioButton.cs: Removed vars that are provided by base class, added
36391           new keyword where required
36392         * LinkLabel.cs: Added new keyword where required
36393         * Control.cs (WndProc): Removed unused variable
36394         * TextBoxBase.cs:
36395           - Finished SelectionLength property
36396           - Implemented SelectionStart property
36397           - Implemented Text property
36398           - Removed unused vars
36399         * MessageBox.cs: Added new keyword where required
36400         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
36401           WndProc signature
36402         * MenuAPI.cs: Added new keyword where required
36403         * ButtonBase.cs: Removed vars that are provided by base class, added
36404           new keyword where required
36405         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
36406           argument to double, to allow compiling with csc 2.0 (Atsushi ran
36407           into this)
36408         * Application.cs (Run): Now triggers the ThreadExit event
36409         * CommonDialog.cs: Added new keyword where required; now properly sets
36410           parent (owner) for dialog
36411         * XplatUIX11.cs: Commented out unused vars
36412         * StatusBar.cs: Fixed signature for Text property
36413         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
36414
36415 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
36416
36417         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
36418         TrackBar.cs, MonthCalendar.cs: remove unused vars
36419
36420 2005-01-03  Jackson Harper  <jackson@ximian.com>
36421
36422         * ThemeWin32Classic.cs:
36423         * X11Keyboard.cs: Remove unused vars.
36424
36425 2005-01-03  Peter Bartok  <pbartok@novell.com>
36426
36427         * TextBox.cs:
36428           - set_Text: Tied into TextControl
36429           - set_TextAlignment: Tied into TextControl
36430         * TextControl.cs:
36431           - Added alignment properties and implemented alignment handling
36432             and drawing (still has a bug, not generating proper expose events)
36433           - Added new Line() constructor to allow passing the line alignment
36434           - Fixed selection setting, properly handling end<start now
36435           - Added aligment considerations to RecalculateDocument()
36436         * TextBoxBase.cs:
36437           - Now properly enforces control height for single line controls
36438           - Added support for CharacterCasing
36439           - Added IsInputKey override
36440           - Fixed Keys.Enter logic
36441           - Added SetBoundsCore override
36442           - Fixed mouse selection handling
36443
36444 2005-01-03  Jackson Harper  <jackson@ximian.com>
36445
36446         * TreeView.cs:
36447           - Collapse and uncheck all nodes when CheckBoxes is disabled.
36448           - Checkboxes are always aligned to the bottom of the node,
36449           regardless of item height.
36450           - Use the node bounds to draw the text so we can center it when
36451           the item height is greater then the font height.
36452           - Node::Bounds are only the text part of the node.
36453         * TreeNode.cs: New method to combine collapsing and unchecking all
36454           nodes recursively.
36455
36456 2005-01-02  Jackson Harper  <jackson@ximian.com>
36457
36458         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
36459         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
36460         tree when a check is changed. TODO: Only refresh the checked node.
36461
36462 2004-12-30  Jackson Harper  <jackson@ximian.com>
36463
36464         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
36465         * TreeNode.cs: When collapsing make sure to never collapse the
36466         root node.
36467
36468 2004-12-29  Jackson Harper  <jackson@ximian.com>
36469
36470         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
36471         
36472 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
36473
36474         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
36475
36476 2004-12-28  Peter Bartok  <pbartok@novell.com>
36477
36478         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
36479           not yet assigned
36480
36481 2004-12-28  Peter Bartok  <pbartok@novell.com>
36482
36483         * Control.cs (WndProc): Added WM_HELP handler, now generates
36484           HelpRequested event
36485         * Form.cs: Added HelpButton property and required support code
36486         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
36487
36488 2004-12-28  Peter Bartok  <pbartok@novell.com>
36489
36490         * CommonDialog.cs:
36491           - Made DialogForm.owner variable internal
36492           - Added check to ensure owner form is set before setting
36493             owner properties in CreateParams
36494
36495 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
36496
36497         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
36498           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
36499           GetCursorPos.  Fix major visibility issues.  Rework the windowing
36500           system to support borderless/titleless windows (implements menus).
36501           Fix GetWindowPos.  Implement initial background color support for
36502           views.
36503
36504 2004-12-28  Peter Bartok  <pbartok@novell.com>
36505
36506         * Form.cs (get_CreateParams): Make sure we have an owner before using
36507           the owner variable. Implement proper default if no owner exists
36508
36509 2004-12-28  Peter Bartok  <pbartok@novell.com>
36510
36511         * In preparation for making Managed.Windows.Forms the default build target
36512           for System.Windows.Forms, the following stubbed files were added.
36513           Dialogs are currently being implemented by contributors and are only
36514           short-term place holders.
36515         * ColorDialog.cs: Initial check-in (minmal stub)
36516         * DataGrid.cs: Initial check-in (minimal stub)
36517         * DataGridLineStyle.cs: Initial check-in (minimal stub)
36518         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
36519         * DataGridTableStyle.cs: Initial check-in (minimal stub)
36520         * FontDialog.cs: Initial check-in (minimal stub)
36521         * FileDialog.cs: Initial check-in (minimal stub)
36522         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
36523         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
36524         * OpenFileDialog: Initial check-in (minimal stub)
36525         * IComponentEditorPageSite.cs: Initial check-in
36526         * Splitter.cs: Initial check-in (for Jackson)
36527         * SplitterEventArgs.cs: Initial check-in (for Jackson)
36528         * SplitterEventHandler.cs: Initial check-in (for Jackson)
36529         * TextBox.cs: Initial check-in; still needs some wiring to
36530           TextControl backend
36531         * Form.cs: Implemented ControlBox property
36532         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
36533         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
36534         * TextControl.cs: Added selection functionality; added todo header
36535         * TextBoxBase.cs:
36536           - Implemented Lines property
36537           - Implemented TextHeight property
36538           - Implemented SelectedText property
36539           - Implemented SelectionLength property
36540           - Implemented SelectAll method
36541           - Implemented ToString method
36542           - Removed and cleaned up some debug code
36543           - Implemented (still buggy) mouse text selection
36544
36545 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
36546
36547         * ComboBox.cs: Complete DropDownList implementation, fixes.
36548
36549 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
36550
36551         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
36552         * ComboBoxStyle.cs: ComboBoxStyle enum
36553         * ComboBox.cs: Initial work on ComboBox control
36554
36555 2004-12-21  Peter Bartok  <pbartok@novell.com>
36556
36557         * Control.cs (ctor, CreateParams): Moved setting of is_visible
36558           forward so that anything that creates a window gets the default,
36559           also no longer uses Visible property in CreateParams to avoid
36560           walking up the parent chain and possibly get the wrong visible
36561           status. Fixed IsVisible to no longer walk up to the parent.
36562
36563 2004-12-21  Peter Bartok  <pbartok@novell.com>
36564
36565         * Form.cs (ShowDialog): Unset modality for the proper window
36566  
36567 2004-12-20  Peter Bartok  <pbartok@novell.com>
36568
36569         * CommonDialog.cs: Initial check-in
36570
36571 2004-12-20  Peter Bartok  <pbartok@novell.com>
36572
36573         * Control.cs (Visible): Now uses the parent window instead of the
36574           client area window for the property
36575
36576         * Form.cs
36577           - ShowDialog(): Now uses the proper window for modality
36578           - The default visibility state for the form parent is now false. This
36579             will prevent the user from seeing all the changes to the form and
36580             its controls before the application hits Application.Run()
36581           - Removed some stale commented out code
36582
36583         * NativeWindow.cs:
36584           - Added FindWindow() method to have a method to check for existence
36585             of a window handle
36586           - Added ability to override default exception handling (for example
36587             when debugging with VS.Net; to do this the ExternalExceptionHandler
36588             define must be set
36589           - Removed some useless debug output
36590
36591         * XplatUIX11.cs:
36592           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
36593             not working as expected
36594           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
36595             property to allow switching back to the modal window if focus is
36596             given to another one of our windows (Application Modal)
36597           - Now only sets override_redirect if we create a window
36598             without WS_CAPTION
36599           - Moved EventMask selection before mapping of newly created window
36600             so we can catch the map event as well
36601           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
36602           - Added various Atom related DllImports
36603           - Implemented Exit() method
36604           - .ctor() : No longer shows window if WS_VISIBLE is not defined
36605             in the CreateParams
36606
36607         * MessageBox.cs: Now properly deals with the FormParent window by
36608           providing an override the FormParent CreateParams property to
36609           set as POPUP instead of OVERLAPPED window.
36610
36611 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
36612
36613         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
36614         Minor code cleanup.
36615
36616 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
36617         
36618         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
36619
36620 2004-12-18  Peter Bartok  <pbartok@novell.com>
36621
36622         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
36623           implementing SetModal() method
36624
36625 2004-12-18  Peter Bartok  <pbartok@novell.com>
36626
36627         * X11Structs.cs (XGCValues): Fixed type of function element
36628         * XplatUI.cs: Added ScrollWindow() method
36629         * XplatUIDriver.cs: Added ScrollWindow() abstract
36630         * XplatUIWin32.cs: Implemented ScrollWindow() method
36631         * XplatUIX11.cs: Implemented ScrollWindow() method
36632         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
36633
36634 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
36635
36636         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
36637         Some more keyboard support (INCOMPLETE)
36638
36639 2004-12-17  Peter Bartok  <pbartok@novell.com>
36640
36641         * TextControl.cs:
36642         - Added color attribute to line tags.
36643         - Added color argument to all functions dealing with tags
36644         - Added color argument support to various functions
36645         - Fixed miss-calculation of baseline/shift in certain circumstances
36646
36647         * TextBoxBase.cs: Added new color option to test code
36648
36649 2004-12-17  Jackson Harper  <jackson@ximian.com>
36650
36651         * TreeNode.cs:
36652         * MonthCalendar.cs: Signature fixes
36653
36654 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
36655
36656         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
36657         keyboard event moved it.  Create a new graphics context for each paint resolves this
36658
36659 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
36660
36661         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
36662         Make caret exist and go blink blink.  Initial keyboard support.
36663         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
36664         works.
36665
36666 2004-12-17  Jackson Harper  <jackson@ximian.com>
36667
36668         * XplatUIStructs.cs: Updated set of virtual keycodes.
36669         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
36670
36671 2004-12-17  Jackson Harper  <jackson@ximian.com>
36672
36673         * XplatUIX11.cs: Prune old keyboard code.
36674
36675 2004-12-17  Jackson Harper  <jackson@ximian.com>
36676
36677         * XplatUIX11.cs: When generating mouse wparams get the modifier
36678         keys from the ModifierKeys property.
36679
36680 2004-12-17  Jackson Harper  <jackson@ximian.com>
36681
36682         * X11Keyboard.cs: Send up/down input when generating
36683         messages. Remove some unused vars.
36684
36685 2004-12-17  Jackson Harper  <jackson@ximian.com>
36686
36687         * TabControl.cs:
36688         * TreeView.cs: get rid of warnings.
36689
36690 2004-12-17  Jackson Harper  <jackson@ximian.com>
36691
36692         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
36693
36694 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
36695
36696         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
36697           CheckedListBox.cs: Implementation
36698
36699 2004-12-17  Peter Bartok  <pbartok@novell.com>
36700
36701         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
36702
36703 2004-12-16  Peter Bartok  <pbartok@novell.com>
36704
36705         * TextControl.cs:
36706           - InsertCharAtCaret(): Fixed start pos fixup
36707           - CaretLine_get: No longer derives the line from the tag, the tag
36708             could be stale if lines in the document have been added or deleted
36709           - RebalanceAfterDelete(): Fixed bug in balancing code
36710           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
36711           - Line.Streamline(): Now can also elminate leading empty tags
36712           - DumpTree(): Added a few more tests and prevented exception on
36713             uninitialized data
36714           - Added Debug section for Combining lines
36715           - Delete(): Now copies all remaining properties of a line
36716           
36717         * TextBoxBase.cs:
36718           - Left mousebutton now sets the caret (and middle button still acts
36719             as formatting tester, which must go away soon)
36720           - Added Debug section for Deleting/Combining lines
36721           - Fixed calculations for UpdateView after Combining lines
36722
36723 2004-12-16  Peter Bartok  <pbartok@novell.com>
36724
36725         * TextControl.cs: Now properly aligns text on a baseline, using the
36726           new XplatUI.GetFontMetrics() method. Simplified several calculations
36727         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
36728           defined
36729
36730 2004-12-16  Peter Bartok  <pbartok@novell.com>
36731
36732         * XplatUI.cs: Added GetFontMetrics() method
36733         * XplatUIDriver.cs: Added GetFontMetrics() abstract
36734         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
36735           into libgdiplus, our private GetFontMetrics function
36736         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
36737         * XplatUIWin32.cs: Implemented GetFontMetrics() method
36738
36739 2004-12-16  Jackson Harper  <jackson@ximain.com>
36740
36741         * XplatUIStruct.cs: Add enum for dead keys
36742         * X11Keyboard.cs: Map and unmap dead keys.
36743
36744 2004-12-16  Jackson Harper  <jackson@ximian.com>
36745
36746         * X11Keyboard.cs: Detect and use the num lock mask.
36747
36748 2004-12-16  Peter Bartok  <pbartok@novell.com>
36749
36750         * Control.cs (CreateGraphics): Added check to make sure the
36751           handle of the window exists before calling Graphics.FromHwnd()
36752
36753 2004-12-16  Peter Bartok  <pbartok@novell.com>
36754
36755         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
36756           contains a lot of code that's not supposed to be there for the
36757           real thing, but required for developing/testing the textbox
36758           backend.
36759
36760 2004-12-16  Peter Bartok  <pbartok@novell.com>
36761
36762         * TextControl.cs:
36763         - Fixed Streamline method
36764         - Added FindTag method to Line
36765         - Added DumpTree method for debugging
36766         - Added DecrementLines() method for deleting lines
36767         - Fixed UpdateView to update the cursor to end-of-line on single-line
36768           updates
36769         - Added PositionCaret() method
36770         - Fixed MoveCaret(LineDown) to move into the last line, too
36771         - Added InsertChar overload
36772         - Fixed InsertChar tag offset calculations
36773         - Added DeleteChar() method
36774         - Added Combine() method for folding lines
36775         - Fixed Delete() method, no longer allocates wasted Line object and
36776           now copies all properties when swapping nodes
36777         - Delete() method now updates document line counter
36778
36779 2004-12-15  Jackson Harper  <jackson@ximian.com>
36780
36781         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
36782         * X11Keyboard.cs: Expose the currently selected modifier keys
36783         through a property.
36784
36785 2004-12-15  Peter Bartok  <pbartok@novell.com>
36786
36787         * TextControl.cs: Initial check-in. Still incomplete
36788
36789 2004-12-15  Jackson Harper  <jackson@ximian.com>
36790
36791         * TreeNode.cs:
36792         * TreeView.cs: Fix build on csc (second time today ;-))
36793
36794 2004-12-15  Jackson Harper  <jackson@ximian.com>
36795
36796         * TreeView.cs: Store the treenodes plus/minus box bounds when it
36797         is calculated and use this for click testing.
36798         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
36799
36800 2004-12-15  Jackson Harper  <jackson@ximian.com>
36801
36802         * TreeView.cs: Pass the nodes image index to the image list when
36803         drawing that image.
36804
36805 2004-12-15  Jackson Harper  <jackson@ximian.com>
36806
36807         * X11Keyboard.cs: Set messages hwnd.
36808         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
36809         post_message calls.
36810
36811 2004-12-15  Jackson Harper  <jackson@ximian.com>
36812
36813         * X11Keyboard.cs: Fix to compile with csc.
36814         
36815 2004-12-15  Jackson Harper  <jackson@ximian.com>
36816
36817         * X11Structs.cs: Add key mask values
36818         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
36819         * X11Keyboard.cs: New file - Extrapolates and interpolates key
36820         down/up foo into WM_CHAR foo
36821         * KeyboardLayouts.cs: Common keyboard layouts
36822         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
36823         post messages into the main queue.
36824
36825 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
36826
36827         * Button.cs: implement ProcessMnemonic
36828         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
36829           brushes everytime
36830         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
36831         * ButtonBase.cs: Show HotkeyPrefix (not the &)
36832
36833 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
36834         
36835         * MonthCalendar.cs: Implemented click-hold for next/previous month
36836           and date selection
36837           
36838 2004-12-11  Peter Bartok  <pbartok@novell.com>
36839
36840         * X11Structs.cs:
36841           - Added XKeyboardState (moved from XplatUIX11.cs)
36842           - Added XCreateGC related enums and structures
36843           - Added GXFunction for XSetFunction
36844
36845         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
36846
36847         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
36848           CaretVisible() calls
36849
36850         * ToolTip.cs: Added code to prevent stealing focus from app windows
36851
36852         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
36853           DestroyCaret, SetCaretPos and CaretVisible)
36854
36855         * XplatUIX11.cs:
36856           - Added implementation for caret functions
36857           - Moved hover variables into a struct, to make it a bit easier
36858             on the eyes and to debug
36859           - Removed XKeyboardState (moved to XplatUIX11.cs)
36860           - Moved Keyboard properties into the properties region
36861
36862         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
36863           call to get a graphics context for our control
36864
36865         * XplatUIOSX.cs: Added empty overrides for the new caret functions
36866
36867         * TreeView.cs: Fixed bug. No matter what color was set it would always
36868           return SystemColors.Window
36869
36870         * XplatUIWin32.cs: Implemented caret overrides
36871
36872 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
36873
36874         * ListBox.cs: fire events, implement missing methods and properties,
36875         sorting.
36876
36877 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
36878
36879         * MonthCalendar.cs: invalidation bug fixing
36880         * ThemeWin32Classic.cs: paint fixing
36881
36882 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
36883
36884         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
36885         prepare the CGContextRef there now.
36886
36887 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
36888
36889         * MonthCalendar.cs:
36890           - optimisationL only invalidate areas that have changed
36891         * ThemeWin32Classic.cs:
36892           - only paint parts that intersect with clip_area
36893
36894 2004-12-09  Peter Bartok  <pbartok@novell.com>
36895
36896         * Application.cs: Undid changes from r37004 which cause problems
36897         on X11
36898
36899 2004-12-09  Ravindra  <rkumar@novell.com>
36900
36901         * ToolBar.cs: Added support for displaying ContextMenu
36902         attached to a button on ToolBar.
36903         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
36904         property.
36905
36906 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
36907
36908         * Label.cs: autosize works in text change and removes unnecessary
36909         invalidate
36910
36911 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
36912
36913         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
36914         remove warnings
36915
36916 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
36917
36918         * XplatUIOSX.cs: Added mouse move/click/grab support
36919         Remove some debugging WriteLines not needed anymore.
36920         Add window resizing/positioning.
36921         Fix visibility on reparenting.
36922
36923 2004-12-08  Peter Bartok  <pbartok@novell.com>
36924
36925         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
36926
36927 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
36928
36929         * XplatUIOSX.cs: Initial checkin
36930         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
36931
36932 2004-12-03  Ravindra <rkumar@novell.com>
36933
36934         * ListView.cs: Added some keybindings and fixed scrolling.
36935         ScrollBars listen to ValueChanged event instead of Scroll
36936         Event. This would let us take care of all changes being
36937         done in the scrollbars' values programmatically or manually.
36938         * ListView.cs (CanMultiselect): Added a check for shift key.
36939         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
36940         * ListViewItem.cs (Clone): Fixed. We need to make a copy
36941         of ListViewSubItemCollection as well.
36942
36943 2004-12-06  Peter Bartok <pbartok@novell.com>
36944
36945         * Control.cs (Parent): Added check and exception to prevent
36946         circular parenting
36947
36948 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
36949
36950         * ListBox.cs: implemented clipping, selection single and multiple,
36951         bug fixing
36952
36953 2004-12-03  Ravindra <rkumar@novell.com>
36954
36955         * ListView.cs (ListView_KeyDown):
36956         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
36957         when CTRL key is pressed.
36958         * ListViewItem.cs (Selected): Fixed setting the property.
36959
36960 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
36961
36962         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
36963
36964         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
36965         MinimizeBox, ShowInTaskbar, TopMost properties.
36966
36967         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
36968         will be implemented).
36969
36970 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
36971
36972         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
36973
36974         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
36975         tests.
36976         
36977         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
36978         
36979         * TreeView.cs: BackColor is Colors.Window.
36980
36981 2004-12-01  Jackson Harper  <jackson@ximian.com>
36982
36983         * TreeView.cs: When resizing the tree if the user is making it
36984         smaller we don't get expose events, so we need to handle adding
36985         the horizontal scrollbar in the size changed handler as well as
36986         the expose handler.
36987
36988 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
36989
36990         * DrawItemState.cs: fixes wrong enum values
36991
36992 2004-12-01  Jackson Harper  <jackson@ximian.com>
36993
36994         * TreeView.cs: Resize the hbar as well as the vbar on resize.
36995
36996 2004-12-01  Jackson Harper  <jackson@ximian.com>
36997
36998         * NodeLabelEditEventArgs.cs:
36999         * NodeLabelEditEventHandler.cs:
37000         * OpenTreeNodeEnumerator.cs:
37001         * TreeNode.cs:
37002         * TreeNodeCollection.cs:
37003         * TreeView.cs:
37004         * TreeViewAction.cs:
37005         * TreeViewCancelEventArgs.cs:
37006         * TreeViewCancelEventHandler.cs:
37007         * TreeViewEventArgs.cs:
37008         * TreeViewEventHandler.cs: Initial implementation.
37009
37010 2004-12-01  Ravindra <rkumar@novell.com>
37011
37012         * ListView.cs (CalculateListView): Fixed scrolling related
37013         calculations. Also, removed some debug statements from other
37014         places.
37015         * ListViewItem.cs: Changed access to 'selected' instance variable
37016         from private to internal.
37017         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
37018
37019 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
37020
37021         * ThemeWin32Classic.cs: remove cache of brush and pens for
37022         specific controls and use the global system, fixes scrollbutton
37023         bugs (for small sizes, disabled, etc)
37024         
37025         * ScrollBar.cs: does not show the thumb for very small controls
37026         (as MS) and allow smaller buttons that the regular size
37027
37028 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
37029
37030         * UpDownBase.cs: Add abstract methods for the interface.
37031         Add new virtual methods (need to be hooked up to TextEntry when it
37032         exists).
37033         Add override methods for most features.
37034         Computes the size, forces the height of the text entry.
37035
37036         * NumericUpDown.cs: Put here the current testing code.
37037
37038         * Set eol-style property on all files that do not have mixed line
37039         endings, to minimize the future problems.  There are still a few
37040         files with mixed endings, and someone should choose whether they
37041         want to move it or not.
37042
37043 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
37044
37045         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
37046         System.Colors
37047         
37048 2004-11-30  Ravindra <rkumar@novell.com>
37049
37050         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
37051         drawing and replaced use of SystemColors by theme colors.
37052         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
37053         * ListView.cs (ListViewItemCollection.Add): Throw exception when
37054         same ListViewItem is being added more than once.
37055
37056 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
37057
37058         * MonthCalendar.cs:
37059           - ControlStyles love to make the control not flicker
37060           
37061 2004-11-30  Peter Bartok  <pbartok@novell.com>
37062
37063         * CharacterCasing.cs: Added
37064
37065 2004-11-29  Peter Bartok  <pbartok@novell.com>
37066
37067         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
37068           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
37069           I am removing these files as they conflict with already completed
37070           work. While it is fantastic to get contributions to MWF, I
37071           respectfully ask that everyone please coordinate their contributions
37072           through mono-winforms-list or #mono-winforms at this time. We're
37073           explicitly avoiding stubbing and don't want controls that don't have
37074           their basic functionality implemented in svn. Please also see
37075           http://www.mono-project.com/contributing/winforms.html
37076
37077
37078 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
37079
37080         * Application.cs (ModalRun): Don't hang after exit.
37081
37082         * Theme.cs: New TreeViewDefaultSize property.
37083
37084         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
37085         with less hardcoded SystemColors constant.
37086         Implemented TreeViewDefaultSize.
37087
37088         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
37089         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
37090
37091
37092 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
37093
37094         * MonthCalendar.cs:
37095           - Fix NextMonthDate and PrevMonthDate click moving calendar
37096
37097 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
37098
37099         * MonthCalendar.cs:
37100           - Fix usage of ScrollChange Property when scrolling months
37101
37102 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
37103
37104         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
37105          - Fixes menu destroying
37106          - Support adding and removing items on already created menus
37107
37108 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
37109
37110         * MonthCalendar.cs:
37111           - Re-worked all bolded dates handling to match win32
37112         * ThemeWin32Classic.cs:
37113           - Fixed rendering with bolded dates
37114
37115 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
37116
37117         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
37118         - Horizontal scroolbar
37119         - Multicolumn
37120         - Fixes
37121
37122
37123 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
37124
37125         * MonthCalendar.cs:
37126           - Fix Usage of MaxSelectionCount from SelectionRange
37127           - Fixed Shift + Cursor Selection
37128           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
37129           - Fixed normal cursor selection to be compat with win32
37130           - Fixed Shift + Mouse Click selection
37131
37132 2004-11-24  Peter Bartok <pbartok@novell.com>
37133
37134         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
37135         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
37136         * XplatUIX11.cs:
37137           - CreatedKeyBoardMsg now updates keystate with Alt key
37138           - Added workaround for timer crash to CheckTimers, Jackson will
37139             develop a proper fix and check in later
37140           - Implemented DispatchMessage
37141           - Removed calling the native window proc from GetMessage (call
37142             now moved to DispatchMessage)
37143
37144         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
37145           the keydata (Fixes bug #69831)
37146
37147         * XplatUIWin32.cs:
37148           - (DispatchMessage): Switched to return IntPtr
37149           - Added DllImport for SetFocus
37150
37151 2004-11-24  Ravindra <rkumar@novell.com>
37152
37153         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
37154         background drawing.
37155         * ListViewItem.cs: Fixed various properties, calculations
37156         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
37157         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
37158         and some internal properties. Fixed MouseDown handler and Paint
37159         method.
37160
37161 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
37162
37163         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
37164
37165 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
37166
37167         * ContainerControl.cs: correct accidental check in of local changes
37168
37169 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
37170
37171         * ThemeWin32Classic.cs:
37172                 - Fixed Drawing Last month in grid (sometimes not showing)
37173         * MonthCalendar.cs:
37174                 - Fixed title width calculation bug (makeing title small)
37175
37176 2004-11-23  Peter Bartok <pbartok@novell.com>
37177
37178         * XplatUIX11.cs:
37179           - Added generation of WM_MOUSEHOVER event
37180           - Added missing assignment of async_method atom
37181           - Fixed WM_ERASEBKGND; now only redraws the exposed area
37182
37183 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
37184
37185         * ThemeWin32Classic.cs:
37186                 - Fixed Drawing of today circle when showtodaycircle not set
37187                 - fixed drawing of first and last month in the grid (gay dates)
37188         * MonthCalendar.cs:
37189                 - Fixed Drawing of today circle
37190                 - Fixed drawing of grady dates
37191                 - Fixed HitTest for today link when ShowToday set to false
37192                 - Fixed DefaultSize to obey ShowToday
37193
37194 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
37195
37196         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
37197         * System.Windows.Forms/Theme.cs
37198         * MonthCalendar.cs: added for MonthCalendar
37199         * SelectionRange.cs: added for MonthCalendar
37200         * Day.cs: added for MonthCalendar: added for MonthCalendar
37201         * DateRangeEventArgs.cs: added for MonthCalendar
37202         * DateRangeEventHandler.cs: added for MonthCalendar
37203
37204 2004-11-22  Ravindra <rkumar@novell.com>
37205
37206         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
37207         property.
37208
37209 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
37210
37211         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
37212         event handler.
37213         
37214         * NumericUpDown.cs: Added new implementation.
37215         * UpDownBase.cs: Added new implementation.
37216
37217         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
37218         implementations.
37219         
37220         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
37221         implementations.
37222
37223         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
37224         methods.
37225
37226 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
37227
37228         * Timer.cs  (Dispose): Should call the base dispose when
37229         overriding.
37230
37231 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
37232
37233         * ScrollBar.cs: updates thumb position when max, min or increment
37234         is changed
37235
37236 2004-11-21  Ravindra <rkumar@novell.com>
37237
37238         * ListView.cs: Implemented item selection, activation and
37239         column header style. Fixed properties to do a redraw, if
37240         required. Added support for MouseHover, DoubleClick, KeyDown
37241         and KeyUp event handling and some minor fixes.
37242         * ListViewItem.cs: Fixed constructor.
37243         * ThemeWin32Classic.cs: Improved drawing for ListView.
37244
37245 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
37246
37247         * ThemeWin32Classic.cs: initial listbox drawing code
37248         * DrawMode.cs: new enumerator
37249         * ListControl.cs: stubbed class
37250         * ListBox.cs: initial implementation
37251         * Theme.cs: new methods definitions
37252         * SelectionMode.cs: new enumerator
37253
37254 2004-11-17  Peter Bartok  <pbartok@novell.com>
37255
37256         * XplatUIWin32.cs: Added double-click events to the class style
37257         * Control.cs (WndProc):
37258           - Added handling of click-count to MouseDown/ MouseUp events.
37259           - Added handling of middle and right mouse buttons
37260           - Removed old debug code
37261
37262 2004-11-17  Jackson Harper  <jackson@ximian.com>
37263
37264         * XplatUIX11.cs: Use the new Mono.Unix namespace.
37265
37266 2004-11-17  Ravindra <rkumar@novell.com>
37267
37268         * ListView.cs: Added event handling for MouseMove/Up/Down.
37269         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
37270         * ThemeWin32Classic.cs: We need to clear the graphics context and
37271         draw column header in a proper state.
37272
37273
37274 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
37275
37276         *  Menu.cs: fixes signature
37277
37278 2004-11-16  Peter Bartok  <pbartok@novell.com>
37279
37280         * XplatUIX11.cs (GetMessage): Implemented generation of
37281           double click mouse messages
37282
37283 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
37284
37285         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
37286         not by menu
37287
37288 2004-11-11  Peter Bartok  <pbartok@novell.com>
37289
37290         * HandleData.cs: Added Visible property
37291         * XplatUIX11.cs (IsVisible): Now uses Visible property from
37292           HandleData
37293         * XplatUIX11.cs: Removed old debug leftovers
37294         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
37295         * Control.cs (WndProc): Removed old debug leftovers,
37296           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
37297           needed WM_SIZE handling
37298
37299 2004-11-11  Jackson Harper  <jackson@ximian.com>
37300
37301         * OwnerDrawPropertyBag.cs:
37302         * TreeViewImageIndexConverter.cs: Initial implementation
37303
37304 2004-11-10  Jackson Harper  <jackson@ximian.com>
37305
37306         * ThemeWin32Classic.cs:
37307         * TabControl.cs: instead of moving tabs by the slider pos just
37308         start drawing at the tab that is offset by the slider. This way
37309         scrolling always moves by exactly one tab.
37310
37311 2004-11-10  Jackson Harper  <jackson@ximian.com>
37312
37313         * TabControl.cs: You can only scroll left when the slider has
37314         already ben moved right.
37315         
37316 2004-11-10  Jackson Harper  <jackson@ximian.com>
37317
37318         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
37319         the clip area.
37320         
37321 2004-11-10  Jackson Harper  <jackson@ximian.com>
37322
37323         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
37324         clip area.
37325         
37326 2004-11-09  Jackson Harper  <jackson@ximian.com>
37327
37328         * TabControl.cs (CalcXPos): New helper method so we can determine
37329         the proper place to start drawing vertical tabs.
37330         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
37331         
37332 2004-11-09  Jackson Harper  <jackson@ximian.com>
37333
37334         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
37335         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
37336         and Bottom, left and right are illegal values for this and
37337         multiline is enabled when the alignment is set to left or right.
37338         (DrawTab): Each alignment block should draw the text itself now
37339         because Left requires special love. Also add rendering for Left
37340         aligned tabs.
37341         
37342 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
37343
37344         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
37345         does not destroy the windows, removes debugging messages
37346
37347 2004-11-09  jba  <jba-mono@optusnet.com.au>
37348
37349         * ThemeWin32Classic.cs
37350         (DrawButtonBase): Fix verticle text rect clipping in windows
37351         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
37352         rendering and incorrect text rect clipping
37353         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
37354         rendering and incorrect text rect clipping
37355         
37356 2004-11-08  Jackson Harper  <jackson@ximian.com>
37357
37358         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
37359         bottom when they are bottom aligned so the bottoms of the tabs get
37360         displayed.
37361         * TabControl.cs (DropRow): Move rows up instead of down when the
37362         tab control is bottom aligned.
37363
37364 2004-11-08 13:59  pbartok
37365
37366         * XplatUIX11.cs:
37367           - Added handling for various window styles
37368           - Added handling for popup windows
37369           - Added SetTopmost handling
37370
37371 2004-11-08 13:55  pbartok
37372
37373         * XplatUIWin32.cs:
37374           - Added argument to SetTopmost method
37375           - Fixed broken ClientToScreen function
37376
37377 2004-11-08 13:53  pbartok
37378
37379         * XplatUIStructs.cs:
37380           - Added missing WS_EX styles
37381
37382 2004-11-08 13:53  pbartok
37383
37384         * XplatUI.cs, XplatUIDriver.cs:
37385           - Added argument to SetTopmost
37386
37387 2004-11-08 13:52  pbartok
37388
37389         * X11Structs.cs:
37390           - Added XSetWindowAttributes structure
37391           - Improved XWindowAttributes structure
37392           - Added SetWindowValuemask enum
37393           - Added window creation arguments enum
37394           - Added gravity enum
37395           - Added Motif hints structure
37396           - Added various Motif flags and enums
37397           - Added PropertyMode enum for property functions
37398
37399 2004-11-08 13:50  pbartok
37400
37401         * Form.cs:
37402           - Fixed arguments for updated SetTopmost method
37403
37404 2004-11-08 13:49  pbartok
37405
37406         * ToolTip.cs:
37407           - Fixed arguments for updated SetTopmost function
37408           - Fixed usage of PointToClient
37409
37410 2004-11-08 13:44  pbartok
37411
37412         * MenuAPI.cs:
37413           - Added Clipping of children and siblings
37414
37415 2004-11-08 13:41  pbartok
37416
37417         * MainMenu.cs:
37418           - Removed SetMenuBarWindow call. We do this in Form.cs
37419
37420 2004-11-08 13:40  jackson
37421
37422         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
37423           scrolling jimmi in the correct location with bottom aligned tabs
37424
37425 2004-11-08 13:36  pbartok
37426
37427         * ContainerControl.cs:
37428           - Implemented BindingContext
37429           - Implemented ParentForm
37430
37431 2004-11-08 12:46  jackson
37432
37433         * TabControl.cs: Put bottom rendered tabs in the right location
37434
37435 2004-11-08 07:15  jordi
37436
37437         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
37438           removes dead code
37439
37440 2004-11-05 17:30  jackson
37441
37442         * TabControl.cs: When selected tabs are expanded make sure they
37443           don't go beyond the edges of the tab control
37444
37445 2004-11-05 14:57  jackson
37446
37447         * TabControl.cs: Reset show_slider so if the control is resized to
37448           a size where it is no longer needed it's not displayed anymore
37449
37450 2004-11-05 13:16  jackson
37451
37452         * TabControl.cs: Make tab pages non visible when added to the
37453           control
37454
37455 2004-11-05 12:42  jackson
37456
37457         * TabControl.cs: Implement SizeMode.FillToRight
37458
37459 2004-11-05 12:16  jackson
37460
37461         * Control.cs: Do not call CreateHandle if the handle is already
37462           created
37463
37464 2004-11-05 11:46  jackson
37465
37466         * TabControl.cs: Remove superflous call to CalcTabRows
37467
37468 2004-11-05 09:07  jackson
37469
37470         * XplatUIX11.cs: Update for Mono.Posix changes
37471
37472 2004-11-05 07:00  ravindra
37473
37474         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
37475           scrolling.
37476
37477 2004-11-04 22:47  jba
37478
37479         * ThemeWin32Classic.cs:
37480           - Fix Button rendering for FlatStyle = Flat or Popup
37481           - Fix RadioButton and CheckBox rendering when Appearance = Button
37482             (normal and flatstyle).
37483           - Correct outer rectangle color when drawing focus rectangle
37484           - Adjust button bounds to be 1 px smaller when focused
37485           - Make button not draw sunken 3d border when pushed (windows compat)
37486           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
37487           - Offset the text in RadioButton and Checkbox when being rendered as
37488           a button.
37489           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
37490           radiobuttons
37491           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
37492           - Fixed disabled text rendering for normally rendered radiobuttons
37493
37494 2004-11-04 10:26  jackson
37495
37496         * TabControl.cs: Recalculate tab rows when resizing
37497
37498 2004-11-04 07:47  jordi
37499
37500         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
37501           collection completion, drawing issues, missing features
37502
37503 2004-11-04 05:03  ravindra
37504
37505         * ScrollBar.cs:
37506                 - We need to recalculate the Thumb area when
37507                 LargeChange/maximum/minimum values are changed.
37508           - We set the 'pos' in UpdatePos() method to minimum, if it's less
37509                 than minimum. This is required to handle the case if large_change is
37510                 more than max, and use LargeChange property instead of large_change
37511                 variable.
37512           - We return max+1 when large_change is more than max, like MS does.
37513
37514 2004-11-04 04:29  ravindra
37515
37516         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
37517                 - Changed default value signatures (prefixed all with ListView).
37518                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
37519                 ListView.
37520           - Fixed calculations for ListViewItem and implemented Clone()
37521           method.
37522
37523 2004-11-04 04:26  ravindra
37524
37525         * Theme.cs, ThemeWin32Classic.cs:
37526                 - Changed default ListView values signatures (prefixed all with
37527                 ListView).
37528           - Fixed default size values for VScrollBar and HScrollBar.
37529                 - Fixed DrawListViewItem method.
37530
37531 2004-11-04 04:05  ravindra
37532
37533         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
37534
37535 2004-11-04 04:04  ravindra
37536
37537         * ImageList.cs: Implemented the missing overload for Draw method.
37538
37539 2004-11-03 19:29  jackson
37540
37541         * TabControl.cs: Handle dropping rows on selection properly
37542
37543 2004-11-03 11:59  jackson
37544
37545         * TabControl.cs: remove debug code
37546
37547 2004-11-03 11:52  jackson
37548
37549         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
37550           the scrolly widgerywoo
37551
37552 2004-11-02 13:52  jackson
37553
37554         * TabControl.cs: Resize the tab pages and tabs when the tab control
37555           is resized
37556
37557 2004-11-02 13:40  jackson
37558
37559         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
37560           selected tab to the bottom
37561
37562 2004-11-02 13:39  jackson
37563
37564         * TabPage.cs: Store the tab pages row
37565
37566 2004-11-02 12:33  jordi
37567
37568         * MenuItem.cs: fixes handle creation
37569
37570 2004-11-02 11:42  jackson
37571
37572         * TabControl.cs: signature fix
37573
37574 2004-11-02 08:56  jackson
37575
37576         * TabControl.cs: Calculate whether the tab is on an edge properly.
37577           Remove top secret debugging code
37578
37579 2004-11-01 19:57  jackson
37580
37581         * TabControl.cs: Add click handling, and proper sizing
37582
37583 2004-11-01 19:47  jackson
37584
37585         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
37586           tab controls
37587
37588 2004-11-01 19:39  jackson
37589
37590         * TabPage.cs: add internal property to store the bounds of a tab
37591           page
37592
37593 2004-10-30 04:23  ravindra
37594
37595         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
37596           values.
37597
37598 2004-10-30 04:21  ravindra
37599
37600         * ListView.cs, ListViewItem.cs: Added support for scrolling and
37601           fixed calculations.
37602
37603 2004-10-30 03:06  pbartok
37604
37605         * XplatUIX11.cs:
37606           - Removed extension of DllImported libs
37607
37608 2004-10-29 09:55  jordi
37609
37610         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
37611           navigation, itemcollection completion, menu fixes
37612
37613 2004-10-27 22:58  pbartok
37614
37615         * XplatUIX11.cs:
37616           - Now throws a nice error message when no X display could be opened
37617
37618 2004-10-26 13:51  jordi
37619
37620         * ListView.cs: removes warning
37621
37622 2004-10-26 03:55  ravindra
37623
37624         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
37625           ThemeWin32Classic.cs: Some formatting for my last checkins.
37626
37627 2004-10-26 03:36  ravindra
37628
37629         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
37630           control and default values.
37631
37632 2004-10-26 03:35  ravindra
37633
37634         * Theme.cs: Added some default values for ListView control.
37635
37636 2004-10-26 03:33  ravindra
37637
37638         * ToolBar.cs: ToolBar should use the user specified button size, if
37639           there is any. Added a size_specified flag for the same.
37640
37641 2004-10-26 03:33  ravindra
37642
37643         * ColumnHeader.cs: Added some internal members and calculations for
37644           ColumnHeader.
37645
37646 2004-10-26 03:32  ravindra
37647
37648         * ListViewItem.cs: Calculations for ListViewItem.
37649
37650 2004-10-26 03:31  ravindra
37651
37652         * ListView.cs: Added some internal members and calculations for
37653           ListView.
37654
37655 2004-10-22 13:31  jordi
37656
37657         * MenuAPI.cs: speedup menus drawing
37658
37659 2004-10-22 13:16  jackson
37660
37661         * XplatUIX11.cs: Make sure to update exposed regions when adding an
37662           expose event
37663
37664 2004-10-22 11:49  jackson
37665
37666         * Control.cs: oops
37667
37668 2004-10-22 11:41  jackson
37669
37670         * Control.cs: Check to see if the window should have its background
37671           repainted by X when drawing.
37672
37673 2004-10-22 11:31  jackson
37674
37675         * XplatUIX11.cs: When invalidating areas only use XClearArea if
37676           clear is true, this way we do not get flicker from X repainting the
37677           background
37678
37679 2004-10-22 11:28  jackson
37680
37681         * XEventQueue.cs: Queue properly
37682
37683 2004-10-21 09:38  jackson
37684
37685         * XEventQueue.cs: Fix access modifier
37686
37687 2004-10-21 09:36  jackson
37688
37689         * XEventQueue.cs: Don't loose messages
37690
37691 2004-10-21 09:22  jackson
37692
37693         * XEventQueue.cs: Don't loose messages
37694
37695 2004-10-20 04:15  jordi
37696
37697         * BootMode.cs: enum need it by SystemInfo
37698
37699 2004-10-19 21:58  pbartok
37700
37701         * XplatUIWin32.cs:
37702           - Small sanity check
37703
37704 2004-10-19 21:56  pbartok
37705
37706         * Form.cs:
37707           - Added private FormParentWindow class which acts as the container
37708             for our form and as the non-client area where menus are drawn
37709           - Added/Moved required tie-ins to Jordi's menus
37710           - Fixed/Implemented the FormStartPosition functionality
37711
37712 2004-10-19 21:52  pbartok
37713
37714         * Control.cs:
37715           - Removed unneeded locals
37716           - Added code to all size and location properties to understand and
37717             deal with the parent container of Form
37718
37719 2004-10-19 21:33  pbartok
37720
37721         * Application.cs:
37722           - Fixed to deal with new Form subclasses for menus
37723
37724 2004-10-19 17:48  jackson
37725
37726         * XEventQueue.cs: commit correct version of file
37727
37728 2004-10-19 16:50  jackson
37729
37730         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
37731
37732 2004-10-19 16:15  jordi
37733
37734         * MenuAPI.cs: MenuBarCalcSize returns the height
37735
37736 2004-10-19 08:31  pbartok
37737
37738         * Control.cs:
37739           - Added missing call to PreProcessMessage before calling OnXXXKey
37740           methods
37741
37742 2004-10-19 00:04  ravindra
37743
37744         * ToolTip.cs: Fixed constructor.
37745
37746 2004-10-18 09:31  jordi
37747
37748         * MenuAPI.cs: menuitems in menubars do not have shortcuts
37749
37750 2004-10-18 09:26  jordi
37751
37752         * MenuItem.cs: fixes MenuItem class signature
37753
37754 2004-10-18 08:56  jordi
37755
37756         * MenuAPI.cs: prevents windows from showing in the taskbar
37757
37758 2004-10-18 00:28  ravindra
37759
37760         * ToolTip.cs: Suppressed a warning message.
37761
37762 2004-10-18 00:27  ravindra
37763
37764         * Control.cs: Default value of visible property must be true.
37765
37766 2004-10-17 23:19  pbartok
37767
37768         * ToolTip.cs:
37769           - Complete implementation
37770
37771 2004-10-17 23:19  pbartok
37772
37773         * XplatUIX11.cs:
37774           - Added EnableWindow method
37775           - Added SetModal stub
37776           - Added generation of WM_ACTIVATE message (still needs testing)
37777           - Added SetTopMost stub
37778           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
37779
37780 2004-10-17 23:17  pbartok
37781
37782         * XplatUIWin32.cs:
37783           - Removed VirtualKeys to XplatUIStructs
37784           - Implemented SetTopMost method
37785           - Implemented EnableWindow method
37786           - Bugfix in ScreenToClient()
37787           - Bugfixes in ClientToScreen()
37788
37789 2004-10-17 22:51  pbartok
37790
37791         * XplatUIStructs.cs:
37792           - Added WS_EX styles to WindowStyles enumeration
37793
37794 2004-10-17 22:50  pbartok
37795
37796         * XplatUI.cs, XplatUIDriver.cs:
37797           - Added method for enabling/disabling windows
37798           - Added method for setting window modality
37799           - Added method for setting topmost window
37800
37801 2004-10-17 22:49  pbartok
37802
37803         * ThemeWin32Classic.cs:
37804           - Added ToolTip drawing code
37805
37806 2004-10-17 22:49  pbartok
37807
37808         * Theme.cs:
37809           - Added ToolTip abstracts
37810
37811 2004-10-17 22:47  pbartok
37812
37813         * Form.cs:
37814           - Fixed Form.ControlCollection to handle owner relations
37815           - Added Owner/OwnedForms handling
37816           - Implemented Z-Ordering for owned forms
37817           - Removed unneeded private overload of ShowDialog
37818           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
37819             so I hope)
37820           - Fixed Close(), had wrong default
37821           - Added firing of OnLoad event
37822           - Added some commented out debug code for Ownership handling
37823
37824 2004-10-17 22:16  pbartok
37825
37826         * Control.cs:
37827           - Fixed/implemented flat list of controls
37828
37829 2004-10-17 22:14  pbartok
37830
37831         * Application.cs:
37832           - Added code to simulate modal dialogs on Win32
37833
37834 2004-10-17 16:11  jordi
37835
37836         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
37837           mouse event
37838
37839 2004-10-17 13:39  jordi
37840
37841         * MenuAPI.cs: menu drawing fixes
37842
37843 2004-10-15 09:10  ravindra
37844
37845         * StructFormat.cs: General Enum.
37846
37847 2004-10-15 09:09  ravindra
37848
37849         * SizeGripStyle.cs: Enum for Form.
37850
37851 2004-10-15 09:08  ravindra
37852
37853         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
37854           in Theme for ListView.
37855
37856 2004-10-15 09:06  ravindra
37857
37858         * ColumnHeader.cs: Flushing some formatting changes.
37859
37860 2004-10-15 09:05  ravindra
37861
37862         * ListViewItem.cs: Implemented GetBounds method and fixed coding
37863           style.
37864
37865 2004-10-15 09:03  ravindra
37866
37867         * ListView.cs: Implemented Paint method and fixed coding style.
37868
37869 2004-10-15 07:34  jordi
37870
37871         * MenuAPI.cs: fix for X11
37872
37873 2004-10-15 07:32  ravindra
37874
37875         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
37876                 - Renamed Paint() method to Draw() for clarity. Also, moved
37877                 DrawImage() to OnPaint().
37878
37879 2004-10-15 07:25  ravindra
37880
37881         * CheckBox.cs, RadioButton.cs:
37882                 - Removed Redraw (), we get it from ButtonBase.
37883                 - Implemented Paint (), to do class specific painting.
37884
37885 2004-10-15 07:16  ravindra
37886
37887         * ButtonBase.cs:
37888                 - Redraw () is not virtual now.
37889                 - Added an internal virtual method Paint (), so that
37890                 derived classes can do their painting on their own.
37891                 - Modified OnPaint () to call Paint ().
37892
37893 2004-10-15 06:43  jordi
37894
37895         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
37896           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
37897
37898 2004-10-15 00:30  ravindra
37899
37900         * MessageBox.cs:
37901                 - MessageBox on windows does not have min/max buttons.
37902                 This change in CreateParams fixes this on Windows. We
37903                 still need to implement this windowstyle behavior in
37904                 our X11 driver.
37905
37906 2004-10-14 05:14  ravindra
37907
37908         * ToolBar.cs:
37909                 - Changed Redraw () to do a Refresh () always.
37910                 - Fixed the MouseMove event handling when mouse is pressed,
37911                 ie drag event handling.
37912                 - Replaced the usage of ToolBarButton.Pressed property to
37913                 ToolBarButton.pressed internal variable.
37914
37915 2004-10-14 05:10  ravindra
37916
37917         * ToolBarButton.cs:
37918                 - Added an internal member 'inside' to handle mouse move
37919                 with mouse pressed ie mouse drag event.
37920                 - Changed 'Pressed' property to return true only when
37921                 'inside' and 'pressed' are both true.
37922                 - Some coding style love.
37923
37924 2004-10-14 00:17  ravindra
37925
37926         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
37927           public method.
37928
37929 2004-10-14 00:15  ravindra
37930
37931         * ButtonBase.cs: Redraw () related improvements.
37932
37933 2004-10-14 00:14  ravindra
37934
37935         * MessageBox.cs: Moved InitFormSize () out of Paint method and
37936           removed unnecessary calls to Button.Show () method.
37937
37938 2004-10-13 17:50  pbartok
37939
37940         * XplatUIX11.cs:
37941           - Formatting fix
37942           - Removed destroying of window until we solve the problem of X
37943             destroying the window before us on shutdown
37944
37945 2004-10-13 16:32  pbartok
37946
37947         * ButtonBase.cs:
37948           - Now Redraws on MouseUp for FlatStyle Flat and Popup
37949
37950 2004-10-13 14:18  pbartok
37951
37952         * XplatUIX11.cs:
37953           - Added code to destroy the X window
37954
37955 2004-10-13 14:18  pbartok
37956
37957         * XplatUIWin32.cs:
37958           - Added code to destroy a window
37959
37960 2004-10-13 14:12  pbartok
37961
37962         * ButtonBase.cs:
37963           - Added the Redraw on Resize that got dropped in the last rev
37964
37965 2004-10-13 09:06  pbartok
37966
37967         * ThemeWin32Classic.cs:
37968           - Path from John BouAntoun:
37969             * Fix check rendering (centre correctly for normal style, offset
37970               correctly for FlatStyle).
37971             * Fix border color usage (use backcolor) for FlatStyle.Popup
37972             * Use checkbox.Capture instead of checkbox.is_pressed when
37973               rendering flatstyle states.
37974
37975 2004-10-12 21:48  pbartok
37976
37977         * ThemeWin32Classic.cs:
37978           - Removed all occurences of SystemColors and replaced them with the
37979             matching theme color
37980
37981 2004-10-12 21:41  pbartok
37982
37983         * ThemeWin32Classic.cs:
37984           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
37985             him using the function for flatstyle drawing
37986           - Changed functions to use the new version of CPDrawBorder3D
37987
37988 2004-10-12 21:15  pbartok
37989
37990         * ControlPaint.cs:
37991           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
37992             match MS documentation. They need to return defined colors if the
37993             passed color matches the configured control color. Thanks to John
37994             BouAntoun for pointing this out.
37995
37996 2004-10-12 20:57  pbartok
37997
37998         * Control.cs:
37999           - Fix from John BouAntoun: Raise ForeColorChanged event when text
38000             color is changed
38001
38002 2004-10-12 20:46  pbartok
38003
38004         * CheckBox.cs:
38005           - Fix from John BouAntoun: Now properly sets the Appearance property
38006
38007 2004-10-12 20:45  pbartok
38008
38009         * ThemeWin32Classic.cs:
38010           - Fixes from John BouAntoun: now handles forecolors and backcolors
38011             for flatstyle rendered controls much better; It also fixes normal
38012             checkbox rendering when pushed or disabled.
38013
38014 2004-10-08 02:50  jordi
38015
38016         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
38017           work
38018
38019 2004-10-07 08:56  jordi
38020
38021         * ThemeWin32Classic.cs: Removes deletion of cached brushes
38022
38023 2004-10-06 03:59  jordi
38024
38025         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
38026           XplatUIWin32.cs: removes warnings from compilation
38027
38028 2004-10-05 12:23  jackson
38029
38030         * RadioButton.cs: Fix ctor
38031
38032 2004-10-05 11:10  pbartok
38033
38034         * MessageBox.cs:
38035           - Partial implementation by Benjamin Dasnois
38036
38037 2004-10-05 10:15  jackson
38038
38039         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
38040           by John BouAntoun
38041
38042 2004-10-05 03:07  ravindra
38043
38044         * ToolBar.cs:
38045                 - Removed a private method, Draw ().
38046                 - Fixed the ButtonDropDown event handling.
38047                 - Fixed MouseMove event handling.
38048
38049 2004-10-05 03:04  ravindra
38050
38051         * ThemeWin32Classic.cs:
38052                 - Added DrawListView method and ListViewDefaultSize property.
38053                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
38054                 - Changed DOS style CRLF to Unix format (dos2unix).
38055
38056 2004-10-05 03:03  ravindra
38057
38058         * Theme.cs:
38059                 - Added DrawListView method and ListViewDefaultSize property.
38060
38061 2004-10-05 02:42  ravindra
38062
38063         * ToolBarButton.cs: Added an internal member dd_pressed to handle
38064           clicks on DropDown arrow.
38065
38066 2004-10-04 22:56  jackson
38067
38068         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
38069           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
38070           Control handle the buffers, derived classes should not have to
38071           CreateBuffers themselves.
38072
38073 2004-10-04 21:20  jackson
38074
38075         * StatusBar.cs: The control handles resizing the buffers now.
38076
38077 2004-10-04 21:18  jackson
38078
38079         * Control.cs: When resizing the buffers should be invalidated. This
38080           should be handled in Control not in derived classes.
38081
38082 2004-10-04 14:45  jackson
38083
38084         * TabPage.cs: oops
38085
38086 2004-10-04 02:14  pbartok
38087
38088         * LeftRightAlignment.cs:
38089           - Initial check-in
38090
38091 2004-10-04 01:09  jordi
38092
38093         * ThemeWin32Classic.cs: fixes right button position causing right
38094           button not showing on horizontal scrollbars
38095
38096 2004-10-02 13:12  pbartok
38097
38098         * XplatUIX11.cs:
38099           - Simplified the Invalidate method by using an X call instead of
38100             generating the expose ourselves
38101           - Added an expose when the window background is changed
38102           - Implemented ClientToScreen method
38103
38104 2004-10-02 13:08  pbartok
38105
38106         * XplatUIWin32.cs:
38107           - Added Win32EnableWindow method (test for implementing modal
38108           dialogs)
38109           - Added ClientToScreen method and imports
38110
38111 2004-10-02 13:07  pbartok
38112
38113         * XplatUI.cs, XplatUIDriver.cs:
38114           - Added ClientToScreen coordinate translation method
38115
38116 2004-10-02 13:06  pbartok
38117
38118         * KeyPressEventArgs.cs:
38119           - Fixed access level for constructor
38120
38121 2004-10-02 13:06  pbartok
38122
38123         * NativeWindow.cs:
38124           - Changed access level for the window_collection hash table
38125
38126 2004-10-02 13:05  pbartok
38127
38128         * Form.cs:
38129           - Added KeyPreview property
38130           - Added Menu property (still incomplete, pending Jordi's menu work)
38131           - Implemented ProcessCmdKey
38132           - Implemented ProcessDialogKey
38133           - Implemented ProcessKeyPreview
38134
38135 2004-10-02 13:02  pbartok
38136
38137         * Control.cs:
38138           - Added private method to get the Control object from the window
38139           handle
38140           - Implemented ContextMenu property
38141           - Implemented PointToScreen
38142           - Implemented PreProcessMessage
38143           - Implemented IsInputChar
38144           - Implemented IsInputKey
38145           - Implemented ProcessCmdKey
38146           - Completed ProcessKeyEventArgs
38147           - Fixed message loop to call the proper chain of functions on key
38148           events
38149           - Implemented ProcessDialogChar
38150           - Implemented ProcessDialogKey
38151           - Implemented ProcessKeyMessage
38152           - Implemented ProcessKeyPreview
38153           - Added RaiseDragEvent stub (MS internal method)
38154           - Added RaiseKeyEvent stub (MS internal method)
38155           - Added RaiseMouseEvent stub (MS Internal method)
38156           - Added RaisePaintEvent stub (MS Internal method)
38157           - Added ResetMouseEventArgs stub (MS Internal method)
38158           - Implemented RtlTranslateAlignment
38159           - Implemented RtlTranslateContent
38160           - Implemented RtlTranslateHorizontal
38161           - Implemented RtlTranslateLeftRight
38162           - Added generation of KeyPress event
38163
38164 2004-10-02 05:57  ravindra
38165
38166         * ListViewItem.cs: Added attributes.
38167
38168 2004-10-02 05:32  ravindra
38169
38170         * ListView.cs: Added attributes.
38171
38172 2004-10-01 11:53  jackson
38173
38174         * Form.cs: Implement the Close method so work on MessageBox can
38175           continue.
38176
38177 2004-09-30 14:06  pbartok
38178
38179         * XplatUIX11.cs:
38180           - Bug fixes
38181
38182 2004-09-30 11:34  jackson
38183
38184         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
38185
38186 2004-09-30 07:26  ravindra
38187
38188         * ListViewItemConverter.cs: Converter for ListViewItem.
38189
38190 2004-09-30 07:26  ravindra
38191
38192         * SortOrder.cs: Enum for ListView control.
38193
38194 2004-09-30 07:25  ravindra
38195
38196         * ColumnHeader.cs: Supporting class for ListView control.
38197
38198 2004-09-30 07:24  ravindra
38199
38200         * ListView.cs, ListViewItem.cs: Initial implementation.
38201
38202 2004-09-30 07:20  ravindra
38203
38204         * ItemActivation.cs: Enum for ListView Control.
38205
38206 2004-09-29 20:29  pbartok
38207
38208         * XplatUIX11.cs:
38209           - Added lookup of pixel value for background color; tries to get a
38210             color 'close' to the requested color, it avoids having to create a
38211             colormap.  Depending on the display this could mean the used color
38212             is slightly off the desired color. Might have to change it to a more
38213             resource intensive colormap approach, but it will work as a
38214           workaround to avoid red screens.
38215
38216 2004-09-29 14:27  jackson
38217
38218         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
38219
38220 2004-09-28 12:44  pbartok
38221
38222         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
38223           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
38224           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
38225           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
38226           TrackBar.cs, VScrollBar.cs:
38227           - Streamlined Theme interfaces:
38228             * Each DrawXXX method for a control now is passed the object for
38229               the control to be drawn in order to allow accessing any state the
38230               theme might require
38231
38232             * ControlPaint methods for the theme now have a CP prefix to avoid
38233               name clashes with the Draw methods for controls
38234
38235             * Every control now retrieves it's DefaultSize from the current
38236             theme
38237
38238 2004-09-28 12:17  jackson
38239
38240         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
38241           drawing
38242
38243 2004-09-24 14:57  jackson
38244
38245         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
38246           Gives us a nice little performance boost.
38247
38248 2004-09-24 12:02  jackson
38249
38250         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
38251           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
38252           Control and supporting classes. Initial checkin
38253
38254 2004-09-23 13:08  jackson
38255
38256         * Form.cs: Temp build fixage
38257
38258 2004-09-23 01:39  ravindra
38259
38260         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
38261           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
38262           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
38263           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
38264           EventHandlers needed by ListView Control.
38265
38266 2004-09-22 14:12  pbartok
38267
38268         * ScrollableControl.cs:
38269           - Implemented DockPadding property
38270           - Implemented AutoScroll property
38271           - Implemented AutoScrollMargin property
38272           - Implemented AutoScrollMinSize property
38273           - Implemented AutoScrollPosition property
38274           - Implemented DisplayRectangle property (still incomplete)
38275           - Implemented CreateParams property
38276           - Implemented HScroll property
38277           - Implemented VScroll property
38278           - Implemented OnVisibleChanged property
38279
38280 2004-09-22 14:09  pbartok
38281
38282         * Form.cs:
38283           - Added Form.ControllCollection class
38284           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
38285             RemoveOwnedForm (still incomplete, missing on-top and common
38286             minimize/maximize behaviour)
38287           - Added StartPosition property (still incomplete, does not use when
38288             creating the form)
38289           - Added ShowDialog() methods (still incomplete, missing forcing the
38290             dialog modal)
38291
38292 2004-09-22 14:05  pbartok
38293
38294         * Application.cs:
38295           - Added message loop for modal dialogs
38296
38297 2004-09-22 14:02  pbartok
38298
38299         * GroupBox.cs:
38300           - Fixed wrong types for events
38301
38302 2004-09-22 14:00  pbartok
38303
38304         * Shortcut.cs, FormWindowState.cs:
38305           - Fixed wrong values
38306
38307 2004-09-22 12:01  jackson
38308
38309         * Control.cs: Text is never null
38310
38311 2004-09-20 22:14  pbartok
38312
38313         * XplatUIWin32.cs:
38314           - Fixed accessibility level for Idle handler
38315
38316 2004-09-20 18:54  jackson
38317
38318         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38319           XplatUIX11.cs: New message loop that uses poll so we don't get a
38320           busy loop
38321
38322 2004-09-17 10:43  pbartok
38323
38324         * ScrollBar.cs:
38325           - Fixed behaviour of arrow buttons. Now properly behaves like
38326             Buttons (and like Microsoft's scrollbar arrow buttons)
38327
38328 2004-09-17 10:14  pbartok
38329
38330         * ScrollBar.cs:
38331           - Added missing release of keyboard/mouse capture
38332
38333 2004-09-17 06:18  jordi
38334
38335         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
38336           Theme.cs: Very early menu support
38337
38338 2004-09-16 17:45  pbartok
38339
38340         * XplatUIWin32.cs:
38341           - Fixed sending a window to the front
38342           - Added overload for SetWindowPos to avoid casting
38343
38344 2004-09-16 17:44  pbartok
38345
38346         * Control.cs:
38347           - Added SendToBack and BringToFront methods
38348
38349 2004-09-16 07:00  ravindra
38350
38351         * Copyright: Added Novell URL.
38352
38353 2004-09-16 07:00  ravindra
38354
38355         * ToolBar.cs: Invalidate should be done before redrawing.
38356
38357 2004-09-15 21:19  ravindra
38358
38359         * ColumnHeaderStyle.cs: Enum for ListView Control.
38360
38361 2004-09-15 21:18  ravindra
38362
38363         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
38364           ListView Control.
38365
38366 2004-09-13 18:26  jackson
38367
38368         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
38369           properly
38370
38371 2004-09-13 18:13  jackson
38372
38373         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
38374           a second thread and post messages into the main threads message
38375           queue. This makes timing much more consistent. Both win2K and XP
38376           have a minimum timer value of 15 milliseconds, so we now do this
38377           too.
38378
38379 2004-09-13 15:18  pbartok
38380
38381         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38382           XplatUIX11.cs:
38383           - Added Z-Ordering methods
38384
38385 2004-09-13 10:56  pbartok
38386
38387         * Form.cs:
38388           - Fixed #region names
38389           - Moved properties and methods into their proper #regions
38390
38391 2004-09-13 10:51  pbartok
38392
38393         * Form.cs:
38394           - Added Accept and CancelButton properties
38395           - Added ProcessDialogKey() method
38396
38397 2004-09-13 08:18  pbartok
38398
38399         * IWindowTarget.cs:
38400           - Initial check-in
38401
38402 2004-09-10 21:50  pbartok
38403
38404         * Control.cs:
38405           - Added DoDragDrop() [incomplete]
38406           - Properly implemented 'Visible' handling
38407           - Added SetVisibleCore()
38408           - Implemented FindChildAtPoint()
38409           - Implemented GetContainerControl()
38410           - Implemented Hide()
38411
38412 2004-09-10 19:28  pbartok
38413
38414         * Control.cs:
38415           - Moved methods into their appropriate #regions
38416           - Reordered methods within regions alphabetically
38417
38418 2004-09-10 18:57  pbartok
38419
38420         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
38421           - Added method to retrieve text from window
38422
38423 2004-09-10 18:56  pbartok
38424
38425         * Control.cs:
38426           - Moved some internal functions into the internal region
38427           - Implemented FontHeight
38428           - Implemented RenderRightToLeft
38429           - Implemented ResizeRedraw
38430           - Implemented ShowFocusCues
38431           - Implemented ShowKeyboardCues
38432           - Implemented FromChildHandle
38433           - Implemented FromHandle
38434           - Implemented IsMnemonic
38435           - Implemented ReflectMessage
38436           - All public and protected Static Methods are now complete
38437
38438 2004-09-10 16:54  pbartok
38439
38440         * Control.cs:
38441           - Implemented remaining missing public instance properties
38442           - Alphabetized some out of order properties
38443
38444 2004-09-10 05:51  ravindra
38445
38446         * PictureBox.cs: Added a check for null image.
38447
38448 2004-09-10 00:59  jordi
38449
38450         * GroupBox.cs: remove cvs tag
38451
38452 2004-09-09 05:25  ravindra
38453
38454         * ToolBar.cs: Make redraw accessible from ToolBarButton.
38455
38456 2004-09-09 05:23  ravindra
38457
38458         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
38459           parent redraw.
38460
38461 2004-09-09 02:28  pbartok
38462
38463         * ThemeWin32Classic.cs:
38464           - Improve disabled string look
38465
38466 2004-09-09 01:15  jordi
38467
38468         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
38469           args and handler
38470
38471 2004-09-08 23:56  ravindra
38472
38473         * ItemBoundsPortion.cs: It's enum, not a class!
38474
38475 2004-09-08 23:47  ravindra
38476
38477         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
38478           Enums for Form.
38479
38480 2004-09-08 21:13  ravindra
38481
38482         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
38483           ListView control.
38484
38485 2004-09-08 21:03  ravindra
38486
38487         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
38488           avoid crash.
38489
38490 2004-09-08 21:01  ravindra
38491
38492         * ScrollableControl.cs: Removed unreachable code.
38493
38494 2004-09-08 06:45  jordi
38495
38496         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
38497
38498 2004-09-08 01:00  jackson
38499
38500         * XplatUIX11.cs: Only run the timers when updating the message
38501           queue. This effectively gives X messages a higher priority then
38502           timer messages. Timers still need love though
38503
38504 2004-09-07 14:01  jackson
38505
38506         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
38507           this for us and the handle is no longer valid.
38508
38509 2004-09-07 13:59  jackson
38510
38511         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
38512           loop that manages to not crash. TODO: Add poll and cleanup timers
38513
38514 2004-09-07 11:12  jordi
38515
38516         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
38517
38518 2004-09-07 03:40  jordi
38519
38520         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
38521           fixes, methods, multiple links
38522
38523 2004-09-06 06:55  jordi
38524
38525         * Control.cs: Caches ClientRectangle rectangle value
38526
38527 2004-09-05 02:03  jordi
38528
38529         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
38530           certain situations
38531
38532 2004-09-04 11:10  jordi
38533
38534         * Label.cs: Refresh when font changed
38535
38536 2004-09-02 16:24  pbartok
38537
38538         * Control.cs:
38539           - Added sanity check to creation of double buffer bitmap
38540
38541 2004-09-02 16:24  pbartok
38542
38543         * ButtonBase.cs:
38544           - Fixed selection of text color
38545           - Fixed handling of resize event; now properly recreates double
38546             buffering bitmap
38547           - Added missing assignment of TextAlignment
38548           - Added proper default for TextAlignment
38549
38550 2004-09-02 14:26  pbartok
38551
38552         * RadioButton.cs:
38553           - Added missing RadioButton.RadioButtonAccessibleObject class
38554
38555 2004-09-02 14:26  pbartok
38556
38557         * Control.cs:
38558           - Added missing Control.ControlAccessibleObject class
38559           - Started to implement Select()ion mechanisms, still very incomplete
38560
38561 2004-09-02 14:25  pbartok
38562
38563         * AccessibleObject.cs:
38564           - Added missing methods
38565
38566 2004-09-02 14:23  pbartok
38567
38568         * AccessibleNavigation.cs, AccessibleSelection.cs:
38569           - Initial check-in
38570
38571 2004-09-02 10:32  jordi
38572
38573         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
38574           pool for pens, brushes, and hatchbruses
38575
38576 2004-09-01 15:30  jackson
38577
38578         * StatusBar.cs: Fix typo
38579
38580 2004-09-01 14:44  pbartok
38581
38582         * RadioButton.cs:
38583           - Fixed state
38584
38585 2004-09-01 14:39  pbartok
38586
38587         * Button.cs, RadioButton.cs:
38588           - Functional initial check-in
38589
38590 2004-09-01 14:01  pbartok
38591
38592         * CheckBox.cs:
38593           - Added missing default
38594           - Added missing region mark
38595
38596 2004-09-01 09:10  jordi
38597
38598         * Label.cs: fixes method signatures, new methods, events, fixes
38599           autosize
38600
38601 2004-09-01 07:19  jordi
38602
38603         * Control.cs: Init string variables with an empty object
38604
38605 2004-09-01 04:20  jordi
38606
38607         * Control.cs: fires OnFontChanged event
38608
38609 2004-08-31 20:07  pbartok
38610
38611         * ButtonBase.cs:
38612           - Enabled display of strings
38613
38614 2004-08-31 20:05  pbartok
38615
38616         * Form.cs:
38617           - Added (partial) implementation of DialogResult; rest needs to be
38618             implemented when the modal loop code is done
38619
38620 2004-08-31 19:55  pbartok
38621
38622         * CheckBox.cs:
38623           - Fixed to match the removal of the needs_redraw concept
38624
38625 2004-08-31 19:55  pbartok
38626
38627         * ButtonBase.cs:
38628           - Removed the rather odd split between 'needs redraw' and redrawing
38629           - Now handles the events that require regeneration (ambient
38630             properties and size)
38631
38632 2004-08-31 19:41  pbartok
38633
38634         * Control.cs:
38635           - Added firing of BackColorChanged event
38636           - Added TopLevelControl property
38637           - Fixed handling of WM_ERASEBKGRND message
38638
38639 2004-08-31 12:49  pbartok
38640
38641         * ButtonBase.cs:
38642           - Removed debug
38643           - Minor fixes
38644
38645 2004-08-31 12:48  pbartok
38646
38647         * CheckBox.cs:
38648           - Finished (famous last words)
38649
38650 2004-08-31 04:35  jordi
38651
38652         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
38653           scrolling bugs, adds new methods
38654
38655 2004-08-30 14:42  pbartok
38656
38657         * CheckBox.cs:
38658           - Implemented CheckBox drawing code
38659
38660 2004-08-30 14:42  pbartok
38661
38662         * ButtonBase.cs:
38663           - Made Redraw() and CheckRedraw() virtual
38664           - Improved mouse up/down/move logic to properly track buttons
38665
38666 2004-08-30 09:44  pbartok
38667
38668         * CheckBox.cs:
38669           - Updated to fix broken build. Not complete yet.
38670
38671 2004-08-30 09:28  pbartok
38672
38673         * CheckState.cs:
38674           - Initial checkin
38675
38676 2004-08-30 09:17  pbartok
38677
38678         * Appearance.cs:
38679           - Initial check-in
38680
38681 2004-08-27 16:12  ravindra
38682
38683         * ToolBarButton.cs: Added TypeConverter attribute.
38684
38685 2004-08-27 16:07  ravindra
38686
38687         * ImageIndexConverter.cs: Implemented.
38688
38689 2004-08-27 14:17  pbartok
38690
38691         * Control.cs:
38692           - Removed unneeded stack vars
38693           - First attempt to fix sizing issues when layout is suspended
38694
38695 2004-08-25 15:35  jordi
38696
38697         * ScrollBar.cs: more fixes to scrollbar
38698
38699 2004-08-25 14:04  ravindra
38700
38701         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
38702           Added the missing divider code and grip for ToolBar Control.
38703
38704 2004-08-25 13:20  pbartok
38705
38706         * Control.cs:
38707           - Control now properly passes the ambient background color to child
38708             controls
38709
38710 2004-08-25 13:20  jordi
38711
38712         * ScrollBar.cs: small bug fix regarding bar position
38713
38714 2004-08-25 12:33  pbartok
38715
38716         * Timer.cs:
38717           - Now only calls SetTimer or KillTimer if the enabled state has
38718           changed
38719
38720 2004-08-25 12:33  pbartok
38721
38722         * XplatUIWin32.cs:
38723           - Fixed timer handling, now seems to work
38724           - Improved error message for window creation
38725
38726 2004-08-25 12:32  pbartok
38727
38728         * Control.cs:
38729           - Fixed generation of MouseUp message
38730
38731 2004-08-25 12:29  jordi
38732
38733         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
38734           and fixes for progressbar
38735
38736 2004-08-24 18:43  ravindra
38737
38738         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
38739           in ToolBar control.
38740
38741 2004-08-24 17:15  pbartok
38742
38743         * Panel.cs:
38744           - Added #region
38745           - Added missing events
38746           - Alphabetized
38747
38748 2004-08-24 17:14  pbartok
38749
38750         * StatusBar.cs, PictureBox.cs:
38751           - Now uses Control's CreateParams
38752
38753 2004-08-24 16:36  pbartok
38754
38755         * XplatUIX11.cs:
38756           - Fixed background color handling
38757           - Fixed sending of enter/leave events on a grab
38758
38759 2004-08-24 16:35  pbartok
38760
38761         * X11Structs.cs:
38762           - Refined definitions for CrossingEvent
38763
38764 2004-08-24 12:37  jordi
38765
38766         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
38767           formmating, methods signature, and adds missing events
38768
38769 2004-08-24 12:24  jordi
38770
38771         * Control.cs: fire OnEnabledChanged event
38772
38773 2004-08-24 11:17  pbartok
38774
38775         * XplatUIWin32.cs:
38776           - Implemented SetTimer() and KillTimer()
38777
38778 2004-08-24 11:16  pbartok
38779
38780         * XplatUIX11.cs:
38781           - Now uses Remove instead of Add to kill the timer
38782
38783 2004-08-24 10:16  jackson
38784
38785         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
38786           picture boxes in the theme now. Draw picture box borders and obey
38787           sizing modes
38788
38789 2004-08-24 05:49  jackson
38790
38791         * Timer.cs: Remove top secret debugging code
38792
38793 2004-08-24 05:34  jackson
38794
38795         * PictureBox.cs: Temp hack to make picture boxes draw their full
38796           image
38797
38798 2004-08-24 05:29  jackson
38799
38800         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38801           XplatUIX11.cs: Move timers to the driver level. On X they are
38802           queued by the driver and checked on idle.
38803
38804 2004-08-24 01:07  jackson
38805
38806         * XplatUIX11.cs: Use a queue for async messages instead of passing
38807           them as ClientMessages since that was totally broken. Also simply
38808           check for events and return an idle message if none are found. This
38809           gives us an idle handler, and prevents deadlocking when no messages
38810           are in the queue.
38811
38812 2004-08-23 18:19  ravindra
38813
38814         * XplatUIWin32.cs: Removed the unwanted destructor.
38815
38816 2004-08-23 17:27  pbartok
38817
38818         * ButtonBase.cs:
38819           - Finishing touches. Works now, just needs some optimizations.
38820
38821 2004-08-23 16:53  jordi
38822
38823         * ScrollBar.cs: small fix
38824
38825 2004-08-23 16:45  pbartok
38826
38827         * Application.cs:
38828           - Removed debug output
38829           - Simplifications
38830
38831 2004-08-23 16:43  jordi
38832
38833         * ScrollBar.cs: [no log message]
38834
38835 2004-08-23 16:10  pbartok
38836
38837         * Form.cs:
38838           - Fixed handling of WM_CLOSE message
38839           - Removed debug output
38840
38841 2004-08-23 16:09  pbartok
38842
38843         * Application.cs:
38844           - Added handling of Idle event
38845           - Added handling of form closing
38846           - Fixed reporting of MessageLoop property
38847           - Removed some unneeded code, should provide a bit of a speedup
38848
38849 2004-08-23 15:22  pbartok
38850
38851         * Control.cs:
38852           - Added InitLayout() method
38853           - Added code to properly perform layout when Anchor or Dock property
38854             is changed
38855           - Changed 'interpretation' of ResumeLayout. MS seems to have a
38856             LAMESPEC, tried to do it in a way that makes sense
38857
38858 2004-08-23 14:10  jordi
38859
38860         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
38861           properties and methods
38862
38863 2004-08-23 13:55  pbartok
38864
38865         * Control.cs:
38866           - Properly fixed Jordi's last fix
38867           - Now uses Cursor's Position property instead of calling XplatUI
38868           directly
38869
38870 2004-08-23 13:44  jordi
38871
38872         * PaintEventHandler.cs: Adding missing attribute
38873
38874 2004-08-23 13:39  pbartok
38875
38876         * Cursor.cs:
38877           - Implemented Position property
38878
38879 2004-08-23 13:39  pbartok
38880
38881         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
38882           - Added method to move mouse cursor
38883
38884 2004-08-23 13:39  pbartok
38885
38886         * XplatUIX11.cs:
38887           - Fixed setting of background color
38888           - Added method to move mouse cursor
38889
38890 2004-08-23 13:16  jordi
38891
38892         * Control.cs: avoids null exception
38893
38894 2004-08-22 17:46  jackson
38895
38896         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
38897           PictureBox
38898
38899 2004-08-22 17:40  jackson
38900
38901         * XplatUIX11.cs: Add some missing locks
38902
38903 2004-08-22 15:10  pbartok
38904
38905         * Control.cs, Form.cs:
38906           - Removed OverlappedWindow style from Control, instead it's default
38907             now is child
38908           - Made form windows OverlappedWindow by default
38909
38910 2004-08-22 13:34  jackson
38911
38912         * ScrollBar.cs: Update the position through the Value property so
38913           the OnValueChanged event is raised.
38914
38915 2004-08-22 12:04  pbartok
38916
38917         * SWF.csproj:
38918           - Added Cursor.cs and UserControl.cs
38919
38920 2004-08-22 12:03  pbartok
38921
38922         * Cursor.cs:
38923           - Started implementation, not usable yet
38924
38925 2004-08-22 12:00  pbartok
38926
38927         * UserControl.cs:
38928           - Implemented UserControl (complete)
38929
38930 2004-08-21 19:20  ravindra
38931
38932         * ToolBar.cs: Correcting the formatting mess of VS.NET.
38933
38934 2004-08-21 18:49  ravindra
38935
38936         * ToolBar.cs: Probably this completes the missing attributes in
38937           toolbar control.
38938
38939 2004-08-21 18:03  ravindra
38940
38941         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
38942           Fixed toolbar control signatures.
38943
38944 2004-08-21 16:32  pbartok
38945
38946         * LinkLabel.cs:
38947           - Signature Fixes
38948
38949 2004-08-21 16:30  pbartok
38950
38951         * Label.cs:
38952           - Signature fixes
38953
38954 2004-08-21 16:19  pbartok
38955
38956         * Control.cs, Label.cs:
38957           - Signature fixes
38958
38959 2004-08-21 15:57  pbartok
38960
38961         * ButtonBase.cs:
38962           - Added loads of debug output for development
38963           - Fixed typo in method name
38964
38965 2004-08-21 15:52  pbartok
38966
38967         * ToolBarButtonClickEventArgs.cs:
38968           - Added missing base class
38969
38970 2004-08-21 14:53  pbartok
38971
38972         * Control.cs:
38973           - Updated to match new GrabWindow signature
38974
38975 2004-08-21 14:51  pbartok
38976
38977         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38978           - Added method to get default display size
38979
38980 2004-08-21 14:23  pbartok
38981
38982         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38983           - Added method to query current grab state
38984           - Added argument to allow confining a grab to a window
38985
38986 2004-08-21 14:22  pbartok
38987
38988         * Keys.cs:
38989           - Added [Flags] attribute so that modifiers can be used in bitwise
38990           ops
38991
38992 2004-08-21 14:21  pbartok
38993
38994         * TrackBar.cs, ScrollBar.cs:
38995           - Replaced direct XplatUI calls with their Control counterpart
38996
38997 2004-08-21 13:32  pbartok
38998
38999         * Control.cs:
39000           - Implemented Created property
39001
39002 2004-08-21 13:28  pbartok
39003
39004         * Control.cs:
39005           - Implemented ContainsFocus
39006
39007 2004-08-21 13:26  pbartok
39008
39009         * Control.cs:
39010           - Implemented CausesValidation
39011
39012 2004-08-21 13:21  pbartok
39013
39014         * Control.cs:
39015           - Implemented CanFocus
39016           - Implemented CanSelect
39017           - Implemented Capture
39018
39019 2004-08-21 12:35  pbartok
39020
39021         * XplatUIWin32.cs:
39022           - Fixed bug with Async message handling
39023           - Implemented getting the ModifierKeys
39024
39025 2004-08-21 12:32  jackson
39026
39027         * AsyncMethodResult.cs: Make sure we have the mutex before we
39028           release it. Fixes BeginInvoke on windows
39029
39030 2004-08-21 11:31  pbartok
39031
39032         * XplatUIWin32.cs, XplatUIX11.cs:
39033           - Drivers now return proper mouse state
39034
39035 2004-08-21 10:54  jackson
39036
39037         * Control.cs: Implement EndInvoke
39038
39039 2004-08-21 10:48  jackson
39040
39041         * Timer.cs: Remove unneeded finalizer
39042
39043 2004-08-20 19:52  ravindra
39044
39045         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
39046           in mouse event handling in the ToolBar control.
39047
39048 2004-08-20 19:50  ravindra
39049
39050         * ImageList.cs: Changed draw method to use the arguments passed in
39051           to draw the image.
39052
39053 2004-08-20 18:58  pbartok
39054
39055         * XplatUIStructs.cs:
39056           - Added private message for async communication
39057
39058 2004-08-20 17:38  ravindra
39059
39060         * Control.cs: Made RightToLeft property virtual and removed a
39061           Console.WriteLine.
39062
39063 2004-08-20 14:39  jordi
39064
39065         * ThemeGtk.cs: use style_attach
39066
39067 2004-08-20 14:39  pbartok
39068
39069         * XplatUIWin32.cs:
39070           - Added jackson's Async code from X11 to Win32
39071
39072 2004-08-20 14:09  pbartok
39073
39074         * SWF.csproj:
39075           - Added all new files
39076
39077 2004-08-20 14:09  pbartok
39078
39079         * Control.cs:
39080           - Added call to set window background color
39081
39082 2004-08-20 14:03  pbartok
39083
39084         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
39085           - Added method for setting the window background
39086
39087 2004-08-20 14:02  pbartok
39088
39089         * XplatUIWin32.cs:
39090           - Added method for setting the background color
39091           - Added handling for erasing the window background
39092
39093 2004-08-20 13:45  jordi
39094
39095         * TrackBar.cs: fixes timer, new properties and methods
39096
39097 2004-08-20 13:34  jackson
39098
39099         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
39100           correct thread
39101
39102 2004-08-20 13:22  jackson
39103
39104         * Timer.cs: Timer Tick events are now handed through Controls Async
39105           mechanism so the callbacks are executed in the same thread as X
39106
39107 2004-08-20 13:19  jackson
39108
39109         * XplatUIDriver.cs: Expose functionality to send async messages
39110           through the driver
39111
39112 2004-08-20 13:18  jackson
39113
39114         * Control.cs: Implement Begininvoke
39115
39116 2004-08-20 13:14  jackson
39117
39118         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
39119           messages through the driver
39120
39121 2004-08-20 13:12  jackson
39122
39123         * XplatUIX11.cs: Lock before all X operations. Also added Async
39124           method functionality through XSendEvent
39125
39126 2004-08-20 13:11  jackson
39127
39128         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
39129           This will screw up on 64 bit systems)
39130
39131 2004-08-20 13:10  jackson
39132
39133         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
39134           Async messages through X/Win32
39135
39136 2004-08-19 19:39  pbartok
39137
39138         * XplatUIX11.cs:
39139           - Updated code to match new HandleData.DeviceContext type
39140
39141 2004-08-19 19:38  pbartok
39142
39143         * HandleData.cs:
39144           - Made DeviceContext a generic object to allow usage from various
39145           drivers
39146           - Added support for queueing Windows messages
39147
39148 2004-08-19 19:37  pbartok
39149
39150         * XplatUIWin32.cs:
39151           - Added generation of MouseEnter, MouseLeave and MouseHover events
39152           - Added cleanup on EndPaint
39153
39154 2004-08-19 19:17  pbartok
39155
39156         * Control.cs:
39157           - Added handling of WM_MOUSEHOVER
39158           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
39159           code
39160
39161 2004-08-19 18:55  jordi
39162
39163         * ThemeGtk.cs: fixes button order
39164
39165 2004-08-19 18:12  jordi
39166
39167         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
39168
39169 2004-08-19 17:09  pbartok
39170
39171         * Control.cs:
39172           - Added Right property
39173           - Added RightToLeft property
39174
39175 2004-08-19 16:27  jordi
39176
39177         * ThemeGtk.cs: experimental GTK theme support
39178
39179 2004-08-19 16:26  jordi
39180
39181         * ITheme.cs, Theme.cs: move themes from an interface to a class
39182
39183 2004-08-19 16:25  jordi
39184
39185         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
39186           theme enhancaments
39187
39188 2004-08-19 16:04  pbartok
39189
39190         * XplatUIX11.cs:
39191           - Added colormap basics
39192           - Added a way to re-initialize with a different display handle
39193           - Fixed setting of the window background color
39194           - Added various X11 imports related to colors and colormaps
39195
39196 2004-08-19 15:51  pbartok
39197
39198         * X11Structs.cs:
39199           - Removed packing hints (Paolo suggested this a while back)
39200           - fixed colormap type
39201           - Added default Atom types
39202           - Added Screen and color structs and enums
39203
39204 2004-08-19 15:39  pbartok
39205
39206         * ImageList.cs:
39207           - Added missing Draw() method
39208           - Added missing RecreateHandle event
39209
39210 2004-08-19 15:30  pbartok
39211
39212         * Form.cs:
39213           - Added handling of WM_CLOSE
39214
39215 2004-08-18 13:16  jordi
39216
39217         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
39218           a table
39219
39220 2004-08-18 09:56  jordi
39221
39222         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
39223
39224 2004-08-17 15:31  ravindra
39225
39226         * SWF.csproj: Updated project.
39227
39228 2004-08-17 15:25  pbartok
39229
39230         * Control.cs:
39231           - Drawing improvement; don't call UpdateBounds if we are not visible
39232             (or have been minimized)
39233
39234 2004-08-17 15:24  pbartok
39235
39236         * XplatUIWin32.cs:
39237           - Finished IsVisible
39238           - Added Win32GetWindowPlacement
39239
39240 2004-08-17 15:08  jackson
39241
39242         * Panel.cs: Initial checkin of the Panel
39243
39244 2004-08-17 14:25  pbartok
39245
39246         * Control.cs:
39247           - Fixed broken handling of default window sizes
39248
39249 2004-08-17 13:29  jackson
39250
39251         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
39252           has a large startup time.
39253
39254 2004-08-17 10:25  jackson
39255
39256         * HandleData.cs: union areas properly
39257
39258 2004-08-17 10:12  jackson
39259
39260         * HandleData.cs: union areas properly
39261
39262 2004-08-16 20:00  ravindra
39263
39264         * ToolBar.cs, ToolBarButton.cs: Added attributes.
39265
39266 2004-08-16 18:48  ravindra
39267
39268         * ToolBar.cs: Added attributes.
39269
39270 2004-08-16 17:17  ravindra
39271
39272         * SWF.csproj: Updated project.
39273
39274 2004-08-16 17:16  jackson
39275
39276         * XplatUIX11.cs: Check for more expose events before sending a
39277           WM_PAINT so they can all be grouped together. This makes dragging a
39278           window across another window redraw in a sane way.
39279
39280 2004-08-16 15:47  pbartok
39281
39282         * Control.cs:
39283           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
39284             support OnMouseEnter/Leave()
39285           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
39286             exposure handling
39287
39288 2004-08-16 15:46  pbartok
39289
39290         * XplatUIStructs.cs, XplatUIX11.cs:
39291           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
39292           OnMouseEnter/Leave()
39293
39294 2004-08-16 15:34  jackson
39295
39296         * XplatUIX11.cs: Group multiple expose events in HandleData, make
39297           sure messages get the message field set to WM_NULL if they are not
39298           handled.
39299
39300 2004-08-16 15:24  jackson
39301
39302         * HandleData.cs: HandleData is used for storing message information
39303           for window handles
39304
39305 2004-08-15 17:23  ravindra
39306
39307         * ColorDepth.cs: Added attribute.
39308
39309 2004-08-15 17:23  ravindra
39310
39311         * SWF.csproj: Updated project for ToolBar Control.
39312
39313 2004-08-15 17:20  ravindra
39314
39315         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
39316           control and also dos2unix format.
39317
39318 2004-08-15 17:13  ravindra
39319
39320         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
39321           ToolBarButtonClickEventArgs.cs,
39322           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
39323           ToolBarTextAlign.cs: First Implementation of ToolBar control.
39324
39325 2004-08-15 15:31  pbartok
39326
39327         * ButtonBase.cs:
39328           - First (mostly) working version
39329
39330 2004-08-13 16:15  pbartok
39331
39332         * Control.cs:
39333           - Fixed Anchor default
39334
39335 2004-08-13 15:43  pbartok
39336
39337         * Control.cs:
39338           - Changed GetCursorPos signature
39339
39340 2004-08-13 15:42  pbartok
39341
39342         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
39343           - Changed signature for GetCursorPos
39344
39345 2004-08-13 15:25  pbartok
39346
39347         * XplatUIX11.cs:
39348           - Cleanup
39349           - Fixed resizing/exposure handling
39350
39351 2004-08-13 15:22  jordi
39352
39353         * ThemeWin32Classic.cs: removes redundant code and fixes issues
39354           with tickposition
39355
39356 2004-08-13 14:55  jordi
39357
39358         * TrackBar.cs: change from wndproc to events
39359
39360 2004-08-13 13:00  jordi
39361
39362         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39363           XplatUIX11.cs: implements PointToClient (ScreenToClient)
39364
39365 2004-08-13 12:53  pbartok
39366
39367         * XplatUIWin32.cs:
39368           - Changed GetWindowPos to also provide client area size
39369           - Fixed broken prototypes for several win32 functions
39370
39371 2004-08-13 12:53  pbartok
39372
39373         * XplatUI.cs, XplatUIDriver.cs:
39374           - Changed GetWindowPos to also provide client area size
39375
39376 2004-08-13 12:52  pbartok
39377
39378         * XplatUIX11.cs:
39379           - Added generation of WM_POSCHANGED
39380           - Changed GetWindowPos to also provide client area size
39381
39382 2004-08-13 12:52  pbartok
39383
39384         * Control.cs:
39385           - Added Dispose() and destructor
39386           - Fixed resizing and bounds calculation
39387           - Fixed Layout
39388           - Added memory savings for invisible windows
39389
39390 2004-08-13 12:46  jordi
39391
39392         * TrackBar.cs: adds timer and grap window
39393
39394 2004-08-13 10:25  jackson
39395
39396         * Timer.cs: SWF Timer
39397
39398 2004-08-12 16:59  pbartok
39399
39400         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39401           - Implemented method to get current mouse position
39402
39403 2004-08-12 14:29  jordi
39404
39405         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
39406           enhancement, fix mouse problems, highli thumb, etc
39407
39408 2004-08-12 13:31  pbartok
39409
39410         * Control.cs:
39411           - Fixed Anchoring bugs
39412
39413 2004-08-12 13:01  jackson
39414
39415         * StatusBar.cs: Don't forget things
39416
39417 2004-08-12 12:54  jackson
39418
39419         * ThemeWin32Classic.cs: Handle owner draw status bars
39420
39421 2004-08-12 12:54  jackson
39422
39423         * StatusBar.cs: Implement missing properties, events, and methods.
39424           Handle mouse clicking
39425
39426 2004-08-12 10:19  jackson
39427
39428         * StatusBarPanelClickEventArgs.cs,
39429           StatusBarPanelClickEventHandler.cs: Classes for handling status
39430           bar panel click events
39431
39432 2004-08-12 10:10  jackson
39433
39434         * Control.cs: Add missing properties
39435
39436 2004-08-12 09:46  pbartok
39437
39438         * BindingsManagerBase.cs:
39439           - Name changed to BindingManagerBase.cs
39440
39441 2004-08-12 09:25  jordi
39442
39443         * ScrollableControl.cs: calls ctrlbase instead of exeception
39444
39445 2004-08-11 16:28  pbartok
39446
39447         * InputLanguageChangingEventArgs.cs:
39448           - Never check in before compiling. Fixes the last check-in
39449
39450 2004-08-11 16:26  pbartok
39451
39452         * InputLanguageChangingEventArgs.cs:
39453           - More signature fixes
39454
39455 2004-08-11 16:20  pbartok
39456
39457         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
39458           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
39459           ImageListStreamer.cs, InputLanguage.cs,
39460           InputLanguageChangedEventArgs.cs,
39461           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
39462           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
39463           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
39464           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39465           - Signature fixes
39466
39467 2004-08-11 16:16  pbartok
39468
39469         * Application.cs:
39470           - Fixed Signature
39471           - Added .Net 1.1 method
39472
39473 2004-08-11 15:25  pbartok
39474
39475         * SWF.csproj:
39476           - Fixed BindingManagerBase.cs filename
39477
39478 2004-08-11 15:22  pbartok
39479
39480         * BindingManagerBase.cs:
39481           - Was checked in with wrong filename
39482
39483 2004-08-11 14:50  pbartok
39484
39485         * SWF.csproj:
39486           - Updated
39487
39488 2004-08-11 13:41  jordi
39489
39490         * XplatUIWin32.cs: Fixes ClientRect
39491
39492 2004-08-11 13:19  pbartok
39493
39494         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39495           XplatUIX11.cs:
39496           - We had SetWindowPos and MoveWindow to set window positions and
39497             size, removed MoveWindow. We have GetWindowPos, so it made sense to
39498             keep SetWindowPos as matching counterpart
39499           - Added some X11 sanity checking
39500
39501 2004-08-11 12:59  pbartok
39502
39503         * Control.cs:
39504           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
39505             (It seems that SetBounds is just a front for SetBoundsCore and
39506              SetBoundsCore updates the underlying window system and
39507              UpdateBounds is responsible for updating the variables associated
39508              with the Control and sending the events)
39509           - Major cleanup of Size handling; we now have two sizes, client_size
39510             and bounds. Bounds defines the window with decorations, client_size
39511             without them.
39512
39513 2004-08-11 12:55  pbartok
39514
39515         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39516           - Added method to calculate difference between decorated window and
39517             raw client area
39518
39519 2004-08-11 12:54  pbartok
39520
39521         * Label.cs:
39522           - Forcing redraw on resize
39523
39524 2004-08-11 11:43  pbartok
39525
39526         * ImageList.cs:
39527           - Removed disposing of the actual images when the list is disposed
39528
39529 2004-08-11 09:13  pbartok
39530
39531         * Control.cs:
39532           - Now properly reparents windows
39533
39534 2004-08-11 08:37  pbartok
39535
39536         * Control.cs:
39537           - Duh!
39538
39539 2004-08-11 07:47  pbartok
39540
39541         * Control.cs:
39542           - Rewrote the collection stuff. Might not be as fast now, not
39543             keeping the number of children around and accessible directly, but
39544             it's more straightforward
39545
39546 2004-08-11 07:44  pbartok
39547
39548         * AccessibleObject.cs:
39549           - Fixed to match ControlCollection rewrite
39550
39551 2004-08-11 07:43  pbartok
39552
39553         * ImageList.cs:
39554           - Added missing creation of the collection list
39555
39556 2004-08-10 20:08  jackson
39557
39558         * StatusBar.cs: Get the paint message from WndProc
39559
39560 2004-08-10 19:31  jackson
39561
39562         * ThemeWin32Classic.cs: Create Brushes as little as possible
39563
39564 2004-08-10 19:20  jackson
39565
39566         * UICues.cs: Add Flags attribute
39567
39568 2004-08-10 19:19  jackson
39569
39570         * StatusBarPanel.cs: Signature cleanup
39571
39572 2004-08-10 19:10  jackson
39573
39574         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
39575           Initial implementation of status bar item drawing
39576
39577 2004-08-10 17:27  jordi
39578
39579         * TrackBar.cs: add missing methods, properties, and restructure to
39580           hide extra ones
39581
39582 2004-08-10 16:24  jackson
39583
39584         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
39585           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
39586           attribute
39587
39588 2004-08-10 13:21  jordi
39589
39590         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
39591           enhancements and standarize on win colors defaults
39592
39593 2004-08-10 12:52  jackson
39594
39595         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
39596           ThemeWin32Classic.cs: Implement DrawItem functionality
39597
39598 2004-08-10 12:47  jordi
39599
39600         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
39601
39602 2004-08-10 12:32  jordi
39603
39604         * Control.cs: throw ontextchange event
39605
39606 2004-08-10 11:43  pbartok
39607
39608         * Control.cs:
39609           - Added more to the still unfinished Dock/Anchor layout code
39610
39611 2004-08-10 11:39  pbartok
39612
39613         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
39614           - Added GetWindowPos method
39615
39616 2004-08-10 11:36  pbartok
39617
39618         * XplatUIWin32.cs:
39619           - Implemented several methods
39620
39621 2004-08-10 09:47  jackson
39622
39623         * TrackBar.cs: Allow control to handle buffering
39624
39625 2004-08-10 09:41  jackson
39626
39627         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
39628
39629 2004-08-10 09:24  jackson
39630
39631         * Label.cs, LinkLabel.cs: Let Control handle buffering.
39632
39633 2004-08-10 09:09  jackson
39634
39635         * StatusBar.cs: Let Control handle all the buffering.
39636
39637 2004-08-10 09:08  jackson
39638
39639         * Control.cs: Control will now handle the buffering code, so each
39640           control does not have to implement this.
39641
39642 2004-08-10 08:34  jackson
39643
39644         * XplatUIDriver.cs: Use default colors from the theme
39645
39646 2004-08-09 17:12  pbartok
39647
39648         * ImageList.cs:
39649           - Fixed several bugs Ravindra pointed out
39650
39651 2004-08-09 16:11  pbartok
39652
39653         * Control.cs:
39654           - Added incomplete dock layout code
39655           - Added support for mouse wheel
39656
39657 2004-08-09 16:09  pbartok
39658
39659         * XplatUIX11.cs:
39660           - Added handling for middle and right mousebutton
39661           - Added handling for mouse wheel
39662           - Added handling for key state and mouse state and position
39663           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
39664           messages
39665
39666 2004-08-09 15:40  jackson
39667
39668         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
39669           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
39670           checkin
39671
39672 2004-08-09 15:37  jackson
39673
39674         * StatusBar.cs: Initial implementation of StatusBar
39675
39676 2004-08-09 15:36  jackson
39677
39678         * ITheme.cs: Add support for drawing status bar and getting status
39679           bar item sizes
39680
39681 2004-08-09 15:35  pbartok
39682
39683         * MouseButtons.cs:
39684           - Fixed values
39685
39686 2004-08-09 15:34  jackson
39687
39688         * ThemeWin32Classic.cs: Add support for drawing status bar and get
39689           status bar item sizes
39690
39691 2004-08-09 15:21  jackson
39692
39693         * ThemeWin32Classic.cs: Use known colors for default control
39694           colours
39695
39696 2004-08-09 15:12  jackson
39697
39698         * ThemeWin32Classic.cs: Make the default font static, it is static
39699           in control so this doesn't change functionality and creating fonts
39700           is sloooooow.
39701
39702 2004-08-09 14:56  pbartok
39703
39704         * X11Structs.cs:
39705           - Added GrabMode enum
39706
39707 2004-08-09 14:55  pbartok
39708
39709         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39710           - Removed Run method, was only required for initial development
39711
39712 2004-08-09 14:51  pbartok
39713
39714         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39715           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
39716           capture
39717
39718 2004-08-09 13:48  pbartok
39719
39720         * XplatUIX11.cs:
39721           - Fixed default sizing for child windows
39722
39723 2004-08-09 12:56  pbartok
39724
39725         * XplatUIX11.cs:
39726           - Added generation of WM_DESTROY message
39727           - Added handling of window manager induced shutdown
39728
39729 2004-08-09 11:31  jackson
39730
39731         * ThemeWin32Classic.cs: New names for control properties
39732
39733 2004-08-09 11:25  jackson
39734
39735         * Control.cs: Use new color names
39736
39737 2004-08-09 11:02  jackson
39738
39739         * XplatUI.cs: Get default window properties from the theme
39740
39741 2004-08-09 11:01  jackson
39742
39743         * ITheme.cs: The theme engine now controls default window
39744           properties
39745
39746 2004-08-09 11:00  jackson
39747
39748         * ThemeWin32Classic.cs: Add default window color properties
39749
39750 2004-08-09 10:17  jackson
39751
39752         * ThemeWin32Classic.cs: Use correct default back color
39753
39754 2004-08-09 10:05  jackson
39755
39756         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
39757           the theme now.
39758
39759 2004-08-09 09:56  jackson
39760
39761         * XplatUI.cs: Remove defaults, these are handled by the theme now.
39762
39763 2004-08-09 09:54  jackson
39764
39765         * Control.cs: Get default properties from the theme.
39766
39767 2004-08-09 09:53  jackson
39768
39769         * ITheme.cs: Themes now handle default control properties
39770
39771 2004-08-09 09:53  jackson
39772
39773         * ThemeWin32Classic.cs: Themes now handle default control
39774           properties so coloring will be consistent
39775
39776 2004-08-08 16:54  jordi
39777
39778         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
39779
39780 2004-08-08 15:08  jordi
39781
39782         * XplatUIX11.cs: fixes keyboard crash
39783
39784 2004-08-08 13:47  jordi
39785
39786         * Label.cs: add cvs header info
39787
39788 2004-08-08 12:09  jackson
39789
39790         * ThemeWin32Classic.cs: Add pen_buttonface
39791
39792 2004-08-08 11:52  jordi
39793
39794         * Label.cs, LinkLabel.cs: [no log message]
39795
39796 2004-08-08 11:34  jordi
39797
39798         * ThemeWin32Classic.cs: Use Windows Standard Colours
39799
39800 2004-08-07 17:32  jordi
39801
39802         * TrackBar.cs: throw exceptions of invalid enums values
39803
39804 2004-08-07 17:31  jordi
39805
39806         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
39807           draw method name
39808
39809 2004-08-07 16:56  jackson
39810
39811         * HorizontalAlignment.cs: Initial checkin
39812
39813 2004-08-07 13:16  jordi
39814
39815         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
39816           methods
39817
39818 2004-08-07 13:05  jordi
39819
39820         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
39821           GetSysColor defines
39822
39823 2004-08-06 18:01  pbartok
39824
39825         * ThemeWin32Classic.cs:
39826           - Fixed some rounding issues with float/int
39827
39828 2004-08-06 18:00  jackson
39829
39830         * DockStyle.cs, AnchorStyles.cs:
39831
39832                   Add flags and serializable attributes.
39833
39834 2004-08-06 17:46  pbartok
39835
39836         * XplatUIX11.cs:
39837           - Implemented GetParent
39838
39839 2004-08-06 17:18  pbartok
39840
39841         * TrackBar.cs:
39842           - Fixed some rounding issues with float/int
39843
39844 2004-08-06 17:17  pbartok
39845
39846         * X11Structs.cs, XplatUIX11.cs:
39847           - Fixed Refresh and Invalidate
39848
39849 2004-08-06 15:30  pbartok
39850
39851         * Control.cs, X11Structs.cs, XplatUIX11.cs:
39852           - Fixed recursive loop when resizing
39853           - Improved/fixed redrawing on expose messages
39854
39855 2004-08-06 09:53  jordi
39856
39857         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
39858           keyboard navigation
39859
39860 2004-08-06 08:02  pbartok
39861
39862         * X11Structs.cs, XplatUIX11.cs:
39863           - Fixed reparenting
39864           - Fixed window border creation
39865
39866 2004-08-05 15:38  pbartok
39867
39868         * XplatUIX11.cs:
39869           - Attempted fix for reparenting problems
39870
39871 2004-08-04 15:14  pbartok
39872
39873         * Control.cs:
39874           - Fixed Invalidation bug (calculated wrong client area)
39875           - Added ClientSize setter
39876
39877 2004-08-04 15:13  pbartok
39878
39879         * Form.cs:
39880           - Added AutoScale properties
39881
39882 2004-08-04 15:13  pbartok
39883
39884         * SWF.csproj:
39885           - Added latest files
39886
39887 2004-08-04 14:11  pbartok
39888
39889         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39890           XplatUIX11.cs:
39891           - Added Invalidate handling
39892
39893 2004-08-03 17:09  jordi
39894
39895         * XplatUIDriver.cs: fixes spelling mistake
39896
39897 2004-07-27 09:53  jordi
39898
39899         * TrackBar.cs: fixes trackbar events, def classname, methods
39900           signature
39901
39902 2004-07-27 09:29  jordi
39903
39904         * ScrollBar.cs: fixes scrollbar events
39905
39906 2004-07-27 04:38  jordi
39907
39908         * Control.cs: changes to be able to run winforms samples
39909
39910 2004-07-26 11:42  jordi
39911
39912         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
39913           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
39914
39915 2004-07-26 05:41  jordi
39916
39917         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
39918           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
39919           implementation
39920
39921 2004-07-22 09:22  jordi
39922
39923         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
39924           check link overlapping, implement events, and fixes
39925
39926 2004-07-21 10:28  jordi
39927
39928         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
39929
39930 2004-07-21 10:19  jordi
39931
39932         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
39933           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
39934           LinkLabelLinkClickedEventArgs.cs,
39935           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
39936           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
39937           implementation
39938
39939 2004-07-19 13:09  jordi
39940
39941         * Control.cs, Label.cs: label control re-written: added missing
39942           functionlity, events, and properties
39943
39944 2004-07-19 10:49  jordi
39945
39946         * Control.cs: fixes SetBounds logic
39947
39948 2004-07-19 01:29  jordi
39949
39950         * Control.cs: Call RefreshWindow only if the window has created
39951
39952 2004-07-15 14:05  pbartok
39953
39954         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
39955           - Implemented ImageList and ImageList.ImageCollection classes
39956           - Added ColorDepth enumeration
39957           - Updated SWF VS.Net project
39958
39959 2004-07-15 11:06  jordi
39960
39961         * XplatUIStructs.cs: added MsgButons enum
39962
39963 2004-07-15 11:03  jordi
39964
39965         * Control.cs: added basic mouse handeling events
39966
39967 2004-07-15 03:38  jordi
39968
39969         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
39970           Vertical TrackBar control implementation
39971
39972 2004-07-13 09:33  jordi
39973
39974         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
39975
39976 2004-07-13 09:31  jordi
39977
39978         * Control.cs, Form.cs: commit: new properties and fixes form size
39979           problems
39980
39981 2004-07-09 14:13  miguel
39982
39983         * ProgressBar.cs: Spelling
39984
39985 2004-07-09 11:25  pbartok
39986
39987         * ProgressBar.cs:
39988           - Removed usage of Rectangle for drawing. Miguel pointed out it's
39989           faster
39990
39991 2004-07-09 11:17  miguel
39992
39993         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
39994
39995                 * ProgressBar.cs: Fixed spelling for `block'
39996
39997                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
39998                 style guidelines.
39999
40000                 Avoid using the += on rect.X, that exposed a bug in the compiler.
40001
40002 2004-07-08 23:21  pbartok
40003
40004         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
40005           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
40006           BaseCollection.cs, Binding.cs, BindingContext.cs,
40007           BindingMemberInfo.cs, BindingsCollection.cs,
40008           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
40009           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
40010           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
40011           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
40012           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
40013           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
40014           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
40015           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
40016           FrameStyle.cs, GiveFeedbackEventArgs.cs,
40017           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
40018           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
40019           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
40020           InputLanguageChangedEventArgs.cs,
40021           InputLanguageChangedEventHandler.cs,
40022           InputLanguageChangingEventArgs.cs,
40023           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
40024           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
40025           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
40026           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
40027           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
40028           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
40029           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
40030           QueryAccessibilityHelpEventArgs.cs,
40031           QueryAccessibilityHelpEventHandler.cs,
40032           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
40033           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
40034           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
40035           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
40036           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
40037           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
40038           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
40039           XplatUIX11.cs, lang.cs:
40040           - Initial check-in
40041